首页 > 移动平台 > 详细

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

时间:2018-01-01 15:48:50      阅读:596      评论:0      收藏:0      [点我收藏+]

本文转载自: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 就可以连接了

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

原文:https://www.cnblogs.com/zzb-Dream-90Time/p/8167322.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!