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

Commit 44a8cb13 authored by Alex Buynytskyy's avatar Alex Buynytskyy
Browse files

Better error message for unexpected exceptions.

Bug: 220930052
Test: atest ChecksumsTest
Change-Id: Ie7a664fedfa78cb9f0b5445ec271b9fb2a2f7611
parent 7a53fdf6
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2557,8 +2557,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;
        }