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

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

DO NOT MERGE. KEY_INTENT shouldn't grant permissions. am: 04b96d76

am: d20cad62

Change-Id: Iaee355315a29be72ffd670178f88510aacdfc042
parents 85439e91 d20cad62
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2000,6 +2000,11 @@ public class AccountManagerService

                        Intent intent = result.getParcelable(AccountManager.KEY_INTENT);
                        if (intent != null && notifyOnAuthFailure && !customTokens) {
                            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));
                            doNotification(mAccounts,
                                    account, result.getString(AccountManager.KEY_AUTH_FAILED_MESSAGE),
                                    intent, accounts.userId);
@@ -3087,6 +3092,11 @@ public class AccountManagerService
            }
            if (result != null
                    && (intent = result.getParcelable(AccountManager.KEY_INTENT)) != null) {
                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));
                /*
                 * The Authenticator API allows third party authenticators to
                 * supply arbitrary intents to other apps that they can run,