当前位置:网站首页>adb常用命令
adb常用命令
2022-07-06 09:44:00 【u010799534】
adb命令想在cmd中直接使用的话,需要先配置一下环境变量,将androidsdk下的platform-tools文件夹配置到path环境变量下即可。
查看所有连接的设备
adb devices -l
查看应用占用的端口号
adb shell ps | grep/findstr 包名
查看指定端口下的错误界别为Error的日志
adb logcat *:E findstr 端口号
查看指定包名对应的日志
adb logcat -v process|grep/findstr 包名
保存日志到指定文件
adb logcat -v time > D:log.txt
切换为utf-8,解决中文乱码问题
chcp 65001
清除指定包的缓存
adb shell pm clear 包名
apk安装
adb install xx.apk
apk覆盖安装
adb install -r xx.apk
apk卸载
adb uninstall xx.apk
apk保留数据卸载
adb uninstall -k xx.apk
查看手机安装的所有包名
adb shell pm list packages 如果只想看非系统包名:adb shell pm list packages -3
截屏
adb shell screencap /sdcard/xx.png
or
adb shell screencap /storage/emulated/0/DCIM/q.png
边栏推荐
- Automatic operation and maintenance sharp weapon ansible Foundation
- Spark accumulator and broadcast variables and beginners of sparksql
- Selenium test of automatic answer runs directly in the browser, just like real users.
- EasyCVR接入设备开启音频后,视频无法正常播放是什么原因?
- PySpark算子处理空间数据全解析(5): 如何在PySpark里面使用空间运算接口
- [getting started with MySQL] fourth, explore operators in MySQL with Kiko
- Development and practice of lightweight planning service tools
- 微信小程序获取手机号
- Alertmanager sends the alarm email and specifies it as the Alibaba mailbox of the company
- 78 岁华科教授逐梦 40 载,国产数据库达梦冲刺 IPO
猜你喜欢
Grafana 9 is officially released, which is easier to use and more cool!
Pyspark operator processing spatial data full parsing (4): let's talk about spatial operations first
分布式不来点网关都说不过去
EasyCVR接入设备开启音频后,视频无法正常播放是什么原因?
Unity小技巧 - 绘制瞄准准心
面试突击63:MySQL 中如何去重?
Yarn: unable to load file d:\programfiles\nodejs\yarn PS1, because running scripts is prohibited on this system
基本磁盘与动态磁盘 RAID磁盘冗余阵列区分
Summary of Android interview questions of Dachang in 2022 (I) (including answers)
FlutterWeb浏览器刷新后无法回退的解决方案
随机推荐
Development and practice of lightweight planning service tools
Kali2021 installation and basic configuration
Unity粒子特效系列-闪星星的宝箱
[elastic] elastic lacks xpack and cannot create template unknown setting index lifecycle. name index. lifecycle. rollover_ alias
Flet教程之 13 ListView最常用的滚动控件 基础入门(教程含源码)
历史上的今天:Google 之母出生;同一天诞生的两位图灵奖先驱
【MySQL入门】第四话 · 和kiko一起探索MySQL中的运算符
Run xv6 system
Essai de pénétration du Code à distance - essai du module b
FlutterWeb浏览器刷新后无法回退的解决方案
全网最全tcpdump和Wireshark抓包实践
sql语句优化,order by desc速度优化
Unity particle special effects series - treasure chest of shining stars
[introduction to MySQL] the first sentence · first time in the "database" Mainland
【MySQL入门】第一话 · 初入“数据库”大陆
scratch疫情隔离和核酸检测模拟 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
Virtual machine startup prompt probing EDD (edd=off to disable) error
Debug and run the first xv6 program
How to use scroll bars to dynamically adjust parameters in opencv
Xin'an Second Edition: Chapter 23 cloud computing security requirements analysis and security protection engineering learning notes