android user 版本如何默认adb调试为打开【转】

本文转载自:http://blog.csdn.net/chaihuasong/article/details/50342119

A. 软件准备 
user版本需要先打开USB debug开关,打开方式如下: 
1、打开usb调试 build/core/main.mk 
请将user版本下也改为ro.debuggable = 1

ifeq (true,(strip(enable_target_debugging))) 
# Target is more debuggable and adbd is on by default 
ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=1 
# Include the debugging/testing OTA keys in this build. 
INCLUDE_TEST_OTA_KEYS := true 
else # !enable_target_debugging 
# Target is less debuggable and adbd is off by default 
ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=1 //这边改成1 
endif # !enable_target_debugging

2、关闭授权框提示 device/sprd/scx35/device.mk 
这个ro.adb.secure=0(0为不显示信任此电脑,1为显示信任此电脑)

打开后全编译版本

B. 硬件准备 
需要飞线,找硬件从TX接线出来,飞线成功后用SecureCRT工具抓取uart log 
配置方法参考: 
首先安装SecureCRT软件和相对应的工具,之后打开SecureCRT,点击file–>Quick Connect 
相关设置项如下: 
Protocol 为Serial 
Port 为计算机中的端口:比如COM23 
Baud rate 要选为115200 
Data bits 为8 
Parity 为None 
Stop bits 为1 
Show quick connect on star 不勾选 
其余均为默认 
点击connect 就可以连接了

转载于:https://www.cnblogs.com/zzb-Dream-90Time/p/8167322.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值