OSDN Git Service

Allow debugging only for apps forked from zygote
authorSebastien Hertz <shertz@google.com>
Mon, 10 Aug 2015 16:55:34 +0000 (18:55 +0200)
committerSebastien Hertz <shertz@google.com>
Wed, 19 Aug 2015 09:25:56 +0000 (11:25 +0200)
commitff8dc21278b19b22ed8dc9f9475850838336d351
tree7af9449525e2c57ea0100070280c31237fcfd895
parent9b6a60991453136819a6feeca404e1102e78f735
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

(cherry picked from commit 7a09b8322cab26d6e3da1362d3c74964ae66b5d4)

Change-Id: Ib5b6d3bc4d45389993c3c54226df5a7b72479d19
cmds/app_process/app_main.cpp
core/jni/AndroidRuntime.cpp
include/android_runtime/AndroidRuntime.h