summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorSebastien Hertz <shertz@google.com>2015-08-10 18:55:34 +0200
committerSebastien Hertz <shertz@google.com>2015-08-10 20:39:13 +0200
commit7a09b8322cab26d6e3da1362d3c74964ae66b5d4 (patch)
tree268e2334d28f33d87c2b4d8492b9e9726094e603 /cmds
parent90b030bae8cc1f13da7948fef4aff1d171a2885a (diff)
downloadframeworks_base-7a09b8322cab26d6e3da1362d3c74964ae66b5d4.zip
frameworks_base-7a09b8322cab26d6e3da1362d3c74964ae66b5d4.tar.gz
frameworks_base-7a09b8322cab26d6e3da1362d3c74964ae66b5d4.tar.bz2
Allow debugging only for apps forked from zygote
When starting the runtime from app_process, we only pass JDWP options if starting zygote. It prevents from opening a JDWP connection in non-zygote programs while Android apps (forked from zygote) remain debuggable. Bug: 23050463 Change-Id: If8ea719063a65db4cdeed69a838b52e87b078b08
Diffstat (limited to 'cmds')
-rw-r--r--cmds/app_process/app_main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/app_process/app_main.cpp b/cmds/app_process/app_main.cpp
index 449a4ab..2e02382 100644
--- a/cmds/app_process/app_main.cpp
+++ b/cmds/app_process/app_main.cpp
@@ -304,9 +304,9 @@ int main(int argc, char* const argv[])
}
if (zygote) {
- runtime.start("com.android.internal.os.ZygoteInit", args);
+ runtime.start("com.android.internal.os.ZygoteInit", args, zygote);
} else if (className) {
- runtime.start("com.android.internal.os.RuntimeInit", args);
+ runtime.start("com.android.internal.os.RuntimeInit", args, zygote);
} else {
fprintf(stderr, "Error: no class name or --zygote supplied.\n");
app_usage();