Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

v1.7

  • Loading branch information...
commit 37475f6e84b49d386fc7751ba60654561cd5b69d 1 parent cef4fd4
Gokhan Moral authored October 04, 2012

Showing 75 changed files with 2,630 additions and 188 deletions. Show diff stats Hide diff stats

  1. BIN  lib/modules/dhd_cm.ko
  2. BIN  res/STweaks.apk
  3. 11  res/customconfig/actions/defaultrom
  4. 9  res/customconfig/actions/eq-presets
  5. 6  res/customconfig/actions/generic
  6. 6  res/customconfig/actions/generic01
  7. 8  res/customconfig/actions/gpu-thresh
  8. 4  res/customconfig/actions/hijack-recovery
  9. 9  res/customconfig/actions/max-cpu-lock
  10. 18  res/customconfig/actions/no-boot-logo
  11. 6  res/customconfig/actions/reboot-into
  12. 5  res/customconfig/actions/schedfeat
  13. 41  res/customconfig/customconfig.xml
  14. 8  res/customconfig/default.profile
  15. 12  res/etc/recovery.fstab
  16. BIN  res/images/icon_clockwork.png
  17. BIN  res/images/icon_error.png
  18. BIN  res/images/icon_firmware_error.png
  19. BIN  res/images/icon_firmware_install.png
  20. BIN  res/images/icon_installing.png
  21. BIN  res/images/icon_installing_overlay01.png
  22. BIN  res/images/icon_installing_overlay02.png
  23. BIN  res/images/icon_installing_overlay03.png
  24. BIN  res/images/icon_installing_overlay04.png
  25. BIN  res/images/icon_installing_overlay05.png
  26. BIN  res/images/icon_installing_overlay06.png
  27. BIN  res/images/icon_installing_overlay07.png
  28. BIN  res/images/indeterminate01.png
  29. BIN  res/images/indeterminate02.png
  30. BIN  res/images/indeterminate03.png
  31. BIN  res/images/indeterminate04.png
  32. BIN  res/images/indeterminate05.png
  33. BIN  res/images/indeterminate06.png
  34. BIN  res/images/progress_empty.png
  35. BIN  res/images/progress_fill.png
  36. BIN  res/images/stitch.png
  37. BIN  res/images/virtual_keys.png
  38. 1  res/keys
  39. 12  res/misc/init.41/fstab.smdk4x12.2
  40. 10  res/misc/init.41/init.rc
  41. 4  res/misc/init.41/init.smdk4x12.rc
  42. 414  res/misc/init.41/init.smdk4x12.rc.2
  43. BIN  res/misc/init.41/innt
  44. 12  res/misc/init.cm10/fstab.smdk4x12.2
  45. 40  res/misc/init.cm10/init.cm.rc
  46. 51  res/misc/init.cm10/init.rc
  47. 7  res/misc/init.cm10/init.smdk4x12.rc
  48. 520  res/misc/init.cm10/init.smdk4x12.rc.2
  49. 19  res/misc/init.cm10/init.smdk4x12.usb.rc
  50. BIN  res/misc/init.cm10/innt
  51. 94  res/misc/recovery/default.prop
  52. 62  res/misc/recovery/init.rc
  53. 22  res/uci.sh
  54. 0  sbin/{tty → blkid}
  55. BIN  sbin/busybox
  56. 1  sbin/busybox
  57. 2  sbin/choose_rom
  58. BIN  sbin/e2fsck
  59. 3  sbin/ext/bindmount
  60. 21  sbin/ext/install.sh
  61. 22  sbin/ext/mdnie-sharpness-tweak.sh
  62. 43  sbin/ext/tweaks.sh
  63. 484  sbin/fix_permissions
  64. 99  sbin/init
  65. 22  sbin/killrecovery.sh
  66. 1  sbin/minizip
  67. BIN  sbin/mke2fs
  68. 12  sbin/nandroid-md5.sh
  69. BIN  sbin/parted
  70. 1  sbin/reboot
  71. BIN  sbin/recovery
  72. 655  sbin/sdparted
  73. BIN  sbin/tune2fs
  74. 41  sbin/vold-set-sdcard
  75. 0  tmp/EMPTY_DIRECTORY
BIN  lib/modules/dhd_cm.ko
Binary file not shown
BIN  res/STweaks.apk
Binary file not shown
11  res/customconfig/actions/defaultrom
... ...
@@ -0,0 +1,11 @@
  1
+#!/sbin/busybox sh
  2
+
  3
+if [ "a$2" != "a" ];then
  4
+  echo $2 > $EXTERNAL_STORAGE/.defaultrom
  5
+fi
  6
+
  7
+if [ -f $EXTERNAL_STORAGE/.defaultrom ];then
  8
+  cat $EXTERNAL_STORAGE/.defaultrom
  9
+else
  10
+  echo 0
  11
+fi
9  res/customconfig/actions/eq-presets
... ...
@@ -1,21 +1,17 @@
1 1
 #!/sbin/busybox sh
2 2
 
3  
-if [ "a$2" == "a" ];then
4  
-exit
5  
-fi
  3
+if [ "a$2" != "a" ];then
6 4
 
7 5
 filename=$(basename $2)
8 6
 
9 7
 if [ "a$3" == "a" ];then
10 8
   evalcmd='eval "echo \$$filename"'
11 9
   eval $evalcmd
12  
-  exit
13 10
 else
14 11
   evalcmd='eval "$filename=$3"'
15 12
   eval $evalcmd
16 13
   evalcmd='eval "echo \$$filename"'
17 14
   eval $evalcmd
18  
-fi
19 15
 
20 16
 echo -${digital_gain}000 > /sys/class/misc/scoobydoo_sound/digital_gain
21 17
 echo 1 A 0x0FBB > /sys/class/misc/scoobydoo_sound/headphone_eq_bands_values
@@ -96,4 +92,5 @@ else
96 92
     echo 1 > /sys/class/misc/scoobydoo_sound/headphone_eq
97 93
 fi
98 94
 
99  
-
  95
+fi
  96
+fi
6  res/customconfig/actions/generic
... ...
@@ -1,9 +1,6 @@
1 1
 #!/sbin/busybox sh
2 2
 
3  
-if [ "a$2" == "a" ];then
4  
-exit
5  
-fi
6  
-
  3
+if [ "a$2" != "a" ];then
7 4
 filename=$(basename $2)
8 5
 
9 6
 if [ "a$3" == "a" ];then
@@ -18,5 +15,6 @@ else
18 15
     echo $3 > $2
19 16
   fi
20 17
 fi
  18
+fi
21 19
 
22 20
 
6  res/customconfig/actions/generic01
... ...
@@ -1,9 +1,6 @@
1 1
 #!/sbin/busybox sh
2 2
 
3  
-if [ "a$2" == "a" ];then
4  
-exit
5  
-fi
6  
-
  3
+if [ "a$2" != "a" ];then
7 4
 filename=$(basename $2)
8 5
 
9 6
 if [ "a$3" == "a" ];then
@@ -25,5 +22,6 @@ else
25 22
     esac;
26 23
   fi
27 24
 fi
  25
+fi
28 26
 
29 27
 
8  res/customconfig/actions/gpu-thresh
@@ -12,20 +12,12 @@ else
12 12
   echo "${GPUTHRESHOLD1UP}% ${GPUTHRESHOLD2DOWN}% ${GPUTHRESHOLD2UP}% ${GPUTHRESHOLD3DOWN}% ${GPUTHRESHOLD3UP}% ${GPUTHRESHOLD4DOWN}% ${GPUTHRESHOLD4UP}% ${GPUTHRESHOLD5DOWN}%" > /sys/class/misc/mali_control/threshold_control
13 13
   else
14 14
     echo $GPUTHRESHOLD1UP > /sys/module/mali/parameters/step0_up
15  
-    echo $GPUTHRESHOLD1UP > /sys/module/mali/parameters/new_step0_up
16 15
     echo $GPUTHRESHOLD2DOWN > /sys/module/mali/parameters/step1_down
17  
-    echo $GPUTHRESHOLD2DOWN > /sys/module/mali/parameters/new_step1_down
18 16
     echo $GPUTHRESHOLD2UP > /sys/module/mali/parameters/step1_up
19  
-    echo $GPUTHRESHOLD2UP > /sys/module/mali/parameters/new_step1_up
20 17
     echo $GPUTHRESHOLD3DOWN > /sys/module/mali/parameters/step2_down
21  
-    echo $GPUTHRESHOLD3DOWN > /sys/module/mali/parameters/new_step2_down
22 18
     echo $GPUTHRESHOLD3UP > /sys/module/mali/parameters/step2_up
23  
-    echo $GPUTHRESHOLD3UP > /sys/module/mali/parameters/new_step2_up
24 19
     echo $GPUTHRESHOLD4DOWN > /sys/module/mali/parameters/step3_down
25  
-    echo $GPUTHRESHOLD4DOWN > /sys/module/mali/parameters/new_step3_down
26 20
     echo $GPUTHRESHOLD4UP > /sys/module/mali/parameters/step3_up
27  
-    echo $GPUTHRESHOLD4UP > /sys/module/mali/parameters/new_step3_up
28 21
     echo $GPUTHRESHOLD5DOWN > /sys/module/mali/parameters/step4_down
29  
-    echo $GPUTHRESHOLD5DOWN > /sys/module/mali/parameters/new_step4_down
30 22
   fi
31 23
 fi
4  res/customconfig/actions/hijack-recovery
... ...
@@ -0,0 +1,4 @@
  1
+#!/sbin/busybox sh
  2
+
  3
+dd if=/dev/block/mmcblk0p5 of=/dev/block/mmcblk0p6
  4
+echo Recovery is hijacked. You will be able to boot into the 2ndROM Utils with 3-button combo.
9  res/customconfig/actions/max-cpu-lock
... ...
@@ -0,0 +1,9 @@
  1
+#!/sbin/busybox sh
  2
+
  3
+if [ "a$2" != "a" ];then
  4
+  max_cpu_lock=$2
  5
+fi
  6
+echo $max_cpu_lock > /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock
  7
+echo $max_cpu_lock > /sys/devices/system/cpu/cpufreq/lulzactiveq/max_cpu_lock
  8
+
  9
+echo $max_cpu_lock
18  res/customconfig/actions/no-boot-logo
... ...
@@ -0,0 +1,18 @@
  1
+#!/sbin/busybox sh
  2
+
  3
+if [ "a$2" != "a" ];then
  4
+  case "$2" in
  5
+    on)
  6
+      echo 1 > $EXTERNAL_STORAGE/.nobootlogo
  7
+      ;;
  8
+    off)
  9
+      rm -f $EXTERNAL_STORAGE/.nobootlogo
  10
+      ;;
  11
+  esac;
  12
+fi
  13
+
  14
+if [ -f $EXTERNAL_STORAGE/.nobootlogo ];then
  15
+  echo on
  16
+else
  17
+  echo off
  18
+fi
6  res/customconfig/actions/reboot-into
... ...
@@ -0,0 +1,6 @@
  1
+#!/sbin/busybox sh
  2
+
  3
+if [ "a$2" != "a" ];then
  4
+  echo $2 > $EXTERNAL_STORAGE/.nextboot
  5
+  reboot
  6
+fi
5  res/customconfig/actions/schedfeat
... ...
@@ -1,8 +1,6 @@
1 1
 #!/sbin/busybox sh
2 2
 
3  
-if [ "a$2" == "a" ];then
4  
-exit
5  
-fi
  3
+if [ "a$2" != "a" ];then
6 4
 
7 5
 if [ "a$3" == "a" ];then
8 6
   evalcmd='eval "echo \$$2"'
@@ -24,3 +22,4 @@ else
24 22
   fi
25 23
 fi
26 24
 
  25
+fi
41  res/customconfig/customconfig.xml
@@ -12,17 +12,11 @@
12 12
              <spinnerItem name="AFTR only" value="1"/> 
13 13
              <spinnerItem name="Idle only" value="0"/> 
14 14
       </spinner>
15  
-      <spinner description="Sets the number of CPUs to be used in hotplugging (only for PegasusQ)" name="Max CPU Lock" action="generic /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock">
16  
-             <spinnerItem name="Quad core mode (unlocked,default)" value="0"/> 
17  
-             <spinnerItem name="Triple core mode" value="3"/> 
18  
-             <spinnerItem name="Dual core mode" value="2"/> 
19  
-             <spinnerItem name="Single core mode" value="1"/> 
20  
-      </spinner>
21 15
     </settingsPane>
22 16
 
23 17
     <settingsPane description=""
24 18
 		name="CPU Undervolting">
25  
-      <spinner description="Sets the CPU undervolting value which will be applied during boot time only. It will not have any effect until you reboot your device. Remember: if you change this value and your device doesn't boot you will have to reset extweaks settings using CWM recovery. This value will be applied to all CPU steps before any script or app execution. If you use any script or voltage control app this setting may be overriden by those." name="CPU Undervolting" action="generic /tmp/cpu_undervolting">
  19
+      <spinner description="Sets the CPU undervolting value which will be applied during boot time only. It will not have any effect until you restart your device. Remember: if you change this value and your device doesn't boot you will have to reset extweaks settings using CWM recovery. This value will be applied to all CPU steps before any script or app execution. If you use any script or voltage control app this setting may be overriden by those." name="CPU Undervolting" action="generic /tmp/cpu_undervolting">
26 20
              <spinnerItem name="No Undervolting" value="0"/> 
27 21
              <spinnerItem name=" -25 mV" value="-25"/> 
28 22
              <spinnerItem name=" -50 mV" value="-50"/> 
@@ -33,10 +27,11 @@
33 27
 
34 28
     <settingsPane description=""
35 29
 		name="CPU Scaling Settings">
36  
-       <spinner description="This will set the default CPU governor. Default CPU governor will only be set during early stages of booting (before init.d execution) and can be overriden by later scripts or apps." name="Default CPU Governor" action="generic /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor">
37  
-             <spinnerItem name="pegasusq" value="pegasusq"/> 
38  
-             <spinnerItem name="lulzactiveq" value="lulzactiveq"/> 
39  
-             <spinnerItem name="hotplug" value="hotplug"/> 
  30
+       <spinner description="Sets the number of CPUs to be used in hotplugging" name="Max CPU Lock" action="max-cpu-lock">
  31
+             <spinnerItem name="Quad core mode (unlocked,default)" value="0"/> 
  32
+             <spinnerItem name="Triple core mode" value="3"/> 
  33
+             <spinnerItem name="Dual core mode" value="2"/> 
  34
+             <spinnerItem name="Single core mode" value="1"/> 
40 35
        </spinner>
41 36
        <seekBar description="Scaling maximum frequency (Samsung default: 1400000)"
42 37
                 name="scaling_max_freq" action="generic /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq" unit=" kHz" min="800000" reversed="false" step="100000" max="1700000"/>
@@ -94,7 +89,7 @@
94 89
              <spinnerItem name="266MHz" value="266"/> 
95 90
              <spinnerItem name="200MHz" value="200"/> 
96 91
       </spinner>
97  
-      <spinner description="Changes the fourth GPU frequency step" name="GPU Freq Step5" action="gpu-freq 5">
  92
+      <spinner description="Changes the fifth GPU frequency step" name="GPU Freq Step5" action="gpu-freq 5">
98 93
              <spinnerItem name="700MHz" value="700"/> 
99 94
              <spinnerItem name="666MHz" value="666"/> 
100 95
              <spinnerItem name="640MHz" value="640"/> 
@@ -122,11 +117,11 @@
122 117
 		name="GPU Voltage Level3" action="gpu-voltage 3" unit="mV" min="600" reversed="false" step="25" max="1200"/>
123 118
       <seekBar description="GPU Voltage for the fourth step" 
124 119
 		name="GPU Voltage Level4" action="gpu-voltage 4" unit="mV" min="600" reversed="false" step="25" max="1200"/>
125  
-      <seekBar description="GPU Voltage for the fourth step" 
  120
+      <seekBar description="GPU Voltage for the fifth step" 
126 121
 		name="GPU Voltage Level5" action="gpu-voltage 5" unit="mV" min="600" reversed="false" step="25" max="1200"/>
127 122
     </settingsPane>
128 123
 
129  
-    <settingsPane description="GPU load thresholds to change between frequency steps. Defaults: 70, 62, 90, 85, 90, 90." name="GPU Thresholds">
  124
+    <settingsPane description="GPU load thresholds to change between frequency steps." name="GPU Thresholds">
130 125
       <seekBar description="GPU threshold to jump up from first to second step" 
131 126
 		name="GPU Threshold 1-UP" action="gpu-thresh 1UP" unit="%" min="0" reversed="false" step="5" max="100"/>
132 127
       <seekBar description="GPU threshold to jump down from second to first step" 
@@ -231,6 +226,7 @@
231 226
              <spinnerItem name="500MHz" value="13"/> 
232 227
              <spinnerItem name="200MHz (disabled)" value="16"/> 
233 228
        </spinner>
  229
+       <checkbox description="Enable slide2wake feature which will let you unlock the phone by swiping your finger straight over the screen from left to right. Enabling this feature may decrease your battery life." name="Slide2Wake" action="generic01 /sys/devices/virtual/sec/tsp/tsp_slide2wake" label="Slide2Wake"/>
234 230
     </settingsPane>
235 231
   </settingsTab>
236 232
   <settingsTab name="Misc">
@@ -252,6 +248,7 @@
252 248
 		name="AC Charge" action="chargecurrent_ac" unit="mA" min="800" reversed="false" step="100" max="1200"/>
253 249
       <seekBar description="USB charge current (default 475)" 
254 250
 		name="USB Charge" action="chargecurrent_usb" unit="mA" min="450" reversed="false" step="25" max="900"/>
  251
+      <checkbox description="Check this if you don't want boot logo to be shown. Remember that it will always be shown if you have a secondrom installation." name="No boot-logo" action="no-boot-logo" label="No boot-logo"/>
255 252
       <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"/>
256 253
     </settingsPane>
257 254
     <settingsPane description="Removing/Reinstalling root to support some apps which requires you not to have a rooted phone." name="Remove/Reinstall Root">
@@ -259,5 +256,19 @@
259 256
       <checkbox description="If checked, installs root on the next reboot." name="Auto-Install Root" action="generic /tmp/install_root" label="Auto-Install Root"/>
260 257
     </settingsPane>
261 258
   </settingsTab>
262  
-
  259
+  <settingsTab name="Dualboot">
  260
+    <settingsPane description="Dual-Boot Settings. Warning: No confirmation will be asked for reboot buttons." name="Dual-Boot Settings">
  261
+      <button description="Reboot into 2ndROM Utils which let you configure, clone or backup the 2ndROM" name="Reboot into 2ndROM Utils" action="reboot-into 0" label="Reboot into 2ndROM Utils"/>
  262
+      <button description="Reboot into 1stROM" name="Reboot into 1stROM" action="reboot-into 1" label="Reboot into 1stROM"/>
  263
+      <button description="Reboot into 2ndROM" name="Reboot into 2ndROM" action="reboot-into 2" label="Reboot into 2ndROM"/>
  264
+      <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"/>
  265
+      <spinner description="Default ROM to boot into. If you don't have 2ndROM installation 1stROM will be booted. If you press the home or volume-down buttons during the boot logo the alternative ROM will be booted, i.e. 1stROM will be booted if the default ROM selection is the 2ndROM." name="Default ROM" action="defaultrom">
  266
+             <spinnerItem name="1stROM" value="0"/> 
  267
+             <spinnerItem name="2ndROM" value="1"/> 
  268
+      </spinner>
  269
+    </settingsPane>
  270
+    <settingsPane description="Hijack recovery if you like to use 2ndROM utils as recovery. Warning: No confirmation will be asked for buttons." name="Hijack Recovery">
  271
+      <button description="This button will simply flash the kernel to the recovery partition and you will have 2ndROM Utils as your 3-button combo recovery" name="Hijack Recovery" action="hijack-recovery" label="Hijack Recovery"/>
  272
+    </settingsPane>
  273
+  </settingsTab>
263 274
 </settingsRoot>
8  res/customconfig/default.profile
@@ -24,13 +24,13 @@ scheduler=cfq
24 24
 scaling_governor=pegasusq
25 25
 install_root=on
26 26
 user_gamma_adjust=0
  27
+tsp_slide2wake=off
27 28
 cpu_undervolting=0
28 29
 smooth_level0=0
29 30
 scaling_max_freq=1400000
30 31
 scaling_min_freq=200000
31  
-GENTLE_FAIR_SLEEPERS=off
  32
+GENTLE_FAIR_SLEEPERS=on
32 33
 hotplug_on=on
33  
-active_cpucore_count=4
34 34
 headphone_amplifier_level=57
35 35
 fll_tuning=1
36 36
 dac_direct=0
@@ -52,8 +52,8 @@ max_cpu_lock=0
52 52
 default_stats=off
53 53
 mdnie_shortcut_enabled=on
54 54
 mdniemod=on
55  
-mali_touch_boost_level=1
56  
-touch_boost_level=8
  55
+mali_touch_boost_level=0
  56
+touch_boost_level=10
57 57
 zram_size=0
58 58
 speaker_offset=0
59 59
 speaker_tuning=off
12  res/etc/recovery.fstab
... ...
@@ -0,0 +1,12 @@
  1
+# mount point	fstype		device
  2
+/efs			ext4		/dev/block/mmcblk0p3
  3
+/boot			emmc		/dev/block/mmcblk0p5
  4
+/recovery		emmc		/dev/block/mmcblk0p6
  5
+/cache			ext4		/dev/block/mmcblk0p8
  6
+/system			ext4		/dev/block/mmcblk0p9
  7
+/data			ext4		/dev/block/mmcblk0p12 length=-16384
  8
+/preload		ext4		/dev/block/mmcblk0p10
  9
+/modem			emmc		/dev/block/mmcblk0p7
  10
+
  11
+/sdcard			datamedia   /dev/null
  12
+/external_sd	exfat		/dev/block/mmcblk1p1	/dev/block/mmcblk1	fstype2=vfat
BIN  res/images/icon_clockwork.png
BIN  res/images/icon_error.png
BIN  res/images/icon_firmware_error.png
BIN  res/images/icon_firmware_install.png
BIN  res/images/icon_installing.png
BIN  res/images/icon_installing_overlay01.png
BIN  res/images/icon_installing_overlay02.png
BIN  res/images/icon_installing_overlay03.png
BIN  res/images/icon_installing_overlay04.png
BIN  res/images/icon_installing_overlay05.png
BIN  res/images/icon_installing_overlay06.png
BIN  res/images/icon_installing_overlay07.png
BIN  res/images/indeterminate01.png
BIN  res/images/indeterminate02.png
BIN  res/images/indeterminate03.png
BIN  res/images/indeterminate04.png
BIN  res/images/indeterminate05.png
BIN  res/images/indeterminate06.png
BIN  res/images/progress_empty.png
BIN  res/images/progress_fill.png
BIN  res/images/stitch.png
BIN  res/images/virtual_keys.png
1  res/keys
... ...
@@ -0,0 +1 @@
  1
+{64,0xc926ad21,{1795090719,2141396315,950055447,2581568430,4268923165,1920809988,546586521,3498997798,1776797858,3740060814,1805317999,1429410244,129622599,1422441418,1783893377,1222374759,2563319927,323993566,28517732,609753416,1826472888,215237850,4261642700,4049082591,3228462402,774857746,154822455,2497198897,2758199418,3019015328,2794777644,87251430,2534927978,120774784,571297800,3695899472,2479925187,3811625450,3401832990,2394869647,3267246207,950095497,555058928,414729973,1136544882,3044590084,465547824,4058146728,2731796054,1689838846,3890756939,1048029507,895090649,247140249,178744550,3547885223,3165179243,109881576,3944604415,1044303212,3772373029,2985150306,3737520932,3599964420},{3437017481,3784475129,2800224972,3086222688,251333580,2131931323,512774938,325948880,2657486437,2102694287,3820568226,792812816,1026422502,2053275343,2800889200,3113586810,165549746,4273519969,4065247892,1902789247,772932719,3941848426,3652744109,216871947,3164400649,1942378755,3996765851,1055777370,964047799,629391717,2232744317,3910558992,191868569,2758883837,3682816752,2997714732,2702529250,3570700455,3776873832,3924067546,3555689545,2758825434,1323144535,61311905,1997411085,376844204,213777604,4077323584,9135381,1625809335,2804742137,2952293945,1117190829,4237312782,1825108855,3013147971,1111251351,2568837572,1684324211,2520978805,367251975,810756730,2353784344,1175080310}}
12  res/misc/init.41/fstab.smdk4x12.2
... ...
@@ -0,0 +1,12 @@
  1
+# Android fstab file.
  2
+#<src>                  <mnt_point>         <type>    <mnt_flags and options>                               <fs_mgr_flags>
  3
+# The filesystem that contains the filesystem checker binary (typically /system) cannot
  4
+# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
  5
+
  6
+
  7
+/dev/block/mmcblk0p3    /efs               ext4      noatime,nosuid,nodev,journal_async_commit,errors=panic    wait
  8
+/dev/block/mmcblk0p10    /cache              ext4      noatime,nosuid,nodev,journal_async_commit,errors=panic    wait
  9
+
  10
+# data partition must be located at the bottom for supporting device encryption
  11
+/dev/block/mmcblk0p12    /.secondrom               ext4      noatime,nosuid,nodev,discard,noauto_da_alloc,journal_async_commit,errors=panic    wait,check,encryptable=footer
  12
+
10  res/misc/init.41/init.rc
@@ -234,6 +234,12 @@ on post-fs-data
234 234
     mkdir /data/gps 771 system system
235 235
     chown system system /data/gps
236 236
 
  237
+# 3LM settings
  238
+    setprop ro.3lm.production 1
  239
+    setprop ro.3LM.extended 1
  240
+	setprop ro.3LM.oem_sd_encryption 1
  241
+	setprop ro.3LM.oem_manifest 3
  242
+
237 243
 #[ SEC_MM_DRM
238 244
 
239 245
     # [ save OMA DB, when upgrading from GB to ICS    
@@ -753,14 +759,14 @@ service powersnd /system/bin/samsungpowersoundplay
753 759
 service bootanim /system/bin/bootanimation
754 760
     class main
755 761
     user graphics
756  
-    group graphics
  762
+    group graphics system
757 763
     disabled
758 764
     oneshot
759 765
 
760 766
 service samsungani /system/bin/samsungani
761 767
     class main
762 768
     user graphics
763  
-    group graphics
  769
+    group graphics system
764 770
     disabled
765 771
     oneshot
766 772
 
4  res/misc/init.41/init.smdk4x12.rc
@@ -272,7 +272,7 @@ on property:sys.boot_completed=1
272 272
 # SISO-ANDR_PERF :: END
273 273
 
274 274
 on property:persist.sys.storage_preload=1
275  
-    mount ext4 /dev/block/mmcblk0p10 /preload nosuid nodev noatime wait ro
  275
+#    mount ext4 /dev/block/mmcblk0p10 /preload nosuid nodev noatime wait ro
276 276
     setprop storage.preload.complete 1
277 277
 
278 278
 on property:persist.sys.storage_preload=0
@@ -368,7 +368,7 @@ service gpsd /system/bin/gpsd -c /system/etc/gps.xml
368 368
 service TvoutService_C /system/bin/bintvoutservice
369 369
      class main
370 370
      user system
371  
-     group graphics
  371
+     group system
372 372
 on property:ro.tvout.enable=false
373 373
     stop TvoutService_C
374 374
 service cpboot-daemon /sbin/cbd -d
414  res/misc/init.41/init.smdk4x12.rc.2
... ...
@@ -0,0 +1,414 @@
  1
+import init.smdk4x12.usb.rc
  2
+import init.bt.rc
  3
+
  4
+on early-init
  5
+    export EXTERNAL_STORAGE /storage/sdcard0
  6
+    mkdir /storage 0550 system sdcard_r
  7
+    mkdir /storage/sdcard0 0000 system system
  8
+    symlink /storage/sdcard0 /sdcard
  9
+    symlink /storage/sdcard0 /mnt/sdcard
  10
+# map "real" external storages paths also in same way. backwards compatibility.
  11
+    symlink /storage/extSdCard /mnt/extSdCard
  12
+    symlink /storage/UsbDriveA /mnt/UsbDriveA
  13
+    symlink /storage/UsbDriveB /mnt/UsbDriveB
  14
+    symlink /storage/UsbDriveC /mnt/UsbDriveC
  15
+    symlink /storage/UsbDriveD /mnt/UsbDriveD
  16
+    symlink /storage/UsbDriveE /mnt/UsbDriveE
  17
+    symlink /storage/UsbDriveF /mnt/UsbDriveF
  18
+
  19
+    export SECONDARY_STORAGE /storage/extSdCard:/storage/UsbDriveA:/storage/UsbDriveB:/storage/UsbDriveC:/storage/UsbDriveD:/storage/UsbDriveE:/storage/UsbDriveF
  20
+    mkdir /storage/extSdCard 0000 system system
  21
+    mkdir /storage/UsbDriveA 0000 system system
  22
+    mkdir /storage/UsbDriveB 0000 system system
  23
+    mkdir /storage/UsbDriveC 0000 system system
  24
+    mkdir /storage/UsbDriveD 0000 system system
  25
+    mkdir /storage/UsbDriveE 0000 system system
  26
+    mkdir /storage/UsbDriveF 0000 system system
  27
+
  28
+    mkdir /efs 0771 radio system
  29
+    
  30
+    mkdir /preload 0771 system system 
  31
+
  32
+on init
  33
+# Vibetonz
  34
+export VIBE_PIPE_PATH /dev/pipes
  35
+mkdir /dev/pipes 0771 shell shell
  36
+
  37
+on post-fs-data
  38
+    # we will remap this as /storage/sdcard with the sdcard fuse tool
  39
+    mkdir /data/media 0770 media_rw media_rw
  40
+    chown media_rw media_rw /data/media
  41
+    setprop vold.post_fs_data_done 1
  42
+
  43
+    # for semco wifi module
  44
+#    mkdir /data/misc/dhcp 0777 dhcp dhcp
  45
+#    mkdir /data/misc/wifi/sockets 0777 wifi wifi
  46
+#    mkdir /data/system 0775 wifi wifi
  47
+#    mkdir /data/system/wpa_supplicant 0777 wifi wifi
  48
+
  49
+    # give system access to wpa_supplicant.conf for backup and restore
  50
+    mkdir /data/misc/wifi 0770 wifi system
  51
+    mkdir /efs/wifi 0775 radio system
  52
+    mkdir /efs/bluetooth 0775 radio system
  53
+    mkdir /efs/imei 0775 radio system
  54
+    chmod 0660 /data/misc/wifi/wpa_supplicant.conf
  55
+    mkdir /data/misc/wifi/sockets 0770 wifi wifi
  56
+    mkdir /data/misc/dhcp 0775 dhcp dhcp
  57
+    chown dhcp dhcp /data/misc/dhcp
  58
+    chown system system /efs/wifi/.mac.info
  59
+    chmod 0664 /efs/wifi/.mac.info
  60
+
  61
+    mkdir /data/misc/radio 0775 radio system
  62
+
  63
+    # for TRP/TIS
  64
+    write /data/.psm.info 1
  65
+    chown system root /data/.psm.info
  66
+    chmod 0660 /data/.psm.info
  67
+
  68
+on boot
  69
+# SISO-ANDR_PERF :: START Changing scheduler to noop during boot
  70
+    write /sys/block/mmcblk0/queue/scheduler noop
  71
+# SISO-ANDR_PERF :: END
  72
+
  73
+    setprop ro.build.product smdk4x12
  74
+    setprop ro.product.device smdk4x12
  75
+    setprop ro.radio.noril yes
  76
+
  77
+# mobicore
  78
+    mkdir /data/app/mcRegistry 0775 system system
  79
+    chmod 0777 /dev/mobicore
  80
+# mobicore trustlets
  81
+    copy /efs/00000000.authtokcont /data/app/mcRegistry/00000000.authtokcont
  82
+    chown system system /data/app/mcRegistry/00000000.authtokcont
  83
+    copy /system/app/FFFFFFFF000000000000000000000001.drbin /data/app/FFFFFFFF000000000000000000000001.drbin
  84
+    chown system system /data/app/FFFFFFFF000000000000000000000001.drbin
  85
+    copy /system/app/mcRegistry/00060308060501020000000000000000.tlbin /data/app/mcRegistry/00060308060501020000000000000000.tlbin
  86
+    chown system system /data/app/mcRegistry/00060308060501020000000000000000.tlbin
  87
+    copy /system/app/mcRegistry/07010000000000000000000000000000.tlbin /data/app/mcRegistry/07010000000000000000000000000000.tlbin
  88
+    chown system system /data/app/mcRegistry/07010000000000000000000000000000.tlbin
  89
+    copy /system/app/mcRegistry/ffffffff000000000000000000000003.tlbin /data/app/mcRegistry/ffffffff000000000000000000000003.tlbin
  90
+    chown system system /data/app/mcRegistry/ffffffff000000000000000000000003.tlbin
  91
+    copy /system/app/mcRegistry/ffffffff000000000000000000000004.tlbin /data/app/mcRegistry/ffffffff000000000000000000000004.tlbin
  92
+    chown system system /data/app/mcRegistry/ffffffff000000000000000000000004.tlbin
  93
+    copy /system/app/mcRegistry/ffffffff000000000000000000000005.tlbin /data/app/mcRegistry/ffffffff000000000000000000000005.tlbin
  94
+    chown system system /data/app/mcRegistry/ffffffff000000000000000000000005.tlbin
  95
+    copy /system/app/mcRegistry/02010000080300030000000000000000.tlbin /data/app/mcRegistry/02010000080300030000000000000000.tlbin
  96
+    chown system system /data/app/mcRegistry/02010000080300030000000000000000.tlbin
  97
+
  98
+# S.LSI secdrv mem
  99
+    chown system system /dev/s5p-smem
  100
+    chmod 0775 /dev/s5p-smem
  101
+
  102
+# WIFI
  103
+    setprop wifi.interface wlan0
  104
+
  105
+    symlink /dev/block/mmcblk0p4 /dev/block/param
  106
+
  107
+# Permissions for bluetooth
  108
+    setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
  109
+    chown bluetooth bluetooth ro.bt.bdaddr_path
  110
+    chown bluetooth bluetooth /dev/ttySAC0
  111
+    chmod 0600 /dev/ttySAC0
  112
+    chmod 0660 /sys/class/rfkill/rfkill0/state
  113
+    chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  114
+    chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
  115
+
  116
+# <Sensors & NFC>
  117
+# Input Events
  118
+    chown system radio /sys/class/input/input2/enable
  119
+    chown system radio /sys/class/input/input2/poll_delay
  120
+    chown system radio /sys/class/input/input3/enable
  121
+    chown system radio /sys/class/input/input3/poll_delay
  122
+    chown system radio /sys/class/input/input4/enable
  123
+    chown system radio /sys/class/input/input4/poll_delay
  124
+    chown system radio /sys/class/input/input5/enable
  125
+    chown system radio /sys/class/input/input5/poll_delay
  126
+    chown system radio /sys/class/input/input6/enable
  127
+    chown system radio /sys/class/input/input6/poll_delay
  128
+    chown system radio /sys/class/input/input7/enable
  129
+    chown system radio /sys/class/input/input7/poll_delay
  130
+    chown system radio /sys/class/input/input8/enable
  131
+    chown system radio /sys/class/input/input8/poll_delay
  132
+    chown system radio /sys/class/input/input9/enable
  133
+    chown system radio /sys/class/input/input9/poll_delay
  134
+# Accelerometer_sensor
  135
+    chown system radio /dev/accelerometer
  136
+    chown system radio /sys/class/sensors/accelerometer_sensor
  137
+    chown system radio /sys/class/sensors/accelerometer_sensor/raw_data
  138
+    chown system radio /sys/class/sensors/accelerometer_sensor/calibration
  139
+    chown system radio /sys/class/sensors/accelerometer_sensor/reactive_alert
  140
+    chown system radio /sys/class/sensors/accelerometer_sensor/vendor
  141
+    chown system radio /sys/class/sensors/accelerometer_sensor/name
  142
+# Proximity_sensor
  143
+    chown system radio /sys/class/sensors/proximity_sensor/state
  144
+    chown system radio /sys/class/sensors/proximity_sensor/prox_avg
  145
+    chown system radio /sys/class/sensors/proximity_sensor/prox_cal
  146
+    chown system radio /sys/class/sensors/proximity_sensor/vendor
  147
+    chown system radio /sys/class/sensors/proximity_sensor/name
  148
+    chown system radio /sys/class/sensors/proximity_sensor/prox_thresh
  149
+# Light_sensor
  150
+    chown system radio /sys/class/input/input7/enable
  151
+    chown system radio /sys/class/input/input7/poll_delay
  152
+    chown system radio /sys/class/sensors/light_sensor/lux
  153
+    chown system radio /sys/class/sensors/light_sensor/raw_data
  154
+    chown system radio /sys/class/sensors/light_sensor/vendor
  155
+    chown system radio /sys/class/sensors/light_sensor/name
  156
+# Gyro_sensor
  157
+    chown system radio /dev/lsm330dlc_gyro_misc
  158
+    chown system radio /sys/class/sensors/gyro_sensor/power_on
  159
+    chown system radio /sys/class/sensors/gyro_sensor/power_off
  160
+    chown system radio /sys/class/sensors/gyro_sensor/temperature
  161
+    chown system radio /sys/class/sensors/gyro_sensor/selftest
  162
+    chown system radio /sys/class/sensors/gyro_sensor/selftest_dps
  163
+    chown system radio /sys/class/sensors/gyro_sensor/vendor
  164
+    chown system radio /sys/class/sensors/gyro_sensor/name
  165
+# Barometer_sensor
  166
+    chown system radio /sys/class/input/input5/pressure_reference_level
  167
+    chown system radio /sys/class/input/input5/temperature_reference_level
  168
+    chown system radio /sys/class/input/input5/enable_autozero
  169
+    chown system radio /sys/class/input/input5/compensation_param
  170
+    chown system radio /sys/class/input/input5/reg_value
  171
+    chown system radio /sys/class/input/input5/reg_addr
  172
+    chown system radio /sys/class/sensors/barometer_sensor/sea_level_pressure
  173
+    chown system radio /sys/class/sensors/barometer_sensor/vendor
  174
+    chown system radio /sys/class/sensors/barometer_sensor/name
  175
+    chown system radio /sys/class/sensors/barometer_sensor/calibration
  176
+# Magnetic_sensor
  177
+    chown system radio /dev/akm8975
  178
+    chown system radio /sys/class/sensors/magnetic_sensor/raw_data
  179
+    chown system radio /sys/class/sensors/magnetic_sensor/vendor
  180
+    chown system radio /sys/class/sensors/magnetic_sensor/name
  181
+# NFC
  182
+    setprop ro.nfc.port "I2C"
  183
+    chmod 0600 /dev/pn544
  184
+    chown nfc nfc /dev/pn544
  185
+
  186
+# Vibetonz
  187
+    chmod 0660 /dev/tspdrv
  188
+    chown root shell /dev/tspdrv
  189
+
  190
+on fs
  191
+    mount_all /fstab.smdk4x12
  192
+    mount ext4 /.secondrom/media/.secondrom/data /data wait bind
  193
+    mkdir /data/media
  194
+    mount ext4 /.secondrom/media /data/media wait bind    
  195
+    mount ext4 loop@/.secondrom/media/.secondrom/system.img /system rw noatime wait
  196
+    setprop ro.crypto.fuse_sdcard true
  197
+
  198
+# Permissions for backlight
  199
+    chown system system /sys/class/backlight/panel/brightness
  200
+    chown system system /sys/class/sec/sec_touchkey/brightness
  201
+
  202
+# Permissions for DVFS
  203
+    chown radio system /sys/power/cpufreq_table
  204
+    chown radio system /sys/power/cpufreq_max_limit
  205
+    chown radio system /sys/power/cpufreq_min_limit
  206
+    chmod 0660 /sys/power/cpufreq_table
  207
+    chmod 0660 /sys/power/cpufreq_max_limit
  208
+    chmod 0660 /sys/power/cpufreq_min_limit
  209
+
  210
+# MTP device permission
  211
+	chmod 0660 /dev/usb_mtp_gadget
  212
+	chown system system /dev/usb_mtp_gadget
  213
+
  214
+# Permissions for Gscaler log level
  215
+    chmod 0666 /sys/module/gsc/parameters/gsc_dbg
  216
+
  217
+
  218
+# create data/gps for GPS daemon
  219
+    chown root system /dev/ttySAC1
  220
+    chmod 0660 /dev/ttySAC1
  221
+    chown root system /sys/class/sec/gps/GPS_PWR_EN/value
  222
+    chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value
  223
+    chown root system /sys/class/sec/gps/GPS_nRST/value
  224
+    chmod 0664 /sys/class/sec/gps/GPS_nRST/value
  225
+    mkdir /data/gps 771 system system
  226
+    chown system system /data/gps
  227
+
  228
+# NFC
  229
+    setprop ro.nfc.port "I2C"
  230
+    chmod 0600 /dev/pn544
  231
+    chown nfc nfc /dev/pn544
  232
+
  233
+# Permissions for LCD
  234
+    chown system radio /sys/class/lcd/panel/lcd_type
  235
+    chown system radio /sys/class/lcd/panel/device/hs_toggle
  236
+    chown system media_rw /sys/class/lcd/panel/power_reduce
  237
+    chown system system /sys/class/backlight/panel/auto_brightness
  238
+    chown system system /sys/class/graphics/fb0/lcdfreq/level
  239
+
  240
+# Permissions for mDNIe
  241
+    chown system media_rw /sys/class/mdnie/mdnie/mode
  242
+    chown system media_rw /sys/class/mdnie/mdnie/outdoor
  243
+    chown system media_rw /sys/class/mdnie/mdnie/scenario
  244
+    chown system system /sys/class/mdnie/mdnie/negative
  245
+
  246
+# OTG_TEST
  247
+    chown system radio /sys/class/host_notify/usb_otg/booster
  248
+    chmod 0660 /sys/class/host_notify/usb_otg/booster
  249
+
  250
+# Switch Device
  251
+    chown system radio /sys/class/sec/switch/otg_test
  252
+    chown system radio /sys/class/sec/switch/adc
  253
+
  254
+# IPC sysfs
  255
+    chown radio radio /sys/devices/virtual/misc/multipdp/waketime
  256
+
  257
+on post-fs
  258
+    chown radio system /efs
  259
+    chmod 0771 /efs
  260
+
  261
+
  262
+# SISO-ANDR_PERF :: START Changing scheduler to cfq and reseting cpu min freq to -1 after boot complete
  263
+on property:sys.boot_completed=1
  264
+    write /sys/block/mmcblk0/queue/scheduler cfq
  265
+    write /sys/power/cpufreq_min_limit -1
  266
+# SISO-ANDR_PERF :: END
  267
+
  268
+on property:persist.sys.storage_preload=1
  269
+#    mount ext4 /dev/block/mmcblk0p10 /preload nosuid nodev noatime wait ro
  270
+    setprop storage.preload.complete 1
  271
+
  272
+on property:persist.sys.storage_preload=0
  273
+    exec /system/bin/umount /preload   
  274
+    
  275
+## Daemon processes to be run by init.
  276
+##
  277
+service ueventd /sbin/ueventd
  278
+    class core
  279
+    critical
  280
+
  281
+service console /system/bin/sh
  282
+    class core
  283
+    console
  284
+    disabled
  285
+    group log
  286
+
  287
+on property:ro.debuggable=1
  288
+    start console
  289
+
  290
+# create filesystem if necessary
  291
+service setup_fs /system/bin/setup_fs \
  292
+            /dev/block/mmcblk0p3 \
  293
+            /dev/block/mmcblk0p4
  294
+    class core
  295
+    user root
  296
+    group root
  297
+    oneshot
  298
+
  299
+# RILD
  300
+service ril-daemon /system/bin/rild
  301
+    class main
  302
+    socket rild stream 660 root radio
  303
+    socket rild-debug stream 660 radio system
  304
+    user root
  305
+    group radio cache inet misc audio sdcard_rw log sdcard_r
  306
+    onrestart restart cpboot-daemon
  307
+
  308
+# create virtual SD card at /storage/sdcard, based on the /data/media directory
  309
+# daemon will drop to user/group system/media_rw after initializing
  310
+# underlying files in /data/media will be created with user and group media_rw (1023)
  311
+service sdcard /system/bin/sdcard /.secondrom/media 1023 1023
  312
+    class late_start
  313
+
  314
+
  315
+#	-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf -N \
  316
+service p2p_supplicant /system/bin/p2p_supplicant \
  317
+	-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -e/data/misc/wifi/entropy.bin -puse_p2p_group_interface=1
  318
+	class main
  319
+	disabled
  320
+	oneshot
  321
+
  322
+service wpa_supplicant /system/bin/wpa_supplicant \
  323
+    -Dnl80211 -iwlan0 -e/data/misc/wifi/entropy.bin -c/data/misc/wifi/wpa_supplicant.conf
  324
+    #   we will start as root and wpa_supplicant will switch to user wifi
  325
+    #   after setting up the capabilities required for WEXT
  326
+    #   user wifi
  327
+    #   group wifi inet keystore
  328
+    class main
  329
+    socket wpa_wlan0 dgram 660 wifi wifi
  330
+    disabled
  331
+    oneshot
  332
+
  333
+service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
  334
+    class main
  335
+    disabled
  336
+    oneshot
  337
+
  338
+service dhcpcd_p2p /system/bin/dhcpcd -aABKL
  339
+    class main
  340
+    disabled
  341
+    oneshot
  342
+
  343
+service iprenew_wlan0 /system/bin/dhcpcd -n
  344
+    class main
  345
+    disabled
  346
+    oneshot
  347
+
  348
+service iprenew_p2p /system/bin/dhcpcd -n
  349
+    class main
  350
+    disabled
  351
+    oneshot
  352
+
  353
+# GPS
  354
+service gpsd /system/bin/gpsd -c /system/etc/gps.xml
  355
+    class main
  356
+    socket gps seqpacket 0660 gps system
  357
+    user gps
  358
+    group system inet sdcard_rw
  359
+    ioprio be 0
  360
+
  361
+# TVout
  362
+service TvoutService_C /system/bin/bintvoutservice
  363
+     class main
  364
+     user system
  365
+     group system
  366
+on property:ro.tvout.enable=false
  367
+    stop TvoutService_C
  368
+service cpboot-daemon /sbin/cbd -d
  369
+    class main
  370
+    user root
  371
+    group radio cache inet misc audio sdcard_rw log sdcard_r
  372
+
  373
+# mobicore
  374
+service mcDriverDaemon /system/bin/mcDriverDaemon -r /data/app/FFFFFFFF000000000000000000000001.drbin
  375
+    class late_start
  376
+    user system
  377
+    group system
  378
+
  379
+# Vibetonz
  380
+service immvibed /system/bin/immvibed
  381
+    class core
  382
+    user shell
  383
+    group shell
  384
+    oneshot
  385
+
  386
+#for WiFi MFG(TestMode)
  387
+service mfgloader /system/bin/mfgloader
  388
+	class main
  389
+	disabled
  390
+	oneshot
  391
+
  392
+service wlandutservice /system/bin/wlandutservice
  393
+	class main
  394
+	user system
  395
+	group wifi net_raw net_admin system inet
  396
+	disabled
  397
+	oneshot
  398
+
  399
+service macloader /system/bin/macloader
  400
+	class main
  401
+	oneshot
  402
+
  403
+on property:init.svc.macloader=stopped
  404
+    chown system root /data/.cid.info
  405
+    chmod 0664 /data/.cid.info
  406
+    chown system root /data/.rev
  407
+    chmod 0660 /data/.rev
  408
+# end of wifi
  409
+
  410
+# for LogMeIn
  411
+    service RescueStarter /system/bin/RescueStarter
  412
+    class core
  413
+    user graphics
  414
+    group input graphics
BIN  res/misc/init.41/innt
Binary file not shown
12  res/misc/init.cm10/fstab.smdk4x12.2
... ...
@@ -0,0 +1,12 @@
  1
+# Android fstab file.
  2
+#<src>                  <mnt_point>         <type>    <mnt_flags and options>                               <fs_mgr_flags>
  3
+# The filesystem that contains the filesystem checker binary (typically /system) cannot
  4
+# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
  5
+
  6
+
  7
+/dev/block/mmcblk0p3    /efs               ext4      noatime,nosuid,nodev,journal_async_commit,errors=panic    wait
  8
+/dev/block/mmcblk0p10    /cache              ext4      noatime,nosuid,nodev,journal_async_commit,errors=panic    wait
  9
+
  10
+# data partition must be located at the bottom for supporting device encryption
  11
+/dev/block/mmcblk0p12    /.secondrom               ext4      noatime,nosuid,nodev,discard,noauto_da_alloc,journal_async_commit,errors=panic    wait,check,encryptable=footer
  12
+
40  res/misc/init.cm10/init.cm.rc
... ...
@@ -0,0 +1,40 @@
  1
+# CyanogenMod Extras
  2
+
  3
+on init
  4
+    export ANDROID_CACHE /cache
  5
+    export TERMINFO /system/etc/terminfo
  6
+    export TERM linux
  7
+
  8
+on post-fs-data
  9
+    mkdir /cache/dalvik-cache 0771 system system
  10
+    chown system system /cache/dalvik-cache
  11
+    chmod 0771 /cache/dalvik-cache
  12
+
  13
+on boot
  14
+    chown system system /sys/block/mmcblk0/queue/scheduler
  15
+    chmod 0664 /sys/block/mmcblk0/queue/scheduler
  16
+
  17
+# allow system to modify ksm control files
  18
+    chown root system /sys/kernel/mm/ksm/pages_to_scan
  19
+    chmod 0664 /sys/kernel/mm/ksm/pages_to_scan
  20
+    chown root system /sys/kernel/mm/ksm/sleep_millisecs
  21
+    chmod 0664 /sys/kernel/mm/ksm/sleep_millisecs
  22
+    chown root system /sys/kernel/mm/ksm/run
  23
+    chmod 0664 /sys/kernel/mm/ksm/run
  24
+    write /sys/kernel/mm/ksm/sleep_millisecs 1500
  25
+    write /sys/kernel/mm/ksm/pages_to_scan 256
  26
+
  27
+# adb over network
  28
+on property:service.adb.tcp.port=5555
  29
+    stop adbd
  30
+    start adbd
  31
+on property:service.adb.tcp.port=-1
  32
+    stop adbd
  33
+    start adbd
  34
+
  35
+# Compcache - handle at boot
  36
+service compcache /system/bin/handle_compcache
  37
+    class main
  38
+    user root
  39
+    group root
  40
+    oneshot
51  res/misc/init.cm10/init.rc
@@ -27,15 +27,12 @@ loglevel 3
27 27
     export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
28 28
     export LD_LIBRARY_PATH /vendor/lib:/system/lib
29 29
     export ANDROID_BOOTLOGO 1
30  
-    export ANDROID_CACHE /cache
31 30
     export ANDROID_ROOT /system
32 31
     export ANDROID_ASSETS /system/app
33 32
     export ANDROID_DATA /data
34 33
     export ASEC_MOUNTPOINT /mnt/asec
35 34
     export LOOP_MOUNTPOINT /mnt/obb
36 35
     export BOOTCLASSPATH /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar
37  
-    export TERMINFO /system/etc/terminfo
38  
-    export TERM linux
39 36
 
40 37
 # Backward compatibility
41 38
     symlink /system/etc /etc
@@ -200,10 +197,6 @@ on post-fs-data
200 197
     chown system system /data/dalvik-cache
201 198
     chmod 0771 /data/dalvik-cache
202 199
 
203  
-    mkdir /cache/dalvik-cache 0771 system system
204  
-    chown system system /cache/dalvik-cache
205  
-    chmod 0771 /cache/dalvik-cache
206  
-
207 200
     # create resource-cache and double-check the perms
208 201
     mkdir /data/resource-cache 0771 system system
209 202
     chown system system /data/resource-cache
@@ -223,7 +216,7 @@ on post-fs-data
223 216
     #setprop vold.post_fs_data_done 1
224 217
 
225 218
 # Include extra init file
226  
-    import /system/etc/init.local.rc
  219
+    import /init.cm.rc
227 220
 
228 221
 on boot
229 222
 # basic network init
@@ -286,9 +279,6 @@ on boot
286 279
     chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
287 280
     chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
288 281
 
289  
-    chown system system /sys/block/mmcblk0/queue/scheduler
290  
-    chmod 0664 /sys/block/mmcblk0/queue/scheduler
291  
-
292 282
     chown system system /sys/class/timed_output/vibrator/enable
293 283
     chown system system /sys/class/leds/keyboard-backlight/brightness
294 284
     chown system system /sys/class/leds/lcd-backlight/brightness
@@ -318,27 +308,18 @@ on boot
318 308
 
319 309
 # Define TCP buffer sizes for various networks
320 310
 #   ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
321  
-    setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
  311
+    setprop net.tcp.buffersize.default 4096,87380,704512,4096,16384,110208
322 312
     setprop net.tcp.buffersize.wifi    524288,1048576,2097152,262144,524288,1048576
323  
-    setprop net.tcp.buffersize.lte     524288,1048576,2097152,262144,524288,1048576
324  
-    setprop net.tcp.buffersize.umts    4094,87380,110208,4096,16384,110208
325  
-    setprop net.tcp.buffersize.hspa    4094,87380,262144,4096,16384,262144
326  
-    setprop net.tcp.buffersize.hsupa   4094,87380,262144,4096,16384,262144
327  
-    setprop net.tcp.buffersize.hsdpa   4094,87380,262144,4096,16384,262144
328  
-    setprop net.tcp.buffersize.hspap   4094,87380,1220608,4096,16384,1220608
329  
-    setprop net.tcp.buffersize.edge    4093,26280,35040,4096,16384,35040
330  
-    setprop net.tcp.buffersize.gprs    4092,8760,11680,4096,8760,11680
331  
-    setprop net.tcp.buffersize.evdo    4094,87380,262144,4096,16384,262144
332  
-
333  
-# allow system to modify ksm control files
334  
-    chown root system /sys/kernel/mm/ksm/pages_to_scan
335  
-    chmod 0664 /sys/kernel/mm/ksm/pages_to_scan
336  
-    chown root system /sys/kernel/mm/ksm/sleep_millisecs
337  
-    chmod 0664 /sys/kernel/mm/ksm/sleep_millisecs
338  
-    chown root system /sys/kernel/mm/ksm/run
339  
-    chmod 0664 /sys/kernel/mm/ksm/run
340  
-    write /sys/kernel/mm/ksm/sleep_millisecs 1500
341  
-    write /sys/kernel/mm/ksm/pages_to_scan 256
  313
+    setprop net.tcp.buffersize.lte     4096,87380,1220608,4096,16384,563200
  314
+    setprop net.tcp.buffersize.umts    4096,87380,563200,4096,16384,110208
  315
+    setprop net.tcp.buffersize.hspa    4096,87380,704512,4096,16384,110208
  316
+    setprop net.tcp.buffersize.hsupa   4096,87380,704512,4096,16384,262144
  317
+    setprop net.tcp.buffersize.hsdpa   4096,87380,704512,4096,16384,262144
  318
+    setprop net.tcp.buffersize.hspap   4096,87380,1220608,4096,16384,393216
  319
+    setprop net.tcp.buffersize.edge    4096,26280,35040,4096,16384,35040
  320
+    setprop net.tcp.buffersize.gprs    4096,8760,11680,4096,8760,11680
  321
+    setprop net.tcp.buffersize.evdo    4096,87380,563200,4096,16384,262144
  322
+    setprop net.tcp.buffersize.evdo_b  4096,87380,704512,4096,16384,262144
342 323
 
343 324
 # Set this property so surfaceflinger is not started by system_init
344 325
     setprop system_init.startsurfaceflinger 0
@@ -522,14 +503,6 @@ service mdnsd /system/bin/mdnsd
522 503
     disabled
523 504
     oneshot
524 505
 
525  
-# adb over network
526  
-on property:service.adb.tcp.port=5555
527  
-    stop adbd
528  
-    start adbd
529  
-on property:service.adb.tcp.port=-1
530  
-    stop adbd
531  
-    start adbd
532  
-
533 506
 service postinit /sbin/ext/post-init.sh
534 507
 	class core
535 508
 	user root
7  res/misc/init.cm10/init.smdk4x12.rc
@@ -167,7 +167,7 @@ on post-fs-data
167 167
     chmod 0660 /sys/power/wake_lock
168 168
     chmod 0660 /sys/power/wake_unlock
169 169
     chmod 0660 /sys/power/cpufreq_table
170  
-    chmod 0000 /sys/power/cpufreq_max_limit
  170
+    chmod 0660 /sys/power/cpufreq_max_limit
171 171
     chmod 0660 /sys/power/cpufreq_min_limit
172 172
     chmod 0660 /sys/power/mali_lock
173 173
     chmod 0660 /sys/class/power_supply/battery/siop_activated
@@ -436,8 +436,9 @@ service cpboot-daemon /sbin/cbd -d
436 436
     group radio cache inet misc audio sdcard_rw log
437 437
 
438 438
 service p2p_supplicant /system/bin/wpa_supplicant \
439  
-    -Dnl80211 -iwlan0 -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin \
440  
-    -c/data/misc/wifi/wpa_supplicant.conf
  439
+    -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf -N \
  440
+    -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -e/data/misc/wifi/entropy.bin \
  441
+    -puse_p2p_group_interface=1
441 442
     #   we will start as root and wpa_supplicant will switch to user wifi
442 443
     #   after setting up the capabilities required for WEXT
443 444
     #   user wifi
520  res/misc/init.cm10/init.smdk4x12.rc.2
... ...
@@ -0,0 +1,520 @@
  1
+import init.smdk4x12.usb.rc
  2
+import init.bt.rc
  3
+
  4
+on early-init
  5
+    export EXTERNAL_STORAGE /storage/sdcard0
  6
+    export SECONDARY_STORAGE /storage/sdcard1
  7
+    mkdir /storage 0550 system sdcard_r
  8
+    mkdir /storage/sdcard0 0000 system system
  9
+    mkdir /storage/sdcard1 0775 system system
  10
+    mkdir /storage/usbdisk0 0775 system system
  11
+
  12
+    # for backwards compatibility
  13
+    symlink /storage/sdcard0 /sdcard
  14
+    symlink /storage/sdcard0 /mnt/sdcard
  15
+    symlink /storage/sdcard1 /extSdCard
  16
+    symlink /storage/sdcard1 /mnt/extSdCard
  17
+    symlink /storage/usbdisk0 /usbdisk0
  18
+    symlink /storage/usbdisk0 /mnt/usbdisk0
  19
+
  20
+    mkdir /efs 0771 radio system
  21
+
  22
+# ko files for FM Radio
  23
+    insmod /system/lib/modules/Si4709_driver.ko
  24
+
  25
+on fs
  26
+    mount_all /fstab.smdk4x12
  27
+    mount ext4 /.secondrom/media/.secondrom/data /data wait bind
  28
+    mkdir /data/media
  29
+    mount ext4 /.secondrom/media /data/media wait bind    
  30
+    mount ext4 loop@/.secondrom/media/.secondrom/system.img /system rw noatime wait
  31
+
  32
+    setprop ro.crypto.fuse_sdcard true
  33
+    
  34
+    chown radio system /efs
  35
+    chmod 0771 /efs
  36
+    mount tmpfs tmpfs /system/lib/modules
  37
+    symlink /lib/modules/cifs.ko /system/lib/modules/cifs.ko
  38
+    symlink /lib/modules/dhd.ko /system/lib/modules/dhd.ko
  39
+    symlink /lib/modules/scsi_wait_scan.ko /system/lib/modules/scsi_wait_scan.ko
  40
+    symlink /lib/modules/Si4709_driver.ko /system/lib/modules/Si4709_driver.ko
  41
+    symlink /lib/modules/btlock.ko /system/lib/modules/btlock.ko
  42
+    symlink /lib/modules/commkm.ko /system/lib/modules/commkm.ko
  43
+    symlink /lib/modules/mvpkm.ko /system/lib/modules/mvpkm.ko
  44
+    symlink /lib/modules/pvtcpkm.ko /system/lib/modules/pvtcpkm.ko
  45
+    symlink /lib/modules/exfat_core.ko /system/lib/modules/exfat_core.ko
  46
+    symlink /lib/modules/exfat_fs.ko /system/lib/modules/exfat_fs.ko
  47
+
  48
+on post-fs-data
  49
+     # we will remap this as /mnt/sdcard with the sdcard fuse tool
  50
+     mkdir /data/media 0775 media_rw media_rw
  51
+     chown media_rw media_rw /data/media
  52
+
  53
+# data/log
  54
+    mkdir /data/log 0775 system log
  55
+    chown system log /data/log
  56
+    chmod 0775 /data/log
  57
+    chmod 0775 /data/anr
  58
+
  59
+    # create data/gps for GPS demon
  60
+    chown root system /dev/ttySAC1
  61
+    chmod 0660 /dev/ttySAC1