当前位置:网站首页>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
边栏推荐
- Flink parsing (IV): recovery mechanism
- C version selenium operation chrome full screen mode display (F11)
- 传统家装有落差,VR全景家装让你体验新房落成效果
- Guidelines for preparing for the 2022 soft exam information security engineer exam
- 面试突击63:MySQL 中如何去重?
- MySQL stored procedure
- 当前系统缺少NTFS格式转换器(convert.exe)
- Solr appears write Lock, solrexception: could not get leader props in the log
- Reppoints: advanced order of deformable convolution
- BearPi-HM_ Nano development board "flower protector" case
猜你喜欢

Easy introduction to SQL (1): addition, deletion, modification and simple query

Grafana 9 正式发布,更易用,更酷炫了!

The NTFS format converter (convert.exe) is missing from the current system
![[introduction to MySQL] third, common data types in MySQL](/img/11/66b4908ed8f253d599942f35bde96a.png)
[introduction to MySQL] third, common data types in MySQL

Unity particle special effects series - treasure chest of shining stars

Huawei certified cloud computing hica

03 products and promotion developed by individuals - plan service configurator v3.0

yarn : 无法加载文件 D:\ProgramFiles\nodejs\yarn.ps1,因为在此系统上禁止运行脚本

BearPi-HM_ Nano development environment

网络分层概念及基本知识
随机推荐
分布式不来点网关都说不过去
传统家装有落差,VR全景家装让你体验新房落成效果
【MySQL入门】第一话 · 初入“数据库”大陆
Grafana 9 正式发布,更易用,更酷炫了!
Distributed (consistency protocol) leader election (dotnext.net.cluster implements raft election)
After entering Alibaba for the interview and returning with a salary of 35K, I summarized an interview question of Alibaba test engineer
遠程代碼執行滲透測試——B模塊測試
Precipitated database operation class - version C (SQL Server)
酷雷曼多种AI数字人形象,打造科技感VR虚拟展厅
Single responsibility principle
TCP connection is more than communicating with TCP protocol
Based on infragistics Document. Excel export table class
The art of Engineering (2): the transformation from general type to specific type needs to be tested for legitimacy
BearPi-HM_ Nano development board "flower protector" case
Example of batch update statement combining update and inner join in SQL Server
MySQL stored procedure
2021-03-22 "display login screen during recovery" can't be canceled. The appearance of lock screen interface leads to the solution that the remotely connected virtual machine can't work normally
Start job: operation returned an invalid status code 'badrequst' or 'forbidden‘
06 products and promotion developed by individuals - code statistical tools
How to submit data through post