当前位置:网站首页>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
边栏推荐
- How to use scroll bars to dynamically adjust parameters in opencv
- node の SQLite
- 在一台服务器上部署多个EasyCVR出现报错“Press any to exit”,如何解决?
- Xin'an Second Edition: Chapter 23 cloud computing security requirements analysis and security protection engineering learning notes
- 网络分层概念及基本知识
- 自动化运维利器ansible基础
- Guidelines for preparing for the 2022 soft exam information security engineer exam
- Solr appears write Lock, solrexception: could not get leader props in the log
- 2022年大厂Android面试题汇总(二)(含答案)
- Xin'an Second Edition; Chapter 11 learning notes on the principle and application of network physical isolation technology
猜你喜欢

Basic configuration and use of spark

Solr appears write Lock, solrexception: could not get leader props in the log

Flink parsing (IV): recovery mechanism

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

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

全网最全tcpdump和Wireshark抓包实践

开源与安全的“冰与火之歌”

历史上的今天:Google 之母出生;同一天诞生的两位图灵奖先驱

Wordcloud colormap color set and custom colors

Distributed (consistency protocol) leader election (dotnext.net.cluster implements raft election)
随机推荐
Pyspark operator processing spatial data full parsing (4): let's talk about spatial operations first
Xin'an Second Edition; Chapter 11 learning notes on the principle and application of network physical isolation technology
Solr appears write Lock, solrexception: could not get leader props in the log
Hongmeng introduction and development environment construction
In terms of byte measurement with an annual salary of 30W, automated testing can be learned in this way
Pytorch extract middle layer features?
Alibaba brand data bank: introduction to the most complete data bank
06 products and promotion developed by individuals - code statistical tools
偷窃他人漏洞报告变卖成副业,漏洞赏金平台出“内鬼”
04 products and promotion developed by individuals - data push tool
Xin'an Second Edition: Chapter 12 network security audit technology principle and application learning notes
OpenCV中如何使用滚动条动态调整参数
Vscode matches and replaces the brackets
The solution that flutterweb browser cannot be rolled back after refreshing
Concept and basic knowledge of network layering
微信小程序获取手机号
Display picture of DataGridView cell in C WinForm
Remote code execution penetration test - B module test
一体化实时 HTAP 数据库 StoneDB,如何替换 MySQL 并实现近百倍性能提升
[introduction to MySQL] the first sentence · first time in the "database" Mainland