Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Allow disabling debugging for production devices

Jonathan Klee requested to merge jklee-disable-debug into v1-q

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

  1. Install https://gitlab.e.foundation/e/priv/os/build/-/jobs/265195 build on a FP3
  2. Make sure adb shell getprop ro.debuggable returns 0
  3. Install the Doctolib app.
  4. Run Doctolib.
  5. Doctolib shouldn't display a message saying that the device is rooted.
  6. Doctolib should work properly.

Screenshots

With ro.debuggable=1

2022-02-14_17-54

With ro.debuggable=0

2022-02-14_17-54_1

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

Merge request reports

Loading