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

Commit 804a53db authored by Michael Wachenschwanz's avatar Michael Wachenschwanz
Browse files

Get uid from PACKAGE_REMOVE intent in AppStandbyController

Test: atest AppStandbyControllerTests
Bug: 185169504
Change-Id: I614f5286f1c420c576e078836c0ca7bad8e109ab
parent c0a5b059
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2258,7 +2258,8 @@ public class AppStandbyController
            }
            synchronized (mSystemExemptionAppOpMode) {
                if (Intent.ACTION_PACKAGE_REMOVED.equals(action)) {
                    mSystemExemptionAppOpMode.delete(UserHandle.getUid(userId, getAppId(pkgName)));
                    final int uid = intent.getIntExtra(Intent.EXTRA_UID, Process.INVALID_UID);
                    mSystemExemptionAppOpMode.delete(uid);
                }
            }