高通平台修改Android 10源码获取root权限
一、修改文件:/build/make/core/main.mk
user_variant := $(filter user userdebug,$(TARGET_BUILD_VARIANT))
enable_target_debugging := true
tags_to_install :=
ifneq (,$(user_variant))
# Target is secure in user builds.
ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0
ADDITIONAL_DEFAULT_PROPERTIES += security.perf_harden=1
ifeq ($(user_variant),user)S
ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=0
endifSS
ifeq ($(user_variant),userdebug)
# Pick up some extra useful tools
tags_to_install += debug
else
# Disable debugging in plain user builds.
enable_target_debugging :=
endif
二、修改文件:/system/core/fs_mgr/Android.bp
cc_library_static {
n
原文地址:https://blog.csdn.net/zhusl6688/article/details/142489008
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!