mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-09-12 12:32:02 +00:00
29 lines
1.4 KiB
Diff
29 lines
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Dmitry Dementyev <dementyev@google.com>
|
|
Date: Fri, 30 Jun 2023 14:36:44 -0700
|
|
Subject: [PATCH] Update AccountManagerService checkKeyIntentParceledCorrectly.
|
|
|
|
Bug: 265798288
|
|
Test: manual
|
|
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b117b506ec0504ff9eb2fa523e82f1879ecb8cc1)
|
|
Merged-In: Iad33851af32a11c99d11bc2b5c76d124c3e97ebb
|
|
Change-Id: Iad33851af32a11c99d11bc2b5c76d124c3e97ebb
|
|
---
|
|
.../com/android/server/accounts/AccountManagerService.java | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/services/core/java/com/android/server/accounts/AccountManagerService.java b/services/core/java/com/android/server/accounts/AccountManagerService.java
|
|
index 39bb08e82b81..e06c4b3ef480 100644
|
|
--- a/services/core/java/com/android/server/accounts/AccountManagerService.java
|
|
+++ b/services/core/java/com/android/server/accounts/AccountManagerService.java
|
|
@@ -4805,6 +4805,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);
|