Goldfish battery driver

modulename: goldfish_battery.ko

configname: CONFIG_BATTERY_GOLDFISH

Linux Kernel Configuration
└─>Device Drivers
└─>Power supply class support
└─>Goldfish battery driver
In linux kernel since version 3.1 (release Date: 2011-10-24)  
Say Y to enable support for the Goldfish battery and AC power
driver. Originated in the Android Studio Emulator (goldfish) it is
going to be used in other emulators.

source code: