Loading core/java/android/net/INetworkPolicyManager.aidl +0 −5 Original line number Diff line number Diff line Loading @@ -19,8 +19,6 @@ package android.net; import android.net.INetworkPolicyListener; import android.net.Network; import android.net.NetworkPolicy; import android.net.NetworkQuotaInfo; import android.net.NetworkState; import android.net.NetworkTemplate; import android.telephony.SubscriptionPlan; Loading Loading @@ -70,9 +68,6 @@ interface INetworkPolicyManager { int getMultipathPreference(in Network network); @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) NetworkQuotaInfo getNetworkQuotaInfo(in NetworkState state); SubscriptionPlan[] getSubscriptionPlans(int subId, String callingPackage); void setSubscriptionPlans(int subId, in SubscriptionPlan[] plans, String callingPackage); String getSubscriptionPlansOwner(int subId); Loading services/core/java/com/android/server/net/NetworkPolicyManagerService.java +0 −9 Original line number Diff line number Diff line Loading @@ -167,7 +167,6 @@ import android.net.NetworkIdentity; import android.net.NetworkPolicy; import android.net.NetworkPolicyManager; import android.net.NetworkPolicyManager.UidState; import android.net.NetworkQuotaInfo; import android.net.NetworkRequest; import android.net.NetworkSpecifier; import android.net.NetworkStack; Loading Loading @@ -3166,14 +3165,6 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub { } } @Override @Deprecated public NetworkQuotaInfo getNetworkQuotaInfo(NetworkState state) { Log.w(TAG, "Shame on UID " + Binder.getCallingUid() + " for calling the hidden API getNetworkQuotaInfo(). Shame!"); return new NetworkQuotaInfo(); } private void enforceSubscriptionPlanAccess(int subId, int callingUid, String callingPackage) { // Verify they're not lying about package name mAppOps.checkPackage(callingUid, callingPackage); Loading Loading
core/java/android/net/INetworkPolicyManager.aidl +0 −5 Original line number Diff line number Diff line Loading @@ -19,8 +19,6 @@ package android.net; import android.net.INetworkPolicyListener; import android.net.Network; import android.net.NetworkPolicy; import android.net.NetworkQuotaInfo; import android.net.NetworkState; import android.net.NetworkTemplate; import android.telephony.SubscriptionPlan; Loading Loading @@ -70,9 +68,6 @@ interface INetworkPolicyManager { int getMultipathPreference(in Network network); @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) NetworkQuotaInfo getNetworkQuotaInfo(in NetworkState state); SubscriptionPlan[] getSubscriptionPlans(int subId, String callingPackage); void setSubscriptionPlans(int subId, in SubscriptionPlan[] plans, String callingPackage); String getSubscriptionPlansOwner(int subId); Loading
services/core/java/com/android/server/net/NetworkPolicyManagerService.java +0 −9 Original line number Diff line number Diff line Loading @@ -167,7 +167,6 @@ import android.net.NetworkIdentity; import android.net.NetworkPolicy; import android.net.NetworkPolicyManager; import android.net.NetworkPolicyManager.UidState; import android.net.NetworkQuotaInfo; import android.net.NetworkRequest; import android.net.NetworkSpecifier; import android.net.NetworkStack; Loading Loading @@ -3166,14 +3165,6 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub { } } @Override @Deprecated public NetworkQuotaInfo getNetworkQuotaInfo(NetworkState state) { Log.w(TAG, "Shame on UID " + Binder.getCallingUid() + " for calling the hidden API getNetworkQuotaInfo(). Shame!"); return new NetworkQuotaInfo(); } private void enforceSubscriptionPlanAccess(int subId, int callingUid, String callingPackage) { // Verify they're not lying about package name mAppOps.checkPackage(callingUid, callingPackage); Loading