[Magisk] G5-User7080:
Thats my acc config, set with using f.e. acc -s cooldown_capacity=101.

You can leave most things on default, you only need to set the ones marked with a # (the # is not normally part of the config).

Set cooldown_capacity to 101 to disable it, max_temp works independently from that.

For your charging switches, first run acc in elevated adb shell, then select the "test charging switches" option, then exit the interactive menu and run acc -ss and it should display a bunch of switches that work with that charger.

The ones mentioned in my previous post should work well for the P6a.

Type in the number to apply the one you want and then restart acc, either with acc and then 4th option or in AccA.

Whenever you switch your charger (e.g. from wall charger to pc) you need to change your charging switch accordingly, so re-run the test and select one that works, they'll probably be similar, but f.e. for charging from usb pc its usb/current_max 900000 0 for me but usb/current_max 1500000 0 when I connect it to my powerbank.

max_charging_voltage depends on how far you wanna charge it, the charging voltage obviously needs to be higher than the voltage of the battery in order to charge it, so if you put in 4100 you probably can't charge it further than 65% - 70% ish.

If you use a voltage for your pause_capacity (e.g. 3980) then max_charging_voltage doesnt matter as it will stop when the charging voltage reaches the pause_capacity value.

If you use a percentage, e.g. 60% then you can limit the max_charging_voltage and you'll be able to see the current drop and charging slow down after it hits the max_charging_voltage. And charging will eventually stop completely when the difference between the battery voltage and the charging voltage is too low, so set your max_charging_voltage accordingly.

I use 4100 cause for some reason the real charging voltage appears to be 20mv below that, so 4080mV which is about what it would reach on its own at 58% battery level. And I have it set to stop charging at 63%, normally it would be at about 4100mV - 4120mV at that percentage, but since it's limited to 4080mV it'll just charge a little slower at the lower voltage. If I didn't set the pause_capacity to 63% it would probably stop at 65-70% anyway.

For more details refer to the acc github https://github.com/VR-25/acc#default-configuration

bluejay:/ # acc -s

amp_factor=
batt_status_workaround=true

capacity_mask=false
capacity_sync=auto

#cooldown_capacity=101
#cooldown_charge=
#cooldown_current=
#cooldown_pause=
#cooldown_temp=35

current_workaround=false
discharge_polarity=+
force_off=false
idle_threshold=40
lang=en

#max_temp=30
#max_temp_pause=90

off_mid=true
#pause_capacity=60
#prioritize_batt_idle_mode=false
reboot_resume=false

reset_batt_stats_on_pause=false
reset_batt_stats_on_plug=false
reset_batt_stats_on_unplug=false

#resume_capacity=45
#shutdown_capacity=15
#shutdown_temp=45
temp_level=0
volt_factor=

apply_on_boot=

apply_on_plug=

batt_status_override=

#charging_switch=usb/current_max 900000 0

cooldown_custom=

#max_charging_current=1000

#max_charging_voltage=4100

run_cmd_on_pause=

loop_cmd=

You can just import those profiles, but you might want to change the uid and profileName, so they don't double with your existing profiles.

Also since you probably use a different charger you should test your charging switches in adb shell acc and select one that works for you.

[{"profile":{"uid":6,"profileName":"3960","accConfig":{"configCapacity":{"shutdown":15,"resume":44,"pause":4080},"configVoltage":{"max":4120},"configCurrMax":1000,"configTemperature":{"coolDownTemperature":35,"maxTemperature":30,"pause":90},"configResetUnplugged":false,"configResetBsOnPause":false,"configChargeSwitch":"usb/current_max 900000 0","configIsAutomaticSwitchingEnabled":true,"prioritizeBatteryIdleMode":false}},"mIsChecked":true},{"profile":{"uid":4,"profileName":"4000","accConfig":{"configCapacity":{"shutdown":15,"resume":42,"pause":63},"configVoltage":{"max":4080},"configCurrMax":1000,"configTemperature":{"coolDownTemperature":35,"maxTemperature":30,"pause":90},"configResetUnplugged":false,"configResetBsOnPause":false,"configChargeSwitch":"usb/current_max 900000 0","configIsAutomaticSwitchingEnabled":true,"prioritizeBatteryIdleMode":false}},"mIsChecked":true}]