add chrome specific setting to CtsRootDeviceSetup
- This disables chrome's initial screen:
Manual setting is required for user rom.
Change-Id: Ic622767f29e6cf0692bc032b47996dc6c59d1162
diff --git a/tools/tradefed-host/src/com/android/cts/tradefed/targetprep/CtsRootDeviceSetup.java b/tools/tradefed-host/src/com/android/cts/tradefed/targetprep/CtsRootDeviceSetup.java
index 09129ca..0e768e2 100644
--- a/tools/tradefed-host/src/com/android/cts/tradefed/targetprep/CtsRootDeviceSetup.java
+++ b/tools/tradefed-host/src/com/android/cts/tradefed/targetprep/CtsRootDeviceSetup.java
@@ -66,7 +66,10 @@
// perform CTS setup steps that only work if adb is root
SettingsToggler.setSecureInt(device, "mock_location", 1);
enableDeviceAdmin(device, buildHelper);
-
+ // This is chrome specific setting to disable the first screen.
+ // For other browser, it will not do anything.
+ device.executeShellCommand(
+ "echo \"chrome --disable-fre\" > /data/local/chrome-command-line");
// end root setup steps
} catch (FileNotFoundException e) {
throw new TargetSetupError("Invalid CTS installation", e);