Add feature flag for Android automotive OS templates host

Bug: 204165454
Fix: 204165454
Test: Build gcar_emu_x86_64-userdebug then run \
android.app.cts.SystemFeaturesTest#testFeatureNamespaces

Change-Id: I77f817ae02e581e010cdd7eb3ee9e4d1c1bb8e37
This commit is contained in:
Calvin Huang
2021-11-09 00:52:41 +00:00
parent 41d736717e
commit 17525b616d

View File

@@ -2473,6 +2473,16 @@ public abstract class PackageManager {
@SdkConstant(SdkConstantType.FEATURE)
public static final String FEATURE_CTS = "android.software.cts";
/**
* Feature for {@link #getSystemAvailableFeatures} and {@link #hasSystemFeature}: The device
* is opted-in to render the application using Automotive App Host
*
* @hide
*/
@SdkConstant(SdkConstantType.FEATURE)
public static final String FEATURE_CAR_TEMPLATES_HOST =
"android.software.car.templates_host";
/**
* Feature for {@link #getSystemAvailableFeatures} and
* {@link #hasSystemFeature(String, int)}: If this feature is supported, the device supports