commit | ce0b8ba0b7cda3ccafe9175fc568f65f48ed809a | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Fri Jul 28 14:58:00 2023 -0700 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Thu Aug 03 00:59:54 2023 +0000 |
tree | 04d4287ee2c9db15aa39f3dffc68be1a05def1e1 | |
parent | 2398f76904dffcf08afc83f55b556b2566929eac [diff] |
Disable ptrace debugging by default on userdebug I2fb1aa0aea81400f573b8c2e2fa309b7942d9446 re-enabled ptrace on all apps by default on userdebug after I6fff6f1a683893244bc2d40f930044747befb2ce had disabled it along with JDWP. The same reasoning that applied to JDWP also applies to ptrace, it could be trivially used for root detection. Return to defaulting it to off again, with an additional persist.debug.ptrace.enabled property to turn it back on. Bug: 292818059 Bug: 291332760 Bug: 290832806 Test: CtsMemunreachableTestCases (cherry picked from https://android-review.googlesource.com/q/commit:8a609d4b62a710c2f43921f8b4de435d58f64556) Merged-In: I0b8c07da661b7bf45c32b304aaa72cf9837dabd5 Change-Id: I0b8c07da661b7bf45c32b304aaa72cf9837dabd5