[Samsung Galaxy S 5 Unified Development] Exzu:
Fastcharge and Boeffla control for regular Kernel Adiutor

Below are the scripts needed to toggle/change Fastcharge, charge values, boeffla sound and volume levels. These scripts are for the original kernel adiutor app. I will attach script files that can be imported on the premium version later.

These scripts require BusyBox to function properly.

For charge level seekbars it changes in steps, 1200, 1300 etc. However since kernel adiutor doesn't have slidersteps implented the script rounds the value up or down (to the closest value, i.e 749 would turn to 700 and 750 would turn to 800. It is crucial you put the correct Min/Max values for the script to function properly. When you disable Fastcharge v2, v1 kicks into place. You need to use V2 if you wish to use custom charge values.

Do not have these scripts "Enabled at Boot" to minimize troubleshooting if something fails.

I will not supply help for these switches nor will the kernel developer. If you find yourself asking for help regarding these scripts then you shouldnt be messing with this in the first place.

THESE VALUES ARE FOR THE ORIGINAL KERNEL ADIUTOR APP, PROVIDING FURTHER FUNCTIONALITY FOR THOSE THAT DO NOT USE SmartPack Kernel Manager

Disclaimer:

/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, burnt down houses because you set the
* charge value too high or you getting fired because the alarm app failed.
* If you point the finger at me for messing up your device, I will laugh at you.
*/

FastCharge v1 - SWITCH

Title:

Fast Charge

Enabled:

#!/system/bin/sh

if grep -q 1 '/sys/kernel/fast_charge/force_fast_charge'
then
echo 1
else
echo 0
fi

Applying:

#!/system/bin/sh

status=$1

$status is either 1 or 0
echo $status > '/sys/kernel/fast_charge/force_fast_charge'

FastCharge v2 - SWITCH

Title:

Fast Charge v2

Enabled:

#!/system/bin/sh

if grep -q 2 '/sys/kernel/fast_charge/force_fast_charge'
then
echo 1
else
echo 0
fi

Applying:

#!/system/bin/sh

status=$1

$status is either 1 or 0
if [ $status == 1 ]; then
echo 2 > '/sys/kernel/fast_charge/force_fast_charge'
elif [ $status == 0 ]; then
echo 1 > '/sys/kernel/fast_charge/force_fast_charge'
fi

AC Charge Level - SEEKBAR

Title:

AC Charge Level [mA]

Min:

1000

Max:

2100

Progress:

#!/system/bin/sh

level="$(cat /sys/kernel/fast_charge/ac_charge_level)"
expr $level - 1000

Applying:

#!/system/bin/sh

let level=$1+1000

for i in $(cat /sys/kernel/fast_charge/ac_levels)
do
let levelz=$i-$level
if [ $levelz -le 50 ] && [ $levelz -ge -49 ]
then
echo $i > /sys/kernel/fast_charge/ac_charge_level
else
echo null
fi
done

USB Charge Level - SEEKBAR

Title:

USB Charge Level [mA]

Min:

400

Max:

1600

Progress:

#!/system/bin/sh

level="$(cat /sys/kernel/fast_charge/usb_charge_level)"
expr $level - 400

Applying:

#!/system/bin/sh

let level=$1+400

for i in $(cat /sys/kernel/fast_charge/usb_levels)
do
let levelz=$i-$level
if [ $levelz -le 50 ] && [ $levelz -ge -49 ]
then
echo $i > /sys/kernel/fast_charge/usb_charge_level
else
echo null
fi
done

Wireless Charge Level - SEEKBAR

Title:

Wireless Charge Level [mA]

Min:

600

Max:

1600

Progress:

#!/system/bin/sh

level="$(cat /sys/kernel/fast_charge/wireless_charge_level)"
expr $level - 600

Applying:

#!/system/bin/sh

let level=$1+600

for i in $(cat /sys/kernel/fast_charge/wireless_levels)
do
let levelz=$i-$level
if [ $levelz -le 50 ] && [ $levelz -ge -49 ]
then
echo $i > /sys/kernel/fast_charge/wireless_charge_level
else
echo null
fi
done

Boeffla Sound - SWITCH

Title:

Boeffla SoundEngine

Enabled:

#!/system/bin/sh

if grep -q 1 '/sys/class/misc/boeffla_sound/boeffla_sound'
then
echo 1
else
echo 0
fi

Applying:

#!/system/bin/sh

status=$1

$status is either 1 or 0
echo $status > '/sys/class/misc/boeffla_sound/boeffla_sound'

Headphone Volume - SEEKBAR

Title:

Headphone Volume

Min:

-30

Max:

30

Progress:

#!/system/bin/sh

for level in $(cat /sys/class/misc/boeffla_sound/headphone_volume)
do
let value=30+$level
break
done
echo $value

Applying:

#!/system/bin/sh

let value=$1-30
echo $value $value > /sys/class/misc/boeffla_sound/headphone_volume

Speaker Volume - SEEKBAR

Title:

Speaker Volume

Min:

-30

Max:

30

Progress:

#!/system/bin/sh

for level in $(cat /sys/class/misc/boeffla_sound/speaker_volume)
do
let value=30+$level
break
done
echo $value

Applying:

#!/system/bin/sh

let value=$1-30
echo $value $value > /sys/class/misc/boeffla_sound/speaker_volume

Below you can find all the custom controls, download the zip file, extract it and then import the controls.

Only for those that have premium version

or a self compiled Kernel Adiutor with the possibility to important custom controls.