ronnie-tan

A133+Android10 user版本默认开启ADB调试

默认情况下,user版本不开启ADB调试,需要在开发者模式下手动开启。

现在需要在user版本不变情况下,默认开启ADB调试。

build/core/main.mk

diff --git a/core/main.mk b/core/main.mk
index df5c13c..3efec3b 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -315,7 +315,7 @@ ifeq (true,$(strip $(enable_target_debugging)))
ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.lockprof.threshold=500
else # !enable_target_debugging
# Target is less debuggable and adbd is off by default
- ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=0
+ ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=1
endif # !enable_target_debugging

## eng ##

android/device/softwinner/ceres-c3/ceres_c3.mk

diff --git a/ceres_c3.mk b/ceres_c3.mk

old mode 100644

new mode 100755

index 1c396ad..dcec2e3

--- a/ceres_c3.mk

+++ b/ceres_c3.mk

@@ -240,7 +240,7 @@ PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \

ro.sys.dis_app_animation=true

else

PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \

- ro.adb.secure=1

+ ro.adb.secure=0

endif

PRODUCT_PROPERTY_OVERRIDES += \

posted on 2022-04-20 11:20  Ronnnie  阅读(1008)  评论(0)    收藏  举报

导航