The Android kernel is currently reading the battery health information in this file. Usually 40-80% and 20-80% charge cycles keep your battery health percentage high.
/sys/class/powersupply/battery/charge_full
/sys/class/powersupply/battery/cycle_count
These files has never been tested and it is not known exactly what it does. For example, it may affect cpu/gpu performance 💀
/sys/class/qcom-battery/soh
/sys/class/qcom-battery/fg1_soh
Warning
It is possible to edit these files on old Android devices. However, if you exaggerate and enter an incorrect value, your phone may indicate the battery incorrectly and shut down prematurely.
The Android kernel is currently reading the storage life information in this folder.
/sys/devices/platform/soc/1d84000.ufshc/health_descriptor/
Important
There is no known benefit or harm in editing this file. However, editing is not recommended.
Ufs health information is given in the image below.
Tip
Software hardware lifespan data does not represent the actual lifespan. It's just a software profile. Restrictions can be added to prevent the phone from suddenly shutting down and other things.