Make setMetered and setOpportunistic public.
Making SubscriptionManager#setMetered and #setOpportunistic public APIs. Adding proper permission checks and descriptions. Bug: 120138251 Test: cts, unittest Change-Id: Id6f074b15a1c03d00ede2665d44595fa7be965e4 Merged-In: Id6f074b15a1c03d00ede2665d44595fa7be965e4
This commit is contained in:
@@ -6665,8 +6665,8 @@ public class TelephonyManager {
|
||||
try {
|
||||
ITelephony telephony = getITelephony();
|
||||
if (telephony != null) {
|
||||
return telephony.getCarrierPrivilegeStatus(subId) ==
|
||||
CARRIER_PRIVILEGE_STATUS_HAS_ACCESS;
|
||||
return telephony.getCarrierPrivilegeStatus(subId)
|
||||
== CARRIER_PRIVILEGE_STATUS_HAS_ACCESS;
|
||||
}
|
||||
} catch (RemoteException ex) {
|
||||
Rlog.e(TAG, "hasCarrierPrivileges RemoteException", ex);
|
||||
|
||||
Reference in New Issue
Block a user