Merge "Skip registering callback for appop changes if fuse is enabled." into rvc-dev am: e710cbeabe am: 35a807662f
Change-Id: Ia54ce19d277c8a7d8020245f12859241ddc14862
This commit is contained in:
@@ -1941,10 +1941,13 @@ class StorageManagerService extends IStorageManager.Stub
|
|||||||
mDownloadsAuthorityAppId = UserHandle.getAppId(provider.applicationInfo.uid);
|
mDownloadsAuthorityAppId = UserHandle.getAppId(provider.applicationInfo.uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
if (!mIsFuseEnabled) {
|
||||||
mIAppOpsService.startWatchingMode(OP_REQUEST_INSTALL_PACKAGES, null, mAppOpsCallback);
|
try {
|
||||||
mIAppOpsService.startWatchingMode(OP_LEGACY_STORAGE, null, mAppOpsCallback);
|
mIAppOpsService.startWatchingMode(OP_REQUEST_INSTALL_PACKAGES, null,
|
||||||
} catch (RemoteException e) {
|
mAppOpsCallback);
|
||||||
|
mIAppOpsService.startWatchingMode(OP_LEGACY_STORAGE, null, mAppOpsCallback);
|
||||||
|
} catch (RemoteException e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user