diff options
| author | louis_chang <louis_chang@htc.com> | 2014-07-31 10:47:45 +0800 | 
|---|---|---|
| committer | louis_chang <louis_chang@htc.com> | 2014-07-31 10:47:45 +0800 | 
| commit | bd4a9a0cd890e4ff3907e78dd5613f725f78e078 (patch) | |
| tree | 375732e228b21fef16a0b8d370a585530f7c8a7f /docs/html/sdk/api_diff/9/changes | |
| parent | 8224edb94f6421a2d910362c56940dcf991847e6 (diff) | |
[ActivityManager] Avoid system server crash due to package removed
Symptom:
When application is not responding, an ANR dialog will shown.
In certain timing, user uninstall the application when the ANR
occurs, but before ANR dialog shown. The system server will crash
when looking up the errorReportReceiver because the package is removed.
Here shows how the exception occurs.
java.lang.IllegalArgumentException: Unknown package: app.package.name
 at com.android.server.pm.Settings.getInstallerPackageNameLPr
 at com.android.server.pm.PackageManagerService.getInstallerPackageName
 at android.app.ApplicationPackageManager.getInstallerPackageName
 at android.app.ApplicationErrorReport.getErrorReportReceiver
 at com.android.server.am.ActivityManagerService.startAppProblemLocked
 at com.android.server.am.ActivityManagerService.makeAppNotRespondingLocked
 at com.android.server.am.ActivityManagerService.appNotResponding
Change-Id: Iced4287bd44dc25b1db2c1e3a583892eb6c041a2
Diffstat (limited to 'docs/html/sdk/api_diff/9/changes')
0 files changed, 0 insertions, 0 deletions
