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

Commit b800bb37 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix: avoid the potential attack on SlicePermissionActivity"

parents 8c8901b5 b26f1462
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -51,7 +51,11 @@ public class SlicePermissionActivity extends Activity implements OnClickListener
        super.onCreate(savedInstanceState);

        // Verify intent is valid
        try {
            mUri = getIntent().getParcelableExtra(SliceProvider.EXTRA_BIND_URI);
        } catch (Exception e) {
            Log.w(TAG, "Failed to getParcelableExtra", e);
        }
        mCallingPkg = getIntent().getStringExtra(SliceProvider.EXTRA_PKG);
        if (mUri == null
                || !SliceProvider.SLICE_TYPE.equals(getContentResolver().getType(mUri))