diff options
author | Shunta Sato <shunta.sato@sonymobile.com> | 2016-10-19 15:58:52 +0900 |
---|---|---|
committer | Wale Ogunwale <ogunwale@google.com> | 2017-03-01 07:52:13 -0800 |
commit | 55af6c5f7094b6be72da46de478ea334a6519543 (patch) | |
tree | ec568d31e9f7543934a2a14692cdcd16f2518af0 /docs/html/sdk/api_diff/21/changes | |
parent | 9ac082f8bb0c944513af326bda311cea3d153d56 (diff) |
Avoid deadlock when installing app
Symptom:
System crash is occurred by deadlock
Root cause:
ActivityManagerService's APIs usually hold a lock of itself instance.
In this case, four threads tried to take the same lock and it caused
deadlock.
Following three objects are in a three-cornered deadlocked.
- ActivityManagerService's instance
- PackageInstallerSession.mLock
- PackageManagerService.mPackages
Solution:
Call checkUidPermission before taking a lock of ActivityManagerService's
instance.
Fixes: 32425801
Test: manual
Author: Kazuki Nakayama <kazuki.x.nakayama@sonymobile.com>
Change-Id: I71ce57b1b8f3e0e9ba64b94a7b1f210b702efb6a
Diffstat (limited to 'docs/html/sdk/api_diff/21/changes')
0 files changed, 0 insertions, 0 deletions