aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/android
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2017-03-16 21:52:14 +0000
committerGravatar Yun Peng <pcloudy@google.com>2017-03-17 12:26:17 +0000
commit2b88f62f223318b30b8f7ba9afe46e39c2030272 (patch)
tree883a41b7b88eac1f48a04e39c13d991640b0d5cf /src/main/java/com/google/devtools/build/lib/rules/android
parent8c33d5d83792d3984cc75a208476dcc2de38666c (diff)
Make mobile-install wait for debugger
-- PiperOrigin-RevId: 150372383 MOS_MIGRATED_REVID=150372383
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/android')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/android/WriteAdbArgsAction.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/android/WriteAdbArgsAction.java b/src/main/java/com/google/devtools/build/lib/rules/android/WriteAdbArgsAction.java
index 6ddf13da19..19a4509893 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/android/WriteAdbArgsAction.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/android/WriteAdbArgsAction.java
@@ -83,6 +83,13 @@ public final class WriteAdbArgsAction extends AbstractFileWriteAction {
help = "Whether to start the app after installing it.",
expansion = {"--start=COLD"})
public Void startApp;
+
+ @Option(name = "debug_app",
+ category = "mobile_install",
+ defaultValue = "null",
+ help = "Whether to wait for the debugger before starting the app.",
+ expansion = {"--start=DEBUG"})
+ public Void debugApp;
}
public WriteAdbArgsAction(ActionOwner owner, Artifact outputFile) {
@@ -163,7 +170,9 @@ public final class WriteAdbArgsAction extends AbstractFileWriteAction {
* The app will save its state before installing, and be restored from that state after
* installing.
*/
- WARM
+ WARM,
+ /** The app will wait for debugger to attach before restarting from clean state after install */
+ DEBUG
}
/** Converter for the --start option. */