ADB调试工具浅析

本文介绍了ADB调试工具的常用命令,如在多台设备连接时如何选择特定设备进行调试,并解决在上传文件时遇到的'remote couldn't create file: Read-only file system'错误,提供了相关问题的解决方案链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

常用命令:

adb help查看各个参数的用法
adb devices已连接的设备列表
adb root

获取设备的root权限,需要设备已经具有root权限

adb shell登录到设备终端
adb shell < 命令>执行终端命令
adb  push  <发送的文件>  <存放目录>将文件发送到设备
adb pull <接收的文件> <存放目录>从设备获取文件
adb  install <应用程序>发送并安装应用程序
adb uninstall <应用程序>卸载应用程序

adb bugreport

查看bug报告

adb logcat查看日志

 

常见问题:

1、当有多台设备连接时,选择特定设备

首先查看设备名,下面我连接了虚拟机和一台真机

指定设备非常简单,只要使用 -s <设备名> 就行了

下面为登录到443068e的shell

 

2、上传文件出错 remote couldn't create file: Read-only file system

yu-> adb -s 443068e push healthd /system/bin/
adb: error: failed to copy 'healthd' to '/system/bin/healthd': remote couldn't create file: Read-only file system
healthd: 0 files pushed. 6.4 MB/s (76552 bytes in 0.011s)

原因是没有写权限,解决办法参考另一篇博客

https://blog.youkuaiyun.com/ljx_ahut/article/details/96479004

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值