now works on the emulator with battery