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)
committerThe Android Automerger <android-build@android.com>
Tue, 1 Sep 2015 21:20:39 +0000 (14:20 -0700)
commitd4d3181d013f8d9b96de8e396b029f8a418894a7
treebb22e5d95f538be87f3d6143cba69b0cbba590ae
parent8fba7e6931245a17215e0e740e78b45f6b66d590
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