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

Commit 01fbb1fc authored by Ivan Chiang's avatar Ivan Chiang Committed by Android (Google) Code Review
Browse files

Merge "[PM] Only send Intent#ACTION_UID_REMOVED when removing data" into main

parents ce9b6177 52fe0c39
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -513,7 +513,11 @@ final class DeletePackageHelper {
                // Legacy behavior to report appId as UID here.
                // The final broadcasts will contain a per-user UID.
                outInfo.mUid = ps.getAppId();
                // Only send Intent.ACTION_UID_REMOVED when flag & DELETE_KEEP_DATA is 0
                // i.e. the mDataRemoved is true
                if (outInfo.mDataRemoved) {
                    outInfo.mIsAppIdRemoved = true;
                }
                mPm.scheduleWritePackageRestrictions(user);
                return;
            }