mount -o remount,rw /system

	cat << EOF > /etc/init.d/90battery
	#!/system/bin/sh
	/system/bin/dumpsys battery unplug
	/system/bin/dumpsys battery set level 100
	/system/bin/dumpsys battery set ac 1
	EOF
	chmod +x /etc/init.d/90battery

	cat << EOF > /etc/init/init_d.rc
	service init_d /system/bin/sh /system/bin/sysinit
	    user root
	    group root
	    disabled
	    oneshot
	    seclabel u:r:sudaemon:s0
	on property:sys.boot_completed=1 && property:sys.logbootcomplete=1
	    start init_d
a	EOF

no battery mod

battery keep "discharging", it probably done by max17047 chipset, wchich calculating current flow and estimate battery precentage. To prevent this, we can try short MAX17047 pin 5 (CSN) and 6 (CSP). Or use dumpsys like this:

	/system/bin/dumpsys battery unplug
	/system/bin/dumpsys battery set level 100
	/system/bin/dumpsys battery set ac 1
Snow
Forest
Forest

Links