Android 設定 adb default on
2015/09/30 13:39
瀏覽1,687
迴響0
推薦0
引用0
adb主要是在property內設定
[Check]
在imx6,
getprop | adb
[init.svc.adbd]: [running]
[persist.sys.usb.config]: [mtp,adb]
[ro.adb.secure]: [0]
[sys.usb.config]: [mtp,adb]
[sys.usb.state]: [mtp,adb]
[Check]
在imx6,
getprop | grep sec
[ro.adb.secure]: [0]
[ro.secure]: [0]
[ro.adb.secure]: [0]
[ro.secure]: [0]
[Check]
在imx6,
cat \default.prop
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.greatcat=1
ro.adb.secure=0
ro.secure=0
ro.allow.mock.location=1
ro.debuggable=1
persist.sys.usb.config=mtp,adb
[實作]
改build/core/main.mk
關鍵字
## user/userdebug ##
## eng ##
描述了build code時,user/userdebug/eng mode, adb的設定
所以在
## sdk ##
之上,加入以下code,強制重設default.prop
ADDITIONAL_DEFAULT_PROPERTIES =
ADDITIONAL_DEFAULT_PROPERTIES += ro.greatcat=1
ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=0
ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0
ADDITIONAL_DEFAULT_PROPERTIES += ro.allow.mock.location=1
ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=1
砍掉
out/target/product/sabresd_6dq/root
重新make
fastboot flash boot boot.img
完成
自訂分類:android_bsp
上一則: android APP install/uninstall other APK and run other APP下一則: cal time for building code
你可能會有興趣的文章:
限會員,要發表迴響,請先登入