由于调试需要连接安卓设备,所以整理一下相关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
本文介绍了ADB(Android Debug Bridge)的基本使用,包括设备管理、路径切换、文件传输、进程管理及设备状态检查等关键命令,是安卓开发者调试设备必备的知识。
1303

被折叠的 条评论
为什么被折叠?



