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

Commit 7aa29e43 authored by Songchun Fan's avatar Songchun Fan
Browse files

Make ACTION_LOAD_DATA a protected intent

Such that it can only be sent by the system.

BUG: b/133435829
Test: manual
Change-Id: Idf7be3ee3571b24b3d43b75754f9292f17937a22
parent 6eb9a858
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4289,6 +4289,8 @@ public class Intent implements Parcelable, Cloneable {
     * intent filter in their manifests, so that they can be looked up and bound to by
     * {@code DataLoaderManagerService}.
     *
     * <p class="note">This is a protected intent that can only be sent by the system.
     *
     * Data loader service providers must be privileged apps.
     * See {@link com.android.server.pm.PackageManagerShellCommandDataLoader} as an example of such
     * data loader service provider.
+1 −0
Original line number Diff line number Diff line
@@ -96,6 +96,7 @@
    <protected-broadcast android:name="android.intent.action.OVERLAY_PRIORITY_CHANGED" />
    <protected-broadcast android:name="android.intent.action.MY_PACKAGE_SUSPENDED" />
    <protected-broadcast android:name="android.intent.action.MY_PACKAGE_UNSUSPENDED" />
    <protected-broadcast android:name="android.intent.action.LOAD_DATA" />

    <protected-broadcast android:name="android.os.action.POWER_SAVE_MODE_CHANGED" />
    <protected-broadcast android:name="android.os.action.POWER_SAVE_MODE_CHANGING" />