adb 指令大全

adb 指令

指令 说明
adb devices 查看连接设备
adb shell ps 查看进程
adb shell settings get secure android_id android_id
adb shell getprop ro.product.model 查看设备型号
adb shell dumpsys iphonesubinfo IMEI
adb shell ifconfig IP地址
adb shell netcfg 网络连接状态
adb shell cat /sys/class/net/wlan0/address MAC地址
adb shell cat /proc/cpuinfo CPU信息
adb shell cat /proc/meminfo 内存信息
adb shell cat /system/build.prop 更多硬件与系统属性
adb shell getprop ro.debuggable 查看当前是否是debug模式
adb -s cf27456f shell 连接指定设备(cf27456f 设备名)
adb install test.apk 安装apk
adb uninstall cn.com.test.mobile 指定安装包卸载应用
adb shell pm list packages 查看所有app包名
adb shell pm clear cn.com.test.mobile 清除应用数据与缓存
adb shell screencap -p /sdcard/img.png 截图旧
adb exec-out screencap -p > img.png 截图新
adb shell screenrecord /sdcard/filename.mp4 录屏
adb shell am start -n cn.com.test.mobile/.ui.SplashActivity 启动应用Splash
adb shell dumpsys package 查看包信息Package Information
adb shell dumpsys meminfo 内存使用情况Memory Usage
adb shell am force-stop cn.com.test.mobile 强制停止应用
adb logcat 查看日志
adb logcat -c 清除日志
adb reboot 重启
adb get-serialno 获取序列号
adb bugreport 查看bug 报告
adb shell wm size 查看屏幕分辨率
adb shell wm density 查看屏幕密度
adb shell dumpsys window displays 显示屏参数
adb shell getprop ro.build.version.release 查看系统版本
adb push 从本地复制文件到设备
adb pull 从设备复制文件到本地
adb shell am broadcast options 发送广播
adb shell input keyevent 模拟键盘输入
adb shell dumpsys battery 电池状况
adb help 查看ADB 帮助
相关推荐
传奇开心果3 小时前
【Flutter踩坑排雷】第3课:const 误用坑|const 错误使用引发 UI 异常与性能损耗
android·flutter
哲鲤3 小时前
AOSP思绎|Android 多媒体:一段视频为什么需要这么多服务
android
阿杰m3 小时前
Android源码第三章:Handler、Looper 与 MessageQueue——一条消息如何入队、唤醒并执行
android
海雅达手持终端PDA6 小时前
巡线、深井、爆管抢修与极寒水网的硬件矩阵怎么配?海雅达水务巡检终端PDA选型指南
android·物联网·5g·集成测试·能源·政务
恋猫de小郭8 小时前
Flutter 开始支持 Jetpack Compose Platform View
android·前端·flutter
三少爷的鞋21 小时前
Android 架构七条铁律:架构师真正设计的不是代码,而是秩序
android
xiangxiongfly9151 天前
Android GsonFactory总结
android·gson·gsonfactory
WythePlus1 天前
Android 14 SELinux策略深度解析
android·安全策略·selinux策略
俩个逗号。。1 天前
Kotlin flow 详解
android·开发语言·kotlin
橙光成长1 天前
android-ad-cleaner:android免 Root 批量关闭系统开屏与营销推送
android·1024程序员节