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

Commit 3065a31d authored by Shreshta Manu's avatar Shreshta Manu
Browse files

[Ranging] Hnadle non-existence of service-ranging.jar gracefully

Bug: 374910637
Test: Tested manually
Change-Id: Icaffdedbef6981038130021392fa6249ef7be693
parent 991063f6
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -2970,8 +2970,13 @@ public final class SystemServer implements Dumpable {
                    || context.getPackageManager().hasSystemFeature(
                            PackageManager.FEATURE_WIFI_RTT)) {
                t.traceBegin("RangingService");
                // TODO: b/375264320 - Remove after RELEASE_RANGING_STACK is ramped to next.
                try {
                    mSystemServiceManager.startServiceFromJar(RANGING_SERVICE_CLASS,
                            RANGING_APEX_SERVICE_JAR_PATH);
                } catch (Throwable e) {
                    Slog.d(TAG, "service-ranging.jar not found, not starting RangingService");
                }
                t.traceEnd();
            }
        }