Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

initial commit

  • Loading branch information...
commit e20c15bc19f8899ade891960411f3501783d2d48 0 parents
@gokhanmoral authored
Showing with 5,522 additions and 0 deletions.
  1. +7 −0 default.prop
  2. +123 −0 fota.rc
  3. +1 −0  init
  4. +78 −0 init.goldfish.rc
  5. +917 −0 init.rc
  6. +122 −0 init.smdk4210.rc
  7. +89 −0 init.smdk4210.usb.rc
  8. BIN  innt
  9. +85 −0 lpm.rc
  10. +67 −0 recovery.rc
  11. +26 −0 res/customconfig/actions/chargecurrent
  12. +12 −0 res/customconfig/actions/efs-backup
  13. +22 −0 res/customconfig/actions/generic
  14. +16 −0 res/customconfig/actions/gpu-freq
  15. +19 −0 res/customconfig/actions/gpu-staycount
  16. +16 −0 res/customconfig/actions/gpu-thresh
  17. +16 −0 res/customconfig/actions/gpu-voltage
  18. +9 −0 res/customconfig/actions/install-root
  19. +22 −0 res/customconfig/actions/remove-root
  20. +10 −0 res/customconfig/actions/reset-fuelgauge
  21. +25 −0 res/customconfig/actions/secondcore
  22. +125 −0 res/customconfig/customconfig-helper
  23. +166 −0 res/customconfig/customconfig.xml
  24. +35 −0 res/customconfig/default.profile
  25. +13 −0 res/etc/recovery.fstab
  26. BIN  res/images/icon_clockwork.png
  27. BIN  res/images/icon_error.png
  28. BIN  res/images/icon_firmware_error.png
  29. BIN  res/images/icon_firmware_install.png
  30. BIN  res/images/icon_installing.png
  31. BIN  res/images/icon_installing_overlay01.png
  32. BIN  res/images/icon_installing_overlay02.png
  33. BIN  res/images/icon_installing_overlay03.png
  34. BIN  res/images/icon_installing_overlay04.png
  35. BIN  res/images/icon_installing_overlay05.png
  36. BIN  res/images/icon_installing_overlay06.png
  37. BIN  res/images/icon_installing_overlay07.png
  38. BIN  res/images/indeterminate01.png
  39. BIN  res/images/indeterminate02.png
  40. BIN  res/images/indeterminate03.png
  41. BIN  res/images/indeterminate04.png
  42. BIN  res/images/indeterminate05.png
  43. BIN  res/images/indeterminate06.png
  44. BIN  res/images/indeterminate1.png
  45. BIN  res/images/indeterminate2.png
  46. BIN  res/images/indeterminate3.png
  47. BIN  res/images/indeterminate4.png
  48. BIN  res/images/indeterminate5.png
  49. BIN  res/images/indeterminate6.png
  50. BIN  res/images/progress_bar_empty.png
  51. BIN  res/images/progress_bar_empty_left_round.png
  52. BIN  res/images/progress_bar_empty_right_round.png
  53. BIN  res/images/progress_bar_fill.png
  54. BIN  res/images/progress_bar_left_round.png
  55. BIN  res/images/progress_bar_right_round.png
  56. BIN  res/images/progress_empty.png
  57. BIN  res/images/progress_fill.png
  58. BIN  res/images/virtual_keys.png
  59. BIN  res/images/virtual_keys.png-idk
  60. BIN  res/images/virtual_keys.png.bak
  61. BIN  res/images/virtual_keys_1024.png
  62. BIN  res/images/virtual_keys_480.png
  63. BIN  res/images/virtual_keys_720.png
  64. +1 −0  res/keys
  65. +2 −0  res/keys-samsung
  66. +7 −0 res/misc/cyano/default.prop
  67. BIN  res/misc/cyano/init
  68. +78 −0 res/misc/cyano/init.goldfish.rc
  69. +527 −0 res/misc/cyano/init.rc
  70. +375 −0 res/misc/cyano/init.smdk4210.rc
  71. +89 −0 res/misc/cyano/init.smdk4210.usb.rc
  72. +84 −0 res/misc/cyano/lpm.rc
  73. +5 −0 res/misc/cyano/ueventd.goldfish.rc
  74. +82 −0 res/misc/cyano/ueventd.rc
  75. +32 −0 res/misc/cyano/ueventd.smdk4210.rc
  76. BIN  res/misc/lights.exynos4.so
  77. BIN  res/misc/payload/CWMManager.apk
  78. BIN  res/misc/payload/Superuser.apk
  79. BIN  res/misc/payload/su
  80. +28 −0 res/recovery.do
  81. +10 −0 res/recovery.fstab
  82. +42 −0 res/uci.sh
  83. +1 −0  res/update.url
  84. +1 −0  sbin/[
  85. +1 −0  sbin/[[
  86. BIN  sbin/adbd
  87. +1 −0  sbin/ash
  88. +1 −0  sbin/awk
  89. +1 −0  sbin/basename
  90. +1 −0  sbin/bbconfig
  91. BIN  sbin/bootanimation
  92. +9 −0 sbin/bootanimation.sh
  93. +1 −0  sbin/bunzip2
  94. BIN  sbin/busybox
  95. +1 −0  sbin/bzcat
  96. +1 −0  sbin/bzip2
  97. +1 −0  sbin/cal
  98. +1 −0  sbin/cat
  99. +1 −0  sbin/catv
  100. +1 −0  sbin/chattr
  101. +1 −0  sbin/chgrp
  102. +1 −0  sbin/chmod
  103. +1 −0  sbin/choose_rom
  104. +1 −0  sbin/chown
  105. +1 −0  sbin/chroot
  106. +1 −0  sbin/cksum
  107. +1 −0  sbin/clear
  108. +1 −0  sbin/cmp
  109. +1 −0  sbin/cp
  110. +1 −0  sbin/cpio
  111. +1 −0  sbin/cut
  112. +1 −0  sbin/date
  113. +1 −0  sbin/dc
  114. +1 −0  sbin/dd
  115. +1 −0  sbin/depmod
  116. +1 −0  sbin/devmem
  117. +1 −0  sbin/df
  118. +1 −0  sbin/diff
  119. +1 −0  sbin/dirname
  120. +1 −0  sbin/dmesg
  121. +1 −0  sbin/dos2unix
  122. +1 −0  sbin/du
  123. +1 −0  sbin/dump_image
  124. BIN  sbin/e2fsck
  125. +1 −0  sbin/echo
  126. +1 −0  sbin/edify
  127. +1 −0  sbin/egrep
  128. +1 −0  sbin/env
  129. +1 −0  sbin/erase_image
  130. +1 −0  sbin/expand
  131. +1 −0  sbin/expr
  132. +1 −0  sbin/ext/busybox
  133. +15 −0 sbin/ext/busybox-wrapper
  134. +32 −0 sbin/ext/busybox.sh
  135. +15 −0 sbin/ext/efs-backup.sh
  136. +101 −0 sbin/ext/install.sh
  137. +33 −0 sbin/ext/modules.sh
  138. +38 −0 sbin/ext/post-init.sh
  139. +14 −0 sbin/ext/properties.sh
  140. +1 −0  sbin/ext/reboot
  141. +29 −0 sbin/ext/run-init-scripts.sh
  142. +17 −0 sbin/ext/su-helper.sh
  143. +139 −0 sbin/ext/thunderbolt.sh
  144. +43 −0 sbin/ext/tweaks.sh
  145. +1 −0  sbin/false
  146. +1 −0  sbin/fdisk
  147. +1 −0  sbin/fgrep
  148. +1 −0  sbin/find
  149. +484 −0 sbin/fix_permissions
  150. +1 −0  sbin/flash_image
  151. +1 −0  sbin/fold
  152. BIN  sbin/fota.png
  153. +1 −0  sbin/free
  154. +1 −0  sbin/freeramdisk
  155. +1 −0  sbin/fuser
  156. +1 −0  sbin/getopt
  157. +17 −0 sbin/getprop
  158. +1 −0  sbin/grep
  159. +1 −0  sbin/groups
  160. +1 −0  sbin/gunzip
  161. +1 −0  sbin/gzip
  162. +1 −0  sbin/head
  163. +1 −0  sbin/hexdump
  164. +16 −0 sbin/hotplug
  165. +1 −0  sbin/id
  166. +72 −0 sbin/init
  167. +43 −0 sbin/init.cm
  168. +7 −0 sbin/init.samsung
  169. +1 −0  sbin/insmod
  170. +1 −0  sbin/install
  171. +1 −0  sbin/kill
  172. +1 −0  sbin/killall
  173. +1 −0  sbin/killall5
  174. +22 −0 sbin/killrecovery.sh
  175. +1 −0  sbin/length
  176. +1 −0  sbin/less
  177. +1 −0  sbin/ln
  178. +1 −0  sbin/losetup
  179. +1 −0  sbin/ls
  180. +1 −0  sbin/lsattr
  181. +1 −0  sbin/lsmod
  182. +1 −0  sbin/lspci
  183. +1 −0  sbin/lsusb
  184. +1 −0  sbin/lzcat
  185. +1 −0  sbin/lzop
  186. +1 −0  sbin/lzopcat
  187. +1 −0  sbin/makedevs
  188. +1 −0  sbin/md5sum
  189. +1 −0  sbin/mkdir
  190. BIN  sbin/mke2fs
  191. +1 −0  sbin/mkfifo
  192. +1 −0  sbin/mkfs.ext2
  193. +1 −0  sbin/mknod
  194. +1 −0  sbin/mkswap
  195. +1 −0  sbin/mktemp
  196. +1 −0  sbin/mkyaffs2image
  197. +1 −0  sbin/modinfo
  198. +1 −0  sbin/modprobe
  199. +1 −0  sbin/more
  200. +1 −0  sbin/mount
  201. +1 −0  sbin/mountpoint
  202. +1 −0  sbin/mv
  203. +1 −0  sbin/nanddump
  204. +1 −0  sbin/nandroid
  205. +12 −0 sbin/nandroid-md5.sh
  206. +1 −0  sbin/nandwrite
  207. +1 −0  sbin/nice
  208. +1 −0  sbin/nohup
  209. +1 −0  sbin/od
  210. BIN  sbin/parted
  211. +1 −0  sbin/patch
  212. +1 −0  sbin/pgrep
  213. +1 −0  sbin/pidof
  214. +1 −0  sbin/pkill
  215. +1 −0  sbin/postrecoveryboot.sh
  216. +1 −0  sbin/printenv
  217. +1 −0  sbin/printf
  218. +1 −0  sbin/ps
  219. +1 −0  sbin/pstree
  220. +1 −0  sbin/pwd
  221. +1 −0  sbin/rdev
  222. BIN  sbin/read_boot_headers
  223. +1 −0  sbin/readlink
  224. +1 −0  sbin/realpath
  225. +7 −0 sbin/reboot
  226. +1 −0  sbin/recovery
  227. +39 −0 sbin/recovery-loader
  228. BIN  sbin/recovery-samsung
  229. BIN  sbin/redbend_ua
  230. +1 −0  sbin/renice
  231. +1 −0  sbin/reset
  232. +1 −0  sbin/resize
  233. +1 −0  sbin/rev
  234. +1 −0  sbin/rm
  235. +1 −0  sbin/rmdir
  236. +1 −0  sbin/rmmod
  237. +1 −0  sbin/run-parts
  238. +637 −0 sbin/sdparted
  239. +1 −0  sbin/sed
  240. +1 −0  sbin/seq
  241. +1 −0  sbin/setconsole
  242. +1 −0  sbin/setprop
  243. +1 −0  sbin/setserial
  244. +1 −0  sbin/setsid
  245. +1 −0  sbin/sh
  246. +1 −0  sbin/sha1sum
  247. +1 −0  sbin/sha256sum
  248. +1 −0  sbin/sha512sum
  249. +1 −0  sbin/sleep
  250. +1 −0  sbin/sort
  251. +1 −0  sbin/split
  252. +1 −0  sbin/stat
  253. +1 −0  sbin/strings
  254. +1 −0  sbin/stty
  255. +1 −0  sbin/swapoff
  256. +1 −0  sbin/swapon
  257. +1 −0  sbin/sync
  258. +1 −0  sbin/sysctl
  259. +1 −0  sbin/tac
  260. +1 −0  sbin/tail
  261. +1 −0  sbin/tar
  262. +1 −0  sbin/tee
  263. +1 −0  sbin/test
  264. +1 −0  sbin/time
  265. +1 −0  sbin/top
  266. +1 −0  sbin/touch
  267. +1 −0  sbin/tr
  268. +1 −0  sbin/true
  269. +1 −0  sbin/tty
  270. +1 −0  sbin/ttysize
  271. BIN  sbin/tune2fs
  272. +1 −0  sbin/ueventd
  273. +1 −0  sbin/umount
  274. +1 −0  sbin/uname
  275. +1 −0  sbin/unexpand
  276. +1 −0  sbin/uniq
  277. +1 −0  sbin/unix2dos
  278. +1 −0  sbin/unlzma
  279. +1 −0  sbin/unlzop
  280. +1 −0  sbin/unxz
  281. +1 −0  sbin/unyaffs
  282. +1 −0  sbin/unzip
  283. +1 −0  sbin/uptime
  284. +1 −0  sbin/usleep
  285. +1 −0  sbin/uudecode
  286. +1 −0  sbin/uuencode
  287. +1 −0  sbin/volume
  288. +1 −0  sbin/watch
  289. +1 −0  sbin/wc
  290. +1 −0  sbin/which
  291. +1 −0  sbin/whoami
  292. +1 −0  sbin/xargs
  293. +1 −0  sbin/xzcat
  294. +1 −0  sbin/yes
  295. +1 −0  sbin/zcat
  296. +5 −0 ueventd.goldfish.rc
  297. +83 −0 ueventd.rc
  298. +31 −0 ueventd.smdk4210.rc
  299. BIN  vendor/firmware/mfc_fw.bin
7 default.prop
@@ -0,0 +1,7 @@
+#
+# ADDITIONAL_DEFAULT_PROPERTIES
+#
+ro.secure=1
+ro.allow.mock.location=0
+ro.debuggable=1
+persist.sys.usb.config=mtp,adb
123 fota.rc
@@ -0,0 +1,123 @@
+on early-init
+ start ueventd
+
+on init
+
+sysclktz 0
+
+loglevel 3
+
+ export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
+ export LD_LIBRARY_PATH /vendor/lib:/system/lib
+ export ANDROID_BOOTLOGO 1
+ export ANDROID_ROOT /system
+ export ANDROID_ASSETS /system/app
+ export ANDROID_DATA /data
+
+ export EXTERNAL_STORAGE /mnt/sdcard
+ export EXTERNAL_STORAGE2 /mnt/sdcard/external_sd
+ export USBHOST_STORAGE /mnt/sdcard/usbStorage
+
+ export ASEC_MOUNTPOINT /mnt/asec
+ export LOOP_MOUNTPOINT /mnt/obb
+ export BOOTCLASSPATH /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
+ export TMPDIR /data/local/tmp
+
+ # Backwards Compat - XXX: Going away in G*
+ symlink /mnt/sdcard /sdcard
+ symlink /system/etc /etc
+
+ mkdir /system
+ mkdir /data 0771 system system
+ mkdir /cache 0770 system cache
+
+ mkdir /mnt 0775 root system
+ mkdir /mnt/sdcard 0000 system system
+
+ #mount /tmp /tmp tmpfs
+
+on early-fs
+
+ # rfs drivers
+ # insmod /lib/modules/fsr.ko
+ # insmod /lib/modules/fsr_stl.ko
+ # insmod /lib/modules/rfs_glue.ko
+ # insmod /lib/modules/rfs_fat.ko
+
+
+ # parameter block
+ mkdir /mnt/.lfs 0755 root root
+ insmod /lib/modules/j4fs.ko
+ mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
+ insmod /lib/modules/param.ko
+
+ insmod /lib/modules/drop_caches.ko
+
+ mkdir /sdcard 0000 system system
+ chown system system /sdcard
+ chmod 0000 /sdcard
+
+ mkdir /sdcard1 0000 system system
+ chown system system /sdcard1
+ chmod 0000 /sdcard1
+
+ mkdir /system
+ mkdir /data 0771 system system
+ chown system system /data
+ chmod 0771 /data
+ mkdir /efs 0771 system system
+ mkdir /cache 0770 system cache
+ mkdir /config 0500 root root
+ chown system cache /cache
+ chmod 0770 /cache
+
+on fs
+ mount tmpfs tmpfs /tmp
+
+ mount ext4 /dev/block/mmcblk0p9 /system wait
+
+ mount ext4 /dev/block/mmcblk0p10 /data nosuid nodev noatime wait
+ chown system system /data
+ chmod 0771 /data
+ mkdir /data/fota
+ chown system system /data/fota
+ chmod 0777 /data/fota
+
+ #mount rfs /dev/block/stl11 /cache nosuid nodev check=no
+ mount ext4 /dev/block/mmcblk0p7 /cache nosuid nodev noatime wait
+ chown system cache /cache
+ chmod 0770 /cache
+ mkdir /cache/fota
+ chown system system /cache/fota
+ chmod 0777 /cache/fota
+
+
+ #mount rfs /dev/block/stl3 /efs nosuid nodev check=no
+
+on post-fs
+
+ #temp
+ chmod 750 /sbin/fat.format
+ mount rootfs rootfs / ro remount
+
+ write /proc/sys/kernel/panic_on_oops 1
+ write /proc/sys/kernel/hung_task_timeout_secs 0
+ write /proc/cpu/alignment 4
+ write /proc/sys/kernel/sched_latency_ns 10000000
+ write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
+ write /proc/sys/kernel/sched_compat_yield 1
+ write /proc/sys/kernel/sched_child_runs_first 0
+
+on boot
+
+ ifup lo
+ hostname localhost
+ domainname localdomain
+
+ class_start default
+
+service ueventd /sbin/ueventd
+ critical
+
+service redbend_ua /sbin/redbend_ua all
+ oneshot
1  init
78 init.goldfish.rc
@@ -0,0 +1,78 @@
+on early-init
+ export EXTERNAL_STORAGE /mnt/sdcard
+ mkdir /mnt/sdcard 0000 system system
+ # for backwards compatibility
+ symlink /mnt/sdcard /sdcard
+
+on boot
+ setprop ARGH ARGH
+ setprop net.eth0.gw 10.0.2.2
+ setprop net.eth0.dns1 10.0.2.3
+ setprop net.gprs.local-ip 10.0.2.15
+ setprop ro.radio.use-ppp no
+ setprop ro.build.product generic
+ setprop ro.product.device generic
+
+# fake some battery state
+ setprop status.battery.state Slow
+ setprop status.battery.level 5
+ setprop status.battery.level_raw 50
+ setprop status.battery.level_scale 9
+
+# disable some daemons the emulator doesn't want
+ stop dund
+ stop akmd
+
+# start essential services
+ start qemud
+ start goldfish-logcat
+ start goldfish-setup
+
+ setprop ro.setupwizard.mode EMULATOR
+
+# enable Google-specific location features,
+# like NetworkLocationProvider and LocationCollector
+ setprop ro.com.google.locationfeatures 1
+
+# For the emulator, which bypasses Setup Wizard, you can specify
+# account info for the device via these two properties. Google
+# Login Service will insert these accounts into the database when
+# it is created (ie, after a data wipe).
+#
+# setprop ro.config.hosted_account username@hosteddomain.org:password
+# setprop ro.config.google_account username@gmail.com:password
+#
+# You MUST have a Google account on the device, and you MAY
+# additionally have a hosted account. No other configuration is
+# supported, and arbitrary breakage may result if you specify
+# something else.
+
+service goldfish-setup /system/etc/init.goldfish.sh
+ user root
+ group root
+ oneshot
+
+# The qemu-props program is used to set various system
+# properties on boot. It must be run early during the boot
+# process to avoid race conditions with other daemons that
+# might read them (e.g. surface flinger), so define it in
+# class 'core'
+#
+service qemu-props /system/bin/qemu-props
+ class core
+ user root
+ group root
+ oneshot
+
+service qemud /system/bin/qemud
+ socket qemud stream 666
+ oneshot
+
+# -Q is a special logcat option that forces the
+# program to check wether it runs on the emulator
+# if it does, it redirects its output to the device
+# named by the androidboot.console kernel option
+# if not, is simply exits immediately
+
+service goldfish-logcat /system/bin/logcat -Q
+ oneshot
917 init.rc
@@ -0,0 +1,917 @@
+on early-init
+ start ueventd
+
+# create mountpoints
+ mkdir /mnt 0775 root system
+
+on init
+# Vibetonz
+ export VIBE_PIPE_PATH /dev/pipes
+ mkdir /dev/pipes 0771 shell shell
+
+sysclktz 0
+
+loglevel 3
+
+# setup the global environment
+ export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
+ export LD_LIBRARY_PATH /vendor/lib:/system/lib
+ export ANDROID_BOOTLOGO 1
+ export ANDROID_ROOT /system
+ export ANDROID_ASSETS /system/app
+ export ANDROID_DATA /data
+ export ASEC_MOUNTPOINT /mnt/asec
+ export LOOP_MOUNTPOINT /mnt/obb
+ 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:/system/framework/filterfw.jar
+
+# Disable CFQ slice idle delay
+ write /sys/block/mmcblk0/queue/iosched/slice_idle 0
+
+# Backward compatibility
+ symlink /system/etc /etc
+ symlink /sys/kernel/debug /d
+
+# Right now vendor lives on the same filesystem as system,
+# but someday that may change.
+ symlink /system/vendor /vendor
+
+#add booting sound property
+ setprop audioflinger.bootsnd 1
+
+# Create cgroup mount point for cpu accounting
+ mkdir /acct
+ mount cgroup none /acct cpuacct
+ mkdir /acct/uid
+
+ mkdir /system
+ mkdir /data 0771 system system
+ mkdir /cache 0770 system cache
+ mkdir /config 0500 root root
+ mkdir /preload 0771 system system
+
+ # Directory for putting things only root should see.
+ mkdir /mnt/secure 0700 root root
+
+ # Directory for staging bindmounts
+ mkdir /mnt/secure/staging 0700 root root
+
+ # Directory-target for where the secure container
+ # imagefile directory will be bind-mounted
+ mkdir /mnt/secure/asec 0700 root root
+
+ # Secure container public mount points.
+ mkdir /mnt/asec 0700 root system
+ mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000
+
+ # Filesystem image public mount points.
+ mkdir /mnt/obb 0700 root system
+ mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000
+
+ mkdir /mnt/.lfs 0755 root root
+
+ write /proc/sys/kernel/panic_on_oops 1
+ write /proc/sys/kernel/hung_task_timeout_secs 0
+ write /proc/cpu/alignment 4
+ write /proc/sys/kernel/sched_latency_ns 10000000
+ write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
+ write /proc/sys/kernel/sched_compat_yield 1
+ write /proc/sys/kernel/sched_child_runs_first 0
+
+# Create cgroup mount points for process groups
+ mkdir /dev/cpuctl
+ mount cgroup none /dev/cpuctl cpu
+ chown system system /dev/cpuctl
+ chown system system /dev/cpuctl/tasks
+ chmod 0777 /dev/cpuctl/tasks
+ write /dev/cpuctl/cpu.shares 1024
+
+ mkdir /dev/cpuctl/fg_boost
+ chown system system /dev/cpuctl/fg_boost/tasks
+ chmod 0777 /dev/cpuctl/fg_boost/tasks
+ write /dev/cpuctl/fg_boost/cpu.shares 1024
+
+ mkdir /dev/cpuctl/bg_non_interactive
+ chown system system /dev/cpuctl/bg_non_interactive/tasks
+ chmod 0777 /dev/cpuctl/bg_non_interactive/tasks
+ # 5.0 %
+ write /dev/cpuctl/bg_non_interactive/cpu.shares 52
+
+# Allow everybody to read the xt_qtaguid resource tracking misc dev.
+# This is needed by any process that uses socket tagging.
+ chmod 0644 /dev/xt_qtaguid
+
+# ko files for FM Radio
+ insmod /lib/modules/Si4709_driver.ko
+
+on fs
+# mount ext4 partitions
+ # Mount /system rw first to give the filesystem a chance to save a checkpoint
+ #mount ext4 /dev/block/mmcblk0p9 /system
+ mount ext4 /dev/block/mmcblk0p9 /system noatime wait ro
+
+ exec sfsck /dev/block/mmcblk0p7 ext4
+ mount ext4 /dev/block/mmcblk0p7 /cache nosuid nodev noatime wait
+
+ #exec sfsck /dev/block/mmcblk0p12 ext4
+ #mount ext4 /dev/block/mmcblk0p12 /preload nosuid nodev noatime wait ro
+
+ 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
+ chown radio system /efs
+ chmod 0771 /efs
+ mkdir /efs/bluetooth
+ mkdir /efs/wifi
+ chown radio system /efs/bluetooth
+ chown radio system /efs/wifi
+ chmod 0775 /efs/bluetooth
+ chmod 0775 /efs/wifi
+
+ # check encryption status, checking UMS & data should be excuted after this command
+ exec check_encryption_status /dev/block/mmcblk0p10
+
+ # verfiy filesystem (UMS)
+ exec sformat /dev/block/mmcblk0p11 vfat
+
+on post-fs
+ exec sfsck /dev/block/mmcblk0p10 ext4
+ mount ext4 /dev/block/mmcblk0p10 /data nosuid nodev noatime wait noauto_da_alloc
+
+ # once everything is setup, no need to modify /
+ mount rootfs rootfs / ro remount
+
+ insmod /lib/modules/j4fs.ko
+ mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
+
+ # We chown/chmod /cache again so because mount is run as root + defaults
+ chown system cache /cache
+ chmod 0770 /cache
+
+ # This may have been created by the recovery system with odd permissions
+ chown system cache /cache/recovery
+ chmod 0770 /cache/recovery
+
+ #change permissions on vmallocinfo so we can grab it from bugreports
+ chown root log /proc/vmallocinfo
+ chmod 0440 /proc/vmallocinfo
+
+ #change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks
+ chown root system /proc/kmsg
+ chmod 0440 /proc/kmsg
+ chown root system /proc/sysrq-trigger
+ chmod 0220 /proc/sysrq-trigger
+
+ # create the lost+found directories, so as to enforce our permissions
+ mkdir /cache/lost+found 0770
+
+ # double check the perms, in case lost+found already exists, and set owner
+ chown root root /cache/lost+found
+ chmod 0770 /cache/lost+found
+
+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
+ # storing dumps on platforms which do not have a dedicated dump partition.
+
+ mkdir /data/dontpanic
+ chown root log /data/dontpanic
+ chmod 0750 /data/dontpanic
+
+ # Collect apanic data, free resources and re-arm trigger
+ copy /proc/apanic_console /data/dontpanic/apanic_console
+ chown root log /data/dontpanic/apanic_console
+ chmod 0640 /data/dontpanic/apanic_console
+
+ copy /proc/apanic_threads /data/dontpanic/apanic_threads
+ chown root log /data/dontpanic/apanic_threads
+ chmod 0640 /data/dontpanic/apanic_threads
+
+ write /proc/apanic_console 1
+
+ # GPS
+ chown root system /dev/ttySAC1
+ chmod 0660 /dev/ttySAC1
+ chown root system /sys/class/sec/gps/GPS_PWR_EN/value
+ chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value
+ chown root system /sys/class/sec/gps/GPS_nRST/value
+ chmod 0664 /sys/class/sec/gps/GPS_nRST/value
+ mkdir /data/gps 771 system system
+ chown system system /data/gps
+
+ # create basic filesystem structure
+ mkdir /data/misc 01771 system misc
+ mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
+ mkdir /data/misc/bluetooth 0770 system system
+ mkdir /data/misc/keystore 0700 keystore keystore
+ mkdir /data/misc/keychain 0771 system system
+ mkdir /data/misc/vpn 0770 system vpn
+ mkdir /data/misc/systemkeys 0700 system system
+ mkdir /data/misc/vpn/profiles 0770 system system
+ mkdir /data/misc/radio 0775 radio system
+ # give system access to wpa_supplicant.conf for backup and restore
+ mkdir /data/misc/wifi 0770 wifi wifi
+ chmod 0770 /data/misc/wifi
+ chmod 0660 /data/misc/wifi/wpa_supplicant.conf
+ 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
+ mkdir /data/app 0771 system system
+ mkdir /data/property 0700 root root
+
+ # create dalvik-cache and double-check the perms
+ mkdir /data/dalvik-cache 0771 system system
+ chown system system /data/dalvik-cache
+ chmod 0771 /data/dalvik-cache
+
+ # create the lost+found directories, so as to enforce our permissions
+ mkdir /data/lost+found 0770
+
+ # double check the perms, in case lost+found already exists, and set owner
+ chown root root /data/lost+found
+ chmod 0770 /data/lost+found
+
+ # create directory for DRM plug-ins
+ mkdir /data/drm 0774 drm drm
+
+ #Code changes for GB-> ICS upgrade for U1/T1 models ...Moving .db file .. starts
+
+ mkdir /data/system/databases 0771 system system
+ copy /data/data/com.sec.android.providers.drm/databases/drmdatabase.db /data/system/databases/drmdatabase.db
+ chown system system /data/system/databases/drmdatabase.db
+ chmod 0774 /data/system/databases/drmdatabase.db
+
+ #Code changes for GB-> ICS upgrade for U1/T1 models ...Moving .db file .. ends
+
+#SISO-PLAYREADY-CHANGES
+#DRM directory creation
+ mkdir /system/etc/security/.drm 0775
+ chown root root /system/etc/security/.drm
+ chmod 0775 /system/etc/security/.drm
+
+ # Added for Playready DRM Support
+ mkdir /data/data/.drm 0775
+ chown drm system /data/data/.drm
+ chmod 0775 /data/data/.drm
+ mkdir /data/data/.drm/.playready 0775
+ chown drm system /data/data/.drm/.playready
+ chmod 0775 /data/data/.drm/.playready
+
+ #Added drm folder to copy drm plugins
+ mkdir /system/lib/drm 0775
+ chown root root /system/lib/drm
+ chmod 0775 /system/lib/drm
+#SISO-PLAYREADY-CHANGES
+
+ # DivX DRM
+ mkdir /efs/.files 0775
+ mkdir /efs/.files/.dx1 0775
+ mkdir /efs/.files/.dm33 0775
+ mkdir /efs/.files/.mp301 0775
+ chown media system /efs/.files/.dx1
+ chown media system /efs/.files/.dm33
+ chown media system /efs/.files/.mp301
+ chmod 0775 /efs/.files/.dx1
+ chmod 0775 /efs/.files/.dm33
+ chmod 0775 /efs/.files/.mp301
+
+ # If there is no fs-post-data action in the init.<device>.rc file, you
+ # must uncomment this line, otherwise encrypted filesystems
+ # won't work.
+ # Set indication (checked by vold) that we have finished this action
+ #setprop vold.post_fs_data_done 1
+
+# Device Encryption by B2B Security Lab.
+ setprop vold.post_fs_data_done 1
+
+ chown system system /sys/class/android_usb/android0/f_mass_storage/lun/file
+ chmod 0660 /sys/class/android_usb/android0/f_mass_storage/lun/file
+ chown system system /sys/class/android_usb/android0/f_rndis/ethaddr
+ chmod 0660 /sys/class/android_usb/android0/f_rndis/ethaddr
+
+# MTP Device permission.
+ chmod 0660 /dev/usb_mtp_gadget
+ chown system system /dev/usb_mtp_gadget
+
+# terminal mode
+ chmod 0660 /sys/class/android_usb/android0/terminal_version
+ chown system system /sys/class/android_usb/android0/terminal_version
+
+# NFC
+ setprop ro.nfc.port "I2C"
+ chmod 0600 /dev/pn544
+ chown nfc nfc /dev/pn544
+
+# Added by Yamaha Corporation. -----------------------------------------
+ # setup for alsa snd device
+ chmod 0770 /dev/snd/pcmC0D0c
+ chmod 0770 /dev/snd/pcmC0D0p
+ chmod 0770 /dev/snd/controlC0
+ chmod 0770 /dev/snd/timer
+ chmod 0770 /dev/snd/hwC0D0
+#-----------------------------------------------------------------------
+
+ # create log system
+ mkdir /data/log 0775 system log
+ chown system log /data/log
+
+ chmod 0775 /data/log
+ chmod 0775 /data/anr
+
+ chmod 0662 /dev/log/radio
+ chmod 0662 /dev/log/main
+ chmod 0662 /dev/log/event
+
+on boot
+# basic network init
+ ifup lo
+ hostname localhost
+ domainname localdomain
+
+# set RLIMIT_NICE to allow priorities from 19 to -20
+ setrlimit 13 40 40
+
+# Define the oom_adj values for the classes of processes that can be
+# killed by the kernel. These are used in ActivityManagerService.
+ setprop ro.FOREGROUND_APP_ADJ 0
+ setprop ro.VISIBLE_APP_ADJ 1
+ setprop ro.PERCEPTIBLE_APP_ADJ 2
+ setprop ro.HEAVY_WEIGHT_APP_ADJ 3
+ setprop ro.SECONDARY_SERVER_ADJ 4
+ setprop ro.BACKUP_APP_ADJ 5
+ setprop ro.HOME_APP_ADJ 6
+ setprop ro.HIDDEN_APP_MIN_ADJ 7
+ setprop ro.EMPTY_APP_ADJ 15
+
+# Define the memory thresholds at which the above process classes will
+# be killed. These numbers are in pages (4k).
+ # These are currently tuned for tablets with approx 1GB RAM.
+ setprop ro.FOREGROUND_APP_MEM 8192
+ setprop ro.VISIBLE_APP_MEM 10240
+ setprop ro.PERCEPTIBLE_APP_MEM 12288
+ setprop ro.HEAVY_WEIGHT_APP_MEM 12288
+ setprop ro.SECONDARY_SERVER_MEM 14336
+ setprop ro.BACKUP_APP_MEM 14336
+ setprop ro.HOME_APP_MEM 14336
+ setprop ro.HIDDEN_APP_MEM 16384
+ setprop ro.EMPTY_APP_MEM 20480
+
+ # Old values for phones. Should probably be adjusted up for the next
+ # phone version.
+ #setprop ro.FOREGROUND_APP_MEM 2048
+ #setprop ro.VISIBLE_APP_MEM 3072
+ #setprop ro.PERCEPTIBLE_APP_MEM 4096
+ #setprop ro.HEAVY_WEIGHT_APP_MEM 4096
+ #setprop ro.SECONDARY_SERVER_MEM 6144
+ #setprop ro.BACKUP_APP_MEM 6144
+ #setprop ro.HOME_APP_MEM 6144
+ #setprop ro.HIDDEN_APP_MEM 7168
+ #setprop ro.EMPTY_APP_MEM 8192
+
+# Write value must be consistent with the above properties.
+# Note that the driver only supports 6 slots, so we have combined some of
+# the classes into the same memory level; the associated processes of higher
+# classes will still be killed first.
+ write /sys/module/lowmemorykiller/parameters/adj 0,1,2,4,7,15
+
+ write /proc/sys/vm/overcommit_memory 1
+ write /proc/sys/vm/min_free_order_shift 4
+ write /sys/module/lowmemorykiller/parameters/minfree 8192,10240,12288,14336,16384,20480
+
+ # Set init its forked children's oom_adj.
+ write /proc/1/oom_adj -16
+
+ # Tweak background writeout
+ write /proc/sys/vm/dirty_expire_centisecs 200
+ write /proc/sys/vm/dirty_background_ratio 5
+
+#panorama directory creation
+ mkdir /data/pxtmpdir 0775
+ chown system system /data/pxtmpdir
+ chmod 0775 /data/pxtmpdir
+
+ # permission for HDMI audio path
+ chown media audio /sys/class/hdmi_audio/hdmi_audio/hdmi_audio_set_ext
+
+# Permissions for gpio_keys.
+ chown system radio /sys/class/sec/sec_key/wakeup_keys
+ write /sys/class/sec/sec_key/wakeup_keys 102,116
+
+# Add permission for ATM. 2010.03.20
+ chown system radio /sys/devices/platform/i2c-gpio.9/i2c-9/9-0036/power_supply/fuelgauge/fg_read_soc
+ chown system radio /sys/devices/platform/i2c-gpio.9/i2c-9/9-0036/power_supply/fuelgauge/fg_reset_soc
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_lpm_state
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/fg_psoc
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/system_rev
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_current_adc
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_test_value
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc_spec
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_check
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_full_check
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_type
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/mp3
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/video
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_lp_charging
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/charging_source
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc_avg
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_temp
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_vfocv
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_soc
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_vol
+
+ # Permissions for System Server and daemons.
+ chown radio system /sys/android_power/state
+ chown radio system /sys/android_power/request_state
+ chown radio system /sys/android_power/acquire_full_wake_lock
+ chown radio system /sys/android_power/acquire_partial_wake_lock
+ chown radio system /sys/android_power/release_wake_lock
+ chown radio system /sys/power/state
+ chown radio system /sys/power/wake_lock
+ chown radio system /sys/power/wake_unlock
+ chmod 0660 /sys/power/state
+ chmod 0660 /sys/power/wake_lock
+ chmod 0660 /sys/power/wake_unlock
+
+ chown system system /sys/class/timed_output/vibrator/enable
+ chown system system /sys/class/leds/keyboard-backlight/brightness
+ chown system system /sys/class/leds/lcd-backlight/brightness
+ chown system system /sys/class/backlight/panel/brightness
+ chown system system /sys/class/leds/button-backlight/brightness
+ chown system system /sys/class/leds/jogball-backlight/brightness
+ chown system system /sys/class/leds/red/brightness
+ chown system system /sys/class/leds/green/brightness
+ chown system system /sys/class/leds/blue/brightness
+ chown system system /sys/class/leds/red/device/grpfreq
+ chown system system /sys/class/leds/red/device/grppwm
+ chown system system /sys/class/leds/red/device/blink
+ chown system system /sys/class/leds/red/brightness
+ chown system system /sys/class/leds/green/brightness
+ chown system system /sys/class/leds/blue/brightness
+ chown system system /sys/class/leds/red/device/grpfreq
+ chown system system /sys/class/leds/red/device/grppwm
+ chown system system /sys/class/leds/red/device/blink
+ chown system system /sys/class/timed_output/vibrator/enable
+ chown system system /sys/module/sco/parameters/disable_esco
+ chown system system /sys/kernel/ipv4/tcp_wmem_min
+ chown system system /sys/kernel/ipv4/tcp_wmem_def
+ chown system system /sys/kernel/ipv4/tcp_wmem_max
+ chown system system /sys/kernel/ipv4/tcp_rmem_min
+ chown system system /sys/kernel/ipv4/tcp_rmem_def
+ chown system system /sys/kernel/ipv4/tcp_rmem_max
+ chown system system /sys/class/power_supply/battery/temp
+ chown root radio /proc/cmdline
+
+# Permissions for input devices
+ chown system radio /sys/devices/virtual/sec/sec_key/sec_key_pressed
+
+ chown system radio /sys/devices/virtual/sec/sec_touchkey/enable_disable
+ chown system radio /sys/devices/virtual/sec/sec_touchkey/recommended_version
+ chown system radio /sys/devices/virtual/sec/sec_touchkey/touch_sensitivity
+ chown system radio /sys/devices/virtual/sec/sec_touchkey/brightness
+ chown system radio /sys/devices/virtual/sec/sec_touchkey/touchkey_brightness
+ chown system radio /sys/devices/virtual/sec/sec_touchkey/touchkey_back
+ chown system radio /sys/devices/virtual/sec/sec_touchkey/touchkey_menu
+ chown system radio /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_version_panel
+ chown system radio /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_version_phone
+ chown system radio /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_update_status
+ chown system radio /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_update
+ chown system radio /sys/devices/virtual/sec/sec_touchkey/updated_version
+
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_firm_version
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_threshould
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_all_delta
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_all_refer
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_delta4
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_refer4
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_delta3
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_refer3
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_delta2
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_refer2
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_delta1
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_refer1
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_delta0
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_refer0
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/disp_all_deltadata
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/disp_all_refdata
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_module_off
+ chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_module_on
+
+ chown system radio /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_version_panel
+ chown system radio /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_version_phone
+ chown system radio /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_update_status
+ chown system radio /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_update
+ chown system radio /sys/devices/virtual/sec/sec_touchscreen/tsp_threshold
+ chown system radio /sys/devices/virtual/sec/sec_touchscreen/tsp_config_version
+ chown system radio /sys/devices/virtual/sec/sec_touchscreen/tsp_touchtype
+
+# Permissions for bluetooth
+ setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
+ chown bluetooth bluetooth ro.bt.bdaddr_path
+ chown bluetooth bluetooth /dev/ttySAC0
+ chmod 0600 /dev/ttySAC0
+ chmod 0660 /sys/class/rfkill/rfkill0/state
+ chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
+ chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
+
+# Vibetonz
+ chmod 0660 /dev/tspdrv
+ chown root shell /dev/tspdrv
+
+# Permissions for LCD
+ chown system radio /sys/class/lcd/panel/lcd_power
+ chown system radio /sys/class/lcd/panel/lcd_type
+ chown system media_rw /sys/class/lcd/panel/gamma_mode
+ chown system media_rw /sys/class/lcd/panel/power_reduce
+ chown system system /sys/class/backlight/panel/auto_brightness
+
+# Permissions for mDNIe
+ chown system media_rw /sys/class/mdnie/mdnie/mode
+ chown system media_rw /sys/class/mdnie/mdnie/outdoor
+ chown system media_rw /sys/class/mdnie/mdnie/scenario
+ chown system system /sys/class/mdnie/mdnie/negative
+
+# Permissions for uart_sel and usb_sel
+ chown system radio /sys/class/sec/switch/uart_sel/value
+ chown system radio /sys/class/sec/switch/usb_sel
+ chown system radio /sys/class/sec/switch/audio_path
+ chown system radio /sys/class/sec/switch/otg_test
+ chown system radio /sys/class/sec/switch/adc_debounce_time
+ chown system radio /sys/class/sec/switch/status
+ chown system radio /sys/class/sec/switch/adc
+ chown system radio /mnt/.lfs/sw_sel
+
+# Permissions for OTG Test
+ chown system radio /sys/class/host_notify/usb_otg/booster
+ chmod 0664 /sys/class/host_notify/usb_otg/booster
+
+# Permission for radio
+ chown system radio /sys/devices/platform/s5p-ehci/ehci_power
+ chown system radio /sys/devices/platform/s5p-ehci/ehci_runtime
+ chown system radio /sys/devices/virtual/misc/multipdp/waketime
+
+# 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.wifi 4095,87380,110208,4096,16384,110208
+ setprop net.tcp.buffersize.wifi 4095,131072,196608,4096,16384,110208
+ setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208
+ setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
+ setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
+
+# +++++++++++++++++++++++++++++++++++++++++++
+# for datarouter
+ chown system system /dev/dun
+ chown system system /dev/ttyGS0
+ chown system system /dev/ttyGS1
+ chown system system /dev/ttyGS2
+ chown system system /dev/ttyGS3
+# +++++++++++++++++++++++++++++++++++++++++++
+
+
+# RTC logging daemon
+ chmod 0770 /system/bin/rtc_log.sh
+ chown system system /system/bin/rtc_log.sh
+
+# DVFS - cpufreq ondemand
+# write /sys/devices/system/cpu/cpufreq/ondemand/down_differential 5
+# write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 85
+
+# DVFS - limit cpufreq during booting sequence
+# write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor userspace
+# write /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed 1000000
+# write /data/dvfs "sleep 10 && echo 800000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed && sleep 30 && echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
+# chmod 0770 /data/dvfs
+
+# Set this property so surfaceflinger is not started by system_init
+ setprop system_init.startsurfaceflinger 0
+
+ class_start core
+ class_start main
+
+on nonencrypted
+ class_start late_start
+
+on property:vold.decrypt=trigger_reset_main
+ class_reset main
+
+on property:vold.decrypt=trigger_load_persist_props
+ load_persist_props
+
+on property:vold.decrypt=trigger_post_fs_data
+ trigger post-fs-data
+
+on property:vold.decrypt=trigger_restart_min_framework
+ class_start main
+
+on property:vold.decrypt=trigger_restart_framework
+ class_start main
+ class_start late_start
+
+on property:vold.decrypt=trigger_shutdown_framework
+ class_reset late_start
+ class_reset main
+
+on property:persist.sys.storage_preload=1
+ mount ext4 /dev/block/mmcblk0p12 /preload nosuid nodev noatime wait ro
+ setprop storage.preload.complete 1
+
+on property:persist.sys.storage_preload=0
+ exec /system/bin/umount /preload
+
+
+# Used to disable USB when switching states
+on property:sys.usb.config=none
+ stop adbd
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/bDeviceClass 0
+ setprop sys.usb.state $sys.usb.config
+
+# adb only USB configuration
+# This should only be used during device bringup
+# and as a fallback if the USB manager fails to set a standard configuration
+on property:sys.usb.config=adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 18d1
+ write /sys/class/android_usb/android0/idProduct D002
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/enable 1
+ start adbd
+ setprop sys.usb.state $sys.usb.config
+
+# USB accessory configuration
+on property:sys.usb.config=accessory
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 18d1
+ write /sys/class/android_usb/android0/idProduct 2d00
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state $sys.usb.config
+
+# USB accessory configuration, with adb
+on property:sys.usb.config=accessory,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 18d1
+ write /sys/class/android_usb/android0/idProduct 2d01
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/enable 1
+ start adbd
+ setprop sys.usb.state $sys.usb.config
+
+on property:persist.sys.usb.config=*
+ setprop sys.usb.config $persist.sys.usb.config
+
+## Daemon processes to be run by init.
+##
+service ueventd /sbin/ueventd
+ class core
+ critical
+
+service console /system/bin/sh
+ class core
+ console
+ disabled
+ group log
+
+on property:ro.debuggable=1
+ start console
+
+# adbd is controlled via property triggers in init.<platform>.usb.rc
+service adbd /sbin/adbd
+ class core
+ disabled
+
+# adbd on at boot in emulator
+on property:ro.kernel.qemu=1
+ start adbd
+
+# This property trigger has added to imitiate the previous behavior of "adb root".
+# The adb gadget driver used to reset the USB bus when the adbd daemon exited,
+# and the host side adb relied on this behavior to force it to reconnect with the
+# new adbd instance after init relaunches it. So now we force the USB bus to reset
+# here when adbd sets the service.adb.root property to 1. We also restart adbd here
+# rather than waiting for init to notice its death and restarting it so the timing
+# of USB resetting and adb restarting more closely matches the previous behavior.
+on property:service.adb.root=1
+ write /sys/class/android_usb/android0/enable 0
+ restart adbd
+ write /sys/class/android_usb/android0/enable 1
+
+service servicemanager /system/bin/servicemanager
+ class core
+ user system
+ group system
+ critical
+ onrestart restart zygote
+ onrestart restart media
+
+service vold /system/bin/vold
+ class core
+ socket vold stream 0660 root mount
+ ioprio be 2
+ socket dir_enc_report stream 0660 root mount
+
+service netd /system/bin/netd
+ class main
+ socket netd stream 0660 root system
+ socket dnsproxyd stream 0660 root inet
+
+service debuggerd /system/bin/debuggerd
+ class main
+
+service ril-daemon /system/bin/rild
+ class main
+ socket rild stream 660 root radio
+ socket rild-debug stream 660 radio system
+ user root
+ group radio cache inet misc audio sdcard_rw log
+
+service DR-deamon /system/bin/drexe
+ class main
+ user root
+ group system radio inet net_raw
+
+service mobex-daemon /system/bin/npsmobex
+ class main
+ user system
+ group system inet sdcard_rw
+
+service surfaceflinger /system/bin/surfaceflinger
+ class main
+ user system
+ group graphics
+ onrestart restart zygote
+
+service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
+ class main
+ socket zygote stream 666
+ onrestart write /sys/android_power/request_state wake
+ onrestart write /sys/power/state on
+ onrestart restart media
+ onrestart restart netd
+
+service drm /system/bin/drmserver
+ class main
+ user drm
+ group system inet sdcard_rw media_rw radio
+
+service media /system/bin/mediaserver
+ class main
+ user media
+ group system audio camera inet net_bt net_bt_admin
+ ioprio rt 4
+
+service samsungani /sbin/bootanimation.sh
+ class main
+ user graphics
+ group graphics
+ disabled
+ oneshot
+
+#for samsung boot sound
+service playsound /system/bin/playsound
+ class main
+ user media
+ group system
+ disabled
+ oneshot
+#for samsung boot sound
+
+service dbus /system/bin/dbus-daemon --system --nofork
+ class main
+ socket dbus stream 660 bluetooth bluetooth
+ user bluetooth
+ group bluetooth net_bt_admin
+
+service bluetoothd /system/bin/logwrapper /system/bin/bluetoothd -n -d
+ class main
+ socket bluetooth stream 660 bluetooth bluetooth
+ socket dbus_bluetooth stream 660 bluetooth bluetooth
+ # init.rc does not yet support applying capabilities, so run as root and
+ # let bluetoothd drop uid to bluetooth with the right linux capabilities
+ group bluetooth net_bt_admin misc
+ disabled
+
+# for bluetooth
+service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm --no2bytes --tosleep 50000 \
+ --baudrate 3000000 --use_baudrate_for_download --patchram /system/bin/bcm4330B1.hcd \
+ --scopcm=0,0,0,0,0,0,0,3,3,0 /dev/ttySAC0
+ class main
+ user bluetooth
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+# for bluetooth rf test.
+service bt_dut_cmd /system/bin/bcm_dut
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+# for bluetooth pan
+service dhcpcd_bnep0 /system/bin/dhcpcd -ABKL
+ class main
+ disabled
+ oneshot
+
+service installd /system/bin/installd
+ class main
+ socket installd stream 600 system system
+
+service flash_recovery /system/etc/install-recovery.sh
+ class main
+ oneshot
+
+service racoon /system/bin/racoon
+ class main
+ socket racoon stream 600 system system
+ # racoon will setuid to vpn after getting necessary resources.
+ group net_admin
+ disabled
+ oneshot
+
+service mtpd /system/bin/mtpd
+ class main
+ socket mtpd stream 600 system system
+ user vpn
+ group vpn net_admin net_raw
+ disabled
+ oneshot
+
+service keystore /system/bin/keystore /data/misc/keystore
+ class main
+ user keystore
+ group keystore
+ socket keystore stream 666
+
+service dumpstate /system/bin/dumpstate -s
+ class main
+ socket dumpstate stream 0660 shell log
+ disabled
+ oneshot
+
+#for WiFi MFG(TestMode)
+service mfgloader /system/bin/mfgloader
+ class main
+ disabled
+ oneshot
+
+service wlandutservice /system/bin/wlandutservice
+ class main
+ user system
+ group wifi net_raw net_admin system inet
+ disabled
+ oneshot
+
+service macloader /system/bin/macloader
+ class main
+ oneshot
+# end of wifi
+
+# Vibetonz
+service immvibed /system/bin/immvibed
+ class core
+ user shell
+ group shell
+ oneshot
+
+# TVout
+service TvoutService_C /system/bin/bintvoutservice
+ class main
+ user system
+ group graphics
+
+# RTC logging daemon
+service rtc_log /system/bin/sh /system/bin/rtc_log.sh
+ class main
+ user shell
+ group log
+ oneshot
+
+# DVFS - limit cpufreq during booting sequence
+#service dvfs /system/bin/sh /system/bin/dvfs.sh
+# class main
+# user root
+# oneshot
+
+# 2011-12-08/systemsw/kyo/ bugreport is triggered by holding down volume down, volume up and power
+service bugreport /system/bin/bugmailer.sh -v
+ class main
+ disabled
+ oneshot
+ keycodes 114 115 116
+on property:sys.boot_completed=1
+ stop samsungani
+
+service postinit /sbin/ext/post-init.sh
+ class core
+ user root
+ oneshot
122 init.smdk4210.rc
@@ -0,0 +1,122 @@
+import init.smdk4210.usb.rc
+
+on early-init
+ export EXTERNAL_STORAGE /mnt/sdcard
+ mkdir /mnt/sdcard 0000 system system
+ # for backwards compatibility
+ symlink /mnt/sdcard /sdcard
+
+on post-fs-data
+ # give system access to wpa_supplicant.conf for backup and restore
+ mkdir /data/misc/wifi 0770 wifi wifi
+ chmod 0770 /data/misc/wifi
+ chmod 0660 /data/misc/wifi/wpa_supplicant.conf
+ mkdir /data/misc/wifi/sockets 0770 wifi wifi
+ mkdir /data/misc/dhcp 0770 dhcp dhcp
+ chown dhcp dhcp /data/misc/dhcp
+
+on boot
+ chown system system /sys/class/backlight/pwm-backlight/brightness
+ chmod 0660 /sys/class/backlight/pwm-backlight/brightness
+ chown radio system /sys/devices/virtual/misc/melfas_touchkey/brightness
+ chmod 0660 /sys/devices/virtual/misc/melfas_touchkey/brightness
+
+#panorama directory creation
+ mkdir /data/pxtmpdir 0775
+ chown system system /data/pxtmpdir
+ chmod 0775 /data/pxtmpdir
+
+# Permissions for dvfs lock
+ chown system system /sys/power/cpufreq_max_limit
+ chown system system /sys/power/cpufreq_min_limit
+ chmod 0660 /sys/power/cpufreq_max_limit
+ chmod 0660 /sys/power/cpufreq_min_limit
+
+ chown system system /sys/power/gpu_lock
+ chmod 0660 /sys/power/gpu_lock
+
+ mount debugfs /sys/kernel/debug /sys/kernel/debug
+
+ setprop ro.build.product GT-I9100
+ setprop ro.product.device GT-I9100
+ setprop ro.radio.noril yes
+
+# Permisions for sensors
+ chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_selftest
+ chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_get_temp
+ chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_power_on
+ chown radio system /sys/devices/virtual/accelerometer/accelerometer/acc_file
+ chown radio system /sys/devices/virtual/sec/gsensorcal/calibration
+
+# permissions for NFC
+ setprop ro.nfc.port "I2C"
+ chmod 0600 /dev/pn544
+ chown nfc nfc /dev/pn544
+
+# Device Encryption by B2B Security Lab.
+ setprop ro.crypto.keyfile.userdata /efs/metadata
+
+# fake some battery state
+ setprop status.battery.state Slow
+ setprop status.battery.level 5
+ setprop status.battery.level_raw 50
+ setprop status.battery.level_scale 9
+
+service notified_event /system/bin/notified_event
+ class main
+ user system
+ group system
+ socket notified_event stream 0660 root system
+
+service tscald /system/bin/tscald /data/data/com.samsung.app.sec_tscal/cal.conf /sys/devices/platform/s3c64xx-ts/set_tscal
+ user root
+ group root
+ oneshot
+
+service wpa_supplicant /system/bin/wpa_supplicant \
+ -Dnl80211 -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin
+ # we will start as root and wpa_supplicant will switch to user wifi
+ # after setting up the capabilities required for WEXT
+ # user wifi
+ # group wifi inet keystore
+ class main
+ socket wpa_wlan0 dgram 0660 wifi wifi
+ disabled
+ oneshot
+
+#for WiFi MFG(TestMode)
+service mfgloader /system/bin/mfgloader
+ disabled
+ oneshot
+
+service wlandutservice /system/bin/wlandutservice
+ user system
+ group wifi net_raw net_admin system inet
+ disabled
+ oneshot
+
+service macloader /system/bin/macloader
+ oneshot
+# end of wifi
+
+service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
+ class main
+ disabled
+ oneshot
+
+service dhcpcd_p2p /system/bin/dhcpcd -aABKL
+ class main
+ disabled
+ oneshot
+
+service iprenew_wlan0 /system/bin/dhcpcd -n
+ class main
+ disabled
+ oneshot
+
+service iprenew_p2p /system/bin/dhcpcd -n
+ class main
+ disabled
+ oneshot
+
+
89 init.smdk4210.usb.rc
@@ -0,0 +1,89 @@
+on init
+ write /sys/class/android_usb/android0/iSerial $ro.serialno
+ write /sys/class/android_usb/android0/f_rndis/manufacturer Samsung
+ write /sys/class/android_usb/android0/f_rndis/vendorID 04e8
+ write /sys/class/android_usb/android0/f_rndis/wceis 1
+
+on boot
+ write /sys/class/android_usb/android0/iManufacturer $ro.manufacturer
+ write /sys/class/android_usb/android0/iProduct $ro.model
+ write /sys/class/android_usb/android0/iSerial $ro.serialno
+ write /sys/class/android_usb/f_mass_storage/inquiry_string "Samsung"
+
+on property:sys.usb.config=mtp
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6860
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state $sys.usb.config
+
+on property:sys.usb.config=mtp,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6860
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/enable 1
+ start adbd
+ setprop sys.usb.state $sys.usb.config
+
+on property:sys.usb.config=rndis
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6863
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/bDeviceClass 224
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state $sys.usb.config
+
+on property:sys.usb.config=rndis,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6864
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/bDeviceClass 224
+ write /sys/class/android_usb/android0/enable 1
+ start adbd
+ setprop sys.usb.state $sys.usb.config
+
+on property:sys.usb.config=ptp
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6865
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state $sys.usb.config
+
+on property:sys.usb.config=ptp,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6866
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/enable 1
+ start adbd
+ setprop sys.usb.state $sys.usb.config
+
+on property:sys.usb.config=rndis,dm
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6862
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state $sys.usb.config
+
+on property:sys.usb.config=mass_storage
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 685B
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state $sys.usb.config
+
+on property:sys.usb.config=mass_storage,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 685e
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/enable 1
+ start adbd
+ setprop sys.usb.state $sys.usb.config
BIN  innt
Binary file not shown
85 lpm.rc
@@ -0,0 +1,85 @@
+on early-init
+ start ueventd
+
+on init
+
+ export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
+ export LD_LIBRARY_PATH /vendor/lib:/system/lib
+ export ANDROID_ROOT /system
+ export ANDROID_DATA /data
+ export EXTERNAL_STORAGE /sdcard
+
+ symlink /system/etc /etc
+
+ mkdir /sdcard
+ mkdir /preload
+ mkdir /system
+ mkdir /data
+ mkdir /cache
+ mkdir /efs
+ mkdir /tmp
+ mkdir /dbdata
+ mkdir /mnt 0775 root root
+ mkdir /mnt/.lfs 0775 root root
+ #mount /tmp /tmp tmpfs
+
+on early-fs
+ insmod /lib/modules/j4fs.ko
+ mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs ro
+ insmod /lib/modules/vibrator.ko
+
+ mount ext4 /dev/block/mmcblk0p9 /system wait ro
+ mount ext4 /dev/block/mmcblk0p10 /data nosuid nodev noatime wait
+
+ mkdir /data/log 0777
+
+ chmod 0666 /dev/log/radio
+ chmod 0666 /dev/log/main
+ chmod 0666 /dev/log/event
+
+ mount ext4 /dev/block/mmcblk0p10 /data remount ro
+
+on boot
+# write /sys/class/sec/switch/usb_sel PDA
+
+# CPU Frequency Governor
+ write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave
+
+ ifup lo
+ hostname localhost
+ domainname localdomain
+
+ class_start default
+
+service debuggerd /system/bin/debuggerd
+
+ service ueventd /sbin/ueventd
+ critical
+
+#service console /bin/sh
+service console /system/bin/sh
+ console
+
+service playlpm /system/bin/playlpm
+ user root
+
+service immvibed /system/bin/immvibed
+ oneshot
+
+service lpmkey /system/bin/lpmkey
+ user root
+
+# adbd is controlled by the persist.service.adb.enable system property
+service adbd /sbin/adbd
+ disabled
+
+# adbd on at boot in emulator
+on property:ro.kernel.qemu=1
+ start adbd
+
+on property:persist.service.adb.enable=1
+ start adbd
+
+on property:persist.service.adb.enable=0
+ stop adbd
+
67 recovery.rc
@@ -0,0 +1,67 @@
+on early-init
+ start ueventd
+
+on init
+ export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
+ export ANDROID_ROOT /system
+ export ANDROID_DATA /data
+ export EXTERNAL_STORAGE /sdcard
+
+ #symlink /system/etc /etc
+
+ mkdir /sdcard
+ mkdir /sdcard1
+ mkdir /system
+ mkdir /data
+ mkdir /cache
+ mkdir /preload
+ mount /tmp /tmp tmpfs
+
+on fs
+ mount ext4 /dev/block/mmcblk0p9 /system noatime wait
+
+ mkdir /efs
+ mount ext4 /dev/block/mmcblk0p1 /efs nosuid nodev noatime wait
+
+ # check encryption status, checking UMS & data should be excuted after this command
+ exec check_encryption_status /dev/block/mmcblk0p10
+
+ # verfiy filesystem (UMS)
+ exec sformat /dev/block/mmcblk0p11 vfat
+
+on boot
+
+ ifup lo
+ hostname localhost
+ domainname localdomain
+
+ class_start default
+
+service ueventd /sbin/ueventd
+ critical
+
+service recovery /sbin/recovery-loader
+
+service adbd /sbin/adbd
+ enabled
+
+# Always start adbd on userdebug and eng builds
+on property:ro.debuggable=1
+ setprop adb.recovery 1
+
+on property:adb.recovery=1
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6860
+ write /sys/class/android_usb/android0/functions adb
+ write /sys/class/android_usb/android0/enable 1
+ write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer
+ write /sys/class/android_usb/android0/iProduct $ro.product.model
+ write /sys/class/android_usb/android0/iSerial $ro.serialno
+ start adbd
+
+# Restart adbd so it can run as root
+on property:service.adb.root=1
+ write /sys/class/android_usb/android0/enable 0
+ restart adbd
+ write /sys/class/android_usb/android0/enable 1
26 res/customconfig/actions/chargecurrent
@@ -0,0 +1,26 @@
+#!/sbin/busybox sh
+
+if [ "a$2" == "a" ];then
+ echo $chargecurrent
+else
+ chargecurrent=$2
+ echo $chargecurrent
+fi
+
+if [ -f /sys/devices/virtual/misc/charge_current/charge_current ];then
+case "${chargecurrent}" in
+ 1)
+ echo "650 450 450" > /sys/devices/virtual/misc/charge_current/charge_current
+ ;;
+ 2)
+ echo "650 650 450" > /sys/devices/virtual/misc/charge_current/charge_current
+ ;;
+ 3)
+ echo "650 650 650" > /sys/devices/virtual/misc/charge_current/charge_current
+ ;;
+ *)
+ chargecurrent=1
+ ;;
+esac;
+fi
+
12 res/customconfig/actions/efs-backup
@@ -0,0 +1,12 @@
+#!/sbin/busybox sh
+
+if [ ! -f /mnt/sdcard/efsbackup.tar.gz ];
+then
+ /sbin/busybox tar zcvf /sdcard/efsbackup.tar.gz /efs
+ /sbin/busybox cat /dev/block/mmcblk0p1 > /sdcard/efsdev-mmcblk0p1.img
+ /sbin/busybox gzip /sdcard/efsdev-mmcblk0p1.img
+ echo "efs backup is created in your internal sdcard"
+else
+ echo "You already have an efs backup in your sdcard. Please delete it before creating another one."
+fi
+
22 res/customconfig/actions/generic
@@ -0,0 +1,22 @@
+#!/sbin/busybox sh
+
+if [ "a$2" == "a" ];then
+exit
+fi
+
+filename=$(basename $2)
+
+if [ "a$3" == "a" ];then
+ evalcmd='eval "echo \$$filename"'
+ eval $evalcmd
+else
+ evalcmd='eval "$filename=$3"'
+ eval $evalcmd
+ evalcmd='eval "echo \$$filename"'
+ eval $evalcmd
+ if [ -f $2 ];then
+ echo $3 > $2
+ fi
+fi
+
+
16 res/customconfig/actions/gpu-freq
@@ -0,0 +1,16 @@
+#!/sbin/busybox sh
+
+if [ "a$3" == "a" ];then
+ evalcmd='eval "echo \$GPUFREQ$2"'
+ eval $evalcmd
+else
+ evalcmd='eval "GPUFREQ$2=$3"'
+ eval $evalcmd
+ evalcmd='eval "echo \$GPUFREQ$2"'
+ eval $evalcmd
+fi
+
+if [ -f /sys/class/misc/gpu_clock_control/gpu_control ];then
+echo "$GPUFREQ1 $GPUFREQ2 $GPUFREQ3" > /sys/class/misc/gpu_clock_control/gpu_control
+fi
+
19 res/customconfig/actions/gpu-staycount
@@ -0,0 +1,19 @@
+#!/sbin/busybox sh
+
+if [ "a$3" == "a" ];then
+ # echo only
+ evalcmd='eval "echo \$GPUSTAYCOUNT$2"'
+ eval $evalcmd
+else
+ # set the value
+ evalcmd='eval "GPUSTAYCOUNT$2=$3"'
+ eval $evalcmd
+ # echo back
+ evalcmd='eval "echo \$GPUSTAYCOUNT$2"'
+ eval $evalcmd
+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
+fi
16 res/customconfig/actions/gpu-thresh
@@ -0,0 +1,16 @@
+#!/sbin/busybox sh
+
+if [ "a$3" == "a" ];then
+ evalcmd='eval "echo \$GPUTHRESHOLD$2"'
+ eval $evalcmd
+else
+ evalcmd='eval "GPUTHRESHOLD$2=$3"'
+ eval $evalcmd
+ evalcmd='eval "echo \$GPUTHRESHOLD$2"'
+ eval $evalcmd
+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
+fi
+
16 res/customconfig/actions/gpu-voltage
@@ -0,0 +1,16 @@
+#!/sbin/busybox sh
+
+if [ "a$3" == "a" ];then
+ evalcmd='eval "echo \$GPUVOLT$2"'
+ eval $evalcmd
+else
+ evalcmd='eval "GPUVOLT$2=$3"'
+ eval $evalcmd
+ evalcmd='eval "echo \$GPUVOLT$2"'
+ eval $evalcmd
+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
+fi
+
9 res/customconfig/actions/install-root
@@ -0,0 +1,9 @@
+#!/sbin/busybox sh
+
+if [ ! -f /system/xbin/su ];then
+ touch /data/.siyah/install-root
+ echo Please wait 10 seconds and check if you have root root. If you do not have it restart your phone.
+else
+ echo You already have root
+fi
+
22 res/customconfig/actions/remove-root
@@ -0,0 +1,22 @@
+#!/sbin/busybox sh
+
+if [ -f /system/xbin/su ];then
+ mount -o remount,rw /dev/block/mmcblk0p9 /system > /dev/null 2>&1
+ rm -f /system/bin/su > /dev/null 2>&1
+ rm -f /system/xbin/su > /dev/null 2>&1
+ # some roms have a busybox with su applet
+ rm -f /system/xbin/busybox > /dev/null 2>&1
+ ln -s /sbin/busybox /system/xbin/busybox > /dev/null 2>&1
+ # I need to remove this as well for Garanti CepBank app
+ rm -f /system/xbin/which > /dev/null 2>&1
+ # 1SuperUser, superuser Superuser SuperUser whatever...
+ rm -rf /data/dalvik-cache/*uper?ser.apk* > /dev/null 2>&1
+ rm -f /system/app/*uper?ser.apk > /dev/null 2>&1
+ rm -f /data/app/*uper?ser.apk > /dev/null 2>&1
+ mount -o remount,ro /dev/block/mmcblk0p9 /system > /dev/null 2>&1
+ # run reinstall-helper
+ /sbin/busybox sh /sbin/ext/su-helper.sh
+ echo Root removed. The apps which require root, including this app, will have limited functionality.
+else
+ echo You do not have root.
+fi
10 res/customconfig/actions/reset-fuelgauge
@@ -0,0 +1,10 @@
+#!/sbin/busybox sh
+
+if [ ! -f /sys/devices/platform/i2c-gpio.9/i2c-9/9-0036/power_supply/fuelgauge/fg_reset_soc ];
+then
+ echo "The device file is not found. Fuel gauge chip cannot be reset."
+else
+ echo "1" > /sys/devices/platform/i2c-gpio.9/i2c-9/9-0036/power_supply/fuelgauge/fg_reset_soc
+ echo "The fuel gauge chip is reset."
+fi
+
25 res/customconfig/actions/secondcore
@@ -0,0 +1,25 @@
+#!/sbin/busybox sh
+
+if [ "a$2" != "a" ];then
+ secondcore=$2
+fi
+
+case "${secondcore}" in
+ hotplug)
+ echo "on" > /sys/devices/virtual/misc/second_core/hotplug_on
+ echo "off" > /sys/devices/virtual/misc/second_core/second_core_on
+ ;;
+ always-on)
+ echo "off" > /sys/devices/virtual/misc/second_core/hotplug_on
+ echo "on" > /sys/devices/virtual/misc/second_core/second_core_on
+ ;;
+ always-off)
+ echo "off" > /sys/devices/virtual/misc/second_core/hotplug_on
+ echo "off" > /sys/devices/virtual/misc/second_core/second_core_on
+ ;;
+ *)
+ secondcore=hotplug
+ ;;
+esac;
+
+echo $secondcore
125 res/customconfig/customconfig-helper
@@ -0,0 +1,125 @@
+#!/sbin/busybox sh
+# custom script helper by Gokhan Moral
+
+DEFAULT_PROFILE=/res/customconfig/default.profile
+CONFIG_XML=/res/customconfig/customconfig.xml
+PROFILE_PATH=/data/.siyah
+TEMP_CONFIG=$PROFILE_PATH/.config.tmp
+LAST_SELECTED=.active.profile
+ACTIVE_PROFILE=${PROFILE_PATH}/${LAST_SELECTED}
+
+read_dom () {
+ local IFS=\>
+ read -r ENTITY CONTENT
+}
+
+apply_config()
+{
+while read_dom; do
+action=$(echo $ENTITY | grep -v \<button | sed -e 's/action=/\naction=/g' |grep action|awk -F'"' '{print $2}')
+if [ "a$action" != a ];then
+ actionval=`/res/uci.sh $action`
+ echo applying: /res/uci.sh $action $actionval
+ eval /res/uci.sh $action $actionval
+fi
+done < $CONFIG_XML
+}
+
+print_config()
+{
+ cat $CONFIG_XML
+}
+
+list_profile()
+{
+ ls -1 $PROFILE_PATH | grep \.profile | sed -e 's/.profile//g'
+}
+
+select_profile()
+{
+ if [ "a$1" == "a" ];
+ then
+ cat $ACTIVE_PROFILE
+ else
+ # if there is no such profile, create one
+ _ACTIVE_PROFILE=`cat $ACTIVE_PROFILE`
+ if [ ! -f ${PROFILE_PATH}/$_ACTIVE_PROFILE ];then
+ cp $DEFAULT_PROFILE ${PROFILE_PATH}/${1}.profile
+ fi
+ if [ ! -f ${PROFILE_PATH}/${1}.profile ];then
+ cp $_ACTIVE_PROFILE ${PROFILE_PATH}/${1}.profile
+ fi
+ echo $1 > $ACTIVE_PROFILE
+ fi
+}
+
+delete_profile()
+{
+ if [ "`cat $ACTIVE_PROFILE`" == "$1" ];then
+ select_profile "default"
+ fi
+ rm ${PROFILE_PATH}/${1}.profile
+}
+
+rename_profile()
+{
+ # move old profile to new
+ mv ${PROFILE_PATH}/${1}.profile ${PROFILE_PATH}/${2}.profile
+
+ # if old profile is active, set the new profile as active profile
+ if [ "`cat $ACTIVE_PROFILE`" == "$1" ];then
+ echo $2 > $ACTIVE_PROFILE
+ fi
+}
+
+write_config()
+{
+ if [ "a$1" == "a" ];then
+ _CONFIG_FILE=$PROFILE_PATH/`cat ${PROFILE_PATH}/${LAST_SELECTED}`.profile
+ else
+ _CONFIG_FILE=$PROFILE_PATH/${1}.profile
+ fi
+
+ rm -f $TEMP_CONFIG
+ while IFS="=" read -r key value
+ do
+ if [ -n "$key" ];then
+ evalexpr='eval "echo \$$key"'
+ echo $key=`eval $evalexpr`
+ fi
+ done < $DEFAULT_PROFILE > $TEMP_CONFIG
+ cp $TEMP_CONFIG $_CONFIG_FILE
+ rm -f $TEMP_CONFIG
+}
+
+read_config()
+{
+ if [ "a$1" == "a" ];then
+ _CONFIG_FILE=$PROFILE_PATH/`cat ${PROFILE_PATH}/${LAST_SELECTED}`.profile
+ else
+ _CONFIG_FILE=${1}
+ fi
+
+
+ eval `sed -e 's/[[:space:]]*\=[[:space:]]*/=/g' \
+ -e 's/;.*$//' \
+ -e 's/[[:space:]]*$//' \
+ -e 's/^[[:space:]]*//' \
+ -e "s/^\(.*\)=\([^\"']*\)$/\1=\"\2\"/" \
+ < $_CONFIG_FILE | grep = `
+}
+
+read_defaults ()
+{
+ read_config "$DEFAULT_PROFILE"
+}
+
+# some initialization code
+
+if [ ! -f $PROFILE_PATH/$LAST_SELECTED ];then
+ echo default > $PROFILE_PATH/$LAST_SELECTED
+fi
+
+if [ ! -f $PROFILE_PATH/default.profile ];then
+ cp $DEFAULT_PROFILE $PROFILE_PATH/default.profile
+fi
166 res/customconfig/customconfig.xml
@@ -0,0 +1,166 @@
+<settingsRoot>
+ <settingsTab name="CPU">
+ <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">
+ <spinner description="Sets the CPU Hotplug Mode. Hotplug mode will dynamically switch the second core on and off. Using second core always-off or always-on modes will make the other hotplug parameters useless." name="Hotplug Mode" action="secondcore">
+ <spinnerItem name="CPU Hotplug (default)" value="hotplug"/>
+ <spinnerItem name="Second core always-off" value="always-off"/>
+ <spinnerItem name="Second core always-on" value="always-on"/>
+ </spinner>
+ <seekBar description="second core will be enabled when the load goes above this threshold (default is 30)"
+ name="load_h0" action="generic /sys/module/stand_hotplug/parameters/load_h0" unit="%" min="0" reversed="false" step="1" max="100"/>
+ <seekBar description="second core will be disabled when the load goes below this threshold (default is 20)"
+ name="load_l1" action="generic /sys/module/stand_hotplug/parameters/load_l1" unit="%" min="0" reversed="false" step="1" max="100"/>
+ <seekBar description="(default is 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 is 20)"
+ name="load_rq" action="generic /sys/module/stand_hotplug/parameters/load_rq" unit="%" min="5" reversed="false" step="1" max="100"/>
+ <seekBar description="Sets hot plug sampling intervals for screen-on state (default is 100)"
+ name="rate" action="generic /sys/module/stand_hotplug/parameters/rate" unit=" jiffies" min="50" reversed="false" step="50" max="1000"/>
+ <seekBar description="Sets the frequency below which second core will not be turned on, regardless of thresholds. (default: 100000)"
+ name="freq_min" action="generic /sys/module/stand_hotplug/parameters/freq_min" unit=" kHz" min="0" reversed="false" step="100000" max="1200000"/>
+ </settingsPane>
+
+ <settingsPane description=""
+ name="CPU Idle and Power Settings">
+ <spinner description="Sets the CPU Idle Mode. AFTR+LPA is the default and best for the battery life but if you have problems try Idle+LPA." name="CPU Idle Mode" action="generic /sys/module/cpuidle_exynos4/parameters/enable_mask">
+ <spinnerItem name="AFTR + LPA (default)" 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 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=""
+ name="CPU Smooth Scaling Settings">
+ <seekBar description="smooth_target controls both smooth-scaling and cpu throttling. Default value is 2 which corresponds to 1200MHz. If the cpu gets hot the cpu is throttled to L3(1000MHz) and L4(800MHz) depending on the temperature. If you decrease this value, both smooth scaling and throttling targets will decrease."
+ name="smooth_target" action="generic /sys/devices/system/cpu/cpu0/cpufreq/smooth_target" unit="" min="0" reversed="false" step="1" max="4"/>
+ <seekBar description="if smooth_target+smooth_offset is higher than the target frequency, minimum of current_freq-smooth_step or smooth_target+smooth_offset-smooth_step. Set this to 0 to disable smooth scaling."
+ name="smooth_offset" action="generic /sys/devices/system/cpu/cpu0/cpufreq/smooth_offset" unit="" min="0" reversed="false" step="1" max="4"/>
+ <seekBar description=""
+ name="smooth_step" action="generic /sys/devices/system/cpu/cpu0/cpufreq/smooth_step" unit="" min="0" reversed="false" step="1" max="4"/>
+ </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">
+ <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 (middle) 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"/>
+ <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 third (last) 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"/>
+ <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>
+ </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>
+
+ <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">
+ <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"/>
+ </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"/>
+ </settingsPane>
+
+ </settingsTab>
+
+ <settingsTab name="Screen">
+ <settingsPane description="Some TouchScreen/Display Settings" name="Screen Settings">
+ <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"/>
+ <seekBar description="Setting min_bl higher will result in staying lowest brightness level for brighter conditions"
+ name="min_bl (default 40)" action="generic /sys/class/misc/brightness_curve/min_bl" unit="" min="0" reversed="false" step="10" max="150"/>
+ <seekBar description="Minimum brightness level"
+ name="min_gamma (default 0)" action="generic /sys/class/misc/brightness_curve/min_gamma" unit="" min="0" reversed="false" step="1" max="20"/>
+ <seekBar description="Maximum brightness level"
+ name="max_gamma (default 20)" action="generic /sys/class/misc/brightness_curve/max_gamma" unit="" min="0" reversed="false" step="1" max="20"/>
+ </settingsPane>
+ </settingsTab>
+
+ <settingsTab name="Misc">
+ <settingsPane description="Misc Settings" name="Misc Settings">
+ <button description="Back up the efs partition" name="BackupEFS" action="efs-backup" label="Backup EFS"/>
+ <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"/>
+ <spinnerItem name="100MHz" value="100000"/>
+ </spinner>
+ <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">
+ <spinnerItem name="ondemand" value="ondemand"/>
+ <spinnerItem name="conservative" value="conservative"/>
+ <spinnerItem name="lulzactive" value="lulzactive"/>
+ <spinnerItem name="smartassV2" value="smartassV2"/>
+ <spinnerItem name="interactive" value="interactive"/>
+ </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"/>
+ <spinnerItem name="deadline" value="deadline"/>
+ <spinnerItem name="vr" value="vr"/>
+ <spinnerItem name="cfq" value="cfq"/>
+ </spinner>
+ <spinner description="Charge current setting" name="Charge Current" action="chargecurrent">
+ <spinnerItem name="AC:650mA, Misc,USB:450mA (Stock)" value="1"/>
+ <spinnerItem name="AC,Misc:650mA, USB:450mA" value="2"/>
+ <spinnerItem name="All:650mA (risky for USB ports)" value="3"/>
+ </spinner>
+ <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">
+ <button description="Removes su and Superuser.apk files from the system partition" name="Remove Root" action="remove-root" label="Remove Root"/>
+ <button description="Tries to reinstall root. If this fails, please check auto-install root checkbox and reboot." name="Install Root" action="install-root" label="Install Root"/>
+ <checkbox description="If checked, installs root on the next reboot." name="Auto-Install Root" action="generic /tmp/install_root" label="Auto-Install Root"/>
+ </settingsPane>
+ </settingsTab>
+
+</settingsRoot>
35 res/customconfig/default.profile
@@ -0,0 +1,35 @@
+GPUFREQ1=160
+GPUFREQ2=267
+GPUFREQ3=267
+GPUVOLT1=950
+GPUVOLT2=1000
+GPUVOLT3=1000
+GPUTHRESHOLD1UP=85
+GPUTHRESHOLD2DOWN=50
+GPUTHRESHOLD2UP=85
+GPUTHRESHOLD3DOWN=40
+GPUSTAYCOUNT1=1
+GPUSTAYCOUNT2=1
+GPUSTAYCOUNT3=1
+min_bl=40
+min_gamma=0
+max_gamma=20
+enable_mask=3
+sched_mc_power_savings=0
+smooth_target=2
+smooth_offset=2
+smooth_step=2
+chargecurrent=1
+logger=on
+secondcore=hotplug
+scheduler=cfq
+scaling_governor=ondemand
+load_l1=20
+load_h0=30
+load_rq=20
+min_rq=2
+rate=100
+freq_min=500000
+install_root=on
+mov_hysti=3
+suspend_freq=500000
13 res/etc/recovery.fstab
@@ -0,0 +1,13 @@
+/boot emmc /dev/block/mmcblk0p5
+#recovery not used
+
+/efs ext4 /dev/block/mmcblk0p1
+/cache ext4 /dev/block/mmcblk0p7
+/system ext4 /dev/block/mmcblk0p9
+/data ext4 /dev/block/mmcblk0p10
+
+#external
+/sdcard vfat /dev/block/mmcblk1p1
+
+#internal
+/emmc vfat /dev/block/mmcblk0p11
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.
BIN  res/images/icon_error.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  res/images/icon_firmware_error.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  res/images/icon_firmware_install.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  res/images/icon_installing.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.