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