Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 645d078e authored by Alex Buynytskyy's avatar Alex Buynytskyy Committed by Android (Google) Code Review
Browse files

Merge "Better error message for unexpected exceptions." into tm-dev

parents 81e3ad3f 44a8cb13
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2573,8 +2573,9 @@ public class PackageManagerService extends IPackageManager.Stub
        try {
            return super.onTransact(code, data, reply, flags);
        } catch (RuntimeException e) {
            if (!(e instanceof SecurityException) && !(e instanceof IllegalArgumentException)) {
                Slog.wtf(TAG, "Package Manager Crash", e);
            if (!(e instanceof SecurityException) && !(e instanceof IllegalArgumentException)
                    && !(e instanceof ParcelableException)) {
                Slog.wtf(TAG, "Package Manager Unexpected Exception", e);
            }
            throw e;
        }