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

Commit a5cc4676 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: 40749116

Change-Id: Ieec8ec8815d7f023da365517b2691f21cee778eb
parents f07fdcf1 40749116
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) {