Merge "Better error message for unexpected exceptions." into tm-dev am: 645d078e1f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16982986 Change-Id: I2ca0a66524aba1580e5c93574d97430456f8a86a
This commit is contained in:
@@ -2573,8 +2573,9 @@ public class PackageManagerService extends IPackageManager.Stub
|
|||||||
try {
|
try {
|
||||||
return super.onTransact(code, data, reply, flags);
|
return super.onTransact(code, data, reply, flags);
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
if (!(e instanceof SecurityException) && !(e instanceof IllegalArgumentException)) {
|
if (!(e instanceof SecurityException) && !(e instanceof IllegalArgumentException)
|
||||||
Slog.wtf(TAG, "Package Manager Crash", e);
|
&& !(e instanceof ParcelableException)) {
|
||||||
|
Slog.wtf(TAG, "Package Manager Unexpected Exception", e);
|
||||||
}
|
}
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user