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

Commit d4518a1e authored by Manjeet Rulhania's avatar Manjeet Rulhania Committed by Android (Google) Code Review
Browse files

Merge "Clear historical record on all package uninstall broadcasts" into 24D1-dev

parents 9e267f72 f4b1bce7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1364,6 +1364,9 @@ public class AppOpsService extends IAppOpsService.Stub {

    @GuardedBy("this")
    private void packageRemovedLocked(int uid, String packageName) {
        mHandler.post(PooledLambda.obtainRunnable(HistoricalRegistry::clearHistory,
                mHistoricalRegistry, uid, packageName));

        UidState uidState = mUidStates.get(uid);
        if (uidState == null) {
            return;
@@ -1398,9 +1401,6 @@ public class AppOpsService extends IAppOpsService.Stub {
                }
            }
        }

        mHandler.post(PooledLambda.obtainRunnable(HistoricalRegistry::clearHistory,
                    mHistoricalRegistry, uid, packageName));
    }

    public void uidRemoved(int uid) {