当前位置:网站首页>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
- 虚拟机启动提示Probing EDD (edd=off to disable)错误
- Binary search strategy
- 05 personal R & D products and promotion - data synchronization tool
- Guidelines for preparing for the 2022 soft exam information security engineer exam
- MySQL stored procedure
- 2022年大厂Android面试题汇总(二)(含答案)
- Single responsibility principle
- 【Elastic】Elastic缺少xpack无法创建模板 unknown setting index.lifecycle.name index.lifecycle.rollover_alias
- 学 SQL 必须了解的 10 个高级概念
猜你喜欢

Flink parsing (IV): recovery mechanism

EasyCVR接入设备开启音频后,视频无法正常播放是什么原因?

Concept and basic knowledge of network layering

Summary of Android interview questions of Dachang in 2022 (I) (including answers)

FlutterWeb浏览器刷新后无法回退的解决方案

Interpretation of Flink source code (II): Interpretation of jobgraph source code

TCP连接不止用TCP协议沟通

sql语句优化,order by desc速度优化

The NTFS format converter (convert.exe) is missing from the current system

一体化实时 HTAP 数据库 StoneDB,如何替换 MySQL 并实现近百倍性能提升
随机推荐
Compile and build, from the bottom to the top
The art of Engineering (3): do not rely on each other between functions of code robustness
遠程代碼執行滲透測試——B模塊測試
全网最全tcpdump和Wireshark抓包实践
MySQL error reporting solution
Alertmanager sends the alarm email and specifies it as the Alibaba mailbox of the company
Selenium test of automatic answer runs directly in the browser, just like real users.
Pyspark operator processing spatial data full parsing (5): how to use spatial operation interface in pyspark
Interpretation of Flink source code (I): Interpretation of streamgraph source code
虚拟机启动提示Probing EDD (edd=off to disable)错误
Vscode replaces commas, or specific characters with newlines
Distributed (consistency protocol) leader election (dotnext.net.cluster implements raft election)
BearPi-HM_ Nano development board "flower protector" case
Xin'an Second Edition: Chapter 23 cloud computing security requirements analysis and security protection engineering learning notes
Growth of operation and maintenance Xiaobai - week 7
Flink analysis (I): basic concept analysis
C# NanoFramework 点灯和按键 之 ESP32
C version selenium operation chrome full screen mode display (F11)
TCP连接不止用TCP协议沟通
OpenCV中如何使用滚动条动态调整参数