Carrier Priviliged Apps Can't Use Security Reasons

Ensures that only apps that have the MODIFY_PHONE_STATE permission can
use security-based reasons for
TelephonyManager.setAllowedNetworkTypesForReason. Apps that only have
carrier privileges should not be able to override user or enterprise
security settings.

Test: atest android.telephony.cts.TelephonyManagerTest
Bug: 245322623
Change-Id: Ide63c4d479d44ec0604032d54462e954b36b3053
1 file changed