summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Rick Yiu <rickyiu@google.com> 2018-10-10 21:23:50 -0700
committer android-build-merger <android-build-merger@google.com> 2018-10-10 21:23:50 -0700
commit04618d545622f34d52673acb591ee02d8c9e1efc (patch)
tree6280afc62568341e6bdc97df934bdad5e1fa1863
parent096371b71921d6f25d27c55874d10850a5085c8b (diff)
parent2667c1dfa2798dd28b4dc8fe986f0676c5d48209 (diff)
Merge "Do not start VrManagerService if VR is not supported" into pi-dev
am: 2667c1dfa2 Change-Id: I76eb570e1c08ee57d931221169b503033e466d49
-rw-r--r--services/java/com/android/server/SystemServer.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index e91780239c7f..649f3e8d63f1 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -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();