Merge "NetworkStatAccess Should checkCarrierPrivileges cross all subscriptions" am: 478cbabf8c
am: 4d206af049 Change-Id: Ib2d02bd3936ae112f62861c301d99582e0b998b0
This commit is contained in:
@@ -109,7 +109,7 @@ public final class NetworkStatsAccess {
|
|||||||
final TelephonyManager tm = (TelephonyManager)
|
final TelephonyManager tm = (TelephonyManager)
|
||||||
context.getSystemService(Context.TELEPHONY_SERVICE);
|
context.getSystemService(Context.TELEPHONY_SERVICE);
|
||||||
boolean hasCarrierPrivileges = tm != null &&
|
boolean hasCarrierPrivileges = tm != null &&
|
||||||
tm.checkCarrierPrivilegesForPackage(callingPackage) ==
|
tm.checkCarrierPrivilegesForPackageAnyPhone(callingPackage) ==
|
||||||
TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS;
|
TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS;
|
||||||
boolean isDeviceOwner = dpmi != null && dpmi.isActiveAdminWithPolicy(callingUid,
|
boolean isDeviceOwner = dpmi != null && dpmi.isActiveAdminWithPolicy(callingUid,
|
||||||
DeviceAdminInfo.USES_POLICY_DEVICE_OWNER);
|
DeviceAdminInfo.USES_POLICY_DEVICE_OWNER);
|
||||||
|
|||||||
Reference in New Issue
Block a user