 In 1947, he opted for Pakistan citizenship, and served as the constitutional adviser to Chief Ministers of Sindh Province Ghulam Hussain Hidayat Ullah from 1947 till 1948, and to Ayub Khuhro from 1948 until 1949.In 1949, the Governor George Baxandall Constantine appointed him as the Commissioner of District Thatta.In 1967, Shahi gained a Master of Science in Strategic studies from Defence & Strategic Studies (DSS) Department.