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

Commit 505cb847 authored by Suren Baghdasaryan's avatar Suren Baghdasaryan
Browse files

Fix reporting of new low memory kill reason



Return correct FrameworkStatsLog.reason for the newly added LOW_MEM kill
reason. Without this fix telemetry will register these kills as
LMK_KILL_OCCURRED__REASON__UNKNOWN.

Bug: 306755741
Change-Id: I8be6ea532de35b7b8a645fbde51e0dce62bd64ce
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
parent b6ee472c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -107,6 +107,8 @@ public final class LmkdStatsReporter {
                return FrameworkStatsLog.LMK_KILL_OCCURRED__REASON__LOW_MEM_AND_SWAP_UTIL;
            case LOW_FILECACHE_AFTER_THRASHING:
                return FrameworkStatsLog.LMK_KILL_OCCURRED__REASON__LOW_FILECACHE_AFTER_THRASHING;
            case LOW_MEM:
                return FrameworkStatsLog.LMK_KILL_OCCURRED__REASON__LOW_MEM;
            default:
                return FrameworkStatsLog.LMK_KILL_OCCURRED__REASON__UNKNOWN;
        }