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

Commit fe97984f authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Revert "Invalidate package/permission cache if cross-profile app..."

Revert "Add dedicated host side tests for permissions and appops"

Revert submission 12439864-PermAppOpsCrossUserCheck-Fixed

Reason for revert: Bug 169044600
Reverted Changes:
I95d015e01:Invalidate package/permission cache if cross-profi...
I2a8a84f57:Check cross-user interactions for permissions and ...
Ie8f0db231:Give all non-package services the power to interac...
I11af434a8:Test package/permission cache invalidation when IN...
Ib6d609a4d:Add dedicated host side tests for permissions and ...

Change-Id: I0be95e8099131abba6279aa3945ad6bfbbab9a71
Fixes: 169044600
parent ac935d36
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -37,7 +37,6 @@ import static android.app.AppOpsManager.OP_CAMERA;
import static android.app.AppOpsManager.OP_FLAGS_ALL;
import static android.app.AppOpsManager.OP_FLAG_SELF;
import static android.app.AppOpsManager.OP_FLAG_TRUSTED_PROXIED;
import static android.app.AppOpsManager.OP_INTERACT_ACROSS_PROFILES;
import static android.app.AppOpsManager.OP_NONE;
import static android.app.AppOpsManager.OP_PLAY_AUDIO;
import static android.app.AppOpsManager.OP_RECORD_AUDIO;
@@ -2252,11 +2251,6 @@ public class AppOpsService extends IAppOpsService.Stub {
                scheduleWriteLocked();
            }
            uidState.evalForegroundOps(mOpModeWatchers);

            if (code == OP_INTERACT_ACROSS_PROFILES) {
                // Invalidate package info cache as the visibility of packages might have changed
                PackageManager.invalidatePackageInfoCache();
            }
        }

        notifyOpChangedForAllPkgsInUid(code, uid, false, permissionPolicyCallback);
@@ -2729,9 +2723,6 @@ public class AppOpsService extends IAppOpsService.Stub {

            if (changed) {
                scheduleFastWriteLocked();

                // Invalidate package info cache as the visibility of packages might have changed
                PackageManager.invalidatePackageInfoCache();
            }
        }
        if (callbacks != null) {