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

Commit 4f7bfa5c authored by Li Li's avatar Li Li
Browse files

Skip binder error handler if freezer is disabled

Although freezer has been enforced to be enabled, it can be disabled on
legacy vendor freeze project. And it can be temporarily disabled when
taking a bugreport.

Bug: 309448826
Test: Disable freezer and boot Android
Change-Id: I380c892a6cb92adfe739fb9cafca3c902772a384
Merged-In: I380c892a6cb92adfe739fb9cafca3c902772a384
parent 7b3c52a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2575,7 +2575,7 @@ public final class CachedAppOptimizer {


        // Do nothing if the binder error callback is not enabled.
        // Do nothing if the binder error callback is not enabled.
        // That means the frozen apps in a wrong state will be killed when they are unfrozen later.
        // That means the frozen apps in a wrong state will be killed when they are unfrozen later.
        if (!mFreezerBinderCallbackEnabled) {
        if (!mUseFreezer || !mFreezerBinderCallbackEnabled) {
            return;
            return;
        }
        }