diff options
| author | 2024-05-31 18:08:00 +0800 | |
|---|---|---|
| committer | 2024-06-01 01:30:29 +0800 | |
| commit | c7eeb40e90fc06f7ae6f619678161c940bc22728 (patch) | |
| tree | 06937b74a4086bcb73981d8a387e292d26db38cf /libs/androidfw/ZipFileRO.cpp | |
| parent | 1107f93b132f730b808ae42ff36c5e3f9532dc9d (diff) | |
Fix deadlock between PMS and AMS
Move reportComponentStateChanged() out of holding mLock to avoid
deadlock.
Symptom:
At thread 1,
PackageManagerService#setEnabledSettings held mLock
-> reportComponentStateChanged ...
--> AppOpsService#verifyAndGetBypass ask the this of AppOpsService
At thread 2,
Executor of AppOpsUidStateTrackerImpl held the this of AppOpsService
-> getPackagesForUid() ...
-->PackageManagerService#snapshotComputer ask mLock
Bug: 339045335
Bug: 340962640
Test: atest CtsPackageManagerTestCases
Change-Id: I7238a779202daceb3f2d69ced20ce41c7d1749c2
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions