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

Commit 4146fcc1 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Prevent start if package is frozen" into rvc-dev am: 08f6ca39

Change-Id: I3b448e9ba0cd00ce4aff4277b526d8c52d30b76d
parents 6279dcd3 08f6ca39
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -2334,6 +2334,19 @@ public final class ProcessList {
            if (sb == null) sb = new StringBuilder();
            sb.append("seq=" + app.startSeq + ",expected=" + expectedStartSeq + ";");
        }
        try {
            AppGlobals.getPackageManager().checkPackageStartable(app.info.packageName, app.userId);
        } catch (RemoteException e) {
            // unexpected; ignore
        } catch (SecurityException e) {
            if (mService.mConstants.FLAG_PROCESS_START_ASYNC) {
                if (sb == null) sb = new StringBuilder();
                sb.append("Package is frozen;");
            } else {
                // we're not being started async and so should throw to the caller.
                throw e;
            }
        }
        return sb == null ? null : sb.toString();
    }