惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
Engineering at Meta
Engineering at Meta
腾讯CDC
宝玉的分享
宝玉的分享
H
Help Net Security
I
InfoQ
博客园 - Franky
The GitHub Blog
The GitHub Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Microsoft Security Blog
Microsoft Security Blog
M
MIT News - Artificial intelligence
博客园_首页
美团技术团队
Recent Announcements
Recent Announcements
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
The Cloudflare Blog
博客园 - 司徒正美
Vercel News
Vercel News
MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
月光博客
月光博客

博客园 - Salesforce

ARM寄存器总结: proc介绍及问题分析 Bluetooth(android 4.2.2版本) Android Bluetooth 总结 android代码常识 Android中的sp和wp指针 Andriod4.2 Camera 架构与实现 android Camera模块分析 Android 4.0 Camera架构分析之Camera初始化 介绍 Android 的 Camera 框架 Android多媒体框架图 Android程序架构基本内容概述 Android 框架简介--Java环境(转) android架构图示 最全的Android源码目录结构详解(转) Vim+Ctags+Taglist组合: Ref相关的名词解释 指针(详解) 趋势科技的一道笔试题
Ubuntu连接手机步骤
Salesforce · 2013-10-12 · via 博客园 - Salesforce

第一次使用adb之前,需要在home/.android里新建adb_usb.ini文件:0x1782.

注:adb已在安装系统后装好,手机要处于开机状态

  1. 查看设备命令:

$ adb devices

正常情况下会出现如下内容

List of devices attached

19761202 device

如果出现

List of devices attached

???????? no permissions

请输入如下命令解决:

$ sudo adb kill-server

$ sudo adb start-server

如果设备显示

出来

List of devices attached

请点击手机设置-应用程序-开发-USB调试 (如果已勾选请去掉勾选后重新勾选)

再敲如下命令:

$ sudo adb kill-server

$ sudo adb start-server

  1. 登录手机命令:

$ adb shell

正常情况下会进入root模式

#

示例:

adb devices:设备列表 sudo adb kill-server sudo adb start-server 每次连接usb线后: adb root adb remount 抓log命令: makesure all log output: adb shell slogctl off kernel log: adb shell cat /proc/kmsg | tee kernel.txt user log: adb shell logcat -v time | tee user.txt