Add config to enable / disable VirtualDeviceManager
Bug:287295010 Test: Flashed watch and saw VDM was started also tested case where the flag was set to false. Change-Id: I3126aa76d7239f1e7c86c7b869e7e79651df079a
This commit is contained in:
@@ -198,6 +198,9 @@
|
||||
service. Off by default, since the service may not be available on some devices. -->
|
||||
<bool name="config_enableProximityService">false</bool>
|
||||
|
||||
<!-- Enable or disable android.companion.virtual.VirtualDeviceManager. Enabled by default. -->
|
||||
<bool name="config_enableVirtualDeviceManager">true</bool>
|
||||
|
||||
<!-- Whether dialogs should close automatically when the user touches outside
|
||||
of them. This should not normally be modified. -->
|
||||
<bool name="config_closeDialogWhenTouchOutside">true</bool>
|
||||
|
||||
@@ -418,6 +418,7 @@
|
||||
<java-symbol type="bool" name="config_localDisplaysMirrorContent" />
|
||||
<java-symbol type="bool" name="config_ignoreUdfpsVote" />
|
||||
<java-symbol type="bool" name="config_enableProximityService" />
|
||||
<java-symbol type="bool" name="config_enableVirtualDeviceManager" />
|
||||
<java-symbol type="array" name="config_localPrivateDisplayPorts" />
|
||||
<java-symbol type="integer" name="config_defaultDisplayDefaultColorMode" />
|
||||
<java-symbol type="bool" name="config_enableAppWidgetService" />
|
||||
|
||||
@@ -2440,8 +2440,9 @@ public final class SystemServer implements Dumpable {
|
||||
t.traceBegin("StartCompanionDeviceManager");
|
||||
mSystemServiceManager.startService(COMPANION_DEVICE_MANAGER_SERVICE_CLASS);
|
||||
t.traceEnd();
|
||||
}
|
||||
|
||||
// VirtualDeviceManager depends on CDM to control the associations.
|
||||
if (context.getResources().getBoolean(R.bool.config_enableVirtualDeviceManager)) {
|
||||
t.traceBegin("StartVirtualDeviceManager");
|
||||
mSystemServiceManager.startService(VIRTUAL_DEVICE_MANAGER_SERVICE_CLASS);
|
||||
t.traceEnd();
|
||||
|
||||
Reference in New Issue
Block a user