The government has proposed that smartphone makers share source code with it and make software changes on security ground.