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

Commit 2ac8a1a7 authored by Nikita Ioffe's avatar Nikita Ioffe
Browse files

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
parent 2d62797e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);