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

Commit d1802054 authored by Jing Ji's avatar Jing Ji Committed by Android (Google) Code Review
Browse files

Merge "Add "register-only-before-boot" to ACTION_PACKAGE_DATA_CLEARED"

parents 81a01e9d 1a65235a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3753,7 +3753,8 @@ public class ActivityManagerService extends IActivityManager.Stub
                    }
                    final Intent intent = new Intent(Intent.ACTION_PACKAGE_DATA_CLEARED,
                            Uri.fromParts("package", packageName, null));
                    intent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
                    intent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND
                            | Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
                    intent.putExtra(Intent.EXTRA_UID, (appInfo != null) ? appInfo.uid : -1);
                    intent.putExtra(Intent.EXTRA_USER_HANDLE, resolvedUserId);
                    final int[] visibilityAllowList =