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

Commit 72343888 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert "Revert "Do not start VrManagerService if VR is not supported"""

parents 85b5bf53 b2875925
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -797,6 +797,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();
@@ -930,7 +933,7 @@ public final class SystemServer {
                traceLog.traceEnd();
            }, START_HIDL_SERVICES);

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