Merge "Have PermissionMonitor arbiter which app can access background networks" into pi-dev
am: 1f654aa247 Change-Id: I8d725b07e59654232ee41b82aac007dc6a495a01
This commit is contained in:
@@ -1976,13 +1976,6 @@ public class ConnectivityManager {
|
||||
/* TODO: These permissions checks don't belong in client-side code. Move them to
|
||||
* services.jar, possibly in com.android.server.net. */
|
||||
|
||||
/** {@hide} */
|
||||
public static final boolean checkChangePermission(Context context) {
|
||||
int uid = Binder.getCallingUid();
|
||||
return Settings.checkAndNoteChangeNetworkStateOperation(context, uid, Settings
|
||||
.getPackageNameForUid(context, uid), false /* throwException */);
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
public static final void enforceChangePermission(Context context) {
|
||||
int uid = Binder.getCallingUid();
|
||||
|
||||
Reference in New Issue
Block a user