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

Commit e040d68a authored by Rajeev Kumar's avatar Rajeev Kumar
Browse files

Fix crosshatch_svelte never boots.

Added a null check for stats service. This check is required because
stats service might not be able available on few devices.

Bug: 146903418
Test: Built crosshatch_svelte image and flashed a device. It booted
successfully.

Change-Id: I1827cf1e9b66a1a490c5dc8514b0855d813197ac
parent 60e15a45
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -95,6 +95,12 @@ public class StatsManagerService extends IStatsManagerService.Stub {
                return;
            }
            sStatsd = IStatsd.Stub.asInterface(ServiceManager.getService("stats"));
            if (sStatsd == null) {
                if (DEBUG) {
                    Slog.d(TAG, "Failed to get stats service.");
                }
                return;
            }
            // Assume statsd is ready since this is called form statscompanion, link to statsd.
            try {
                sStatsd.asBinder().linkToDeath((IBinder.DeathRecipient) () -> {