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

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

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

parents cfe2352d c4f4dfed
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3860,6 +3860,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();