I'm trying to change the battery status and level of the AVD (Nexus 5x).
I tried everything in this question but nothing is working.
Setting battery by AVD manager UI (... > battery
) works only if I restart the entire emulator but I would want it to change real time so no luck.
Connection to telnet
succedes but strangely power settings through telnel
don't get synced to the emulator meaning that everything remains in CLI.
Also, AVD config.ini
hw.battery=yes
is already set.
Asked
Active
Viewed 1,685 times
2

feridok
- 648
- 7
- 26

leverglowh
- 734
- 1
- 7
- 23
-
did you check this? https://medium.com/@kaushiknsanji/android-battery-mocking-tutorial-988927fa4a35 – feridok Dec 17 '19 at 10:22
-
1That actually worked! But why didn't the emulator work? Everything else in it worked, why not the battery? – leverglowh Dec 17 '19 at 10:29