First, the default control file is not working. I had to switch to input_suspend.
Now when the charge reaches the threshold, charging is stopped. But after disconnecting the charger, it still shows "maintaining ..." notification and I have to manually select disable to close the notification and reset the battery stats.
These files are in this path
/sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply
When charge level reached and charger is connected battery_maintain.zip
First, the default control file is not working. I had to switch to input_suspend. Now when the charge reaches the threshold, charging is stopped. But after disconnecting the charger, it still shows "maintaining ..." notification and I have to manually select disable to close the notification and reset the battery stats.
These files are in this path
/sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply
When charge level reached and charger is connected battery_maintain.zipAfter disconnecting the charger charger_disconnect.zip