Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

v4.1 changes

  • Loading branch information...
commit a105c4b91a6c7353915bbaf6d8a072368535ecbc 1 parent 70e19b4
@gokhanmoral authored
Showing with 176 additions and 164 deletions.
  1. +1 −1  res/customconfig/actions/gpu-freq
  2. +1 −1  res/customconfig/actions/gpu-staycount
  3. +1 −1  res/customconfig/actions/gpu-thresh
  4. +1 −1  res/customconfig/actions/gpu-voltage
  5. +1 −0  res/customconfig/actions/zram
  6. +32 −30 res/customconfig/battery.profile
  7. +1 −1  res/customconfig/customconfig-helper
  8. +40 −37 res/customconfig/customconfig.xml
  9. +7 −7 res/customconfig/default.profile
  10. +27 −25 res/customconfig/performance.profile
  11. BIN  res/images/icon_clockwork.png
  12. +2 −2 { → res/misc/init.40}/default.prop
  13. 0  { → res/misc/init.40}/fota.rc
  14. 0  { → res/misc/init.40}/init.goldfish.rc
  15. +10 −7 { → res/misc/init.40}/init.rc
  16. +3 −3 { → res/misc/init.40}/init.rc.2
  17. 0  { → res/misc/init.40}/init.smdk4210.rc
  18. 0  { → res/misc/init.40}/init.smdk4210.usb.rc
  19. BIN  { → res/misc/init.40}/innt
  20. 0  { → res/misc/init.40}/lpm.rc
  21. 0  { → res/misc/init.40}/recovery.rc
  22. 0  { → res/misc/init.40}/ueventd.goldfish.rc
  23. 0  { → res/misc/init.40}/ueventd.rc
  24. 0  { → res/misc/init.40}/ueventd.smdk4210.rc
  25. +3 −3 res/misc/init.cm10/init.rc
  26. BIN  res/misc/init.cm9/innt
  27. BIN  sbin/adbd
  28. BIN  sbin/busybox
  29. +8 −9 sbin/ext/post-init.sh
  30. +37 −36 sbin/init
  31. +1 −0  sbin/minizip
View
2  res/customconfig/actions/gpu-freq
@@ -11,6 +11,6 @@ else
fi
if [ -f /sys/class/misc/gpu_clock_control/gpu_control ];then
-echo "$GPUFREQ1 $GPUFREQ2 $GPUFREQ3" > /sys/class/misc/gpu_clock_control/gpu_control
+echo "$GPUFREQ1 $GPUFREQ2 $GPUFREQ3 $GPUFREQ4" > /sys/class/misc/gpu_clock_control/gpu_control
fi
View
2  res/customconfig/actions/gpu-staycount
@@ -15,5 +15,5 @@ fi
# we need to set all three of them
if [ -f /sys/class/misc/gpu_clock_control/gpu_staycount ];then
-echo "$GPUSTAYCOUNT1 $GPUSTAYCOUNT2 $GPUSTAYCOUNT3" > /sys/class/misc/gpu_clock_control/gpu_staycount
+echo "$GPUSTAYCOUNT1 $GPUSTAYCOUNT2 $GPUSTAYCOUNT3 $GPUSTAYCOUNT4" > /sys/class/misc/gpu_clock_control/gpu_staycount
fi
View
2  res/customconfig/actions/gpu-thresh
@@ -11,6 +11,6 @@ else
fi
if [ -f /sys/class/misc/gpu_clock_control/gpu_control ];then
-echo "${GPUTHRESHOLD1UP}% ${GPUTHRESHOLD2DOWN}% ${GPUTHRESHOLD2UP}% ${GPUTHRESHOLD3DOWN}%" > /sys/class/misc/gpu_clock_control/gpu_control
+echo "${GPUTHRESHOLD1UP}% ${GPUTHRESHOLD2DOWN}% ${GPUTHRESHOLD2UP}% ${GPUTHRESHOLD3DOWN}% ${GPUTHRESHOLD3UP}% ${GPUTHRESHOLD4DOWN}%" > /sys/class/misc/gpu_clock_control/gpu_control
fi
View
2  res/customconfig/actions/gpu-voltage
@@ -11,6 +11,6 @@ else
fi
if [ -f /sys/class/misc/gpu_voltage_control/gpu_control ];then
-echo "${GPUVOLT1}000 ${GPUVOLT2}000 ${GPUVOLT3}000" > /sys/class/misc/gpu_voltage_control/gpu_control
+echo "${GPUVOLT1}000 ${GPUVOLT2}000 ${GPUVOLT3}000 ${GPUVOLT4}000" > /sys/class/misc/gpu_voltage_control/gpu_control
fi
View
1  res/customconfig/actions/zram
@@ -14,6 +14,7 @@ else
echo `expr $zram_size \* 1024 \* 1024` > /sys/devices/virtual/block/zram0/disksize
mkswap /dev/block/zram0 > /dev/null 2>&1
swapon /dev/block/zram0 > /dev/null 2>&1
+ sysctl -w vm.swappiness=90
fi
View
62 res/customconfig/battery.profile
@@ -1,26 +1,26 @@
-GPUFREQ1=40
-GPUFREQ2=133
-GPUFREQ3=267
-GPUVOLT1=900
-GPUVOLT2=950
-GPUVOLT3=1000
-GPUTHRESHOLD1UP=85
-GPUTHRESHOLD2DOWN=25
+GPUFREQ1=66
+GPUFREQ2=100
+GPUFREQ3=133
+GPUFREQ4=267
+GPUVOLT1=850
+GPUVOLT2=900
+GPUVOLT3=950
+GPUVOLT4=1050
+GPUTHRESHOLD1UP=80
+GPUTHRESHOLD2DOWN=30
GPUTHRESHOLD2UP=85
-GPUTHRESHOLD3DOWN=40
-GPUSTAYCOUNT1=1
-GPUSTAYCOUNT2=1
-GPUSTAYCOUNT3=1
-min_bl=40
+GPUTHRESHOLD3DOWN=50
+GPUTHRESHOLD3UP=90
+GPUTHRESHOLD4DOWN=80
+min_bl=50
min_gamma=0
max_gamma=24
-rate=200
+rate=100
enable_mask=3
-sched_mc_power_savings=0
-chargecurrent=2
-logger=on
+chargecurrent=1
+logger=off
secondcore=hotplug
-scheduler=sio
+scheduler=noop
scaling_governor=pegasusq
load_l1=20
load_h0=30
@@ -30,25 +30,27 @@ freq_min=200000
install_root=on
mov_hysti=5
suspend_freq=500000
-vibrator_level=3
+vibrator_level=6
user_gamma_adjust=0
-blnww=on
-cpustepcount=18
+blnww=off
+cpustepcount=16
notification_enabled=off
notification_timeout=0
-led_timeout=0
+led_timeout_ms=-1
bln_effect=0
-touchkey_brightness=2700
-led_fadeout=off
-led_on_touch=off
-cpu_undervolting=0
-smooth_level0=8
+touchkey_brightness=3000
+led_fadeout=on
+led_on_touch=on
+cpu_undervolting=1
+smooth_level0=4
scaling_max_freq=1000000
-scaling_min_freq=100000
+scaling_min_freq=200000
usb_mode=default
GENTLE_FAIR_SLEEPERS=off
-ARCH_POWER=on
default_stats=off
mdnie_shortcut_enabled=on
-cfs_tweaks=1
+cfs_tweaks=0
+zram_size=0
+mali_touch_boost_level=1
soundgasm_hp=0
+
View
2  res/customconfig/customconfig-helper
@@ -54,8 +54,8 @@ select_profile()
cp ${PROFILE_PATH}/${_ACTIVE_PROFILE}.profile ${PROFILE_PATH}/${1}.profile
fi
echo $1 > $ACTIVE_PROFILE
+ chmod 777 ${PROFILE_PATH}/${1}.profile
fi
- chmod 777 ${PROFILE_PATH}/${1}.profile
}
delete_profile()
View
77 res/customconfig/customconfig.xml
@@ -2,7 +2,6 @@
<settingsTab name="CPU">
<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." 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." name="ARCH_POWER" action="schedfeat ARCH_POWER" label="ARCH_POWER"/>
</settingsPane>
<settingsPane description="The following settings control CPU hotplug parameters. Depending on the following parameters, the second core is enabled or disabled."
name="CPU Hotplug Settings">
@@ -36,8 +35,6 @@
<spinnerItem name="Dual core mode" value="2"/>
<spinnerItem name="Single core mode" value="1"/>
</spinner>
- <seekBar description="Sets the sched_mc value which changes the cpu scheduler behaviour for multi-cpu systems. 0 is Samsung kernel's default value which turns sched_mc off. Setting it to 1 means that the first core will be tried to be loaded more and 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"/>
</settingsPane>
<settingsPane description=""
@@ -70,16 +67,32 @@
<spinnerItem name="smartassV2" value="smartassV2"/>
<spinnerItem name="interactive" value="interactive"/>
</spinner>
- <seekBar description="Scaling maximum frequency (Samsung default: 1200)"
- name="scaling_max_freq" action="generic /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq" unit=" Mhz" min="100000" reversed="false" step="100000" max="1600000"/>
- <seekBar description="Scaling minimum frequency (Samsung default: 200)"
- name="scaling_min_freq" action="generic /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq" unit=" Mhz" min="100000" reversed="false" step="100000" max="1600000"/>
+ <seekBar description="Scaling maximum frequency (Samsung default: 1200000)"
+ name="scaling_max_freq" action="generic /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq" unit=" kHz" min="100000" reversed="false" step="100000" max="1600000"/>
+ <seekBar description="Scaling minimum frequency (Samsung default: 200000)"
+ name="scaling_min_freq" action="generic /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq" unit=" kHz" min="100000" reversed="false" step="100000" max="1600000"/>
</settingsPane>
</settingsTab>
<settingsTab name="GPU">
- <settingsPane description="GPU Frequency Settings. Normally, our device has 2 frequency steps. SiyahKernel has three steps but the third step is not enabled as default. The defaults are 160,267 and 267. Voltage defaults are 950mV, 1000mV and 1000mV." name="GPUFreq">
- <spinner description="Changes the first (lowest) GPU frequency step" name="GPU Freq Step1" action="gpu-freq 1">
+ <settingsPane description="GPU Frequency Settings. Defaults frequencies are 100, 160, 200 and 267. Voltage defaults are 900mV, 950mV, 1000mV and 1050mV." name="GPUFreq">
+ <spinner description="Select the level to be used to boost GPU frequency when you touch the screen." name="Mali Touch Boost Level" action="generic /sys/module/mali/parameters/mali_touch_boost_level">
+ <spinnerItem name="Disabled" value="0"/>
+ <spinnerItem name="Step2" value="1"/>
+ <spinnerItem name="Step3" value="2"/>
+ <spinnerItem name="Step4" value="3"/>
+ </spinner>
+ <spinner description="Changes the first GPU frequency step" name="GPU Freq Step1" action="gpu-freq 1">
+ <spinnerItem name="400MHz" value="400"/>
+ <spinnerItem name="267MHz" value="267"/>
+ <spinnerItem name="200MHz" value="200"/>
+ <spinnerItem name="160MHz" value="160"/>
+ <spinnerItem name="133MHz" value="133"/>
+ <spinnerItem name="100MHz" value="100"/>
+ <spinnerItem name="66MHz" value="66"/>
+ <spinnerItem name="40MHz" value="40"/>
+ </spinner>
+ <spinner description="Changes the second GPU frequency step" name="GPU Freq Step2" action="gpu-freq 2">
<spinnerItem name="400MHz" value="400"/>
<spinnerItem name="267MHz" value="267"/>
<spinnerItem name="200MHz" value="200"/>
@@ -89,7 +102,7 @@
<spinnerItem name="66MHz" value="66"/>
<spinnerItem name="40MHz" value="40"/>
</spinner>
- <spinner description="Changes the second (middle) GPU frequency step" name="GPU Freq Step2" action="gpu-freq 2">
+ <spinner description="Changes the third GPU frequency step" name="GPU Freq Step3" action="gpu-freq 3">
<spinnerItem name="400MHz" value="400"/>
<spinnerItem name="267MHz" value="267"/>
<spinnerItem name="200MHz" value="200"/>
@@ -99,7 +112,7 @@
<spinnerItem name="66MHz" value="66"/>
<spinnerItem name="40MHz" value="40"/>
</spinner>
- <spinner description="Changes the third (last) GPU frequency step" name="GPU Freq Step3" action="gpu-freq 3">
+ <spinner description="Changes the fourth GPU frequency step" name="GPU Freq Step4" action="gpu-freq 4">
<spinnerItem name="400MHz" value="400"/>
<spinnerItem name="267MHz" value="267"/>
<spinnerItem name="200MHz" value="200"/>
@@ -111,13 +124,15 @@
</spinner>
</settingsPane>
- <settingsPane description="GPU Voltage Levels: The defaults are 950,1050 and 1050." name="GPU Voltage Levels">
- <seekBar description="GPU Voltage for the first (lowest) step"
- name="GPU Voltage Level1" action="gpu-voltage 1" unit="mV" min="800" reversed="false" step="50" max="1200"/>
- <seekBar description="GPU Voltage for the second (middle) step"
- name="GPU Voltage Level2" action="gpu-voltage 2" unit="mV" min="800" reversed="false" step="50" max="1200"/>
- <seekBar description="GPU Voltage for the third (highest) step"
- name="GPU Voltage Level3" action="gpu-voltage 3" unit="mV" min="800" reversed="false" step="50" max="1200"/>
+ <settingsPane description="GPU Voltage Levels: The defaults are 900, 950, 1000 and 1050." 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="1400"/>
+ <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="1400"/>
+ <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="1400"/>
+ <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="1400"/>
</settingsPane>
<settingsPane description="GPU load thresholds to change between frequency steps. The third step is disabled as default by having the second to third threshold 100." name="GPU Thresholds">
@@ -129,15 +144,10 @@
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"/>
- </settingsPane>
-
- <settingsPane description="The number of cycles that the GPU stays at the specific level. The defaults are 1,1 and 1." name="GPU StayCount">
- <seekBar description="GPU first (for the lowest freq) StayCount"
- name="GPU StayCount1" action="gpu-staycount 1" unit=" sec" min="0" reversed="false" step="1" max="5"/>
- <seekBar description="GPU second (for the middle freq) StayCount"
- name="GPU StayCount2" action="gpu-staycount 2" unit=" sec" min="0" reversed="false" step="1" max="5"/>
- <seekBar description="GPU third (for the highest freq) StayCount"
- name="GPU StayCount3" action="gpu-staycount 3" unit=" sec" min="0" reversed="false" step="1" max="5"/>
+ <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"/>
</settingsPane>
</settingsTab>
@@ -150,7 +160,7 @@
<settingsTab name="Screen">
<settingsPane description="Brightness Curve settings which modify auto-brightness behavior." name="Brightness Curve">
<seekBar description="Sets touchscreen move sensitivity (vitalij value)."
- name="TouchMove Sensitivity" action="generic /sys/devices/platform/s3c2440-i2c.3/i2c-3/3-004a/mov_hysti" unit=" pixel" min="0" reversed="false" step="1" max="20"/>
+ 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 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 0)"
@@ -160,7 +170,7 @@
</settingsPane>
<settingsPane description="Other Settings" name="Other Settings">
<seekBar description="User adjustable gamma shift."
- name="Gamma Shift" action="generic /sys/devices/platform/samsung-pd.2/s3cfb.0/spi_gpio.3/spi_master/spi3/spi3.0/lcd/panel/user_gamma_adjust" unit="" min="-50" reversed="false" step="5" max="50"/>
+ name="Gamma Shift" action="generic /sys/class/lcd/panel/user_gamma_adjust" unit="" min="-50" reversed="false" step="5" max="50"/>
<seekBar description="Vibration intensity level (default 6)"
name="Vibration Intensity" action="generic /sys/devices/platform/tspdrv/vibrator_level" unit="" min="0" reversed="false" step="1" max="6"/>
<checkbox description="Enable inverting the screen colors by quickly pressing Home button 4 times" name="mDNIe Negative Toggle" action="generic01 /sys/module/gpio_keys/parameters/mdnie_shortcut_enabled" label="mDNIe Negative Toggle"/>
@@ -205,13 +215,6 @@
<settingsTab name="Misc">
<settingsPane description="Misc Settings" name="Misc Settings">
<checkbox description="Enable or Disable Android Logger (needs restart)" name="Android Logger" action="generic /tmp/logger" label="Android Logger"/>
- <!-- spinner description="This will set the suspend frequency used in ondemand governor to have ondemandX behaviour. This will only be set during early stages of booting (before init.d execution) and can be overriden by later scripts or apps and only effective while ondemand governor is in use." name="Default Ondemand Suspend Freq." action="generic /sys/devices/system/cpu/cpufreq/ondemand/suspend_freq">
- <spinnerItem name="1200MHz" value="1200000"/>
- <spinnerItem name="1000MHz" value="1000000"/>
- <spinnerItem name="800MHz" value="800000"/>
- <spinnerItem name="500MHz" value="500000"/>
- <spinnerItem name="200MHz" value="200000"/>
- </spinner -->
<spinner description="This will set the default I/O scheduler. Default I/O scheduler will only be set during early stages of booting (before init.d execution) and can be overriden by later scripts or apps." name="Default I/O Scheduler" action="generic /sys/block/mmcblk0/queue/scheduler">
<spinnerItem name="sio" value="sio"/>
<spinnerItem name="noop" value="noop"/>
@@ -237,7 +240,7 @@
<spinnerItem name="Force Mass Storage Mode" value="mass_storage-adb"/>
<spinnerItem name="Force MTP Mode" value="mtp-adb"/>
</spinner>
- <checkbox description="If checked, BetterBatteryStatus will report exclusive (non-overlapping) wakelock statistics." name="Exclusive Wakelock Stats" action="generic01 /sys/module/wakelock/parameters/default_stats" label="Exclusive Wakelock Stats"/>
+ <checkbox description="If checked, BetterBatteryStatus will report discrete (non-overlapping) wakelock statistics." name="Discrete Wakelock Stats" action="generic01 /sys/module/wakelock/parameters/default_stats" label="Discrete Wakelock Stats"/>
<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 those period, then the battery percentage should be fine." name="Reset Fuel-Gauge Chip" action="reset-fuelgauge" label="Reset Fuel-Gauge Chip"/>
</settingsPane>
<settingsPane description="Removing/Reinstalling root to support some apps which requires you not to have a rooted phone." name="Remove/Reinstall Root">
View
14 res/customconfig/default.profile
@@ -1,22 +1,22 @@
GPUFREQ1=100
GPUFREQ2=160
-GPUFREQ3=267
-GPUVOLT1=950
+GPUFREQ3=200
+GPUFREQ4=267
+GPUVOLT1=900
GPUVOLT2=950
GPUVOLT3=1000
+GPUVOLT4=1050
GPUTHRESHOLD1UP=70
GPUTHRESHOLD2DOWN=50
GPUTHRESHOLD2UP=85
GPUTHRESHOLD3DOWN=50
-GPUSTAYCOUNT1=0
-GPUSTAYCOUNT2=0
-GPUSTAYCOUNT3=1
+GPUTHRESHOLD3UP=85
+GPUTHRESHOLD4DOWN=70
min_bl=30
min_gamma=0
max_gamma=24
rate=100
enable_mask=3
-sched_mc_power_savings=0
chargecurrent=1
logger=on
secondcore=hotplug
@@ -47,10 +47,10 @@ scaling_max_freq=1200000
scaling_min_freq=200000
usb_mode=default
GENTLE_FAIR_SLEEPERS=off
-ARCH_POWER=on
default_stats=off
mdnie_shortcut_enabled=on
cfs_tweaks=0
zram_size=0
+mali_touch_boost_level=1
soundgasm_hp=0
View
52 res/customconfig/performance.profile
@@ -1,43 +1,43 @@
-GPUFREQ1=160
-GPUFREQ2=267
-GPUFREQ3=267
+GPUFREQ1=100
+GPUFREQ2=160
+GPUFREQ3=200
+GPUFREQ4=267
GPUVOLT1=950
GPUVOLT2=1000
-GPUVOLT3=1000
-GPUTHRESHOLD1UP=55
-GPUTHRESHOLD2DOWN=30
-GPUTHRESHOLD2UP=85
-GPUTHRESHOLD3DOWN=50
-GPUSTAYCOUNT1=0
-GPUSTAYCOUNT2=1
-GPUSTAYCOUNT3=1
+GPUVOLT3=1050
+GPUVOLT4=1100
+GPUTHRESHOLD1UP=40
+GPUTHRESHOLD2DOWN=20
+GPUTHRESHOLD2UP=50
+GPUTHRESHOLD3DOWN=30
+GPUTHRESHOLD3UP=60
+GPUTHRESHOLD4DOWN=40
min_bl=30
-min_gamma=1
+min_gamma=0
max_gamma=24
rate=100
-enable_mask=3
-sched_mc_power_savings=0
-chargecurrent=2
+enable_mask=2
+chargecurrent=3
logger=on
secondcore=hotplug
-scheduler=sio
+scheduler=deadline
scaling_governor=pegasusq
-load_l1=10
-load_h0=25
+load_l1=20
+load_h0=30
load_rq=20
min_rq=2
-freq_min=300000
+freq_min=200000
install_root=on
-mov_hysti=3
-suspend_freq=800000
+mov_hysti=5
+suspend_freq=500000
vibrator_level=6
user_gamma_adjust=0
blnww=off
-cpustepcount=18
+cpustepcount=16
notification_enabled=off
notification_timeout=0
-led_timeout=0
-bln_effect=1
+led_timeout_ms=-1
+bln_effect=0
touchkey_brightness=3000
led_fadeout=on
led_on_touch=on
@@ -47,8 +47,10 @@ scaling_max_freq=1200000
scaling_min_freq=200000
usb_mode=default
GENTLE_FAIR_SLEEPERS=off
-ARCH_POWER=on
default_stats=off
mdnie_shortcut_enabled=on
cfs_tweaks=1
+zram_size=0
+mali_touch_boost_level=2
soundgasm_hp=3
+
View
BIN  res/images/icon_clockwork.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
4 default.prop → res/misc/init.40/default.prop
@@ -1,7 +1,7 @@
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
-ro.secure=0
+ro.secure=1
ro.allow.mock.location=0
ro.debuggable=1
-persist.sys.usb.config=mtp
+persist.sys.usb.config=mtp,adb
View
0  fota.rc → res/misc/init.40/fota.rc
File renamed without changes
View
0  init.goldfish.rc → res/misc/init.40/init.goldfish.rc
File renamed without changes
View
17 init.rc → res/misc/init.40/init.rc
@@ -106,15 +106,15 @@ loglevel 3
on fs
# mount ext4 partitions
# Mount /system rw first to give the filesystem a chance to save a checkpoint
- mount ext4 /res/dev/system /system noatime wait ro nodelalloc
+ mount ext4 /res/dev/system /system noatime wait ro
exec sfsck /res/dev/cache ext4
- mount ext4 /res/dev/cache /cache nosuid nodev noatime wait nodelalloc
+ mount ext4 /res/dev/cache /cache nosuid nodev noatime wait
mkdir /efs
#mount rfs /dev/block/mmcblk0p1 /efs nosuid nodev check=no
exec sfsck /dev/block/mmcblk0p1 ext4
- mount ext4 /dev/block/mmcblk0p1 /efs nosuid nodev noatime wait nodelalloc
+ mount ext4 /dev/block/mmcblk0p1 /efs nosuid nodev noatime wait
chown radio system /efs
chmod 0771 /efs
mkdir /efs/bluetooth
@@ -170,6 +170,9 @@ on post-fs-data
# We chown/chmod /data again so because mount is run as root + defaults
chown system system /data
chmod 0771 /data
+ mkdir /data/system
+ chown system system /data/system
+ chmod 0771 /data/system
# Create dump dir and collect dumps.
# Do this before we mount cache so eventually we can use cache for
@@ -214,7 +217,7 @@ on post-fs-data
mkdir /data/misc/wifi 0770 wifi wifi
chmod 0770 /data/misc/wifi
chmod 0660 /data/misc/wifi/wpa_supplicant.conf
- mkdir /data/local 0751 root root
+ mkdir /data/local 0771 shell shell
mkdir /data/local/tmp 0771 shell shell
mkdir /data/data 0771 system system
mkdir /data/app-private 0771 system system
@@ -747,7 +750,7 @@ service surfaceflinger /system/bin/surfaceflinger
service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
class main
- socket zygote stream 660 root system
+ socket zygote stream 666
onrestart write /sys/android_power/request_state wake
onrestart write /sys/power/state on
onrestart restart media
@@ -756,7 +759,7 @@ service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-sys
service drm /system/bin/drmserver
class main
user drm
- group system inet drmrpc sdcard_rw media_rw radio
+ group system inet sdcard_rw media_rw radio
service media /system/bin/mediaserver
class main
@@ -829,7 +832,7 @@ service racoon /system/bin/racoon
class main
socket racoon stream 600 system system
# racoon will setuid to vpn after getting necessary resources.
- group vpn net_admin inet
+ group net_admin
disabled
oneshot
View
6 init.rc.2 → res/misc/init.40/init.rc.2
@@ -752,7 +752,7 @@ service surfaceflinger /system/bin/surfaceflinger
service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
class main
- socket zygote stream 660 root system
+ socket zygote stream 666
onrestart write /sys/android_power/request_state wake
onrestart write /sys/power/state on
onrestart restart media
@@ -761,7 +761,7 @@ service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-sys
service drm /system/bin/drmserver
class main
user drm
- group system inet drmrpc sdcard_rw media_rw radio
+ group system inet sdcard_rw media_rw radio
service media /system/bin/mediaserver
class main
@@ -834,7 +834,7 @@ service racoon /system/bin/racoon
class main
socket racoon stream 600 system system
# racoon will setuid to vpn after getting necessary resources.
- group vpn net_admin inet
+ group net_admin
disabled
oneshot
View
0  init.smdk4210.rc → res/misc/init.40/init.smdk4210.rc
File renamed without changes
View
0  init.smdk4210.usb.rc → res/misc/init.40/init.smdk4210.usb.rc
File renamed without changes
View
BIN  innt → res/misc/init.40/innt
Binary file not shown
View
0  lpm.rc → res/misc/init.40/lpm.rc
File renamed without changes
View
0  recovery.rc → res/misc/init.40/recovery.rc
File renamed without changes
View
0  ueventd.goldfish.rc → res/misc/init.40/ueventd.goldfish.rc
File renamed without changes
View
0  ueventd.rc → res/misc/init.40/ueventd.rc
File renamed without changes
View
0  ueventd.smdk4210.rc → res/misc/init.40/ueventd.smdk4210.rc
File renamed without changes
View
6 res/misc/init.cm10/init.rc
@@ -317,11 +317,11 @@ on boot
# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
- setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
+ setprop net.tcp.buffersize.default 4096,87380,704512,4096,16384,110208
setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576
setprop net.tcp.buffersize.lte 524288,1048576,2097152,262144,524288,1048576
- setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208
- setprop net.tcp.buffersize.hspa 4094,87380,262144,4096,16384,262144
+ setprop net.tcp.buffersize.umts 4094,87380,563200,4096,16384,110208
+ setprop net.tcp.buffersize.hspa 4094,87380,704512,4096,16384,262144
setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
View
BIN  res/misc/init.cm9/innt
Binary file not shown
View
BIN  sbin/adbd
Binary file not shown
View
BIN  sbin/busybox
Binary file not shown
View
17 sbin/ext/post-init.sh
@@ -10,7 +10,7 @@ chmod 777 /data/.siyah
ccxmlsum=`md5sum /res/customconfig/customconfig.xml | awk '{print $1}'`
if [ "a${ccxmlsum}" != "a`cat /data/.siyah/.ccxmlsum`" ];
then
- rm -f /data/.siyah/*.profile
+# rm -f /data/.siyah/*.profile
echo ${ccxmlsum} > /data/.siyah/.ccxmlsum
fi
[ ! -f /data/.siyah/default.profile ] && cp /res/customconfig/default.profile /data/.siyah
@@ -80,9 +80,6 @@ chmod 777 /mnt/ntfs
##### Early-init phase tweaks #####
/sbin/busybox sh /sbin/ext/tweaks.sh
-#apply last soundgasm level on boot
-/res/uci.sh soundgasm_hp $soundgasm_hp
-
/sbin/busybox mount -t rootfs -o remount,ro rootfs
##### EFS Backup #####
@@ -92,13 +89,15 @@ sleep 30
/sbin/busybox sh /sbin/ext/efs-backup.sh
) &
+sleep 12
+#apply last soundgasm level on boot
+/res/uci.sh soundgasm_hp $soundgasm_hp
+
# apply ExTweaks defaults
/res/uci.sh apply
-##### init scripts #####
-(
-/sbin/busybox sh /sbin/ext/run-init-scripts.sh
-)&
-
#usb mode
/res/customconfig/actions/usb-mode ${usb_mode}
+
+##### init scripts #####
+/sbin/busybox sh /sbin/ext/run-init-scripts.sh
View
73 sbin/init
@@ -6,6 +6,7 @@ busybox mount -t sysfs sysfs /sys
tar xvf /res/misc/dev.tar
if grep -q bootmode=2 /proc/cmdline ; then
+ cp -a /res/misc/init.40/* /
echo 0 > /proc/sys/kernel/rom_feature_set
cp -a /recovery.rc /init.rc
exec /sbin/init2
@@ -13,7 +14,8 @@ fi
if busybox grep -q 1 /sys/class/power_supply/battery/batt_lp_charging ; then
# low power mode
echo 0 > /proc/sys/kernel/rom_feature_set
- cp -a /lpm.rc /init.rc
+ cp -a /res/misc/init.40/* /
+ cp lpm.rc init.rc
rm init.smdk4210.rc
exec /sbin/init2
fi
@@ -21,13 +23,15 @@ fi
SECONDROM=1
NOBOOTLOGO=0
mount -t ext4 -o ro /dev/block/mmcblk0p12 /preload
-mount -t vfat /dev/block/mmcblk0p11 /mnt/sdcard
+mount -t vfat /dev/block/mmcblk0p11 /mnt/sdcard && ( touch /mnt/sdcard/clockworkmod/.nomedia )
+mount -t vfat /dev/block/mmcblk1p1 /mnt/emmc && ( touch /mnt/emmc/clockworkmod/.nomedia )
[ -f /preload/build.prop ] || SECONDROM=0
[ -f /mnt/sdcard/.secondrom/data.img ] || SECONDROM=0
[ -f /mnt/sdcard/.secondrom/cache.img ] || SECONDROM=0
[ -f /mnt/sdcard/.nobootlogo ] && NOBOOTLOGO=1
umount /preload
umount /mnt/sdcard
+umount /mnt/emmc
if [[ "$NOBOOTLOGO" == "1" && "$SECONDROM" == "0" ]];then
/sbin/choose_rom
@@ -56,47 +60,41 @@ CM10=0
[ -d /system/b2g ] && B2G=1
[ -f /system/framework/framework2.jar ] || AOSP=1
-[ "`/sbin/busybox grep Slim /system/build.prop`" ] && AOSP=1
-[ "`/sbin/busybox grep -i aosp /system/build.prop`" ] && AOSP=1
-[ "`/sbin/busybox grep -i hydrog /system/build.prop`" ] && AOSP=1
-[ "`/sbin/busybox grep -i =aokp /system/build.prop`" ] && AOSP=1
-[ "`/sbin/busybox grep -i CyanogenMod /system/build.prop`" ] && AOSP=1
-[ "`/sbin/busybox grep -i AdyScorpius /system/build.prop`" ] && AOSP=1
-[ "`/sbin/busybox grep -i cMIUI /system/build.prop`" ] && AOSP=1
-[ "`/sbin/busybox grep -i insanity /system/build.prop`" ] && AOSP=1
-[ "`/sbin/busybox grep -i Oxygen /system/build.prop`" ] && AOSP=1
-[ "`/sbin/busybox grep -i =MIUI /system/build.prop`" ] && MIUI=1
[ -f /system/framework/framework-miui.jar ] && MIUI=1
-[ -f /system/lib/ssl/engines/libkeystore.so ] && CM10=1
+[ -f /system/lib/ssl/engines/libkeystore.so ] && JB=1
+[ -f /system/framework/seccamera.jar ] || CM10=1
-if [ "$CM10" == 1 ];
+if [ "$JB" == 1 ];
then
-echo 1 > /proc/sys/kernel/rom_feature_set
-rm -f /*
+ if [ "$CM10" == 1 ];
+ then
+ echo 1 > /proc/sys/kernel/rom_feature_set
rm -rf /vendor
-mv -f /res/misc/init.cm10/* /
+ mv -f /res/misc/init.cm10/* /
+ else
+ echo 0 > /proc/sys/kernel/rom_feature_set
+ mv -f /res/misc/init.41/* /
+ fi

The CM10 camera hook is awesome! thanks!
but where is the /res/misc/init.41/ ???

forget to merge? or it's TYPO?

@gokhanmoral Owner

it is not released yet. when samsung releases jellybean kernel sources I will put that one as well and I hope we can use both ics and jb with the same kernel

well for now please look here
dorimanx@293170f

this is not real sg2 sammy stock! but it's taken from real nexus sammy rom (original kernel)
and reported working good for all kanged JB sammy for SG2 :)

feel free to test/use!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
else
-if [ "$B2G" == 1 ];
-then
-cp -a /res/misc/init.b2g/* /
-mv /sbin/init.b2g /sbin/init.samsung
-fi;
+ if [ "$B2G" == 1 ];
+ then
+ cp -a /res/misc/init.b2g/* /
+ fi;
-if [ "$AOSP" == 1 ];
-then
-echo 1 > /proc/sys/kernel/rom_feature_set
-cp -a /res/misc/init.cm9/* /
-rm /init.rc.2
-rm -rf /vendor
-else
-echo 0 > /proc/sys/kernel/rom_feature_set
-rm /init.smdk4210.rc.2
-fi;
+ if [ "$AOSP" == "1" ];
+ then
+ echo 1 > /proc/sys/kernel/rom_feature_set
+ mv -f /res/misc/init.cm9/* /
+ rm -rf /vendor
+ else
+ echo 0 > /proc/sys/kernel/rom_feature_set
+ mv -f /res/misc/init.40/* /
+ fi;
-if [ "$MIUI" == 1 ];
-then
-cp -a /res/misc/init.miui/* /
-fi
+ if [ "$MIUI" == 1 ];
+ then
+ cp -a /res/misc/init.miui/* /
+ fi
fi
if [ "$SECONDROM" == "1" ];then
@@ -107,4 +105,7 @@ else
fi
umount /system
+chmod 755 /innt
+chmod 644 /*.rc
+chmod 644 /*.prop

for full set add also:
chmod 644 /..rc

for file like ueventd.goldfish.rc and rest :)

Hmm, it's not showing the STAR.STAR.rc :)

@gokhanmoral Owner

star.rc covers that as well

:) you right, didnt tested, sorry :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
exec /sbin/init2
View
1  sbin/minizip
@dorimanx

The CM10 camera hook is awesome! thanks!
but where is the /res/misc/init.41/ ???

forget to merge? or it's TYPO?

@dorimanx

for full set add also:
chmod 644 /..rc

for file like ueventd.goldfish.rc and rest :)

Hmm, it's not showing the STAR.STAR.rc :)

@gokhanmoral

star.rc covers that as well

@gokhanmoral

it is not released yet. when samsung releases jellybean kernel sources I will put that one as well and I hope we can use both ics and jb with the same kernel

@dorimanx

:) you right, didnt tested, sorry :)

@dorimanx

well for now please look here
dorimanx@293170f

this is not real sg2 sammy stock! but it's taken from real nexus sammy rom (original kernel)
and reported working good for all kanged JB sammy for SG2 :)

feel free to test/use!

Please sign in to comment.
Something went wrong with that request. Please try again.