diff options
| author | 2019-05-25 00:32:52 +0000 | |
|---|---|---|
| committer | 2019-05-25 00:32:52 +0000 | |
| commit | 789651e20161d228f3f1dd556205847f9e4fe469 (patch) | |
| tree | f1d22a7c13c84590bba13d6c743b9960a1ef9d99 | |
| parent | 0286f7568beb2e719cb6c70de6b5190b5a4753da (diff) | |
| parent | acbba9e681c74bcade4462b5b258418a83875e1f (diff) | |
Merge "Temporarily stop killing apps when OP_REQUEST_INSTALL_PACKAGES is denied." into qt-dev
| -rw-r--r-- | services/core/java/com/android/server/StorageManagerService.java | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/services/core/java/com/android/server/StorageManagerService.java b/services/core/java/com/android/server/StorageManagerService.java index bf56bc03b197..bbbec665020b 100644 --- a/services/core/java/com/android/server/StorageManagerService.java +++ b/services/core/java/com/android/server/StorageManagerService.java @@ -3243,22 +3243,7 @@ class StorageManagerService extends IStorageManager.Stub public void opChanged(int op, int uid, String packageName) throws RemoteException { if (!ENABLE_ISOLATED_STORAGE) return; - if (op == OP_REQUEST_INSTALL_PACKAGES) { - // Only handling the case when the appop is denied. The other cases will be - // handled in the synchronous callback from AppOpsService. - if (packageName != null && mIAppOpsService.checkOperation( - OP_REQUEST_INSTALL_PACKAGES, uid, packageName) != MODE_ALLOWED) { - try { - ActivityManager.getService().killUid( - UserHandle.getAppId(uid), UserHandle.getUserId(uid), - "OP_REQUEST_INSTALL_PACKAGES is denied"); - } catch (RemoteException e) { - // same process - should not happen - } - } - } else { - remountUidExternalStorage(uid, getMountMode(uid, packageName)); - } + remountUidExternalStorage(uid, getMountMode(uid, packageName)); } }; |