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

Commit 0230ac9b authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Disable target debugging for SafetyNet purpose

Some 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.
parent f75540e8
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -269,7 +269,13 @@ endif
## user/userdebug ##

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

ifneq (,$(FORCE_ENABLE_DEBUGGING_OVERRIDE)
    enable_target_debugging := $(FORCE_ENABLE_DEBUGGING_OVERRIDE)
else
    enable_target_debugging := true
endif

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