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

Commit 35a80766 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 rvc-dev am: e710cbea

Change-Id: I6d7bd7d4a4057a773011986ed110a88ad60edeb2
parents 8fcea088 e710cbea
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) {