CPU占有率 adb shell dumpsys cpuinfo :获取本机CPU占有率 adb shell dumpsys cpuinfo | findstr +包名 :获取应用的CPU占有率 内存使用情况 adb shell getprop | findstr dalvik :本机内存的使用情况 ...
分类:
移动开发 时间:
2020-06-22 21:08:55
阅读次数:
92
日志命令: 1、adb logcat > C:\Users\del\Desktop\a.txt #导出所有日志命令 2、adb shell dumpsys meminfo com.android.calculator2 #获取某个包的内存使用情况 3、adb shell dumpsys cpuinf ...
分类:
数据库 时间:
2020-06-20 18:53:24
阅读次数:
69
dumpsys meminfo详解adb shell dumpsys meminfo [pkg/pid] 可以用来查看指定进程包名的内存使用情况 dumpsys meminfo -h 帮助meminfo dump options: [-a] [-d] [-c] [-s] [--oom] [proce ...
分类:
移动开发 时间:
2020-06-20 18:41:31
阅读次数:
395
方式一没有apk 如果应用已经安装在手机上了(例如应用商城下载)。可以直接打开手机上该应用, 进入到要操作的界面然后执行: adb shell dumpsys activity recents | find "intent={" 会显示如下,最近几个activity信息 如果已经或apk,在命令行窗 ...
分类:
移动开发 时间:
2020-06-20 18:24:17
阅读次数:
119
查看实时资源占用情况:adb shell top查看进程 UID:adb shell dumpsys package | grep userId= 查看当前终端中的进程信息:adb shell ps 根据进程pid或包名查看进程占用的内存adb shell dumpsys meminfo<pid>a ...
分类:
其他好文 时间:
2020-06-20 14:30:27
阅读次数:
68
前言 上一篇文章,在pycharm中已经成功链接了模拟器,并打印出了设备的相关信息,现在我们要进行app自动化,首先我们需要先获取包名。 adb命令行获取包名 首先查看一下mumu模拟器的版本。 是安卓6.0.1版本的。 unix系统 安卓8.0以下 adb shell dumpsys activi ...
分类:
其他好文 时间:
2020-06-17 23:20:09
阅读次数:
298
adb shell getprop ro.product.ota.host 获取配置项的值 adb shell setprop produc.ota.port 8080 设置配置项的值【ro开头的是只读配置项】 adb shell mount -o remount,rw /vendor 已读写的模式 ...
分类:
数据库 时间:
2020-06-16 15:18:30
阅读次数:
152
Android设备调试桥 即adb 使用adb进行无线调试的一些常用命令 adb tcpip 5555 设置调试端口为5555 防止冲突 adb shell ifconfig wlan0 查询局域网中的移动设备局域网IP地址 adb connect 192.168.0.100 使移动设备和Andro ...
分类:
移动开发 时间:
2020-06-16 00:57:49
阅读次数:
72
示例:python脚本 # adb shell dumpsys window w |findstr \/ |findstr name= # mSurface=Surface(name= com.android.mms / com.android.mms.ui.ConversationList ) f ...
分类:
移动开发 时间:
2020-06-07 19:23:52
阅读次数:
72
1、连接上手机,数据线链接或者无线连接随便 2、打开你需要查看的app 3、打开终端,输入命令: adb shell dumpsys window w |grep \/ |grep name= ...
分类:
移动开发 时间:
2020-06-04 22:03:49
阅读次数:
245