Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd0e4f8e authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Automerger Merge Worker
Browse files

Merge "Skip registering callback for appop changes if fuse is enabled." into...

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

Change-Id: Ia54ce19d277c8a7d8020245f12859241ddc14862
parents f3e9bb68 35a80766
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -1941,12 +1941,15 @@ class StorageManagerService extends IStorageManager.Stub
            mDownloadsAuthorityAppId = UserHandle.getAppId(provider.applicationInfo.uid);
        }

        if (!mIsFuseEnabled) {
            try {
            mIAppOpsService.startWatchingMode(OP_REQUEST_INSTALL_PACKAGES, null, mAppOpsCallback);
                mIAppOpsService.startWatchingMode(OP_REQUEST_INSTALL_PACKAGES, null,
                        mAppOpsCallback);
                mIAppOpsService.startWatchingMode(OP_LEGACY_STORAGE, null, mAppOpsCallback);
            } catch (RemoteException e) {
            }
        }
    }

    private void updateLegacyStorageApps(String packageName, int uid, boolean hasLegacy) {
        synchronized (mLock) {