Loading packages/SystemUI/aconfig/systemui.aconfig +10 −0 Original line number Original line Diff line number Diff line Loading @@ -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 } } packages/SystemUI/src/com/android/systemui/mediaprojection/permission/MediaProjectionPermissionActivity.java +5 −2 Original line number Original line Diff line number Diff line Loading @@ -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. Loading Loading
packages/SystemUI/aconfig/systemui.aconfig +10 −0 Original line number Original line Diff line number Diff line Loading @@ -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 } }
packages/SystemUI/src/com/android/systemui/mediaprojection/permission/MediaProjectionPermissionActivity.java +5 −2 Original line number Original line Diff line number Diff line Loading @@ -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. Loading