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

Commit 20e47471 authored by Songchun Fan's avatar Songchun Fan Committed by Song Chun Fan
Browse files

[am] catch IllegalArgumentException from getHarmfulAppWarning

A missing package should not cause system_server crash.

BUG: 253989182
Test: builds
Change-Id: I55fd685280ea6a3d08b9c838b2245ed6dec0aa56
parent 2b830b1e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -424,7 +424,7 @@ class ActivityStartInterceptor {
        try {
            harmfulAppWarning = mService.getPackageManager()
                    .getHarmfulAppWarning(mAInfo.packageName, mUserId);
        } catch (RemoteException ex) {
        } catch (RemoteException | IllegalArgumentException ex) {
            return false;
        }