How to get battery, processor, memory usage with appium

I developed code to run a script on a real Android device using an Appium server. Now I want to learn about the use of the Android battery during the execution of the script. Does apium have api to get battery / disk / processor / memory usage?

+4
source share
1 answer

You can use ADB to get all types of information about an Android device:

To check the status of the charger and usb battery:

Adb shell cat /sys/class/power_supply/usb/*

Adb shell cat /sys/class/power_supply/battery/*

Get the current processor operating speed:

Adb shell cat /sys/devices/system/cpu/<cpu#>/cpufreq/scaling_cur_freq

Get free memory:

adb shell vmstat

Link: https://sites.google.com/site/adbusefulcommands/

0

All Articles