[Galaxy S II Android Development] Mario1968:
Hi Dorimanx, thank you for this amazing kernel, I'm on 5.89 I've found any little bug:

In the following script that sets the .active.profile to wrong value when you select the extreme_* profiles

#!/sbin/busybox sh

export PATH="/res/customconfig/actions/push-actions:${PATH}";

LOCK_FILE="/data/.siyah/restore_running";

if [ "a$2" == "a" ]; then

echo "$config_backup_restore";

else

config_backup_restore=$2;

echo "$config_backup_restore";

fi;

case "${config_backup_restore}" in

3)

file2="/res/customconfig/battery.profile";

echo "battery" > /data/.siyah/.active.profile;

config_backup_restore=2;

;;

4)

file2="/res/customconfig/default.profile";

echo "default" > /data/.siyah/.active.profile;

config_backup_restore=2;

;;

5)

file2="/res/customconfig/performance.profile";

echo "performance" > /data/.siyah/.active.profile;

config_backup_restore=2;

;;

6)

file2="/res/customconfig/extreme_battery.profile";

echo "battery" > /data/.siyah/.active.profile;

config_backup_restore=2;

;;

7)

file2="/res/customconfig/extreme_performance.profile";

echo "performance" > /data/.siyah/.active.profile;

config_backup_restore=2;

;;

*)

PROFILE=`cat /data/.siyah/.active.profile`;

file2="/data/.siyah/$PROFILE.profile_backup";

# if someone full wipe the system, then use the profile_backup from sd-card

if [ ! -f $file2 ]; then

file2="/sdcard/$PROFILE.profile_backup";

fi;

;;

esac;

# check again for profile, maybe we have changed it ...

PROFILE=`cat /data/.siyah/.active.profile`;

case "${config_backup_restore}" in

1)

echo "Backup config file ...";

cp /data/.siyah/$PROFILE.profile /data/.siyah/$PROFILE.profile_backup;

cp /data/.siyah/$PROFILE.profile /sdcard/$PROFILE.profile_backup;

echo "Backup Done!";

;;

2)

file1="/data/.siyah/${PROFILE}.profile";

if [ ! -f $file1 ] || [ ! -f $file2 ]; then

echo "File not found!";

exit;

fi;

if [ `pgrep -f push-actions/config_backup_restore | wc -l` \< 3 ]; then

echo "Restoring config file, please wait ~30sec till full restore is done"

echo "then the app will restart with new settings.";

(

/sbin/busybox rm -f $LOCK_FILE;

# read in file1->line1

while read line1; do

# split the config into variables where we find "="

line1_1=$(echo $line1 | cut -f 1 -d '=');

line1_2=$(echo $line1 | cut -f 2 -d '=');

# grep the content from backup-file ...

line2=$(grep "^${line1_1}\=" $file2)

# ... and also split into variables

line2_1=$(echo $line2 | cut -f 1 -d '=');

line2_2=$(echo $line2 | cut -f 2 -d '=');

# compare config- and backup-file

if [ "a${line1_1}" != "a${line2_1}" ]; then

# nothing to do -> continue the loop

continue;

else

# if backup-file has different values, then restore it

if [ "a${line1_2}" != "a${line2_2}" ]; then

if [ "${line2_2}" != "" ]; then

/sbin/busybox sed -i "s/${line1_1}=${line1_2}/${line2_1}=${line2_2}/" $file1;

echo "edit: ${line1_1}=${line1_2} -> ${line2_1}=${line2_2}";

fi;

else

# nothing to do -> continue the loop

# echo "not_edit: ${line1_1}=${line1_2} -> ${line2_1}=${line2_2}";

continue;

fi;

fi;

done<$file1

# hiding all push action scripts from uci.sh

/sbin/busybox mount -o remount,rw rootfs;

/sbin/busybox mv /res/customconfig/actions/push-actions/* /res/no-push-on-boot/;

# apply New ExTweaks settings

/res/uci.sh restore;

# add trigger for push actions restore function

echo "uci done" > $LOCK_FILE;

)&

# starting loop to wait till uci.sh apply finish working

(

while [ ! -e $LOCK_FILE ]; do

sleep 5;

echo "Still waiting till all DONE!";

done;

# restore all the PUSH Button Actions back to there location

/sbin/busybox mount -o remount,rw rootfs;

/sbin/busybox mv /res/no-push-on-boot/* /res/customconfig/actions/push-actions/;

/sbin/busybox rm -f $LOCK_FILE;

# Killing extweaks, if was open it's will restart!

EXTWEAKSAPP=`pgrep -f "com.darekxan.extweaks.app"`;

kill $EXTWEAKSAPP;

)&

exit 0;

else

# Anti smart user protection! multi run of this script will bring HELL!

echo "you are running RESTORE already! please wait!";

fi;

;;

*)

echo "need input, 1=backup; 2=restore";

;;

esac;

In the file gesture_set.sh the coordinates of any gesture is over those of S2, maybe those are picked from a tablet resolutions?

These bugs are very marginal and I signalled only for you can fix in future versions of your best kernel :):thumbup:

Excuse my English

Mario

Inviato dal mio Galaxy S2 con Tapatalk2®

XWLPF Stock

Dorimanx Kernel 5.89

Jkay V14.1