Is there anyway i can modify the battery information?

Problem solved.
P.S.: Don’t trying doing the same thing unless you know what you are doing here. Battery information are stored in dtbo overlay part, all parameters needs to be confirmed from the seller of the battery, this information DOES NOT applies to the battery you might bought in the market, link are just for reference, DON’T FLASH THIS UNLESS YOU KNOW WHAT BATTERY PARAMETERS YOU ARE WORKING WITH.

scripts working with this under sailfish are much more easier(replace sudo with devel-su if you use orignal devel-su)

sudo dd if=/dev/block/platform/soc/by-name/dtbo_a of=dtbo.img
./bin/mkdtimg dump dtbo.img -b dtbo.dtbo 
./bin/fdtget  dtbo.dtbo.0 / model
./bin/fdtoverlay -i dtbo.dtbo.0 -o new_dtbo.dtbo overlay_pdx203.dtbo 
./bin/mkdtimg create new_dtbo.img --page_size=4096 new_dtbo.dtbo 
#sudo dd if=new_dtbo.img of=/dev/block/platform/soc/by-name/dtbo_a 

Reference info.

2 Likes