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 帮助
相关推荐
StarsGreen6 分钟前
aosp中的SELinux 策略配置和编译流程
android
方白羽3 小时前
Android 开发中常见的编译加速方案
android·app·gradle
StarsGreen6 小时前
Android VINTF 中 Device Manifest 与 Framework Manifest 详解
android
Name_NaN_None8 小时前
安卓手机远程控制电脑方法(Android/Windows) —— 「小白教程」
android·windows·智能手机·电脑·笔记本
恋猫de小郭8 小时前
Flutter Perfetto:Dart Heap Sampling 终于要接入 Android 原生内存分析了
android·前端·flutter
敢敢のwings19 小时前
GR00T 2:当机器人学会先想象未来,再决定怎么动
android·机器人
传奇开心果编程19 小时前
【Jetpack Compose娓娓道来】第55课:传感器与设备姿态——把物理世界的数据接进Compose
android·kotlin·移动开发·传感器·jetpack compose·ui框架·声明式ui
传奇开心果编程20 小时前
【Jetpack Compose娓娓道来】第52课:蓝牙与位置权限——把“附近”和“在哪”安全地接进Compose
android·kotlin·移动开发·蓝牙·jetpack compose·声明式ui·位置权限
alexhilton21 小时前
卡顿定位:从 UI 线程到 RenderThread
android·kotlin·android jetpack
FungLeo1 天前
FengCMS· PHP+MySQL升级实录 · 后台参数统一治理:id[]数组、id=undefined 跳转与312组回调组合
android·mysql·php·工程实践·fengcms