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

Commit 2f456040 authored by rockyfang's avatar rockyfang Committed by Rocky Fang
Browse files

Skip WTF log for missing CONTEXTHUB_SERVICE

Wtf dump will record unnecessary log if device does not support
ContextHubMangager and impacting the performance in low RAM device.
Adding CONTEXTHUB_SERVICE in the switch statement creates a
exception to not log it.

Fixes: 236768432
Test: TreeHugger test
Change-Id: I724f7b1e1c7aa30f37d578ca302c3f57a5187075
parent 9c8e10d0
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1606,6 +1606,7 @@ public final class SystemServiceRegistry {
                case Context.APP_PREDICTION_SERVICE:
                case Context.APP_PREDICTION_SERVICE:
                case Context.INCREMENTAL_SERVICE:
                case Context.INCREMENTAL_SERVICE:
                case Context.ETHERNET_SERVICE:
                case Context.ETHERNET_SERVICE:
                case Context.CONTEXTHUB_SERVICE:
                    return null;
                    return null;
            }
            }
            Slog.wtf(TAG, "Manager wrapper not available: " + name);
            Slog.wtf(TAG, "Manager wrapper not available: " + name);