Commit db2e6125 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Allow disabling debugging for production devices

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.
parent d1b85d52
......@@ -34,3 +34,13 @@ ADDITIONAL_BUILD_PROPERTIES += \
# LineageOS Platform Internal Version
ADDITIONAL_BUILD_PROPERTIES += \
ro.lineage.build.version.plat.rev=$(LINEAGE_PLATFORM_REV)
# Allow disabling debugging flags set by the build system
# for 3rd party apps support.
ifeq ($(TARGET_BUILD_VARIANT),userdebug)
ifeq ($(DISABLE_TARGET_DEBUGGING),true)
ADDITIONAL_BUILD_PROPERTIES += ro.debuggable=0
ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.lockprof.threshold=0
endif
endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment