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

Commit afcac0ad authored by Evan Severson's avatar Evan Severson Committed by Android (Google) Code Review
Browse files

Merge "Clear historical record on all package uninstall broadcasts" into main

parents b47c5fe7 7a23d1f7
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) {