Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SuperSU updated to 1.0 + auto install if ROM has old SU installed.

  • Loading branch information...
commit cd90574ce8c48a02558612de290da294a48420e9 1 parent 52f1205
@dorimanx dorimanx authored
View
1  res/SuperSU_md5
@@ -0,0 +1 @@
+e5fa6a6191d236ab8fa445171860a070
View
10 res/customconfig/actions/push-actions/root_install
@@ -17,10 +17,16 @@ export PATH="/res/customconfig/actions/push-actions:${PATH}";
fi;
# extract SU binary
+ if [ ! -d /system/bin/.ext ]; then
+ $BB mkdir /system/bin/.ext;
+ $BB chmod 777 /system/bin/.ext;
+ fi;
+ $BB cp -a /res/misc/payload/su /system/bin/.ext/su;
$BB cp -a /res/misc/payload/su /system/xbin/su;
- $BB chown root:root /system/xbin/su;
+ $BB chown 0.0 /system/xbin/su;
$BB chmod 6755 /system/xbin/su;
- $BB ln -s /system/xbin/su /system/bin/su;
+ $BB chown 0.0 /system/bin/.ext/su;
+ $BB chmod 6755 /system/bin/.ext/su;
# clean super user old apps
$BB rm -f /system/app/Superuser.apk > /dev/null 2>&1;
View
66 res/customconfig/actions/push-actions/root_remove
@@ -2,51 +2,55 @@
export PATH="/res/customconfig/actions/push-actions:${PATH}";
(
+
+BB=/sbin/busybox
+
if [ -f /system/xbin/su ]; then
- /sbin/busybox mount -o remount,rw /dev/block/mmcblk0p9 /system;
- /sbin/busybox mount -t rootfs -o remount,rw rootfs;
- /sbin/busybox rm -f /system/bin/su > /dev/null 2>&1;
- /sbin/busybox rm -f /system/xbin/su > /dev/null 2>&1;
+ $BB mount -o remount,rw /dev/block/mmcblk0p9 /system;
+ $BB mount -t rootfs -o remount,rw rootfs;
+ $BB rm -f /system/bin/su > /dev/null 2>&1;
+ $BB rm -f /system/xbin/su > /dev/null 2>&1;
+ $BB rm -f /system/bin/.ext/su > /dev/null 2>&1;
# some roms have a busybox with su applet
if [ -e /system/xbin/busybox ]; then
- /sbin/busybox mv /system/xbin/busybox /system/xbin/boxman;
- /sbin/busybox rm -f /system/xbin/busybox;
+ $BB mv /system/xbin/busybox /system/xbin/boxman;
+ $BB rm -f /system/xbin/busybox;
fi
if [ -e /system/bin/busybox ]; then
- /sbin/busybox mv /system/bin/busybox /system/bin/boxman;
- /sbin/busybox rm -f /system/bin/busybox;
+ $BB mv /system/bin/busybox /system/bin/boxman;
+ $BB rm -f /system/bin/busybox;
fi
- /sbin/busybox ln -s /sbin/busybox /system/xbin/busybox;
+ $BB ln -s /sbin/busybox /system/xbin/busybox;
# I need to remove this as well for Garanti CepBank app
if [ -e /system/xbin/which ]; then
- /sbin/busybox mv /system/xbin/which /system/xbin/waswhich-bkp;
- /sbin/busybox rm -f /system/xbin/which;
+ $BB mv /system/xbin/which /system/xbin/waswhich-bkp;
+ $BB rm -f /system/xbin/which;
fi
# SuperUser, superuser Superuser SuperUser whatever...
- /sbin/busybox rm -rf /data/dalvik-cache/*uper?ser.apk* > /dev/null 2>&1;
- /sbin/busybox rm -rf /data/dalvik-cache/*chainfire?supersu.apk* > /dev/null 2>&1;
- /sbin/busybox rm -rf /data/dalvik-cache/?uper?u* > /dev/null 2>&1;
-
- /sbin/busybox rm -f /system/app/Superuser.apk > /dev/null 2>&1;
- /sbin/busybox rm -f /system/app/SuperSU.apk > /dev/null 2>&1;
- /sbin/busybox rm -f /system/app/*uper?ser.apk > /dev/null 2>&1;
- /sbin/busybox rm -f /system/app/*chainfire?supersu*.apk > /dev/null 2>&1;
- /sbin/busybox rm -f /system/app/?uper?u.apk > /dev/null 2>&1;
-
- /sbin/busybox rm -f /data/app/Superuse*.apk > /dev/null 2>&1;
- /sbin/busybox rm -f /data/app/*uper?ser.apk > /dev/null 2>&1;
- /sbin/busybox rm -f /data/app/*chainfire?supersu*.apk > /dev/null 2>&1;
- /sbin/busybox rm -f /data/app/?uper?u.apk > /dev/null 2>&1;
-
- /sbin/busybox rm -rf /data/data/eu.chainfire.supersu > /dev/null 2>&1;
- /sbin/busybox rm -rf /data/data/com.noshufou.android.su > /dev/null 2>&1;
-
- /sbin/busybox mount -o remount,ro /dev/block/mmcblk0p9 /system > /dev/null 2>&1;
- /sbin/busybox mount -t rootfs -o remount,ro rootfs > /dev/null 2>&1;
+ $BB rm -rf /data/dalvik-cache/*uper?ser.apk* > /dev/null 2>&1;
+ $BB rm -rf /data/dalvik-cache/*chainfire?supersu.apk* > /dev/null 2>&1;
+ $BB rm -rf /data/dalvik-cache/?uper?u* > /dev/null 2>&1;
+
+ $BB rm -f /system/app/Superuser.apk > /dev/null 2>&1;
+ $BB rm -f /system/app/SuperSU.apk > /dev/null 2>&1;
+ $BB rm -f /system/app/*uper?ser.apk > /dev/null 2>&1;
+ $BB rm -f /system/app/*chainfire?supersu*.apk > /dev/null 2>&1;
+ $BB rm -f /system/app/?uper?u.apk > /dev/null 2>&1;
+
+ $BB rm -f /data/app/Superuse*.apk > /dev/null 2>&1;
+ $BB rm -f /data/app/*uper?ser.apk > /dev/null 2>&1;
+ $BB rm -f /data/app/*chainfire?supersu*.apk > /dev/null 2>&1;
+ $BB rm -f /data/app/?uper?u.apk > /dev/null 2>&1;
+
+ $BB rm -rf /data/data/eu.chainfire.supersu > /dev/null 2>&1;
+ $BB rm -rf /data/data/com.noshufou.android.su > /dev/null 2>&1;
+
+ $BB mount -o remount,ro /dev/block/mmcblk0p9 /system > /dev/null 2>&1;
+ $BB mount -t rootfs -o remount,ro rootfs > /dev/null 2>&1;
fi;
pkill -f "com.noshufou.android.su";
pkill -f "eu.chinfire.supersu";
View
1,272 res/customconfig/customconfig.xml.bkp
@@ -0,0 +1,1272 @@
+<settingsRoot>
+<settingsTab name="CPU">
+
+ <settingsPane description="The following settings are for all global CPU configuration, use it only if you know what you are doing."
+ name="CPU Global Settings">
+
+ <seekBar description="Maximum Normal CPU-Speed. CPU Frequency steps by 50.000 kHz from 100.000 kMz to 1.200.000 kHz! if you want to use OC speeds set here 1.2Ghz! and tune the OC bar! if here speed is lower than MAX '1.2Ghz', OC bar is ignored! (Default: 1.200.000 kHz)"
+ name="Max Normal Frequency" action="genericfreq_normal /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq" unit="kHz" min="100000" reversed="false" step="50000" max="1200000"/>
+
+ <seekBar description="Overclock CPU Speed. To use OC you must set the Normal CPU speed to MAX '1.2Ghz' or this setting ignored! CPU Frequency steps by 100.000 kHz from 1.200.000 kMz to 1.600.000 kHz! ALERT! 1.5 GHz and 1.6 GHz can be unstable for your personal device! Try it and if the phone stuck (SOD), then your CPU will not work on such high frequency and you have to use a lower value! 1.6 Ghz is unstable on 85% of devices, try on your own risk (Default: 1.200.000 kHz)"
+ name="Max OC Frequency" action="genericfreq_oc /tmp/scaling_max_freq_oc" unit="kHz" min="1200000" reversed="false" step="100000" max="1600000"/>
+
+ <seekBar description="Minimum CPU-Speed. CPU Frequency step by 50000KHz are valid from 100.000 kHz to 1.200.000 kHz! (Default: 200.000 kHz)"
+ name="Min Frequency" action="genericfreq /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq" unit="kHz" min="100000" reversed="false" step="50000" max="1600000"/>
+
+ <seekBar description="When you touch the screen, CPU freq will jump UP to set value and go DOWN if no more to do, if CPU freq already above the value, then no change. (Default: 500.000 kHz)"
+ name="Max Touch Frequency" action="genericfreq /sys/devices/virtual/sec/sec_touchscreen/tsp_touch_freq" unit="kHz" min="100000" reversed="false" step="50000" max="800000"/>
+
+ <seekBar description="Minimum Frequency until second core will not be turned on, regardless of thresholds. (Default: 600.000 kHz)"
+ name="Min Frequency for 2-core" action="genericfreq /sys/module/stand_hotplug/parameters/freq_min"
+ unit="kHz" min="100000" reversed="false" step="50000" max="1200000"/>
+
+ <spinner description="This sets the smooth scaling level which prevents Ondemand based governors to jump directly to maximum frequency, with load spikes. This setting will only change the behavior of Ondemand, HYPER, Sleepy, Scary and PegasusQ governors."
+ name="Smooth Scaling Level" action="generickmem smooth_level 0 int">
+ <spinnerItem name="Disabled" value="0"/>
+ <spinnerItem name="1200 MHz" value="4"/>
+ <spinnerItem name="1000 MHz" value="8"/>
+ <spinnerItem name="800 MHz" value="12"/>
+ <spinnerItem name="500 MHz" value="18"/>
+ <spinnerItem name="450 MHz" value="19"/>
+ <spinnerItem name="400 MHz" value="20"/>
+ <spinnerItem name="350 MHz" value="21"/>
+ <spinnerItem name="300 MHz" value="22"/>
+ <spinnerItem name="250 MHz" value="23"/>
+ <spinnerItem name="200 MHz" value="24"/>
+ <spinnerItem name="150 MHz" value="25"/>
+ <spinnerItem name="100 MHz" value="26"/>
+ </spinner>
+
+ <seekBar description="The second core will be enabled when the load goes above this threshold. If threshold is set above 24, and you have 800MHz as MAX, second core will not turn ON! If you set MAX CPU frequency lower than 800MHz, second core will be DISABLED! (Default: 20)"
+ name="load_h0" action="generic /sys/module/stand_hotplug/parameters/load_h0" unit="%" min="5" reversed="false" step="1" max="30"/>
+
+ <seekBar description="Second core will be disabled when the load goes below this threshold. (Default: 20)"
+ name="load_l1" action="generic /sys/module/stand_hotplug/parameters/load_l1" unit="%" min="5" reversed="false" step="1" max="50"/>
+
+ <seekBar description="Default: 2"
+ name="min_rq" action="generic /sys/module/stand_hotplug/parameters/min_rq" unit="" min="0" reversed="false" step="1" max="2"/>
+
+ <seekBar description="Default: 20"
+ name="load_rq" action="generic /sys/module/stand_hotplug/parameters/load_rq" unit="%" min="5" reversed="false" step="1" max="35"/>
+
+ <seekBar description="Sets hot plug sampling intervals for screen-on state. (Default: 100)"
+ name="rate" action="generic /sys/module/stand_hotplug/parameters/rate" unit=" jiffies" min="100" reversed="false" step="100" max="1000"/>
+
+ </settingsPane>
+
+ <settingsPane description="These settings control CFS (Complete Fair Scheduler) Task Scheduler Settings" name="CFS Settings">
+
+ <checkbox description="Disabling GENTLE FAIR SLEEPERS may give you better UI responsiveness, so NOT checked is GOOD."
+ name="GENTLE FAIR SLEEPERS" action="schedfeat GENTLE_FAIR_SLEEPERS" label="GENTLE FAIR SLEEPERS"/>
+
+ <checkbox description="Using ARCH POWER enables the use of ARM topology power functions instead of generic ones, and saves battery. Not recommended to disable."
+ name="ARCH POWER" action="schedfeat ARCH_POWER" label="ARCH POWER"/>
+
+ </settingsPane>
+
+ <settingsPane description="Here you can set all the settings for power save!"
+ name="CPU Idle and Power Settings">
+
+ <spinner description="Sets the CPU Idle Mode. For best stability use Idle + LPA. (Default: AFTR + LPA)"
+ name="CPU Idle Mode" action="generic /sys/module/cpuidle_exynos4/parameters/enable_mask">
+ <spinnerItem name="AFTR + LPA" value="3"/>
+ <spinnerItem name="Idle + LPA" value="2"/>
+ <spinnerItem name="AFTR only" value="1"/>
+ <spinnerItem name="Idle only" value="0"/>
+ </spinner>
+
+ <spinner description="Sets the CPU Idle Mode (Sleep Mode). For best stability use Idle + LPA. (Default: AFTR only)"
+ name="CPU Idle Mode (Sleep Mode)" action="generic /tmp/enable_mask_sleep">
+ <spinnerItem name="AFTR + LPA" value="3"/>
+ <spinnerItem name="Idle + LPA" value="2"/>
+ <spinnerItem name="AFTR only" value="1"/>
+ <spinnerItem name="Idle only" value="0"/>
+ </spinner>
+
+ <seekBar description="Sets the sched_mc value which changes the CPU scheduler behavior for multi-core systems. 0 is Samsung kernel's default value which turns sched_mc off. Setting it to 1 means that the first core will be fully loaded before second core will start. Setting it to 2 will bias task wake-ups to semi-idle CPU package for power savings. (Default: 0)"
+ name="sched_mc" action="generic /sys/devices/system/cpu/sched_mc_power_savings" unit="" min="0" reversed="false" step="1" max="2"/>
+
+ <seekBar description="This is for CPU BUS-FREQ UP-FREQ-Scaling, based on CPU load. It sets the the load threshold on which BUS frequency will rise. (Default: 80%)"
+ name="busfreq_up_threshold" action="generic /sys/devices/system/cpu/cpufreq/busfreq_up_threshold"
+ unit="%" min="23" reversed="false" step="1" max="90"/>
+
+ <seekBar description="Maximum DEEP SLEEP CPU speed. Default is Linux Kernel default value: 600000kHz. Samsung's default value is 800000kHz. Setting this too low will stuck your device!"
+ name="scaling_max_suspend_freq" action="genericfreq /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_suspend_freq"
+ unit="kHz" min="100000" reversed="false" step="50000" max="1000000"/>
+
+ <seekBar description="Minimum DEEP SLEEP CPU speed. (Default: 200.000 kHz)"
+ name="scaling_min_suspend_freq" action="genericfreq /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_suspend_freq"
+ unit="kHz" min="100000" reversed="false" step="50000" max="1000000"/>
+
+ <seekBar description="Minimum STANDBY (music playing and screen off) CPU speed. If music still shutter, rise frequency to 300000kHz/400000kHz. (Default: 200.000 kHz)"
+ name="scaling_min_standby_freq" action="genericfreq /tmp/standby_freq"
+ unit="kHz" min="100000" reversed="false" step="50000" max="1000000"/>
+
+ <seekBar description="For developer debug only! You can add small delay to cortex wakeup/sleep script. This will delay all function changes and the wakeup! (Default: 0)"
+ name="Cortex Wakeup Delay" action="generic_cortex /tmp/wakeup_delay"
+ unit="Sec" min="0" reversed="false" step="1" max="5"/>
+
+ <seekBar description="Here you can change Cortex Wakeup Boost. It will give you full CPU power but only for the set time. After that time, all is set back to normal."
+ name="Cortex Wakeup Boost" action="generic_cortex /tmp/wakeup_boost"
+ unit="Sec" min="0" reversed="false" step="1" max="15"/>
+
+ </settingsPane>
+
+</settingsTab>
+
+<settingsTab name="CPU-VOLTAGE">
+
+ <settingsPane description="CPU Voltage Controls. Frequencies above 1200MHz are not allowed to be modified via STweaks. Voltage Range is 850~1350mV. Lower/higher is NOT SUPPORTED. All is done to prevent BUGS and SODS. USE this interface AT YOUR OWN RISK! If you get SOD before you can load this interface and can't fix your error, reset profiles from recovery. And think harder before you SOD your CPU with too much UV!" name="CPU Voltage Controls">
+
+ <checkbox description="Main switch for Voltage Control! If disabled, all below settings have no effect! If you are using an external application or script to configure CPU voltage, don't tick this checkbox. Don't start to mod voltage before you enable this switch! It will not make any effect and you will have to set all to default, and tune again!"
+ name="CPU Voltage Main Switch" action="generic_cortex /tmp/cpu_voltage_switch" label="CPU Voltage Main Switch"/>
+
+ <button description="Use this button to see what CPU Voltage is used right now!" name="Check Active CPU Voltage" action="push-actions/check_cpu_voltage" label="Check CPU Voltage"/>
+
+ <seekBar description="CPU Voltage for 1600 MHz. (Default: 1450 mV)"
+ name="CPU Voltage 1600 MHz" action="cpu-voltage 1" unit="mV" min="1300" reversed="false" step="25" max="1500"/>
+
+ <seekBar description="CPU Voltage for 1500 MHz. (Default: 1400 mV)"
+ name="CPU Voltage 1500 MHz" action="cpu-voltage 2" unit="mV" min="1300" reversed="false" step="25" max="1500"/>
+
+ <seekBar description="CPU Voltage for 1400 MHz. (Default: 1375 mV)"
+ name="CPU Voltage 1400 MHz" action="cpu-voltage 3" unit="mV" min="1275" reversed="false" step="25" max="1500"/>
+
+ <seekBar description="CPU Voltage for 1300 MHz. (Default: 1350 mV)"
+ name="CPU Voltage 1300 MHz" action="cpu-voltage 4" unit="mV" min="1275" reversed="false" step="25" max="1500"/>
+
+ <seekBar description="CPU Voltage for 1200 MHz. (Default: 1300 mV)"
+ name="CPU Voltage 1200 MHz" action="cpu-voltage 5" unit="mV" min="1225" reversed="false" step="25" max="1350"/>
+
+ <seekBar description="CPU Voltage for 1152 MHz. (Default: 1275 mV)"
+ name="CPU Voltage 1152 MHz" action="cpu-voltage 6" unit="mV" min="1175" reversed="false" step="25" max="1300"/>
+
+ <seekBar description="CPU Voltage for 1100 MHz. (Default: 1250 mV)"
+ name="CPU Voltage 1100 MHz" action="cpu-voltage 7" unit="mV" min="1175" reversed="false" step="25" max="1300"/>
+
+ <seekBar description="CPU Voltage for 1052 MHz. (Default: 1225 mV)"
+ name="CPU Voltage 1052 MHz" action="cpu-voltage 8" unit="mV" min="1125" reversed="false" step="25" max="1250"/>
+
+ <seekBar description="CPU Voltage for 1000 MHz. (Default: 1200 mV)"
+ name="CPU Voltage 1000 MHz" action="cpu-voltage 9" unit="mV" min="1125" reversed="false" step="25" max="1250"/>
+
+ <seekBar description="CPU Voltage for 952 MHz. (Default: 1150 mV)"
+ name="CPU Voltage 952 MHz" action="cpu-voltage 10" unit="mV" min="1050" reversed="false" step="25" max="1175"/>
+
+ <seekBar description="CPU Voltage for 900 MHz. (Default: 1125 mV)"
+ name="CPU Voltage 900 MHz" action="cpu-voltage 11" unit="mV" min="1050" reversed="false" step="25" max="1175"/>
+
+ <seekBar description="CPU Voltage for 852 MHz. (Default: 1100 mV)"
+ name="CPU Voltage 852 MHz" action="cpu-voltage 12" unit="mV" min="1000" reversed="false" step="25" max="1125"/>
+
+ <seekBar description="CPU Voltage for 800 MHz. (Default: 1075 mV)"
+ name="CPU Voltage 800 MHz" action="cpu-voltage 13" unit="mV" min="1000" reversed="false" step="25" max="1125"/>
+
+ <seekBar description="CPU Voltage for 750 MHz. (Default: 1050 mV)"
+ name="CPU Voltage 750 MHz" action="cpu-voltage 14" unit="mV" min="950" reversed="false" step="25" max="1075"/>
+
+ <seekBar description="CPU Voltage for 700 MHz. (Default: 1025 mV)"
+ name="CPU Voltage 700MHz" action="cpu-voltage 15" unit="mV" min="950" reversed="false" step="25" max="1075"/>
+
+ <seekBar description="CPU Voltage for 650 MHz. (Default: 1000 mV)"
+ name="CPU Voltage 650 MHz" action="cpu-voltage 16" unit="mV" min="925" reversed="false" step="25" max="1050"/>
+
+ <seekBar description="CPU Voltage for 600 MHz. (Default: 1000 mV)"
+ name="CPU Voltage 600 MHz" action="cpu-voltage 17" unit="mV" min="925" reversed="false" step="25" max="1050"/>
+
+ <seekBar description="CPU Voltage for 550 MHz. (Default: 975 mV)"
+ name="CPU Voltage 550 MHz" action="cpu-voltage 18" unit="mV" min="900" reversed="false" step="25" max="1025"/>
+
+ <seekBar description="CPU Voltage for 500 MHz. (Default: 975 mV)"
+ name="CPU Voltage 500 MHz" action="cpu-voltage 19" unit="mV" min="900" reversed="false" step="25" max="1025"/>
+
+ <seekBar description="CPU Voltage for 450 MHz. (Default: 975 mV)"
+ name="CPU Voltage 450 MHz" action="cpu-voltage 20" unit="mV" min="900" reversed="false" step="25" max="1025"/>
+
+ <seekBar description="CPU Voltage for 400 MHz. (Default: 975 mV)"
+ name="CPU Voltage 400 MHz" action="cpu-voltage 21" unit="mV" min="900" reversed="false" step="25" max="1025"/>
+
+ <seekBar description="CPU Voltage for 350 MHz. (Default: 975 mV)"
+ name="CPU Voltage 350 MHz" action="cpu-voltage 22" unit="mV" min="900" reversed="false" step="25" max="1025"/>
+
+ <seekBar description="CPU Voltage for 300 MHz. (Default: 975 mV)"
+ name="CPU Voltage 300 MHz" action="cpu-voltage 23" unit="mV" min="900" reversed="false" step="25" max="1025"/>
+
+ <seekBar description="CPU Voltage for 250 MHz. (Default: 950 mV)"
+ name="CPU Voltage 250 MHz" action="cpu-voltage 24" unit="mV" min="875" reversed="false" step="25" max="1000"/>
+
+ <seekBar description="CPU Voltage for 200 MHz. (Default: 950 mV)"
+ name="CPU Voltage 200 MHz" action="cpu-voltage 25" unit="mV" min="875" reversed="false" step="25" max="1000"/>
+
+ <seekBar description="CPU Voltage for 150 MHz. (Default: 925 mV)"
+ name="CPU Voltage 150 MHz" action="cpu-voltage 26" unit="mV" min="850" reversed="false" step="25" max="975"/>
+
+ <seekBar description="CPU Voltage for 100 MHz. (Default: 925 mV)"
+ name="CPU Voltage 100 MHz" action="cpu-voltage 27" unit="mV" min="850" reversed="false" step="25" max="975"/>
+
+ </settingsPane>
+
+</settingsTab>
+
+<settingsTab name="CPU-TUNING (AWAKE)">
+
+ <settingsPane description="Here you can manage advanced governor settings. If cortexbrain 'background-process' and 'CPU' are enabled. These settings are only active if the screen is on."
+ name="Governor Parameters tuning">
+
+ <spinner description="This will set the AWAKE (screen ON) CPU governor. Default CPU governor will only be set during early stages of booting (before init.d execution), and can be overridden by any other scripts or applications."
+ name="Default CPU Governor" action="generic /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor">
+ <spinnerItem name="conservative" value="conservative"/>
+ <spinnerItem name="HYPER" value="HYPER"/>
+ <spinnerItem name="intellidemand" value="intellidemand"/>
+ <spinnerItem name="lulzactiveq" value="lulzactiveq"/>
+ <spinnerItem name="nightmare" value="nightmare"/>
+ <spinnerItem name="ondemand" value="ondemand"/>
+ <spinnerItem name="pegasusq" value="pegasusq"/>
+ <spinnerItem name="Scary" value="Scary"/>
+ <spinnerItem name="sleepy" value="sleepy"/>
+ </spinner>
+
+ <!--spinner description="Sets the number of CPUs to be used in hot plugging. (only for PegasusQ, LuLzActiveQ)"
+ name="Hotplug CPU Lock" action="generic_cortex /tmp/hotplug_lock">
+ <spinnerItem name="Dual core mode" value="2"/>
+ <spinnerItem name="Single core mode" value="1"/>
+ <spinnerItem name="Auto" value="0"/>
+ </spinner-->
+
+ <button description="Use this button to push all new changes to GOV core in real time! the sleep tuning will be auto added on screen off, to screen off gov." name="GOV Policy Install" action="push-actions/cpu_tuning_update" label="Push CPU Tuning To GOV Core"/>
+
+ </settingsPane>
+
+ <settingsPane description="Global Govs Configuration, see descriptions" name="GLOBAL GOV CONFIGURATON">
+
+ <seekBar description="Measured as percentage, when load on CPU is equal to above up threshold, CPU is scaled Up. Lower value - early scale up, and vice-verse. (Only for HYPER, Ondemand, Intellimand, PegasusQ, Conservative, Scary, Sleepy) (default is 75)"
+ name="up_threshold" action="generic_cortex /tmp/up_threshold" unit="%" min="1" reversed="false" step="1" max="100"/>
+
+ <seekBar description="Measured in uS and actual meaning being Sampling Interval, this factor determines how often the governor should poll for CPU usage in terms of frequency and load percentage to make scaling decisions - either scale CPU Up or scale it Down. (Only for HYPER, OnDemand, Intellimand, PegasusQ, Conservative, Scary, Sleepy) (default is 60000)"
+ name="sampling_rate" action="generic_cortex /tmp/sampling_rate" unit=" uS" min="1000" reversed="false" step="1000" max="120000"/>
+
+ <seekBar description="Acts as a multiplier for sampling interval for re-evaluating the load when CPU is truly busy and is on highest clock frequency (policy max). Setting to 1 makes no difference and causes CPU to immediately scale down from highest frequency. Sampling down factor is NOT valid for lower frequencies and low load conditions. Note that CPU is scaled up to max frequency when max_load_freq is greater than up_threshold*current frequency. (or to cur_freq + (freq_step * policy.max_freq) whichever is smaller) Max_load_freq is an arbitrary frequency calculated as the maximum of load_frequencies. (Only for HYPER, Ondemand, Intellimand, PegasusQ, Conservartive, Nightmare, Scary, Sleepy) (default is 5)"
+ name="sampling_down_factor" action="generic_cortex /tmp/sampling_down_factor" unit=" int" min="1" reversed="false" step="1" max="10"/>
+
+ <seekBar description="Defines how much as a percentage of maximum frequency, governor should increase CPU frequency each time CPU load reaches up_threshold or inc_cpu_load. (Only for HYPER, Ondemand, PegasusQ, Nightmare, Conservative, Scary) (default is 30)"
+ name="freq_step" action="generic_cortex /tmp/freq_step" unit="%" min="0" reversed="false" step="1" max="100"/>
+
+ <seekBar description="After spending sampling_down_factor*sampling_rate micro seconds at maximum frequency on high load, governor samples the load again to calculate an approx target frequency to scale-down-to which should not trigger up_threshold in the next sample. (Triggering up threshold may cause jumping to max frequency again). Max_load_freq is checked against (up_threshold - down_differential) * current frequency. If found to be smaller, CPU is scaled down to a target frequency as described above. Down_differential also act as the factor to prevent aggressive scale down. (Only for HYPER, Ondemand, Intellimand, PegasusQ, Sleepy) (default is 5)"
+ name="down_differential" action="generic_cortex /tmp/down_differential" unit=" int" min="1" reversed="false" step="1" max="80"/>
+
+ <seekBar description="Until freq_for_responsiveness, Up Threshold considered for sampling load is up_threshold_at_min_freq. Also during the part where CPU is at maximum load frequency, governor need to find the optimal frequency as the next frequency - which should not trigger up_threshold in the next sampling. When such a frequency_next is found to be a) less than freq_for_responsiveness b) will not trigger down_threshold in the next sample, then the optimal frequency is set to freq_for_responsiveness. (Only for HYPER, PegasusQ, Nightmare) (default is 400000)"
+ name="freq_for_responsiveness" action="genericfreq /tmp/freq_for_responsiveness" unit="kHz" min="100000" reversed="false" step="50000" max="1200000"/>
+
+ <seekBar description="The frequency at which governor scales CPU up. Load >= inc_cpu_load: cpu scaled up. (Only for lulzActiveQ, Nightmare) (default is 70)"
+ name="inc_cpu_load" action="generic_cortex /tmp/inc_cpu_load" unit="%" min="10" reversed="false" step="1" max="100"/>
+
+ <seekBar description="The frequency at which governor scales CPU down. Load less than inc_cpu_load: cpu scaled down. (Only for lulzActiveQ, Nightmare) (default is 50)"
+ name="dec_cpu_load" action="generic_cortex /tmp/dec_cpu_load" unit="%" min="10" reversed="false" step="1" max="100"/>
+
+ <seekBar description="No of samples to evaluate load to scale CPU Up. After cpu_up_rate samples are finished for a frequency, CPU scale-Up logic is executed. In other words - before scaling Up, cpu_up_rate*up_sample_time micro seconds are spend at a frequency. (Only for lulzActiveQ, PegasusQ) (default is 10)"
+ name="cpu_up_rate" action="generic_cortex /tmp/cpu_up_rate" unit="%" min="1" reversed="false" step="1" max="100"/>
+
+ <seekBar description="No of samples to evaluate load to scale CPU Down. After CPU_down_rate samples are finished for a frequency, CPU scale-Down logic is executed. In other words - before scaling Down, cpu_down_rate*down_sample_time micro seconds are spend at a frequency. (Only for lulzActiveQ, PegasusQ) (default is 20)"
+ name="cpu_down_rate" action="generic_cortex /tmp/cpu_down_rate" unit="%" min="1" reversed="false" step="1" max="100"/>
+
+ <seekBar description="This is same as the 'up_threshold' found for the Ondemand governor but for the opposite direction. For example when set to its default value of 30 it means that if the CPU usage needs to be below 30% between samples to have the frequency decreased. (Only for Conservative, Scary) (default is 40)"
+ name="down_threshold" action="generic_cortex /tmp/down_threshold" unit="%" min="1" reversed="false" step="1" max="100"/>
+
+ </settingsPane>
+
+ <settingsPane description="Nightmare Gov Configuration, see descriptions" name="NIGHTMARE GOV CONFIGURATON">
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 150)"
+ name="check_rate" action="generic_cortex /tmp/check_rate" unit="%" min="0" reversed="false" step="25" max="600"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 600)"
+ name="check_rate_cpuon" action="generic_cortex /tmp/check_rate_cpuon" unit="%" min="0" reversed="false" step="100" max="3000"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 800000)"
+ name="freq_cpu1on" action="generic_cortex /tmp/freq_cpu1on" unit="mHz" min="100000" reversed="false" step="100000" max="1500000"/>
+
+ <seekBar description="Defines how much as a percentage of maximum frequency, governor should decrease CPU frequency each time CPU load reaches dec_cpu_load. (Only for Nightmare) (default is 10)"
+ name="freq_step_dec" action="generic_cortex /tmp/freq_step_dec" unit="%" min="0" reversed="false" step="1" max="100"/>
+
+ <seekBar description="Brake scale up frequency when load >= inc_cpu_load. (Only for Nightmare) (default is 5)"
+ name="freq_up_brake" action="generic_cortex /tmp/freq_up_brake" unit="step" min="0" reversed="false" step="1" max="100"/>
+
+ <seekBar description="Enable/Disable HotPlug (Only for Nightmare) (default is 1)"
+ name="hotplug_on" action="generic_cortex /tmp/hotplug_on" unit="step" min="0" reversed="false" step="1" max="1"/>
+
+ <seekBar description="This threshold is used as up threshold while sampling at frequencies less than freq_for_responsiveness. Above that, normal inc_cpu_load is used. This gives us an option to make scaling aggressive/relaxed until a frequency and normal for higher frequencies. Again, during calculation of optimal frequency which should not trigger up policy, down threshold to consider is difference between inc_cpu_load_at_min_freq and freq_up_brake. (Only for Nightmare) (default is 60)"
+ name="inc_cpu_load_at_min_freq" action="generic_cortex /tmp/inc_cpu_load_at_min_freq" unit="%" min="1" reversed="false" step="1" max="100"/>
+
+ <seekBar description="Enable/Disable Secondary CPU (Only for Nightmare) (default is 1)"
+ name="second_core_on" action="generic_cortex /tmp/second_core_on" unit="step" min="0" reversed="false" step="1" max="1"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 20)"
+ name="trans_load_h0" action="generic_cortex /tmp/trans_load_h0" unit=" int" min="1" reversed="false" step="1" max="100"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 20)"
+ name="trans_load_h1" action="generic_cortex /tmp/trans_load_h1" unit=" int" min="1" reversed="false" step="1" max="100"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 20)"
+ name="trans_load_l1" action="generic_cortex /tmp/trans_load_l1" unit=" int" min="1" reversed="false" step="1" max="100"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 20)"
+ name="trans_load_rq" action="generic_cortex /tmp/trans_load_rq" unit=" int" min="0" reversed="false" step="1" max="50"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 2)"
+ name="trans_rq" action="generic_cortex /tmp/trans_rq" unit=" int" min="0" reversed="false" step="1" max="10"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 0)"
+ name="user_lock" action="generic_cortex /tmp/user_lock" unit=" int" min="0" reversed="false" step="1" max="1"/>
+
+ </settingsPane>
+
+ <settingsPane description="Pegasusq Gov Configuration, see descriptions" name="PEGASUSQ GOV CONFIGURATON">
+
+ <seekBar description="This threshold is used as up threshold while sampling at frequencies less than freq_for_responsiveness. Above that, normal up_threshold is used. This gives us an option to make scaling aggressive/relaxed until a frequency and normal for higher frequencies. Again, during calculation of optimal frequency which should not trigger up policy, down threshold to consider is difference between up_threshold_at_min_freq and down_differential. (Only for PegasusQ) (default is 40)"
+ name="up_threshold_at_min_freq" action="generic_cortex /tmp/up_threshold_at_min_freq" unit="%" min="1" reversed="false" step="1" max="100"/>
+
+ </settingsPane>
+
+ <settingsPane description="LulzActiveQ Gov Configuration, see descriptions" name="LULZACTIVEQ GOV CONFIGURATON">
+
+ <!--seekBar description="Sets hot plug sampling intervals for screen-on state when the second core is on. (Only for lulzActiveQ) (default is 40000)"
+ name="hotplug_sampling_rate" action="generic_cortex /tmp/hotplug_sampling_rate" unit=" uS" min="0" reversed="false" step="1000" max="120000"/-->
+
+ <seekBar description="Sampling time to scale cpu up. (Only for lulzActiveQ) (default is 40000)"
+ name="up_sample_time" action="generic_cortex /tmp/up_sample_time" unit=" uS" min="1000" reversed="false" step="1000" max="120000"/>
+
+ <seekBar description="Sampling time to scale cpu down. (Only for lulzActiveQ) (default is 20000)"
+ name="down_sample_time" action="generic_cortex /tmp/down_sample_time" unit=" uS" min="1000" reversed="false" step="1000" max="120000"/>
+
+ <seekBar description="No of scale up steps when load >= inc_cpu_load. (Only for lulzActiveQ) (default is 2)"
+ name="pump_up_step" action="generic_cortex /tmp/pump_up_step" unit="step" min="0" reversed="false" step="1" max="16"/>
+
+ <seekBar description="No of scale down steps when load less than dec_cpu_load. (Only for lulzActiveQ) (default is 1)"
+ name="pump_down_step" action="generic_cortex /tmp/pump_down_step" unit="step" min="0" reversed="false" step="1" max="16"/>
+
+ <seekBar description="Steps in frequency table to be used when screen-off. Example: If available freqs are 1600 1400 1200 1000 800 500 200 100 (L0 to L7) and screen_off_min_step=5 then 100,200 and 500 (L5 to L7) will be used during screen-off depending on the demand. (Only for lulzActiveQ) (default is 11)"
+ name="screen_off_min_step" action="generic_cortex /tmp/screen_off_min_step" unit="step" min="1" reversed="false" step="1" max="30"/>
+
+ <seekBar description="lulzActiveQ: Input boost will automatically jump the phone to the hispeed_freq when you touch the screen to help prevent lag. (Only for lulzActiveQ) (default is 1200000)"
+ name="hispeed_freq" action="genericfreq /tmp/hispeed_freq" unit="kHz" min="100000" reversed="false" step="50000" max="1200000"/>
+
+ </settingsPane>
+
+ <!--settingsPane description="HotPlug CPU Configuration, see descriptions" name="HOTPLUG GOV CONFIGURATON">
+
+ <seekBar description="Up threshold frequency to turn second core On, when some other conditions is also met. ie If (minimum frequency greater than or equal to hotplug_freq 1 1 and run queue length is greater than hotplug_rq_1_1) Hot plug IN Second Core. Higher value corresponds to delay in turning on second core. (Only for lulzActiveQ, PegasusQ) (default is 500000)"
+ name="hotplug_freq_1_1" action="genericfreq /tmp/hotplug_freq_1_1" unit="kHz" min="100000" reversed="false" step="50000" max="1200000"/>
+
+ <seekBar description="Down threshold frequency to turn second core Off, when some other conditions is also met. ie If (maximum frequency less than hotplug_freq 2 0 and run queue length is less than or equal to hotplug_rq_2_0) Hot plug OUT Second Core. Lower value corresponds to delay in turning off second core. (Only for lulzActiveQ, PegasusQ) (default is 200000)"
+ name="hotplug_freq_2_0" action="genericfreq /tmp/hotplug_freq_2_0" unit="kHz" min="100000" reversed="false" step="50000" max="1200000"/>
+
+ <seekBar description="Threshold run queue length for second core to turn on. (Only for lulzActiveQ, PegasusQ) (default is 100)"
+ name="hotplug_rq_1_1" action="generic_cortex /tmp/hotplug_rq_1_1" unit=" queue length" min="100" reversed="false" step="10" max="600"/>
+
+ <seekBar description="Threshold run queue length for second core to turn off. (Only for lulzActiveQ, PegasusQ) (default is 100)"
+ name="hotplug_rq_2_0" action="generic_cortex /tmp/hotplug_rq_2_0" unit=" queue length" min="100" reversed="false" step="10" max="600"/>
+
+ </settingsPane-->
+
+</settingsTab>
+
+<settingsTab name="CPU-TUNING (SLEEP)">
+
+ <settingsPane description="Here you can manage advanced governor settings. If cortexbrain 'background-process' and 'CPU' are enabled. These settings are only active if the screen is off."
+ name="Governor Parameters tuning">
+
+ <spinner description="This will set the DEEP SLEEP (screen off) CPU governor. Depends on cortex background process to be enabled."
+ name="Deep-Sleep! CPU Governor" action="generic_cortex /tmp/deep_sleep">
+ <spinnerItem name="conservative" value="conservative"/>
+ <spinnerItem name="HYPER" value="HYPER"/>
+ <spinnerItem name="intellidemand" value="intellidemand"/>
+ <spinnerItem name="lulzactiveq" value="lulzactiveq"/>
+ <spinnerItem name="nightmare" value="nightmare"/>
+ <spinnerItem name="ondemand" value="ondemand"/>
+ <spinnerItem name="pegasusq" value="pegasusq"/>
+ <spinnerItem name="Scary" value="Scary"/>
+ <spinnerItem name="sleepy" value="sleepy"/>
+ </spinner>
+
+ <!--spinner description="Sets the number of CPUs to be used in hot plugging. (only for PegasusQ, LuLzActiveQ, Nightmare)"
+ name="Hotplug CPU Lock Sleep Mode" action="generic_cortex /tmp/hotplug_lock_sleep">
+ <spinnerItem name="Dual core mode" value="2"/>
+ <spinnerItem name="Single core mode" value="1"/>
+ <spinnerItem name="Auto" value="0"/>
+ </spinner-->
+
+ </settingsPane>
+
+ <settingsPane description="Global Govs Configuration, see descriptions" name="GLOBAL GOV CONFIGURATON">
+
+ <seekBar description="Measured as percentage, when load on CPU is equal to above up threshold, CPU is scaled Up. Lower value - early scale up, and vice-verse. (Only for HYPER, Ondemand, Intellimand, PegasusQ, Conservative, Scary, Sleepy) (default is 75)"
+ name="up_threshold_sleep" action="generic_cortex /tmp/up_threshold_sleep" unit="%" min="1" reversed="false" step="1" max="100"/>
+
+ <seekBar description="Measured in uS and actual meaning being Sampling Interval, this factor determines how often the governor should poll for CPU usage in terms of frequency and load percentage to make scaling decisions - either scale CPU Up or scale it Down. (Only for HYPER, OnDemand, Intellimand, PegasusQ, Conservative, Scary, Sleepy) (default is 60000)"
+ name="sampling_rate_sleep" action="generic_cortex /tmp/sampling_rate_sleep" unit=" uS" min="1000" reversed="false" step="1000" max="120000"/>
+
+ <seekBar description="Acts as a multiplier for sampling interval for re-evaluating the load when CPU is truly busy and is on highest clock frequency (policy max). Setting to 1 makes no difference and causes CPU to immediately scale down from highest frequency. Sampling down factor is NOT valid for lower frequencies and low load conditions. Note that CPU is scaled up to max frequency when max_load_freq is greater than up_threshold*current frequency. (or to cur_freq + (freq_step * policy.max_freq) whichever is smaller) Max_load_freq is an arbitrary frequency calculated as the maximum of load_frequencies. (Only for HYPER, Ondemand, Intellimand, PegasusQ, Conservartive, Nightmare, Scary, Sleepy) (default is 1)"
+ name="sampling_down_factor_sleep" action="generic_cortex /tmp/sampling_down_factor_sleep" unit=" int" min="1" reversed="false" step="1" max="10"/>
+
+ <seekBar description="Defines how much as a percentage of maximum frequency, governor should increase CPU frequency each time CPU load reaches up_threshold or inc_cpu_load. (Only for HYPER, Ondemand, PegasusQ, Nightmare, Conservative, Scary) (default is 30)"
+ name="freq_step_sleep" action="generic_cortex /tmp/freq_step_sleep" unit="%" min="0" reversed="false" step="1" max="100"/>
+
+ <seekBar description="After spending sampling_down_factor*sampling_rate micro seconds at maximum frequency on high load, governor samples the load again to calculate an approx target frequency to scale-down-to which should not trigger up_threshold in the next sample. (Triggering up threshold may cause jumping to max frequency again). Max_load_freq is checked against (up_threshold - down_differential) * current frequency. If found to be smaller, CPU is scaled down to a target frequency as described above. Down_differential also act as the factor to prevent aggressive scale down. (Only for HYPER, Ondemand, Intellimand, PegasusQ, Sleepy) (default is 5)"
+ name="down_differential_sleep" action="generic_cortex /tmp/down_differential_sleep" unit=" int" min="1" reversed="false" step="1" max="80"/>
+
+ <seekBar description="Until freq_for_responsiveness, Up Threshold considered for sampling load is up_threshold_at_min_freq. Also during the part where CPU is at maximum load frequency, governor need to find the optimal frequency as the next frequency - which should not trigger up_threshold in the next sampling. When such a frequency_next is found to be a) less than freq_for_responsiveness b) will not trigger down_threshold in the next sample, then the optimal frequency is set to freq_for_responsiveness. (Only for HYPER, PegasusQ, Nightmare) (default is 400000)"
+ name="freq_for_responsiveness_sleep" action="genericfreq /tmp/freq_for_responsiveness_sleep" unit="kHz" min="100000" reversed="false" step="50000" max="1200000"/>
+
+ <seekBar description="The frequency at which governor scales CPU up. Load >= inc_cpu_load: cpu scaled up. (Only for lulzActiveQ, Nightmare) (default is 80)"
+ name="inc_cpu_load_sleep" action="generic_cortex /tmp/inc_cpu_load_sleep" unit="%" min="10" reversed="false" step="1" max="100"/>
+
+ <seekBar description="The frequency at which governor scales CPU down. Load less than inc_cpu_load: cpu scaled down. (Only for lulzActiveQ, Nightmare) (default is 60)"
+ name="dec_cpu_load_sleep" action="generic_cortex /tmp/dec_cpu_load_sleep" unit="%" min="10" reversed="false" step="1" max="100"/>
+
+ <seekBar description="No of samples to evaluate load to scale CPU Up. After cpu_up_rate samples are finished for a frequency, CPU scale-Up logic is executed. In other words - before scaling Up, cpu_up_rate*up_sample_time micro seconds are spend at a frequency. (Only for lulzActiveQ, PegasusQ) (default is 10)"
+ name="cpu_up_rate_sleep" action="generic_cortex /tmp/cpu_up_rate_sleep" unit="%" min="1" reversed="false" step="1" max="100"/>
+
+ <seekBar description="No of samples to evaluate load to scale CPU Down. After CPU_down_rate samples are finished for a frequency, CPU scale-Down logic is executed. In other words - before scaling Down, cpu_down_rate*down_sample_time micro seconds are spend at a frequency. (Only for lulzActiveQ, PegasusQ) (default is 20)"
+ name="cpu_down_rate_sleep" action="generic_cortex /tmp/cpu_down_rate_sleep" unit="%" min="1" reversed="false" step="1" max="100"/>
+
+ <seekBar description="This is same as the 'up_threshold' found for the Ondemand governor but for the opposite direction. For example when set to its default value of 30 it means that if the CPU usage needs to be below 30% between samples to have the frequency decreased. (Only for Conservative, Scary) (default is 40)"
+ name="down_threshold_sleep" action="generic_cortex /tmp/down_threshold_sleep" unit="%" min="1" reversed="false" step="1" max="100"/>
+
+ </settingsPane>
+
+ <settingsPane description="Nightmare Gov Configuration, see descriptions" name="NIGHTMARE GOV CONFIGURATON">
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 150)"
+ name="check_rate_sleep" action="generic_cortex /tmp/check_rate_sleep" unit="%" min="0" reversed="false" step="25" max="600"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 600)"
+ name="check_rate_cpuon_sleep" action="generic_cortex /tmp/check_rate_cpuon_sleep" unit="%" min="0" reversed="false" step="100" max="1000"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 2400)"
+ name="check_rate_scroff" action="generic_cortex /tmp/check_rate_scroff" unit="%" min="0" reversed="false" step="100" max="3000"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 800000)"
+ name="freq_cpu1on_sleep" action="generic_cortex /tmp/freq_cpu1on_sleep" unit="mHz" min="100000" reversed="false" step="100000" max="1500000"/>
+
+ <seekBar description="Defines how much as a percentage of maximum frequency, governor should decrease CPU frequency each time CPU load reaches dec_cpu_load. (Only for Nightmare) (default is 20)"
+ name="freq_step_dec_sleep" action="generic_cortex /tmp/freq_step_dec_sleep" unit="%" min="0" reversed="false" step="1" max="100"/>
+
+ <seekBar description="Brake scale up frequency when load >= inc_cpu_load. (Only for Nightmare) (default is 5)"
+ name="freq_up_brake_sleep" action="generic_cortex /tmp/freq_up_brake_sleep" unit="step" min="0" reversed="false" step="1" max="100"/>
+
+ <seekBar description="Enable/Disable HotPlug (Only for Nightmare) (default is 1)"
+ name="hotplug_on_sleep" action="generic_cortex /tmp/hotplug_on_sleep" unit="step" min="0" reversed="false" step="1" max="1"/>
+
+ <seekBar description="This threshold is used as up threshold while sampling at frequencies less than freq_for_responsiveness. Above that, normal inc_cpu_load is used. This gives us an option to make scaling aggressive/relaxed until a frequency and normal for higher frequencies. Again, during calculation of optimal frequency which should not trigger up policy, down threshold to consider is difference between inc_cpu_load_at_min_freq and freq_up_brake. (Only for Nightmare) (default is 40)"
+ name="inc_cpu_load_at_min_freq_sleep" action="generic_cortex /tmp/inc_cpu_load_at_min_freq_sleep" unit="%" min="1" reversed="false" step="1" max="100"/>
+
+ <seekBar description="Enable/Disable Secondary CPU (Only for Nightmare) (default is 1)"
+ name="second_core_on_sleep" action="generic_cortex /tmp/second_core_on_sleep" unit="step" min="0" reversed="false" step="1" max="1"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 20)"
+ name="trans_load_h0_scroff" action="generic_cortex /tmp/trans_load_h0_scroff" unit=" int" min="1" reversed="false" step="1" max="100"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 100)"
+ name="trans_load_h1_scroff" action="generic_cortex /tmp/trans_load_h1_scroff" unit=" int" min="1" reversed="false" step="1" max="100"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 20)"
+ name="trans_load_l1_scroff" action="generic_cortex /tmp/trans_load_l1_scroff" unit=" int" min="1" reversed="false" step="1" max="100"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 10)"
+ name="trans_load_rq_sleep" action="generic_cortex /tmp/trans_load_rq_sleep" unit=" int" min="0" reversed="false" step="1" max="20"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 2)"
+ name="trans_rq_sleep" action="generic_cortex /tmp/trans_rq_sleep" unit=" int" min="0" reversed="false" step="1" max="10"/>
+
+ <seekBar description="Description will be added by Alucard soon. (Only for Nightmare) (default is 0)"
+ name="user_lock_sleep" action="generic_cortex /tmp/user_lock_sleep" unit=" int" min="0" reversed="false" step="1" max="2"/>
+
+ </settingsPane>
+
+ <settingsPane description="Pegasusq Gov Configuration, see descriptions" name="PEGASUSQ GOV CONFIGURATON">
+
+ <seekBar description="This threshold is used as up threshold while sampling at frequencies less than freq_for_responsiveness. Above that, normal up_threshold is used. This gives us an option to make scaling aggressive/relaxed until a frequency and normal for higher frequencies. Again, during calculation of optimal frequency which should not trigger up policy, down threshold to consider is difference between up_threshold_at_min_freq and down_differential. (Only for PegasusQ) (default is 40)"
+ name="up_threshold_at_min_freq_sleep" action="generic_cortex /tmp/up_threshold_at_min_freq_sleep" unit="%" min="1" reversed="false" step="1" max="100"/>
+
+ </settingsPane>
+
+ <settingsPane description="LulzActiveQ Gov Configuration, see descriptions" name="LULZACTIVEQ GOV CONFIGURATON">
+
+ <!--seekBar description="Sets hot plug sampling intervals for screen-on state when the second core is on. (Only for lulzActiveQ) (default is 40000)"
+ name="hotplug_sampling_rate_sleep" action="generic_cortex /tmp/hotplug_sampling_rate_sleep" unit=" uS" min="0" reversed="false" step="1000" max="120000"/-->
+
+ <seekBar description="Sampling time to scale cpu up. (Only for lulzActiveQ) (default is 40000)"
+ name="up_sample_time_sleep" action="generic_cortex /tmp/up_sample_time_sleep" unit=" uS" min="1000" reversed="false" step="1000" max="120000"/>
+
+ <seekBar description="Sampling time to scale cpu down. (Only for lulzActiveQ) (default is 20000)"
+ name="down_sample_time_sleep" action="generic_cortex /tmp/down_sample_time_sleep" unit=" uS" min="1000" reversed="false" step="1000" max="120000"/>
+
+ <seekBar description="No of scale up steps when load >= inc_cpu_load. (Only for lulzActiveQ) (default is 2)"
+ name="pump_up_step_sleep" action="generic_cortex /tmp/pump_up_step_sleep" unit="step" min="0" reversed="false" step="1" max="16"/>
+
+ <seekBar description="No of scale down steps when load less than dec_cpu_load. (Only for lulzActiveQ) (default is 1)"
+ name="pump_down_step_sleep" action="generic_cortex /tmp/pump_down_step_sleep" unit="step" min="0" reversed="false" step="1" max="16"/>
+
+ <seekBar description="Steps in frequency table to be used when screen-off. Example: If available freqs are 1600 1400 1200 1000 800 500 200 100 (L0 to L7) and screen_off_min_step=5 then 100,200 and 500 (L5 to L7) will be used during screen-off depending on the demand. (Only for lulzActiveQ) (default is 11)"
+ name="screen_off_min_step_sleep" action="generic_cortex /tmp/screen_off_min_step_sleep" unit="step" min="1" reversed="false" step="1" max="30"/>
+
+ <seekBar description="lulzActiveQ: Input boost will automatically jump the phone to the hispeed_freq when you touch the screen to help prevent lag. (Only for lulzActiveQ) (default is 1200000)"
+ name="hispeed_freq_sleep" action="genericfreq /tmp/hispeed_freq_sleep" unit="kHz" min="100000" reversed="false" step="50000" max="1200000"/>
+
+ </settingsPane>
+
+ <!--settingsPane description="HotPlug CPU Configuration, see descriptions" name="HOTPLUG GOV CONFIGURATON">
+
+ <seekBar description="Up threshold frequency to turn second core On, when some other conditions is also met. ie If (minimum frequency greater than or equal to hotplug_freq 1 1 and run queue length is greater than hotplug_rq_1_1) Hot plug IN Second Core. Higher value corresponds to delay in turning on second core. (Only for lulzActiveQ, PegasusQ) (default is 500000)"
+ name="hotplug_freq_1_1_sleep" action="genericfreq /tmp/hotplug_freq_1_1_sleep" unit="kHz" min="100000" reversed="false" step="50000" max="1200000"/>
+
+ <seekBar description="Down threshold frequency to turn second core Off, when some other conditions is also met. ie If (maximum frequency less than hotplug_freq 2 0 and run queue length is less than or equal to hotplug_rq_2_0) Hot plug OUT Second Core. Lower value corresponds to delay in turning off second core. (Only for lulzActiveQ, PegasusQ) (default is 200000)"
+ name="hotplug_freq_2_0_sleep" action="genericfreq /tmp/hotplug_freq_2_0_sleep" unit="kHz" min="100000" reversed="false" step="50000" max="1200000"/>
+
+ <seekBar description="Threshold run queue length for second core to turn on. (Only for lulzActiveQ, PegasusQ) (default is 100)"
+ name="hotplug_rq_1_1_sleep" action="generic_cortex /tmp/hotplug_rq_1_1_sleep" unit=" queue length" min="100" reversed="false" step="10" max="600"/>
+
+ <seekBar description="Threshold run queue length for second core to turn off. (Only for lulzActiveQ, PegasusQ) (default is 100)"
+ name="hotplug_rq_2_0_sleep" action="generic_cortex /tmp/hotplug_rq_2_0_sleep" unit=" queue length" min="100" reversed="false" step="10" max="600"/>
+
+ </settingsPane-->
+
+</settingsTab>
+
+<settingsTab name="I/O">
+
+ <settingsPane description="Here you can tune I/O settings managed by Kernel" name="I/O Tuning">
+
+ <spinner description="Maximum number of kilobytes to read-ahead for file systems on this block device. Maybe get better read-performance with higher value, but you will probably need to experiment and benchmark (e.g. with SD Tools-App) to find the best value for your sd-card / system and maybe you will have a higher overhead (less memory) with a higher value. Works only if 'I/O-Tweaks' tweak is enabled! (Default: 128)"
+ name="kilobytes to read-ahead" action="generic_cortex /tmp/cortexbrain_read_ahead_kb">
+ <spinnerItem name="64 kb" value="64"/>
+ <spinnerItem name="128 kb" value="128"/>
+ <spinnerItem name="256 kb" value="256"/>
+ <spinnerItem name="512 kb" value="512"/>
+ <spinnerItem name="1024 kb" value="1024"/>
+ <spinnerItem name="2048 kb" value="2048"/>
+ <spinnerItem name="4096 kb" value="4096"/>
+ </spinner>
+
+ <spinner description="This will set the default AWAKE I/O scheduler for internal, system, data and external sdcard. (Default: ZEN)"
+ name="Default Awake I/O Scheduler" action="generic /sys/block/mmcblk0/queue/scheduler">
+ <spinnerItem name="BFQ" value="bfq"/>
+ <spinnerItem name="CFQ" value="cfq"/>
+ <spinnerItem name="DEADLINE" value="deadline"/>
+ <spinnerItem name="NOOP" value="noop"/>
+ <spinnerItem name="ROW" value="row"/>
+ <spinnerItem name="SIO" value="sio"/>
+ <spinnerItem name="VR" value="vr"/>
+ <spinnerItem name="ZEN" value="zen"/>
+ </spinner>
+
+ <spinner description="This will set the STANDBY/DEEPSLEEP I/O scheduler for internal, system, data and external sdcard. (Default: NOOP)"
+ name="STANDBY/DEEPSLEEP I/O Scheduler" action="generic /sys/block/mmcblk0/queue/sleep_scheduler">
+ <spinnerItem name="BFQ" value="bfq"/>
+ <spinnerItem name="CFQ" value="cfq"/>
+ <spinnerItem name="DEADLINE" value="deadline"/>
+ <spinnerItem name="NOOP" value="noop"/>
+ <spinnerItem name="ROW" value="row"/>
+ <spinnerItem name="SIO" value="sio"/>
+ <spinnerItem name="VR" value="vr"/>
+ <spinnerItem name="ZEN" value="zen"/>
+ </spinner>
+
+ </settingsPane>
+
+</settingsTab>
+
+<settingsTab name="Memory">
+
+ <settingsPane description="Here you can tune memory and OOM (low mem management) settings managed by Kernel." name="Memory Tuning">
+
+ <spinner description="Here you can set the level of 'low mem management' by kernel lowmemkiller function, more aggressive, then more free RAM but more killed apps."
+ name="OOM Level Tuning - screen on" action="oom_config_screen_on">
+ <spinnerItem name="very_light" value="very_light"/>
+ <spinnerItem name="light" value="light"/>
+ <spinnerItem name="medium" value="medium"/>
+ <spinnerItem name="aggressive" value="aggressive"/>
+ <spinnerItem name="exterminate" value="exterminate"/>
+ </spinner>
+
+ <spinner description="Here you can set the level of 'low mem management' by kernel lowmemkiller function, more aggressive, then more free RAM but more killed apps."
+ name="OOM Level Tuning - screen off" action="oom_config_screen_off">
+ <spinnerItem name="very_light" value="very_light"/>
+ <spinnerItem name="light" value="light"/>
+ <spinnerItem name="medium" value="medium"/>
+ <spinnerItem name="aggressive" value="aggressive"/>
+ <spinnerItem name="exterminate" value="exterminate"/>
+ </spinner>
+
+ <spinner description="ZRAM Module settings. Here you can shut down ZRAM or add more compressed RAM for your system."
+ name="ZRAM Settings" action="zramtweaks">
+ <spinnerItem name="Set ZRAM to 150MB" value="1"/>
+ <spinnerItem name="Set ZRAM to 300MB (default)" value="2"/>
+ <spinnerItem name="Set ZRAM to 600MB" value="3"/>
+ <spinnerItem name="Set ZRAM OFF!" value="4"/>
+ </spinner>
+
+ <spinner description="If you have enabled swap, then the higher a number set here, the more the system will swap. (Default: 0)"
+ name="swappiness" action="generic /proc/sys/vm/swappiness">
+ <spinnerItem name="0" value="0"/>
+ <spinnerItem name="10" value="10"/>
+ <spinnerItem name="20" value="20"/>
+ <spinnerItem name="30" value="30"/>
+ <spinnerItem name="40" value="40"/>
+ <spinnerItem name="50" value="50"/>
+ <spinnerItem name="60" value="60"/>
+ <spinnerItem name="70" value="70"/>
+ <spinnerItem name="80" value="80"/>
+ <spinnerItem name="90" value="90"/>
+ <spinnerItem name="100" value="100"/>
+ </spinner>
+
+ <button description="ZRAM state check" name="ZRAM STATS" action="push-actions/zramstats" label="ZRAM STATS"/>
+
+ <checkbox description="Enable or Disable 'KSM-Control'. This merge some memory but need cpu-power ..."
+ name="KSM-Control" action="generic_ksm /tmp/cortexbrain_ksm_control" label="KSM-Control"/>
+
+ <button description="KSM state check" name="KSM STATS" action="push-actions/ksmstats" label="KSM STATS"/>
+
+ </settingsPane>
+
+</settingsTab>
+
+<settingsTab name="GPU">
+ <settingsPane description="GPU Frequency/voltage/steps/utilization settings. Defaults frequencies are 108, 160, 200, 267 and 267. Voltage defaults are 900mV, 950mV, 1000mV, 1000mV and 1000mV."
+ name="GPU Control">
+
+ <checkbox description="Enabling VPLL mode may be unstable on some devices so do not complain if your device lags or crashes (SOD). If you don't use VPLL Mode, the following frequency steps will be unavailable: 330, 440, 520. VPLL is a new frqeuency range to give some users more GPU performance. USE AT YOUR OWN RISK!"
+ name="VPLL Mode" action="generic01 /sys/module/mali/parameters/mali_use_vpll" label="VPLL Mode"/>
+
+ <seekBar description="Here you can change GPU utilization timeout calculation. Closer to 100 (1sec) and you'll get faster GPU response in steps jump on load, but more battery is drained. CM10 default: 250(2.5sec)"
+ name="GPU Utilization Timeout" action="generic /sys/module/mali/parameters/mali_gpu_utilization_timeout"
+ unit="MSec" min="100" reversed="false" step="50" max="500"/>
+
+ <spinner description="Changes the first (lowest) GPU frequency step" name="GPU Frequency Step 1" action="gpu-freq 1">
+ <spinnerItem name="267 MHz" value="267"/>
+ <spinnerItem name="200 MHz" value="200"/>
+ <spinnerItem name="160 MHz" value="160"/>
+ <spinnerItem name="108 MHz" value="108"/>
+ <spinnerItem name="62 MHz" value="62"/>
+ <spinnerItem name="54 MHz" value="54"/>
+ </spinner>
+
+ <spinner description="Changes the second GPU frequency step" name="GPU Frequency Step 2" action="gpu-freq 2">
+ <spinnerItem name="330 MHz" value="330"/>
+ <spinnerItem name="267 MHz" value="267"/>
+ <spinnerItem name="200 MHz" value="200"/>
+ <spinnerItem name="160 MHz" value="160"/>
+ <spinnerItem name="108 MHz" value="108"/>
+ <spinnerItem name="62 MHz" value="62"/>
+ </spinner>
+
+ <spinner description="Changes the third GPU frequency step. WARNING! 400 MHz needs 1100 mV ~ 1200 mV. Above 1200 mV you risk to burn your chip!"
+ name="GPU Frequency Step 3" action="gpu-freq 3">
+ <spinnerItem name="400 MHz" value="400"/>
+ <spinnerItem name="330 MHz" value="330"/>
+ <spinnerItem name="267 MHz" value="267"/>
+ <spinnerItem name="200 MHz" value="200"/>
+ <spinnerItem name="160 MHz" value="160"/>
+ <spinnerItem name="108 MHz" value="108"/>
+ </spinner>
+
+ <spinner description="Changes the fourth GPU frequency step. WARNING! 400, 440, 520 MHz needs 1100 mV ~ 1200 mV. Above 1200 mV you risk to burn your chip!"
+ name="GPU Frequency Step 4" action="gpu-freq 4">
+ <spinnerItem name="520 MHz" value="520"/>
+ <spinnerItem name="440 MHz" value="440"/>
+ <spinnerItem name="400 MHz" value="400"/>
+ <spinnerItem name="330 MHz" value="330"/>
+ <spinnerItem name="267 MHz" value="267"/>
+ <spinnerItem name="200 MHz" value="200"/>
+ <spinnerItem name="160 MHz" value="160"/>
+ </spinner>
+
+ <spinner description="Changes the fifth GPU frequency step. WARNING! 400, 440, 520 MHz needs 1100 mV ~ 1200 mV. Above 1200 mV you risk to burn your chip!"
+ name="GPU Frequency Step 5" action="gpu-freq 5">
+ <spinnerItem name="520 MHz" value="520"/>
+ <spinnerItem name="440 MHz" value="440"/>
+ <spinnerItem name="400 MHz" value="400"/>
+ <spinnerItem name="330 MHz" value="330"/>
+ <spinnerItem name="267 MHz" value="267"/>
+ <spinnerItem name="200 MHz" value="200"/>
+ </spinner>
+
+ </settingsPane>
+
+ <settingsPane description="GPU Voltage Levels: The defaults are 900, 950, 950, 1000 and 1050. WARNING! Voltage above 1200 mV can put your device to risk! Do not blame me if GPU chip burned."
+ name="GPU Voltage Levels">
+
+ <seekBar description="GPU Voltage for the first step"
+ name="GPU Voltage Level1" action="gpu-voltage 1" unit="mV" min="800" reversed="false" step="50" max="1300"/>
+
+ <seekBar description="GPU Voltage for the second step"
+ name="GPU Voltage Level2" action="gpu-voltage 2" unit="mV" min="800" reversed="false" step="50" max="1300"/>
+
+ <seekBar description="GPU Voltage for the third step"
+ name="GPU Voltage Level3" action="gpu-voltage 3" unit="mV" min="800" reversed="false" step="50" max="1300"/>
+
+ <seekBar description="GPU Voltage for the fourth step"
+ name="GPU Voltage Level4" action="gpu-voltage 4" unit="mV" min="800" reversed="false" step="50" max="1300"/>
+
+ <seekBar description="GPU Voltage for the fifth step"
+ name="GPU Voltage Level5" action="gpu-voltage 5" unit="mV" min="800" reversed="false" step="50" max="1300"/>
+
+ </settingsPane>
+
+ <settingsPane description="GPU load thresholds to change between frequency steps." name="GPU Thresholds">
+
+ <seekBar description="GPU threshold to jump up from first to second step"
+ name="GPU Threshold 1-UP" action="gpu-thresh 1UP" unit="%" min="0" reversed="false" step="5" max="100"/>
+
+ <seekBar description="GPU threshold to jump down from second to first step"
+ name="GPU Threshold 2-DOWN" action="gpu-thresh 2DOWN" unit="%" min="0" reversed="false" step="5" max="100"/>
+
+ <seekBar description="GPU threshold to jump up from second to third step"
+ name="GPU Threshold 2-UP" action="gpu-thresh 2UP" unit="%" min="0" reversed="false" step="5" max="100"/>
+
+ <seekBar description="GPU threshold to jump down from third to second step"
+ name="GPU Threshold 3-DOWN" action="gpu-thresh 3DOWN" unit="%" min="0" reversed="false" step="5" max="100"/>
+
+ <seekBar description="GPU threshold to jump up from third to fourth step"
+ name="GPU Threshold 3-UP" action="gpu-thresh 3UP" unit="%" min="0" reversed="false" step="5" max="100"/>
+
+ <seekBar description="GPU threshold to jump down from fourth to third step"
+ name="GPU Threshold 4-DOWN" action="gpu-thresh 4DOWN" unit="%" min="0" reversed="false" step="5" max="100"/>
+
+ <seekBar description="GPU threshold to jump up from fourth to fifth step"
+ name="GPU Threshold 4-UP" action="gpu-thresh 4UP" unit="%" min="0" reversed="false" step="5" max="100"/>
+
+ <seekBar description="GPU threshold to jump down from fifth to fourth step"
+ name="GPU Threshold 5-DOWN" action="gpu-thresh 5DOWN" unit="%" min="0" reversed="false" step="5" max="100"/>
+
+ </settingsPane>
+
+</settingsTab>
+
+<settingsTab name="Screen">
+
+ <settingsPane description="Brightness Curve settings. Modifies auto-brightness behavior." name="Brightness Curve">
+
+ <seekBar description="Sets touchscreen move sensitivity (vitalij value)."
+ name="TouchMove Sensitivity" action="generic /sys/bus/i2c/devices/3-004a/mov_hysti"
+ unit=" pixel" min="0" reversed="false" step="1" max="20"/>
+
+ <seekBar description="Setting min_bl higher will result in staying in the lowest brightness level for brighter conditions. (Default: 30)"
+ name="min_bl" action="generic /sys/class/misc/brightness_curve/min_bl"
+ unit="" min="0" reversed="false" step="10" max="150"/>
+
+ <seekBar description="Minimum brightness level. (Default: 1)"
+ name="min_gamma" action="generic /sys/class/misc/brightness_curve/min_gamma"
+ unit="" min="0" reversed="false" step="1" max="23"/>
+
+ <seekBar description="Maximum brightness level. (Default and MAX: 23)"
+ name="max_gamma" action="generic /sys/class/misc/brightness_curve/max_gamma"
+ unit="" min="0" reversed="false" step="1" max="23"/>
+
+ <checkbox description="LCD Power Reduce for backlight. If you like brighter screen in cost of battery drain, then turn it off. (Default: On)"
+ name="LCD POWER" action="generic01 /sys/class/lcd/panel/power_reduce" label="LCD POWER REDUCE"/>
+
+ </settingsPane>
+
+ <settingsPane description="Settings for screen color by user manual input" name="Screen color menu">
+
+ <button description="Push to reset screen color to default" name="Reset color to default" action="push-actions/color_to_default 1" label="Default Color"/>
+
+ <seekBar description="Sets screen BLUE color scale. (Default: 127)"
+ name="Blue Color Scale" action="generic /sys/devices/platform/samsung-pd.2/mdnie/mdnie/mdnie/user_cb"
+ unit="BLUE" min="78" reversed="false" step="1" max="178"/>
+
+ <seekBar description="Sets screen RED color scale. (Default: 127)"
+ name="Red Color Scale" action="generic /sys/devices/platform/samsung-pd.2/mdnie/mdnie/mdnie/user_cr"
+ unit="RED" min="78" reversed="false" step="1" max="178"/>
+
+ <checkbox description="mDNIe sharpness tweaks from hardcore. Requires reboot to be effective."
+ name="mDNIe sharpness tweaks by GM!" action="generic01 /tmp/mdniemod" label="mDNIe Sharpness Tweaks"/>
+
+ </settingsPane>
+
+ <settingsPane description="Other Settings" name="Other Settings">
+
+ <seekBar description="User adjustable gamma shift. (Default: 0)"
+ name="Gamma shift" action="generic /sys/class/lcd/panel/user_gamma_adjust"
+ unit="" min="-50" reversed="false" step="5" max="50"/>
+
+ <seekBar description="FB earlysuspend delay to run CRT animation when you turn the screen off."
+ name="FB early suspend delay" action="generickmem fbearlysuspend_delay 0 int"
+ unit=" ms" min="0" reversed="false" step="50" max="500"/>
+
+ <seekBar description="Vibration force level. (Default: 75)"
+ name="Vibration force" action="generic /sys/vibrator/pwm_val"
+ unit="%" min="0" reversed="false" step="5" max="100"/>
+
+ <checkbox description="Slide2Wake By Fluxi@xda. When screen is turned off, swipe from the left side of the screen to the right side of the screen, and the screen will be turned on!"
+ name="Slide2Wake ON/OFF switch" action="generic01 /sys/devices/virtual/sec/sec_touchscreen/tsp_slide2wake" label="Slide2Wake Switch"/>
+
+ <checkbox description="Enable inverting screen colors by quickly pressing Home button."
+ name="mDNIe Negative Toggle" action="generic01 /sys/module/gpio_keys/parameters/mdnie_shortcut_enabled" label="mDNIe Negative Toggle"/>
+
+ <spinner description="Negative Color. Screen effect settings. Fast clicking Home button for the number of times configured will activate MOD"
+ name="Negative Screen Mod tuning." action="negative_tweak">
+ <spinnerItem name="Set 4 clicks (default)" value="1"/>
+ <spinnerItem name="Set 6 clicks" value="2"/>
+ </spinner>
+
+ </settingsPane>
+
+ <settingsPane description="Here you can control kernel screen gestures, set at /data/gesture_set.sh. More can be added by user. This tweak depends on cortex background service to be enabled"
+ name="Gestures panel">
+
+ <checkbox description="Here you can turn on/off kernel built in gestures! See OP for instructions/ask in forum."
+ name="Gestures switch" action="generic_gestures /tmp/gesture_tweak" label="Gestures switch"/>
+
+ <button description="Click to reset gestures to default, or update with new one from dev. Gesture file will be added to '/data/' only if it is missing." name="Reset gestures" action="push-actions/reset_gestures" label="Reset Gestures"/>
+
+ </settingsPane>
+
+ <settingsPane description="Touchscreen configuration on battery and on charge. !ALERT! Wrong settings will disable touch screen! You will have to reset profiles in recovery! Also, settings for battery and charger are different! Do not set the same levels! Have fun tuning." name="Touch screen sensitivity">
+
+ <seekBar description="Touchscreen on BATTERY (Touch Threshold) (Default: 50)"
+ name="BATT Touch Treshold" action="touch_screen_tweak 1"
+ unit="" min="30" reversed="false" step="1" max="70"/>
+
+ <seekBar description="Touchscreen on BATTERY (Noise Threshold) (Default: 40)"
+ name="BATT Noise Treshold" action="touch_screen_tweak 2"
+ unit="" min="20" reversed="false" step="1" max="70"/>
+
+ <seekBar description="Touchscreen on BATTERY (Move Filter) (Default: 12)"
+ name="BATT Move Filter" action="touch_screen_tweak 3"
+ unit="" min="2" reversed="false" step="1" max="30"/>
+
+ <seekBar description="Touchscreen on CHARGER/USB (Touch Threshold) (Default: 53)"
+ name="CHRG Touch Treshold" action="touch_screen_tweak 4"
+ unit="" min="30" reversed="false" step="1" max="70"/>
+
+ <seekBar description="Touchscreen on CHARGER/USB (Noise Threshold) (Default: 38)"
+ name="CHRG Noise Treshold" action="touch_screen_tweak 5"
+ unit="" min="20" reversed="false" step="1" max="60"/>
+
+ <seekBar description="Touchscreen on CHARGER/USB (Move Filter) (Default: 47)"
+ name="CHRG Move Filter" action="touch_screen_tweak 6"
+ unit="" min="20" reversed="false" step="1" max="60"/>
+
+ </settingsPane>
+
+</settingsTab>
+
+<settingsTab name="Sound">
+
+ <settingsPane description="JB ROM low sound bug fix on boot" name="LOW SOUND FIX">
+
+ <checkbox description="Dirty Hack for JB ROM low Sound after boot. This patch will push the Vol DOWN and Vol UP for you on boot, and fix the low sound/ring every boot. You will see the volume slider moving! That is how it's fixed. Also it will reset the silence state if it's was set before boot. If you have an ICS ROM, just ignore this, it will not be used, ICS ROMs don't have the bug. Fix is OFF by default, if you set ON, effect will be on boot only."
+ name="JB low sound fix on boot" action="generic_cortex /tmp/jb_sound_fix" label="JB low sound fix on boot"/>
+
+ </settingsPane>
+
+ <settingsPane description="Master headphone gain (amplification) settings, thanks to Gokhanmoral!" name="Headphone Amplification">
+
+ <spinner description="Headphone amplifier level (0-3 which corresponds to 0dB, 1.5dB, 3dB, 6dB)"
+ name="Headphone Amplifier" action="soundgasm_hp">
+ <spinnerItem name="Disabled/Reset" value="0"/>
+ <spinnerItem name="Boost 1.5dB" value="1"/>
+ <spinnerItem name="Boost 3dB" value="2"/>
+ <spinnerItem name="Boost 6dB" value="3"/>
+ </spinner>
+
+ </settingsPane>
+
+ <settingsPane description="More headphone amplification + speaker amplification + Mic gain" name="Volume Levels and Gain Control">
+
+ <seekBar description="Headphone amplification level"
+ name="Analog headphone level" action="sound_volume 1" unit="dB" min="-10" reversed="false" step="2" max="20"/>
+
+ <seekBar description="Headphone gain power level"
+ name="Analog headphone gain" action="sound_volume 4" unit="dB" min="-6" reversed="false" step="1" max="6"/>
+
+ <seekBar description="Analog Mic gain level"
+ name="Mic gain Level" action="sound_volume 2" unit="dB" min="-12" reversed="false" step="4" max="12"/>
+
+ <seekBar description="Analog speaker level"
+ name="Speaker level" action="sound_volume 3" unit="dB" min="-12" reversed="false" step="4" max="12"/>
+
+ </settingsPane>
+
+</settingsTab>
+
+<settingsTab name="BLN">
+
+ <settingsPane description="BackLightNotification and Touch Keys related Settings" name="BackLightNotification">
+
+ <checkbox description="BackLightNotification"
+ name="BLN" action="generic /sys/class/misc/notification/notification_enabled" label="BLN"/>
+
+ <spinner description="This setting will set led behavior for BLN."
+ name="BLN Effect" action="bln_switch">
+ <spinnerItem name="Steady" value="0"/>
+ <spinnerItem name="Breathing" value="1"/>
+ <spinnerItem name="Blinking" value="2"/>
+ </spinner>
+
+ <spinner description="Notification timeout"
+ name="notification_timeout" action="generic /sys/class/misc/notification/notification_timeout">
+ <spinnerItem name="Never timeout" value="0"/>
+ <spinnerItem name="1 minute" value="60000"/>
+ <spinnerItem name="3 minutes" value="180000"/>
+ <spinnerItem name="5 minutes" value="300000"/>
+ <spinnerItem name="10 minutes" value="600000"/>
+ <spinnerItem name="20 minutes" value="1200000"/>
+ <spinnerItem name="30 minutes" value="1800000"/>
+ <spinnerItem name="1 Hour" value="3600000"/>
+ <spinnerItem name="2 Hours" value="7200000"/>
+ </spinner>
+
+ </settingsPane>
+
+ <settingsPane description="Touch keys light settings. Here you can set the way touch keys light work." name="Touch keys lights settings">
+
+ <spinner description="Led timeout. Select 'Use ROM defaults' if your ROM already has led timeout support (requires restart). You will need to use this setting on Samsung ROMs if you want to use led fadeout effect."
+ name="led_timeout" action="generic /sys/class/misc/notification/led_timeout_ms">
+ <spinnerItem name="Use ROM defaults (disabled)" value="-1"/>
+ <spinnerItem name="No timeout" value="0"/>
+ <spinnerItem name="1 sec" value="1000"/>
+ <spinnerItem name="3 sec" value="3000"/>
+ <spinnerItem name="6 sec" value="6000"/>
+ <spinnerItem name="15 sec" value="15000"/>
+ <spinnerItem name="30 sec" value="30000"/>
+ <spinnerItem name="60 sec" value="60000"/>
+ </spinner>
+
+ <checkbox description="BLN Without Wakelock. You cannot use blinking or breathing effects together with this option. Enabling this will let the CPU sleep during BLN and save battery."
+ name="BLNWW" action="generic /sys/class/misc/notification/blnww" label="BLNWW"/>
+
+ <checkbox description="Led fadeout effect. If you are on a Samsung ROM, you need to set Touch Keys leds to always on or always off and use led timeout in STweaks."
+ name="Led fadeout" action="generic /sys/class/misc/notification/led_fadeout" label="Led fadeout"/>
+
+ <checkbox description="Selecting this will activate turning touckey leds on when you touch the screen (only when led timeout is enabled)."
+ name="Leds on with touch" action="generic /sys/class/misc/notification/led_on_touch" label="led-on-touch"/>
+
+ <button description="Use this button to test BLN. BLN will be active after you turn the screen off." name="Test BLN" action="push-actions/test_bln" label="Test BLN"/>
+
+ <seekBar description="Controls touchpad led voltage level. (Default: 3000)"
+ name="Led voltage level" action="generic /sys/devices/virtual/sec/sec_touchkey/touchkey_brightness"
+ unit="mV" min="2500" reversed="false" step="50" max="3300"/>
+
+ <checkbox description="Automatic touchpad led voltage level. If this one is checked, touchpad led voltage level will be ignored."
+ name="Auto led voltage" action="generic /sys/class/misc/notification/dyn_brightness" label="Auto Led Voltage"/>
+
+ </settingsPane>
+
+</settingsTab>
+
+<settingsTab name="Other">
+
+ <settingsPane description="Here you can restore Home Key configuration before installing any other JB Sammy Kernel, you must push this button or Home Key will not work with other kernel."
+ name="Home Key Restore to JB Sammy default">
+
+ <button description="Before installing any other JB SAMMY 'LEAK' kernel, use this to restore Home Key, if you will reboot again with my kernel, you will have to push button again, to restore the key before installing different JB SAMMY kernel, if you stay with my kernel, ignore this button!" name="Restore home key for other kernels" action="push-actions/home_key_restore" label="Restore Home Key NOW"/>
+
+ </settingsPane>
+
+ <settingsPane description="Here you can activate some script, which will automatically run in the background, at a specified time." name="cron">
+
+ <spinner description="Main switch for Cron Tasker. If you set this to OFF, then all tasks below have no effect!"
+ name="CRON TASK MAIN SWITCH" action="crontab">
+ <spinnerItem name="Cron ON" value="on"/>
+ <spinnerItem name="Cron OFF" value="off"/>
+ </spinner>
+
+ <button description="Use this button to test if this 'Cron Task service' is ONLINE and supported! If main switch is ON, and service is OFFLINE, then ROM Busybox is not supporting Cron. Update Busybox or ROM for this to work." name="Test Cron Task Service" action="push-actions/crontab_test" label="Test Cron Task Service"/>
+
+ <button description="Use this button to RESET the scripts and jobs from kernel, to refresh the configuration. This will clear all your custom changes!" name="CRON RESET" action="push-actions/crontab_reset" label="RESET CRON"/>
+
+ <checkbox description="Cron to clear file-cache every hour, but only if CPU is resting (IDLE) and more than 50% of your memory is used! This will free RAM from unused buffers and cache."
+ name="Clean file-cache" action="generic_cortex /tmp/cron_drop_cache" label="RAM cache clean every Hour"/>
+
+ <checkbox description="Cron to update AD-BLOCKER every week at SAT 6:00AM UTC time, from official site. The script will check, if you are connected with the internet, otherwise it will try to use WIFI! Script will turn wifi, wait for connection and update, then when it's finished it will turn WIFI off. If there's no connection, an error will be written in the log."
+ name="Update AD-Block" action="generic_cortex /tmp/ad_block_update" label="Update AD-BLOCKER every week"/>
+
+ <checkbox description="Cron to clear app-cache every day at 4:00AM, only if CPU is resting (IDLE)!"
+ name="Clean app-cache" action="generic_cortex /tmp/cron_clear_app_cache" label="Disk Clean task every day at 4:00AM"/>
+
+ <checkbox description="Cron to fix app-permissions every day at 4:40AM, only if CPU is resting(IDLE)! This can help to reduce errors, bugs, and applications FC."
+ name="Fix app-permissions" action="generic_cortex /tmp/cron_fix_permissions" label="Permissions fix every day at 4:40AM"/>
+
+ <checkbox description="Cron to zipalign app's every day at 4:50AM, only if CPU is resting (IDLE)! This can help to reduce errors, bugs, applications FC, and improve applications load speed. WARNING! Bakcup all apps before use! This process will remove apps that are BROKEN and not compressed or compiled correctly, so you may find some apps missing! USE it AT YOUR OWN RISK and update the broken applications!"
+ name="Zipalign Task" action="generic_cortex /tmp/cron_zipalign" label="Zipalign Task Every 4:50AM"/>
+
+ <button description="Use this button to check if Cron Task Jobs are done as requested. This will show the log for all finished jobs." name="Test Cron Task jobs" action="push-actions/crontab_log" label="Test Cron Task Jobs"/>
+
+ </settingsPane>
+
+ <settingsPane description="Here you can find some settings/options for your apps." name="Apps">
+
+ <button description="Push to Reinstall/Update STweaks app. Here you can Reinstall/Update your STweak app to one that's added in the kernel. It will be installed to /system and if you had STweaks in /data, it will be removed. Application will close and you'll have it back from kernel in 5sec." name="STweaks Reinstall/Update" action="push-actions/stweaks_update" label="STweaks Reinstall/Update"/>
+
+ <button description="Click here to start fixing. Here you can run Fix Permissions, please click one time only, scripts will finish in max 2~3min, no reboot is needed." name="FIX PERMISSIONS" action="push-actions/fix_permissions" label="FIX PERMISSIONS"/>
+
+ <button description="Click here to start Zipaligning ONLY user apps. System may be unresponsive, it's OK, do not use phone for 2 minutes. WARNING! Backup all user applications before use! This process will remove applications that are BROKEN and not compressed or compiled correctly, so you may find some apps missing. USE it AT YOUR OWN RISK, and update the broken applications!." name="ZIPALIGN" action="push-actions/zipalign" label="ZIPALIGN ALL APPS"/>
+
+ <button description="Click here to start applications Database Optimization. Compacting, cleaning and indexing will take max 2min." name="DB OPTIMIZATION" action="push-actions/database_optimizing" label="DATABASE OPTIMIZATON"/>
+
+ </settingsPane>
+
+ <settingsPane description="WIFI Settings" name="WIFI">
+
+ <spinner description="WIFI supplicant scan interval. Here you can set the time in sec for WIFI to look for access points when ON. Higher the range, less battery used by WIFI! If you want WIFI to be forced OFF on screen OFF, Turn Force WIFI OFF Tweak in Cortex TAB, also if cortex process is ON, then it will be set automatically to 360sec on Screen OFF, so set your range for screen ON!"
+ name="WIFI supplicant scan interval" action="supplicant_scan_interval">
+ <spinnerItem name="Set WIFI SCAN 60Sec" value="60"/>
+ <spinnerItem name="Set WIFI SCAN 120Sec" value="120"/>
+ <spinnerItem name="Set WIFI SCAN 180Sec" value="180"/>
+ <spinnerItem name="Set WIFI SCAN 240Sec" value="240"/>
+ <spinnerItem name="Set WIFI SCAN 360Sec" value="360"/>
+ </spinner>
+
+ <button description="Clean WIFI DHCP IP Lease. Push the button to activate!" name="Clean WIFI Lease" action="push-actions/fix_wifi" label="Clean WIFI Lease"/>
+
+ </settingsPane>
+
+ <settingsPane description="Here you can find GPS and NTP settings/options." name="GPS - NTP">
+
+ <spinner description="GPS-Time-Zone for faster GPS lock! Use your region!"
+ name="GPS Region" action="gpsregion">
+ <spinnerItem name="No GPS Zone changes (default)" value="No_GPS_Zone_changes"/>
+ <spinnerItem name="Set Asia" value="Asia"/>
+ <spinnerItem name="Set Europe" value="Europe"/>
+ <spinnerItem name="Set Oceania" value="Oceania"/>
+ <spinnerItem name="Set North America" value="North-America"/>
+ <spinnerItem name="Set South America" value="South-America"/>
+ <spinnerItem name="Set Africa" value="Africa"/>
+ <spinnerItem name="Restore original ROM gps.conf" value="Original_ROM_GPS_Restored"/>
+ </spinner>
+
+ <button description="Click to see your current GPS ZONE" name="GPS ZONE" action="push-actions/gpszonecheck" label="GPS ZONE CHECK"/>
+
+ <button description="Update time via NTP server" name="UPDATE TIME" action="push-actions/time_update" label="UPDATE TIME"/>
+
+ </settingsPane>
+
+ <settingsPane description="USB and SDCARD settings/options." name="USB - SDCARD">
+
+ <spinner description="Change USB connection mode. Either leave it as default or force it to mass storage mode (you will see your sdcards as disks) or MTP."
+ name="USB mass storage mode" action="usb-mode">
+ <spinnerItem name="Default" value="default"/>
+ <spinnerItem name="Force Mass Storage Mode" value="mass_storage-adb"/>
+ <spinnerItem name="Force MTP Mode" value="mtp-adb"/>
+ </spinner>
+
+ <checkbox description="If checked, Mass-Storage-SDCARDS will be auto-mounted when USB connected. then you can transfer files on high speed from PC to device. (Default: On)"
+ name="Auto Mount USB Drives" action="generic_cortex /tmp/auto_mount_sd" label="Auto Mount USB Drives"/>
+
+ <button description="Dual Mount-SDCARD and MMC via USB. After USB is disconnected, Dual Mount is disabled! This tweak is working automatically. Plug USB, turn off the screen and then turn ON, and you get working mounts. To scan your new MEDIA files, use some app to force Media Scan." name="DUAL MOUNT" action="push-actions/dualmount" label="Dual Mount"/>
+
+ </settingsPane>
+
+ <settingsPane description="Charger/Battery settings/options." name="Battery">
+
+ <seekBar description="Battery AC Charge Current Setting"
+ name="Battery AC Charge Current" action="chargecurrent 1"
+ unit="mA" min="450" reversed="false" step="50" max="750"/>
+
+ <seekBar description="Battery MISC Charge Current Setting"
+ name="Battery MISC Charge Current" action="chargecurrent 2"
+ unit="mA" min="450" reversed="false" step="50" max="750"/>
+
+ <seekBar description="Battery USB Charge Current Setting"
+ name="Battery USB Charge Current" action="chargecurrent 3"
+ unit="mA" min="450" reversed="false" step="50" max="750"/>
+
+ <button description="If you think that the fuel gauge chip is behaving weird use this button to reset it. Give it a few hours after you reset the gauge. It may still show you funny values for that period, then the battery percentage should be fine." name="Reset Fuel-Gauge Chip" action="push-actions/reset-fuelgauge" label="Reset Fuel-Gauge Chip"/>
+
+ <checkbox description="If checked, BetterBatteryStatus will report discrete (non-overlapping) wake lock statistics."
+ name="Discrete Wake lock Stats" action="generic01 /sys/module/wakelock/parameters/default_stats" label="Discrete Wake lock Stats"/>
+
+ </settingsPane>
+
+ <settingsPane description='Here you can Add/Update/Remove AD Blocker! You need ROOT to do the tweak! If you want to update the blocker, you can push the "UPDATE AD NOW" button, to get the new one installed! If you install a new ROM, and you want to use AD BLOCKER, then push "UPDATE AD NOW" and REBOOT. If you need to REMOVE AD-BLOCKER use the REMOVE button and REBOOT'
+ name="AD Blocker">
+
+ <button description="ADD/UPDATE AD BLOCKER" name="AD-B UPDATE/ADD" action="push-actions/ad_update" label="UPDATE AD-B NOW"/>
+
+ <button description="REMOVE AD Blocker" name="AD-B REMOVE" action="push-actions/ad_restore" label="REMOVE AD-B NOW"/>
+
+ </settingsPane>
+
+ <settingsPane description="INIT.D" name="INIT.D">
+
+ <checkbox description="Enable or Disable INIT.D scripts RUN on boot. Many new ROMS are running the init.d scripts automatically. You can also force running the scripts, but if you run them and ROM runs them too, we have a problem: all scripts are running X2 times! To avoid conflicts, Stweaks RUN-control is disabled by default. If you know that your ROM is NOT supporting init.d script running, then turn it ON here and reboot."
+ name="INIT.D Scripts RUN control" action="generic_cortex /tmp/init_d" label="Enable INIT.D scripts RUN-control"/>
+
+ </settingsPane>
+
+ <settingsPane description="Android Additional Logs" name="Logger">
+
+ <checkbox description="Enable or Disable Android Additional Logs (needs reboot)"
+ name="Android Logger" action="generic_cortex /tmp/logger" label="Android Logger"/>
+
+ </settingsPane>
+
+ <settingsPane description="Fixes file system only if needed!" name="FS">
+
+ <button description="DATA and CACHE file system check and repair on boot. !WARNING! This is a VERY DANGEROUS option! Before activating it DO A FULL BACKUP with Titanium Backup or any kind of backup application! If you have lots of damage in your DATA partition, after fix and repair, ROM may NOT BOOT anymore! In that case reinstall ROM, and if you still can't boot, you will have to format DATA file system via recovery! USE IT AT YOUR OWN RISK! THIS FUNCTION IS NOT A TOY! YOU HAVE BEEN WARNED! This function works only for main ROM, second ROM gets no effect and by default it's OFF. It's also one time action, push the button to Activate, push again to Abort!" name="FIX File System on BOOT" action="push-actions/fix_fs_on_boot" label="FIX DATA ON/OFF"/>
+
+ <button description="Clean the media cache on your sdcard. Push once to clean, push again to abort. You have to reboot for action to work!" name="Clean media-cache" action="push-actions/fix_media" label="FIX MEDIA ON/OFF"/>
+
+ </settingsPane>
+
+ <settingsPane description="Remove OR Reinstall ROOT! You can have a ROOTED or not ROOTED phone." name="Root">
+
+ <button description="Root Install. Click to install ROOT (SuperUser) + ROM Busybox if existed. In case you have used the remove button, to Reinstall ROOT first REMOVE it! This function depends on CORTEX process to be enabled!" name="ROOT INSTALL" action="push-actions/root_install" label="INSTALL ROOT"/>
+
+ <button description="Root Remove/Uninstall. Click to remove Any ROOT installed + Busybox (kernel's Busybox remains, but is hidden from system) To install ROOT check the Auto-Install Root and REBOOT." name="ROOT REMOVE" action="push-actions/root_remove" label="REMOVE ROOT"/>
+
+ <button description="Root check. Click to see if you have ROOT or not" name="ROOT Check" action="push-actions/root_check" label="ROOT CHECK"/>
+
+ <checkbox description="If box is checked, root will be installed on the next restart."
+ name="Auto-Install Root" action="generic_cortex /tmp/install_root" label="Auto-Install Root"/>
+
+ </settingsPane>
+
+</settingsTab>
+
+<settingsTab name="Tweaks">
+
+ <settingsPane description="This script will manipulate many kernel settings, based on chosen STweaks profile + settings and on screen state (ON/OFF) and we call it 'CortexBrain'. To reset the kernel-settings, after you disable a tweak, you must reboot!"
+ name="CortexBrain Tweaks">
+
+ <spinner description="Enable or Disable the 'background-process' from 'CortexBrain'. If you disable it, you will lose the function that set different settings for screen state (ON/OFF)."
+ name="Cortexbrain-Background-Process" action="cortexbrain_background_process">
+ <spinnerItem name="Enable" value="1"/>
+ <spinnerItem name="Disable" value="0"/>
+ </spinner>
+
+ <button description="Click to see if the 'CortexBrain-Background-Process' is running or not." name="Check Background-Process" action="push-actions/cortexbrain_background_process_check" label="CHECK SERVICE"/>
+
+ <spinner description="Here you can control android logger 'logcat'. If you set it to AUTO, then you will have logs only on screen is on. When screen will be off, logger will be disabled to save battery. If you set DEBUG, it will be working no matter what! If set to DISABLED, logging will be off, no matter what. If USB/Charger is connected and logger is set to AUTO, logging will not be disabled so we can debug. Depends on CortexBrain-Background-Process to be enabled!"
+ name="Android Logger control" action="android_logger">
+ <spinnerItem name="AUTO" value="auto"/>
+ <spinnerItem name="DEBUG" value="debug"/>
+ <spinnerItem name="DISABLED" value="disabled"/>
+ </spinner>
+
+ <checkbox description="Enable or Disable the 'Wifi turns off while screen is off' function. Depends on CortexBrain-Background-Process to be enabled!"
+ name="Auto-Wifi" action="generic_cortex /tmp/cortexbrain_auto_tweak_wifi" label="Force Auto-Wifi"/>
+
+ <seekBar description="Here you can set a delay before WIFI is forced to OFF when screen is turned off. Works only if 'Auto-Wifi' is Enabled!"
+ name="WIFI Turn Off Delay (in sec)" action="generic_cortex /tmp/cortexbrain_auto_tweak_wifi_sleep_delay"
+ unit="sec" min="0" reversed="false" step="30" max="300"/>
+
+ <!--checkbox description="Here you can allow WIFI to use LOW PWR when Screen is turned OFF. When screen is back ON, WIFI turns back to high PWR). If not set, WIFI uses HIGH PWR and get fast WIFI transfers on screen OFF"
+ name="Wifi Low PWR Switch" action="generic_cortex /tmp/wifi_pwr" label="Wifi Low PWR"/-->
+
+ <checkbox description="Enable or Disable 'Firewall-Tweaks'."
+ name="Firewall-Tweaks" action="generic_cortex /tmp/cortexbrain_firewall" label="Firewall-Tweaks"/>
+
+ <checkbox description="Enable or Disable 'TCP-Tweaks'."
+ name="TCP-Tweaks" action="generic_cortex /tmp/cortexbrain_tcp" label="TCP-Tweaks"/>
+
+ <checkbox description="Enable or Disable 'IPv6 Network'. (Default: OFF)"
+ name="IPv6 Tweaks" action="generic_cortex /tmp/cortexbrain_ipv6" label="IPv6"/>
+
+ <checkbox description="Enable or Disable 'CPU-Tweaks'."
+ name="CPU-Tweaks" action="generic_cortex /tmp/cortexbrain_cpu" label="CPU-Tweaks"/>
+
+ <checkbox description="Enable or Disable 'Memory-Tweaks'."
+ name="Memory-Tweaks" action="generic_cortex /tmp/cortexbrain_memory" label="Memory-Tweaks"/>
+
+ <checkbox description="Enable or Disable 'Battery-Tweaks'."
+ name="Battery-Tweaks" action="generic_cortex /tmp/cortexbrain_battery" label="Battery-Tweaks"/>
+
+ <checkbox description="Enable or Disable 'System-Tweak'."
+ name="System-Tweaks" action="generic_cortex /tmp/cortexbrain_system" label="System-Tweaks"/>
+
+ <checkbox description="Enable or Disable 'Kernel-Tweaks'."
+ name="Kernel-Tweaks" action="generic_cortex /tmp/cortexbrain_kernel_tweaks" label="Kernel-Tweaks"/>
+
+ <checkbox description="Enable or Disable 'I/O-Tweaks'."
+ name="I/O-Tweaks" action="generic_cortex /tmp/cortexbrain_io" label="I/O-Tweaks"/>
+
+ </settingsPane>
+
+</settingsTab>
+
+<settingsTab name="PROFILES">
+
+ <settingsPane description="You can check what profile is used right now." name="Online Profile">
+
+ <button description="This displays your currently used profile." name="Profile Check" action="push-actions/profile" label="Profile Check"/>
+
+ </settingsPane>
+
+ <settingsPane description="Here you can choose some profiles. You can also switch the default profiles (battery, default, performance) via Kernel-Recovery." name="STweaks Profiles">
+
+ <button description="extreme_battery.profile" name="extreme_battery.profile" action="push-actions/config_backup_restore 6" label="EXTREME BATTERY"/>
+
+ <button description="battery.profile" name="battery.profile" action="push-actions/config_backup_restore 3" label="BATTERY"/>
+
+ <button description="default.profile" name="default.profile" action="push-actions/config_backup_restore 4" label="DEFAULT"/>
+
+ <button description="performance.profile" name="performance.profile" action="push-actions/config_backup_restore 5" label="PERFORMANCE"/>
+
+ <button description="extreme_performance.profile" name="extreme_performance.profile" action="push-actions/config_backup_restore 7" label="EXTREME PERFORMANCE"/>
+
+ </settingsPane>
+
+</settingsTab>
+
+<settingsTab name="BACKUP/RESTORE">
+
+ <settingsPane description="Here you can backup/restore your profile after installing new kernel. When you restore your configuration, please wait till this app restarts with the new settings. Some settings will work only after reboot! Restore will take up to 30 sec, just wait here!" name="STweaks Settings Backup/Restore">
+
+ <button description="Backup STweaks User Settings!" name="Settings Backup" action="push-actions/config_backup_restore 1" label="BACKUP NOW"/>
+
+ <button description="Restore STweaks User Settings!" name="Settings Restore" action="push-actions/config_backup_restore 2" label="RESTORE NOW"/>
+
+ </settingsPane>
+
+</settingsTab>
+
+<settingsTab name="Dualboot">
+
+ <settingsPane description="Dual-Boot Settings. WARNING! No confirmation will be asked for reboot buttons!" name="Dual-Boot Settings">
+
+ <button description="Reboot into custom recovery which let you configure, clone or backup the 2nd ROM" name="Reboot into ROM Recovery" action="reboot-into 0" label="Reboot into recovery"/>
+
+ <button description="Reboot into 1st ROM" name="Reboot into 1st ROM" action="reboot-into 1" label="Reboot into 1st ROM"/>
+
+ <button description="Reboot into 2nd ROM" name="Reboot into 2nd ROM" action="reboot-into 2" label="Reboot into 2nd ROM"/>
+
+ <checkbox description="Check this if you don't want boot logo to be shown. If this options is checked boot logo will not be shown even if you have 2ndROM installed." name="No boot-logo" action="no-boot-logo" label="No boot-logo"/>
+
+ <spinner description="Default ROM to boot into. If you don't have 2nd ROM installed, 1st ROM will be booted. If you press the home or volume-down buttons during the boot logo the alternative ROM will be booted, i.e. 1st ROM will be booted if the default ROM selection is the 2nd ROM."
+ name="Default ROM" action="defaultrom">
+ <spinnerItem name="1stROM" value="0"/>
+ <spinnerItem name="2ndROM" value="1"/>
+ </spinner>
+
+ </settingsPane>
+
+</settingsTab>
+
+<settingsTab name="BUG-REPORT">
+
+ <settingsPane description="Debug to SD-Card (/sdcard) ..." name="Bug-Report">
+
+ <button description="Bug-Report for Kernel" name="Kernel-Bug" action="push-actions/debug_to_sd 1" label="KERNEL-BUG"/>
+
+ <button description="Bug-Report for Apps" name="App-Bug" action="push-actions/debug_to_sd 2" label="APP-BUG"/>
+
+ </settingsPane>
+
+</settingsTab>
+
+<settingsTab name="KERNEL-UPDATE">
+
+ <settingsPane description="Check if there is a new kernel-update available." name="Kernel-Update">
+
+ <button description="Check for Update" name="Kernel-Update" action="push-actions/kernel_check" label="KERNEL-CHECK"/>
+
+ </settingsPane>
+
+</settingsTab>
+
+</settingsRoot>
View
BIN  res/misc/payload/SuperSU.apk
Binary file not shown
View
BIN  res/misc/payload/su
Binary file not shown
View
26 sbin/ext/install.sh
@@ -29,20 +29,40 @@ if [ ! -e /data/crontab/custom_jobs ]; then
$BB chmod 777 /data/crontab/custom_jobs;
fi;
+# check if new SuperSU exist in kernel
+NEW_SU=0;
+if [ -e /system/app/SuperSU.apk ]; then
+ su_app_md5sum=`$BB md5sum /system/app/SuperSU.apk | $BB awk '{print $1}'`
+ su_app_md5sum_kernel=`cat /res/SuperSU_md5`;
+ if [ "$su_app_md5sum" != "$su_app_md5sum_kernel" ]; then
+ NEW_SU=1;
+ else
+ NEW_SU=0;
+ fi;
+fi;
+
if [ "$install_root" == "on" ]; then
- if [ -e /system/xbin/su ]; then
- echo "Superuser already exists";
+ if [ -e /system/xbin/su ] && [ "$NEW_SU" == "0" ]; then
+ echo "SuperSU already exists and updated";
else
# clean su traces
$BB rm -f /system/bin/su > /dev/null 2>&1;
$BB rm -f /system/xbin/su > /dev/null 2>&1;
+ $BB rm -f /system/bin/.ext/su > /dev/null 2>&1;
$BB mkdir /system/xbin > /dev/null 2>&1;
$BB chmod 755 /system/xbin;
# extract SU binary
+ if [ ! -d /system/bin/.ext ]; then
+ $BB mkdir /system/bin/.ext;
+ $BB chmod 777 /system/bin/.ext;
+ fi;
+ $BB cp -a /res/misc/payload/su /system/bin/.ext/su;
$BB cp -a /res/misc/payload/su /system/xbin/su;
$BB chown 0.0 /system/xbin/su;
$BB chmod 6755 /system/xbin/su;
+ $BB chown 0.0 /system/bin/.ext/su;
+ $BB chmod 6755 /system/bin/.ext/su;
# clean super user old apps
$BB rm -f /system/app/*uper?ser.apk > /dev/null 2>&1;
@@ -111,7 +131,7 @@ GMTWEAKS()
{
if [ -f /system/app/STweaks.apk ]; then
- stmd5sum=`/sbin/busybox md5sum /system/app/STweaks.apk | /sbin/busybox awk '{print $1}'`
+ stmd5sum=`$BB md5sum /system/app/STweaks.apk | /sbin/busybox awk '{print $1}'`
stmd5sum_kernel=`cat /res/stweaks_md5`;
if [ "$stmd5sum" != "$stmd5sum_kernel" ]; then
$BB rm -f /system/app/STweaks.apk > /dev/null 2>&1;
View
1  update-stweaks-md5.sh
@@ -1,4 +1,5 @@
#!/bin/bash
md5sum res/misc/payload/STweaks.apk | awk '{print $1}' > res/stweaks_md5;
chmod 644 res/stweaks_md5;
+cat res/stweaks_md5;
View
5 update-supersu-md5.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+md5sum res/misc/payload/SuperSU.apk | awk '{print $1}' > res/SuperSU_md5;
+chmod 644 res/SuperSU_md5;
+cat res/SuperSU_md5;
+
Please sign in to comment.
Something went wrong with that request. Please try again.