当前位置:网站首页>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
边栏推荐
- 遠程代碼執行滲透測試——B模塊測試
- FlutterWeb浏览器刷新后无法回退的解决方案
- TCP连接不止用TCP协议沟通
- Flink parsing (III): memory management
- 自动化运维利器ansible基础
- MySQL stored procedure
- Display picture of DataGridView cell in C WinForm
- 【MySQL入门】第三话 · MySQL中常见的数据类型
- 偷窃他人漏洞报告变卖成副业,漏洞赏金平台出“内鬼”
- 07 personal R & D products and promotion - human resources information management system
猜你喜欢
Spark calculation operator and some small details in liunx
当前系统缺少NTFS格式转换器(convert.exe)
Pytorch extract middle layer features?
There is a gap in traditional home decoration. VR panoramic home decoration allows you to experience the completion effect of your new house
Reppoints: advanced order of deformable convolution
Vscode replaces commas, or specific characters with newlines
yarn : 无法加载文件 D:\ProgramFiles\nodejs\yarn.ps1,因为在此系统上禁止运行脚本
05 personal R & D products and promotion - data synchronization tool
Flink parsing (III): memory management
78 岁华科教授逐梦 40 载,国产数据库达梦冲刺 IPO
随机推荐
BearPi-HM_ Nano development board "flower protector" case
The most complete tcpdump and Wireshark packet capturing practice in the whole network
Debug xv6
How to use scroll bars to dynamically adjust parameters in opencv
Openharmony developer documentation open source project
EasyCVR平台通过接口编辑通道出现报错“ID不能为空”,是什么原因?
Flink parsing (III): memory management
Solrcloud related commands
Sqoop I have everything you want
The art of Engineering (1): try to package things that do not need to be exposed
FlutterWeb浏览器刷新后无法回退的解决方案
Interpretation of Flink source code (I): Interpretation of streamgraph source code
The solution that flutterweb browser cannot be rolled back after refreshing
SQL statement optimization, order by desc speed optimization
Easy introduction to SQL (1): addition, deletion, modification and simple query
Nodejs 开发者路线图 2022 零基础学习指南
yarn : 无法加载文件 D:\ProgramFiles\nodejs\yarn.ps1,因为在此系统上禁止运行脚本
Single responsibility principle
TCP连接不止用TCP协议沟通
Based on infragistics Document. Excel export table class