summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2023-07-06 16:17:01 -0700
committer Cherrypicker Worker <android-build-cherrypicker-worker@google.com> 2023-07-11 17:09:17 +0000
commit00f5533c3e7581918c4ccd9e905d3abb11b0a04b (patch)
tree5f0ed05e643003b65e16b4938aee875e728a2fe6 /libs/hwui/FrameInfoVisualizer.cpp
parenteaf79c2013ccaa1899d7429815a326e2435059b3 (diff)
Enable ptrace on userdebug when JDWP is disabled
r.android.com/2217921 disabled JDWP on userdebug builds by default in order to avoid the JDWP overhead causing differences between user and userdebug builds. This had the side effect of disabling ptrace, which means libmemunreachable can no longer ptrace app processes, and app processes are no longer debuggable by gdbserver unless it is run as root. Add a new DEBUG_ENABLE_PTRACE zygote runtimeFlag for enabling ptrace, and set it anywhere DEBUG_ENABLE_JDWP was set before r.android.com/2217921. Use the flag to call EnableDebugging. Bug: 285967712 Test: adb shell dumpsys meminfo --unreachable com.android.gallery3d (cherry picked from https://android-review.googlesource.com/q/commit:990b5ec72182b117e34dce85a95868850daa7549) Merged-In: I2fb1aa0aea81400f573b8c2e2fa309b7942d9446 Change-Id: I2fb1aa0aea81400f573b8c2e2fa309b7942d9446
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions