Introduce isTv to adapt services to Android TV uses

This variable is intended to be used as part of the startOtherServices
method of the system server much like `isWatch` is used now in order
to selectively skip starting system services, which are not relevant to
the operation of Android TV.

Test: make
Bug: 264411203
Change-Id: Ife21ac60e11d6669954dc0f77b2c85d0149d2d7b
This commit is contained in:
Nikolas Havrikov
2023-01-04 17:23:48 +01:00
parent 26ef4c4c63
commit 8dc7517d8c

View File

@@ -1446,6 +1446,9 @@ public final class SystemServer implements Dumpable {
boolean isArc = context.getPackageManager().hasSystemFeature(
"org.chromium.arc");
boolean isTv = context.getPackageManager().hasSystemFeature(
PackageManager.FEATURE_LEANBACK);
boolean enableVrService = context.getPackageManager().hasSystemFeature(
PackageManager.FEATURE_VR_MODE_HIGH_PERFORMANCE);