Refact the allowed network type
- If api's caller set the same allowed network type, then api return success directly.
- Reset the User's allowed network type and clear other reason's allowed
network type.
- change the getAllowedNetworkTypesForReason's permission as READ_PRECISE_PHONE_STATE
Bug: 180903931
Bug: 179814490
Test: atest cts/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java#testSetAllowedNetworkTypesForReason_moreReason
atest cts/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java#testSetAllowedNetworkTypesForReason
atest android.telephony.cts.TelephonyCallbackTest
Change-Id: Idc456b0a3d7504c95172a5960378cf5e25149649
1 file changed