adb命令详细介绍(获取Android devices常用数据信息)

1.已连接设备

adb devices

在这里插入图片描述

2.查看进程列表

adb shell ps

在这里插入图片描述

3.总mem

adb shell cat /proc/meminfo

在这里插入图片描述

4.指定apk占用mem

adb shell dumpsys meminfo com.xxx.xxx

在这里插入图片描述

5.CPU核数

adb shell cat /proc/cpuinfo

在这里插入图片描述

6.CPU占用

adb shell dumpsys cpuinfo

在这里插入图片描述

7.top命令

adb shell top

在这里插入图片描述
top命令输出详解

8.网络状态

adb shell ifconfig
(wlan0中 HWaddr 为mac地址;Inet addr 为IP地址)

在这里插入图片描述

9.单独获取IP地址和Mac地址

 adb shell "ifconfig | grep Mask"
 adb shell cat /sys/class/net/wlan0/address

在这里插入图片描述

10.帧率(每秒帧数)

 adb shell dumpsys gfxinfo

在这里插入图片描述

11.屏幕分辨率

adb shell wm size

在这里插入图片描述

12.屏幕密度

adb shell wm density

在这里插入图片描述

13.显示参数

adb shell dumpsys window displays

在这里插入图片描述

14.获取android_id

adb shell settings get secure android_id

在这里插入图片描述

15.获取Android版本

 adb shell getprop ro.build.version.release

在这里插入图片描述

16.获取SDK版本

adb shell getprop ro.build.version.sdk

在这里插入图片描述

17.获取设备名

adb shell getprop ro.product.name

在这里插入图片描述

18.获取设备型号

adb shell getprop ro.product.model

在这里插入图片描述

19.获取设备品牌

adb shell getprop ro.product.brand

在这里插入图片描述

20.获取处理器型号

adb shell getprop ro.product.board

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

echo 慧

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值