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

Commit 04618d54 authored by Rick Yiu's avatar Rick Yiu Committed by android-build-merger
Browse files

Merge "Do not start VrManagerService if VR is not supported" into pi-dev

am: 2667c1df

Change-Id: I76eb570e1c08ee57d931221169b503033e466d49
parents 096371b7 2667c1df
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -770,6 +770,9 @@ public final class SystemServer {
        boolean isWatch = context.getPackageManager().hasSystemFeature(
                PackageManager.FEATURE_WATCH);

        boolean enableVrService = context.getPackageManager().hasSystemFeature(
                PackageManager.FEATURE_VR_MODE_HIGH_PERFORMANCE);

        // For debugging RescueParty
        if (Build.IS_DEBUGGABLE && SystemProperties.getBoolean("debug.crash_system", false)) {
            throw new RuntimeException();
@@ -903,7 +906,7 @@ public final class SystemServer {
                traceLog.traceEnd();
            }, START_HIDL_SERVICES);

            if (!isWatch) {
            if (!isWatch && enableVrService) {
                traceBeginAndSlog("StartVrManagerService");
                mSystemServiceManager.startService(VrManagerService.class);
                traceEnd();