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

Commit 5889dce0 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Allow override of enable_target_debugging

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 override the enable_target_debugging
build variable with ENABLE_TARGET_DEBUGGING_OVERRIDE
that will be used on stable builds.
parent f75540e8
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -270,6 +270,15 @@ endif

user_variant := $(filter user userdebug,$(TARGET_BUILD_VARIANT))
enable_target_debugging := true

# Allow to override enable_target_debugging variable
# for a userdebug target.
ifeq ($(user_variant),userdebug)
  ifneq (,$(ENABLE_TARGET_DEBUGGING_OVERRIDE)
    enable_target_debugging := $(ENABLE_TARGET_DEBUGGING_OVERRIDE)
  endif
endif

tags_to_install :=
ifneq (,$(user_variant))
  # Target is secure in user builds.