Device Power Characteristics
You can use the power
command to control the simulated power state of the emulator instance.The usage for the command is:
power <display|ac|status|present|health|capactiy>
The event
command supports the subcommands listed in the table below.
Subcommand
| Description |
Comments |
display |
Display battery and charger state. |
|
ac <on|off> |
Set AC charging state to on or off. |
|
status <unknown|charging|discharging|not-charging|full> |
Change battery status as specified. |
|
present <true|false> |
Set battery presence state. |
|
health <unknown|good|overheat|dead|overvoltage|failure> |
Set battery health state. |
|
power health <percent> |
Set remaining battery capacity state (0-100). |
|