Merge "Fix the concurrency issue when 'linkToDeath' in AccountManagerService that leads to JE" into main am: e7627bd732 am: b6c6ce7ee6 am: 923b35a933
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2664259 Change-Id: Iffe414066dd7001b6a537916890ca65923a4d7fb Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -4905,7 +4905,6 @@ public class AccountManagerService
|
|||||||
if (accountType == null) throw new IllegalArgumentException("accountType is null");
|
if (accountType == null) throw new IllegalArgumentException("accountType is null");
|
||||||
mAccounts = accounts;
|
mAccounts = accounts;
|
||||||
mStripAuthTokenFromResult = stripAuthTokenFromResult;
|
mStripAuthTokenFromResult = stripAuthTokenFromResult;
|
||||||
mResponse = response;
|
|
||||||
mAccountType = accountType;
|
mAccountType = accountType;
|
||||||
mExpectActivityLaunch = expectActivityLaunch;
|
mExpectActivityLaunch = expectActivityLaunch;
|
||||||
mCreationTime = SystemClock.elapsedRealtime();
|
mCreationTime = SystemClock.elapsedRealtime();
|
||||||
@@ -4919,8 +4918,8 @@ public class AccountManagerService
|
|||||||
if (response != null) {
|
if (response != null) {
|
||||||
try {
|
try {
|
||||||
response.asBinder().linkToDeath(this, 0 /* flags */);
|
response.asBinder().linkToDeath(this, 0 /* flags */);
|
||||||
|
mResponse = response;
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
mResponse = null;
|
|
||||||
binderDied();
|
binderDied();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user