Merge "Update AccountManagerService checkKeyIntentParceledCorrectly." into rvc-dev

This commit is contained in:
Dmitry Dementyev
2023-07-08 21:55:42 +00:00
committed by Android (Google) Code Review

View File

@@ -4839,6 +4839,9 @@ public class AccountManagerService
Bundle simulateBundle = p.readBundle();
p.recycle();
Intent intent = bundle.getParcelable(AccountManager.KEY_INTENT);
if (intent != null && intent.getClass() != Intent.class) {
return false;
}
Intent simulateIntent = simulateBundle.getParcelable(AccountManager.KEY_INTENT);
if (intent == null) {
return (simulateIntent == null);