Ubuntu下使用ADB的基本命令汇总

本文介绍了ADB(Android Debug Bridge)的基本使用,包括设备管理、路径切换、文件传输、进程管理及设备状态检查等关键命令,是安卓开发者调试设备必备的知识。

由于调试需要连接安卓设备,所以整理一下相关adb命令,以备后用

ADB简介:
ADB,即 Android Debug Bridge,Android SDK中的一个工具, 使用adb可以直接操作管理安卓真实的Andriod设备,就是起到调试桥的作用。

打开设备和浏览相关信息:

//chnage to device directory

adb shell

//read all file in current directory

ls -l

//get all process of device

top

切换路径

//for example change to /data

cd ../data/

上传或下载文件

//from computer to device(open terminal at file directory)

adb push <filename> <device directory>


//from device to computer

adb pull <device directory/file name>

关闭进程

//for example kill initialization

adb killall initialization

查看当前连接设备

adb devices

查看报文

adb logcat

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值