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

Commit b4d23d55 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by android-build-merger
Browse files

Merge "DO NOT MERGE. KEY_INTENT shouldn't grant permissions." into nyc-mr1-dev

am: 9d370604

Change-Id: I46ef6e731af52bd7404e580f85611804abb8bcef
parents 757057a5 9d370604
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4184,6 +4184,10 @@ public class AccountManagerService
        protected void checkKeyIntent(
                int authUid,
                Intent intent) throws SecurityException {
            intent.setFlags(intent.getFlags() & ~(Intent.FLAG_GRANT_READ_URI_PERMISSION
                    | Intent.FLAG_GRANT_WRITE_URI_PERMISSION
                    | Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION
                    | Intent.FLAG_GRANT_PREFIX_URI_PERMISSION));
            long bid = Binder.clearCallingIdentity();
            try {
                PackageManager pm = mContext.getPackageManager();