Merge "Skip registering callback for appop changes if fuse is enabled." into rvc-dev am: e710cbeabe am: 35a807662f am: bd0e4f8e6e

Change-Id: Ic3b8e737274235179b6d0895f10954c0634704c0
This commit is contained in:
Sudheer Shanka
2020-05-12 02:10:53 +00:00
committed by Automerger Merge Worker

View File

@@ -1941,10 +1941,13 @@ class StorageManagerService extends IStorageManager.Stub
mDownloadsAuthorityAppId = UserHandle.getAppId(provider.applicationInfo.uid);
}
try {
mIAppOpsService.startWatchingMode(OP_REQUEST_INSTALL_PACKAGES, null, mAppOpsCallback);
mIAppOpsService.startWatchingMode(OP_LEGACY_STORAGE, null, mAppOpsCallback);
} catch (RemoteException e) {
if (!mIsFuseEnabled) {
try {
mIAppOpsService.startWatchingMode(OP_REQUEST_INSTALL_PACKAGES, null,
mAppOpsCallback);
mIAppOpsService.startWatchingMode(OP_LEGACY_STORAGE, null, mAppOpsCallback);
} catch (RemoteException e) {
}
}
}