Allow disabling debugging for production devices
Description
Some 3rd party apps are using the RootBeer lib to detect a ro.debuggable equal to 1 and consider that the device might be rooted, so won't run.
Allow the possibility to disable target debugging with the DISABLE_TARGET_DEBUGGING variable that will be used for stable builds.
Issue(s)
https://gitlab.e.foundation/e/backlog/-/issues/3646
Test procedures
- Install https://gitlab.e.foundation/e/priv/os/build/-/jobs/265195 build on a FP3
- Make sure
adb shell getprop ro.debuggable
returns 0 - Install the Doctolib app.
- Run Doctolib.
- Doctolib shouldn't display a message saying that the device is rooted.
- Doctolib should work properly.
Screenshots
With ro.debuggable=1
With ro.debuggable=0
Check list
-
Self review -
Test procedure explained -
Tested on fresh install -
Tested applied as an update -
License -
Internal documentation -
User documentation
Edited by Jonathan Klee