当前位置:网站首页>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
边栏推荐
- Basic configuration and use of spark
- TCP connection is more than communicating with TCP protocol
- node の SQLite
- 酷雷曼多种AI数字人形象,打造科技感VR虚拟展厅
- 02 personal developed products and promotion - SMS platform
- 传统家装有落差,VR全景家装让你体验新房落成效果
- Xin'an Second Edition: Chapter 12 network security audit technology principle and application learning notes
- 06 products and promotion developed by individuals - code statistical tools
- VR全景婚礼,帮助新人记录浪漫且美好的场景
- 基本磁盘与动态磁盘 RAID磁盘冗余阵列区分
猜你喜欢
02 personal developed products and promotion - SMS platform
JMeter interface test response data garbled
RepPoints:可形变卷积的进阶
当前系统缺少NTFS格式转换器(convert.exe)
FlutterWeb浏览器刷新后无法回退的解决方案
BearPi-HM_ Nano development environment
Automatic operation and maintenance sharp weapon ansible Foundation
TCP连接不止用TCP协议沟通
[rapid environment construction] openharmony 10 minute tutorial (cub pie)
Unity particle special effects series - treasure chest of shining stars
随机推荐
The art of Engineering (1): try to package things that do not need to be exposed
Flexible report v1.0 (simple version)
全网最全tcpdump和Wireshark抓包实践
Uipath browser performs actions in the new tab
Spark accumulator and broadcast variables and beginners of sparksql
DataGridView scroll bar positioning in C WinForm
FlutterWeb瀏覽器刷新後無法回退的解决方案
Integrated development management platform
JMeter interface test response data garbled
学 SQL 必须了解的 10 个高级概念
The art of Engineering
FlutterWeb浏览器刷新后无法回退的解决方案
The solution that flutterweb browser cannot be rolled back after refreshing
Openharmony developer documentation open source project
Guidelines for preparing for the 2022 soft exam information security engineer exam
Shell input a string of numbers to determine whether it is a mobile phone number
面试突击63:MySQL 中如何去重?
Wordcloud colormap color set and custom colors
C version selenium operation chrome full screen mode display (F11)
MySQL error reporting solution