-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproperties_battery.xml
24 lines (24 loc) · 1.33 KB
/
properties_battery.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="utf-8"?>
<root name="03.Battery" pull="shell dumpsys battery">
<property name="ACPowered" type="Bool" pattern="^AC powered: (\w+)"
push="shell dumpsys battery set ac {0}"
reset="shell dumpsys battery reset ac"/>
<property name="UsbPowered" type="Bool" pattern="^USB powered: (\w+)"
push="shell dumpsys battery set usb {0}"
reset="shell dumpsys battery reset usb"/>
<property name="WirelessPowered" type="Bool" pattern="^Wireless powered: (\w+)"
push="shell dumpsys battery set wireless {0}"
reset="shell dumpsys battery reset wireless"/>
<property name="Status" type="Integer" pattern="^status: (\d+)"
push="shell dumpsys battery set status {0}"
reset="shell dumpsys battery reset status"/>
<property name="Level" type="Integer" pattern="^level: (\d+)"
push="shell dumpsys battery set level {0}"
reset="shell dumpsys battery reset level"/>
<property name="Scale" type="Integer" pattern="^scale: (\d+)"/>
<property name="Health" type="Integer" pattern="^health: (\d+)"/>
<property name="Voltage" type="Integer" pattern="^voltage: (\d+)"/>
<property name="Temperature" type="Integer" pattern="^temperature: (\d+)"/>
<property name="ChargeCounter" type="Integer" pattern="^Charge counter: (\d+)"/>
<property name="Technology" type="String" pattern="^technology: (.+)"/>
</root>