Closed rtedpro-cpu closed 3 days ago
@zhouziyang Hello?
Found out that Battery Emulation Works on Android 8.1 to 11 But if you attempt in Android 12+ it wont work since theres no battery detected Any fix on Android 12+ @zhouziyang
@rtedpro-cpu did you figure out how to make it work on 12+? Doing adb shell dumpsys battery set level 90
seems to set the level to 90%, but the battery is still reported to not be recognized.
@pdobrev Nope but it's possible if you look at redroid script all of the screenshots using Android 12 and 13 have battery charging. Would need a answer from @zhouziyang but being ignored.
Maybe we should keep the issue open then?
Forgot to include that Bliss OS 17.2 Alpha using Android 14 seems the battery sometimes is recognized and sometime isnt but it will always register it like it had a battery using adb shell dumpsys battery set level 80 works
Ok sounds like good idea
Still no response.
Battery is not emulated in redroid. Try porting from Android Emulator (health
HAL).
Any Android Emulator or Android Studio?
Apperently adb shell dumpsys battery set level 90 works on Android 12+ just the battery status on status bar isnt being changed as it thinks there is no battery but you still can change it (tested on redroid 14)
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] It would be useful if some app needs it.
Describe the solution you'd like A clear and concise description of what you want to happen. Maybe some argument or anything else to do the battery emulation?