This module is dangerous for some rom/devices... They can't handle an to HIGH or TO LOW battery percent and forced to shutdown which actually NOT shutdown the device, it'll keeps you in the shutdown screen. So don't use this module to prevent broken systems/roms.
This is not a real charger, here can you troll your friends
fake-charger --speed 0.3 --max 101 --steps 1Usage
Usage: system/bin/fake-charger.sh [options]
--speed changes the charge speed (default: 0.3)
--max changes the maximal charge value (default: 100)
--reset resets the battery state
--unplug unplugs the battery from the REAL charge
--set sets custom battery value
--steps changes the maximal adding value (default: 1)
--stdout prints every battery level into the stdout
--help prints this message
fake-charger --set 2000Warning! This can be buggy, avoid using this.
fake-charger --unplugfake-charger --reset