summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nikita Ioffe <ioffe@google.com> 2022-12-01 17:46:04 +0000
committer Nikita Ioffe <ioffe@google.com> 2022-12-02 10:06:35 +0000
commit2ac8a1a75e7296e67a5372b871d400870c952fac (patch)
tree4ec1ab831568817d8c425849a8d6580cfbe60427
parent2d62797e6a7b80cdf8ee41a63401c3a452fdde68 (diff)
Don't WTF if getSystemService(VIRTUALIZATION_SERVICE) returns null
On devices without AVF support it is expected for the Context.getSystemService(VIRTUALIZATION_SERVICE) to return null. Bug: 261012673 Test: atest CtsMicrodroidDisabledTestCases Change-Id: I4e0f0efe8e8a128dc79f22f39175a2cee7724251 Merged-In: I4e0f0efe8e8a128dc79f22f39175a2cee7724251
-rw-r--r--core/java/android/app/SystemServiceRegistry.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/app/SystemServiceRegistry.java b/core/java/android/app/SystemServiceRegistry.java
index 42eb0fecdb21..ea65727ad1ca 100644
--- a/core/java/android/app/SystemServiceRegistry.java
+++ b/core/java/android/app/SystemServiceRegistry.java
@@ -1587,6 +1587,7 @@ public final class SystemServiceRegistry {
case Context.APP_PREDICTION_SERVICE:
case Context.INCREMENTAL_SERVICE:
case Context.ETHERNET_SERVICE:
+ case Context.VIRTUALIZATION_SERVICE:
return null;
}
Slog.wtf(TAG, "Manager wrapper not available: " + name);