diff options
author | 2017-03-13 00:46:04 +0000 | |
---|---|---|
committer | 2017-03-14 08:52:16 +0000 | |
commit | adf051ead3b747081639600fb4a9e043a798b2df (patch) | |
tree | 536c00f616d290742ee36bf4bc874b0a1fd3fd6e /tools | |
parent | 89f296f0d712e8a8ad2b545d72d00fbe63047fd8 (diff) |
Add --activity_name_file flag and modify --start flag in incremental_install. This is a first step
to add the ability for mobile-install to wait for the debugger before starting the app.
--
PiperOrigin-RevId: 149897848
MOS_MIGRATED_REVID=149897848
Diffstat (limited to 'tools')
-rw-r--r-- | tools/android/incremental_install.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/android/incremental_install.py b/tools/android/incremental_install.py index bef9246d09..ff33c22eb1 100644 --- a/tools/android/incremental_install.py +++ b/tools/android/incremental_install.py @@ -46,15 +46,18 @@ gflags.DEFINE_integer("adb_jobs", 2, "The number of instances of adb to use in parallel to " "update files on the device", lower_bound=1) -gflags.DEFINE_enum("start", "no", ["no", "cold", "warm"], "Whether/how to " - "start the app after installing it. 'cold' and 'warm' will " - "both cause the app to be started, 'warm' will start it " - "with previously saved application state.") +gflags.DEFINE_enum("start", "no", ["no", "cold", "warm", "debug"], + "Whether/how to start the app after installing it. 'cold' " + "and 'warm' will both cause the app to be started, 'warm' " + "will start it with previously saved application state, " + "'debug' will wait for the debugger before a clean start.") gflags.DEFINE_boolean("start_app", False, "Deprecated, use 'start'.") gflags.DEFINE_string("user_home_dir", None, "Path to the user's home directory") gflags.DEFINE_string("flagfile", None, "Path to a file to read additional flags from") gflags.DEFINE_string("verbosity", None, "Logging verbosity") +gflags.DEFINE_string("activity_name_file", None, "Path to the file that " + "contains the name of the main activity to start") FLAGS = gflags.FLAGS |