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

Commit ae77fa47 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Chris Tate
Browse files

Fix issue #27317952: PendingIntent.getIntent() should be protected

Bug: 64752751
Change-Id: Ib05135cd94f5251942a6fc6df542ed39083f7827
(cherry picked from commit e5ad41bc)
parent b514ce9b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1451,6 +1451,11 @@
    <permission android:name="android.permission.GET_PACKAGE_IMPORTANCE"
        android:protectionLevel="signature|privileged" />

    <!-- Allows use of PendingIntent.getIntent().
         @hide -->
    <permission android:name="android.permission.GET_INTENT_SENDER_INTENT"
        android:protectionLevel="signature" />

    <!-- ================================== -->
    <!-- Permissions affecting the display of other applications  -->
    <!-- ================================== -->
+1 −0
Original line number Diff line number Diff line
@@ -81,6 +81,7 @@
    <uses-permission android:name="android.permission.GET_TOP_ACTIVITY_INFO" />
    <uses-permission android:name="android.permission.MANAGE_ACTIVITY_STACKS" />
    <uses-permission android:name="android.permission.START_TASKS_FROM_RECENTS" />
    <uses-permission android:name="android.permission.GET_INTENT_SENDER_INTENT" />

    <!-- WindowManager -->
    <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW" />
+2 −0
Original line number Diff line number Diff line
@@ -6819,6 +6819,8 @@ public final class ActivityManagerService extends ActivityManagerNative
    @Override
    public Intent getIntentForIntentSender(IIntentSender pendingResult) {
        enforceCallingPermission(Manifest.permission.GET_INTENT_SENDER_INTENT,
                "getIntentForIntentSender()");
        if (!(pendingResult instanceof PendingIntentRecord)) {
            return null;
        }