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

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

Merge "RESTRICT AUTOMERGE Use getLaunchedFromPackage instead of getCallingPackage" into tm-qpr-dev

parents f5907126 19df7cfb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -85,11 +85,11 @@ public class MediaProjectionPermissionActivity extends Activity
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);

        mPackageName = getCallingPackage();
        mPackageName = getLaunchedFromPackage();
        IBinder b = ServiceManager.getService(MEDIA_PROJECTION_SERVICE);
        mService = IMediaProjectionManager.Stub.asInterface(b);

        if (mPackageName == null) {
        if (getCallingPackage() == null) {
            finish();
            return;
        }