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

Commit 828f0eb3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use getLaunchedFromPackage instead of getCallingPackage" into main

parents 92f78ddd 829da884
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -1487,3 +1487,13 @@ flag {
  description: "Enables notes role qs tile which opens default notes role app in app bubbles"
  description: "Enables notes role qs tile which opens default notes role app in app bubbles"
  bug: "357863750"
  bug: "357863750"
}
}

flag {
   name: "media_projection_request_attribution_fix"
   namespace: "systemui"
   description: "Ensure MediaProjection consent requests are properly attributed"
   bug: "373581993"
   metadata {
       purpose: PURPOSE_BUGFIX
   }
}
+5 −2
Original line number Original line Diff line number Diff line
@@ -122,8 +122,11 @@ public class MediaProjectionPermissionActivity extends Activity {
        final Intent launchingIntent = getIntent();
        final Intent launchingIntent = getIntent();
        mReviewGrantedConsentRequired = launchingIntent.getBooleanExtra(
        mReviewGrantedConsentRequired = launchingIntent.getBooleanExtra(
                EXTRA_USER_REVIEW_GRANTED_CONSENT, false);
                EXTRA_USER_REVIEW_GRANTED_CONSENT, false);

        if (com.android.systemui.Flags.mediaProjectionRequestAttributionFix()) {
            mPackageName = getLaunchedFromPackage();
        } else {
            mPackageName = getCallingPackage();
            mPackageName = getCallingPackage();
        }


        // This activity is launched directly by an app, or system server. System server provides
        // This activity is launched directly by an app, or system server. System server provides
        // the package name through the intent if so.
        // the package name through the intent if so.