diff options
| author | 2020-01-29 11:22:22 -0800 | |
|---|---|---|
| committer | 2020-01-29 22:38:49 +0000 | |
| commit | 4ddd54a0560d0cfaa31d0e126dc72de31e551871 (patch) | |
| tree | 97d83589085ce72d23847763661e7c956745c087 | |
| parent | 512f632f8d7f635974e2757b1663cf068a07c30e (diff) | |
Remove target SDK check for adding REVOKED_COMPAT in setUidMode().
Previously this could work regardless of target SDK version, so for
compatibility it should still work that way.
Bug: 146386279
Bug: 136503238
Test: presubmit
Change-Id: I57729f0d35679afaf3a43dfac5cd42f488d78baf
| -rw-r--r-- | services/core/java/com/android/server/appop/AppOpsService.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/services/core/java/com/android/server/appop/AppOpsService.java b/services/core/java/com/android/server/appop/AppOpsService.java index 08136a3cb9e5..9209dd97260c 100644 --- a/services/core/java/com/android/server/appop/AppOpsService.java +++ b/services/core/java/com/android/server/appop/AppOpsService.java @@ -85,7 +85,6 @@ import android.hardware.camera2.CameraDevice.CAMERA_AUDIO_RESTRICTION; import android.net.Uri; import android.os.AsyncTask; import android.os.Binder; -import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.os.IBinder; @@ -1979,12 +1978,6 @@ public class AppOpsService extends IAppOpsService.Stub { } private void updatePermissionRevokedCompat(int uid, int switchCode, int mode) { - PackageManagerInternal packageManagerInternal = LocalServices.getService( - PackageManagerInternal.class); - if (packageManagerInternal.getUidTargetSdkVersion(uid) >= Build.VERSION_CODES.M) { - return; - } - PackageManager packageManager = mContext.getPackageManager(); String[] packageNames = packageManager.getPackagesForUid(uid); if (ArrayUtils.isEmpty(packageNames)) { |