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

Commit 4d959eeb authored by Philip P. Moltmann's avatar Philip P. Moltmann Committed by Android (Google) Code Review
Browse files

Merge "Handle "uninstall updates" in app-ops-service" into qt-qpr1-dev

parents ffdedd2d 04c5f382
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -14994,8 +14994,13 @@ public class ActivityManagerService extends IActivityManager.Stub
                            final int uid = getUidFromIntent(intent);
                            if (uid >= 0) {
                                mBatteryStatsService.removeUid(uid);
                                if (intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) {
                                    mAppOpsService.resetAllModes(UserHandle.getUserId(uid),
                                            intent.getData().getSchemeSpecificPart());
                                } else {
                                    mAppOpsService.uidRemoved(uid);
                                }
                            }
                            break;
                        case Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE:
                            // If resources are unavailable just force stop all those packages
+1 −1
Original line number Diff line number Diff line
@@ -18822,7 +18822,7 @@ public class PackageManagerService extends IPackageManager.Stub
            }
            if (removedAppId >= 0) {
                packageSender.sendPackageBroadcast(Intent.ACTION_UID_REMOVED,
                    null, extras, Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND,
                        removedPackage, extras, Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND,
                    null, null, broadcastUsers, instantUserIds);
            }
        }