Browse files

v1.0

  • Loading branch information...
0 parents commit 8902626f0da8ade990347eb2a4a26e2ab8169b06 @gokhanmoral committed Jun 14, 2012
Showing with 3,144 additions and 0 deletions.
  1. 0 data/EMPTY_DIRECTORY
  2. +7 −0 default.prop
  3. 0 dev/EMPTY_DIRECTORY
  4. BIN init
  5. +155 −0 init.bt.rc
  6. +78 −0 init.goldfish.rc
  7. +1,115 −0 init.rc
  8. +86 −0 init.smdk4x12.rc
  9. +97 −0 init.smdk4x12.usb.rc
  10. BIN lib/modules/Si4709_driver.ko
  11. BIN lib/modules/btlock.ko
  12. BIN lib/modules/dhd.ko
  13. BIN lib/modules/exfat_core.ko
  14. BIN lib/modules/exfat_fs.ko
  15. BIN lib/modules/scsi_wait_scan.ko
  16. +84 −0 lpm.rc
  17. 0 proc/EMPTY_DIRECTORY
  18. +25 −0 res/customconfig/actions/bln_effect
  19. +17 −0 res/customconfig/actions/chargecurrent_ac
  20. +13 −0 res/customconfig/actions/chargecurrent_usb
  21. +12 −0 res/customconfig/actions/efs-backup
  22. +22 −0 res/customconfig/actions/generic
  23. +21 −0 res/customconfig/actions/generickmem
  24. +16 −0 res/customconfig/actions/gpu-freq
  25. +19 −0 res/customconfig/actions/gpu-staycount
  26. +16 −0 res/customconfig/actions/gpu-thresh
  27. +16 −0 res/customconfig/actions/gpu-voltage
  28. +9 −0 res/customconfig/actions/install-root
  29. +22 −0 res/customconfig/actions/remove-root
  30. +10 −0 res/customconfig/actions/reset-fuelgauge
  31. +26 −0 res/customconfig/actions/schedfeat
  32. +25 −0 res/customconfig/actions/secondcore
  33. +9 −0 res/customconfig/actions/test-bln
  34. +138 −0 res/customconfig/customconfig-helper
  35. +200 −0 res/customconfig/customconfig.xml
  36. +36 −0 res/customconfig/default.profile
  37. BIN res/images/icon_clockwork.png
  38. +45 −0 res/uci.sh
  39. +1 −0 res/update.url
  40. +1 −0 sbin/[
  41. +1 −0 sbin/[[
  42. BIN sbin/adbd
  43. +1 −0 sbin/ash
  44. +1 −0 sbin/awk
  45. +1 −0 sbin/basename
  46. +1 −0 sbin/bbconfig
  47. BIN sbin/bootanimation
  48. +9 −0 sbin/bootanimation.sh
  49. +1 −0 sbin/bunzip2
  50. BIN sbin/busybox
  51. +1 −0 sbin/bzcat
  52. +1 −0 sbin/bzip2
  53. +1 −0 sbin/cal
  54. +1 −0 sbin/cat
  55. +1 −0 sbin/catv
  56. BIN sbin/cbd
  57. +1 −0 sbin/chattr
  58. +1 −0 sbin/chgrp
  59. +1 −0 sbin/chmod
  60. +1 −0 sbin/choose_rom
  61. +1 −0 sbin/chown
  62. +1 −0 sbin/chroot
  63. +1 −0 sbin/cksum
  64. +1 −0 sbin/clear
  65. +1 −0 sbin/cmp
  66. +1 −0 sbin/cp
  67. +1 −0 sbin/cpio
  68. +1 −0 sbin/cut
  69. +1 −0 sbin/date
  70. +1 −0 sbin/dc
  71. +1 −0 sbin/dd
  72. +1 −0 sbin/depmod
  73. +1 −0 sbin/devmem
  74. +1 −0 sbin/df
  75. +1 −0 sbin/diff
  76. +1 −0 sbin/dirname
  77. +1 −0 sbin/dmesg
  78. +1 −0 sbin/dos2unix
  79. +1 −0 sbin/du
  80. +1 −0 sbin/dump_image
  81. +1 −0 sbin/echo
  82. +1 −0 sbin/edify
  83. +1 −0 sbin/egrep
  84. +1 −0 sbin/env
  85. +1 −0 sbin/erase_image
  86. +1 −0 sbin/expand
  87. +1 −0 sbin/expr
  88. +1 −0 sbin/ext/busybox
  89. +15 −0 sbin/ext/busybox-wrapper
  90. +32 −0 sbin/ext/busybox.sh
  91. +15 −0 sbin/ext/efs-backup.sh
  92. +87 −0 sbin/ext/install.sh
  93. +80 −0 sbin/ext/post-init.sh
  94. +1 −0 sbin/ext/reboot
  95. +16 −0 sbin/ext/run-init-scripts.sh
  96. +17 −0 sbin/ext/su-helper.sh
  97. +155 −0 sbin/ext/thunderbolt.sh
  98. +32 −0 sbin/ext/tweaks.sh
  99. +1 −0 sbin/false
  100. +1 −0 sbin/fdisk
  101. +1 −0 sbin/fgrep
  102. +1 −0 sbin/find
  103. +1 −0 sbin/flash_image
  104. +1 −0 sbin/fold
  105. +1 −0 sbin/free
  106. +1 −0 sbin/freeramdisk
  107. +1 −0 sbin/fuser
  108. +1 −0 sbin/getopt
  109. +1 −0 sbin/grep
  110. +1 −0 sbin/groups
  111. +1 −0 sbin/gunzip
  112. +1 −0 sbin/gzip
  113. +1 −0 sbin/head
  114. +1 −0 sbin/hexdump
  115. +26 −0 sbin/hotplug
  116. +1 −0 sbin/id
  117. +1 −0 sbin/insmod
  118. +1 −0 sbin/install
  119. +1 −0 sbin/kill
  120. +1 −0 sbin/killall
  121. +1 −0 sbin/killall5
  122. BIN sbin/kmemhelper
  123. +1 −0 sbin/length
  124. +1 −0 sbin/less
  125. +1 −0 sbin/ln
  126. +1 −0 sbin/losetup
  127. +1 −0 sbin/ls
  128. +1 −0 sbin/lsattr
  129. +1 −0 sbin/lsmod
  130. +1 −0 sbin/lspci
  131. +1 −0 sbin/lsusb
  132. +1 −0 sbin/lzcat
  133. +1 −0 sbin/lzop
  134. +1 −0 sbin/lzopcat
  135. +1 −0 sbin/makedevs
  136. +1 −0 sbin/md5sum
  137. +1 −0 sbin/mkdir
  138. +1 −0 sbin/mkfifo
  139. +1 −0 sbin/mkfs.ext2
  140. +1 −0 sbin/mknod
  141. +1 −0 sbin/mkswap
  142. +1 −0 sbin/mktemp
  143. +1 −0 sbin/mkyaffs2image
  144. +1 −0 sbin/modinfo
  145. +1 −0 sbin/modprobe
  146. +1 −0 sbin/more
  147. +1 −0 sbin/mount
  148. +1 −0 sbin/mountpoint
  149. +1 −0 sbin/mv
  150. +1 −0 sbin/nanddump
  151. +1 −0 sbin/nandroid
  152. +1 −0 sbin/nandwrite
  153. +1 −0 sbin/nice
  154. +1 −0 sbin/nohup
  155. +1 −0 sbin/od
  156. +1 −0 sbin/patch
  157. +1 −0 sbin/pgrep
  158. +1 −0 sbin/pidof
  159. +1 −0 sbin/pkill
  160. +1 −0 sbin/printenv
  161. +1 −0 sbin/printf
  162. +1 −0 sbin/ps
  163. +1 −0 sbin/pstree
  164. +1 −0 sbin/pwd
  165. +1 −0 sbin/rdev
  166. BIN sbin/read_boot_headers
  167. +1 −0 sbin/readlink
  168. +1 −0 sbin/realpath
  169. +1 −0 sbin/renice
  170. +1 −0 sbin/reset
  171. +1 −0 sbin/resize
  172. +1 −0 sbin/rev
  173. +1 −0 sbin/rm
  174. +1 −0 sbin/rmdir
  175. +1 −0 sbin/rmmod
  176. +1 −0 sbin/run-parts
  177. +1 −0 sbin/sed
  178. +1 −0 sbin/seq
  179. +1 −0 sbin/setconsole
  180. +1 −0 sbin/setprop
  181. +1 −0 sbin/setserial
  182. +1 −0 sbin/setsid
  183. +1 −0 sbin/sh
  184. +1 −0 sbin/sha1sum
  185. +1 −0 sbin/sha256sum
  186. +1 −0 sbin/sha512sum
  187. +1 −0 sbin/sleep
  188. +1 −0 sbin/sort
  189. +1 −0 sbin/split
  190. +1 −0 sbin/stat
  191. +1 −0 sbin/strings
  192. +1 −0 sbin/stty
  193. +1 −0 sbin/swapoff
  194. +1 −0 sbin/swapon
  195. +1 −0 sbin/sync
  196. +1 −0 sbin/sysctl
  197. +1 −0 sbin/tac
  198. +1 −0 sbin/tail
  199. +1 −0 sbin/tar
  200. +1 −0 sbin/tee
  201. +1 −0 sbin/test
  202. +1 −0 sbin/time
  203. +1 −0 sbin/top
  204. +1 −0 sbin/touch
  205. +1 −0 sbin/tr
  206. +1 −0 sbin/true
  207. +1 −0 sbin/tty
  208. +1 −0 sbin/ttysize
  209. +1 −0 sbin/ueventd
  210. +1 −0 sbin/umount
  211. +1 −0 sbin/uname
  212. +1 −0 sbin/unexpand
  213. +1 −0 sbin/uniq
  214. +1 −0 sbin/unix2dos
  215. +1 −0 sbin/unlzma
  216. +1 −0 sbin/unlzop
  217. +1 −0 sbin/unxz
  218. +1 −0 sbin/unyaffs
  219. +1 −0 sbin/unzip
  220. +1 −0 sbin/uptime
  221. +1 −0 sbin/usleep
  222. +1 −0 sbin/uudecode
  223. +1 −0 sbin/uuencode
  224. +41 −0 sbin/vold-set-sdcard
  225. +1 −0 sbin/volume
  226. +1 −0 sbin/watch
  227. +1 −0 sbin/wc
  228. +1 −0 sbin/which
  229. +1 −0 sbin/whoami
  230. +1 −0 sbin/xargs
  231. +1 −0 sbin/xzcat
  232. +1 −0 sbin/yes
  233. +1 −0 sbin/zcat
  234. 0 sys/EMPTY_DIRECTORY
  235. 0 system/EMPTY_DIRECTORY
  236. +5 −0 ueventd.goldfish.rc
  237. +83 −0 ueventd.rc
  238. +35 −0 ueventd.smdk4x12.rc
0 data/EMPTY_DIRECTORY
No changes.
7 default.prop
@@ -0,0 +1,7 @@
+#
+# ADDITIONAL_DEFAULT_PROPERTIES
+#
+ro.secure=1
+ro.allow.mock.location=0
+ro.debuggable=0
+persist.sys.usb.config=mtp
0 dev/EMPTY_DIRECTORY
No changes.
BIN init
Binary file not shown.
155 init.bt.rc
@@ -0,0 +1,155 @@
+on boot
+
+# for bluetooth
+ insmod /lib/modules/btlock.ko
+ chmod 664 /dev/btlock
+ chown bluetooth system /dev/btlock
+
+service poke_helper /system/bin/brcm_poke_helper /dev/ttySAC0
+ class main
+ group bluetooth net_bt_admin
+
+service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm --no2bytes --tosleep 50000 \
+ --baudrate 4000000 --use_baudrate_for_download --patchram /system/bin/bcm4334.hcd \
+ --i2s=1,0,0,0 /dev/ttySAC0
+ class main
+ user bluetooth
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service hciattach_le /system/bin/brcm_patchram_plus --enable_hci --no2bytes --tosleep 50000 \
+ --baudrate 115200 --use_baudrate_for_download --patchram /system/bin/bcm4334.hcd \
+ --i2s=1,0,0,0 /dev/ttySAC0
+ class main
+ user bluetooth
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service LE_dut_cmd /system/bin/LE_dut
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+## LE Tx Ouput Power
+service LE_tx_low /system/bin/LE_dut --tx_low
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service LE_tx_mid /system/bin/LE_dut --tx_mid
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service LE_tx_max /system/bin/LE_dut --tx_max
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+## LE Tx Modulation Characteristics
+# Payload 0x0F
+service LE_tx_M_low /system/bin/LE_dut --tx_m_low
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service LE_tx_M_mid /system/bin/LE_dut --tx_m_mid
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service LE_tx_M_max /system/bin/LE_dut --tx_m_max
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+# Payload 0xAA
+service LE_tx_M_1_low /system/bin/LE_dut --tx_m_1_low
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service LE_tx_M_1_mid /system/bin/LE_dut --tx_m_1_mid
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service LE_tx_M_1_max /system/bin/LE_dut --tx_m_1_max
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+## Carrier Frequency
+service LE_tx_C_low /system/bin/LE_dut --tx_c_low
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service LE_tx_C_mid /system/bin/LE_dut --tx_c_mid
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service LE_tx_C_max /system/bin/LE_dut --tx_c_max
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+## In-band Emissions
+service LE_tx_I_low /system/bin/LE_dut --tx_i_low
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service LE_tx_I_max /system/bin/LE_dut --tx_i_max
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+## Rx Test
+service LE_rx_ready_low /system/bin/LE_dut --rx_low
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service LE_rx_ready_mid /system/bin/LE_dut --rx_mid
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service LE_rx_ready_max /system/bin/LE_dut --rx_max
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+service LE_test_end /system/bin/LE_dut --test_end
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+# for bluetooth rf test.
+service bt_dut_cmd /system/bin/bcm_dut
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
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
1,115 init.rc
@@ -0,0 +1,1115 @@
+on early-init
+ # Set init and its forked children's oom_adj.
+ write /proc/1/oom_adj -16
+
+ 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:/system/framework/sec_edm.jar:/system/framework/seccamera.jar
+#WTL_EDM
+# 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
+
+# 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
+
+#add booting sound property
+ setprop audioflinger.bootsnd 1
+
+ # 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
+
+ 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
+ write /proc/sys/kernel/randomize_va_space 2
+ # fix BUG on ./kernel/sched_rt.c
+ write /proc/sys/kernel/sched_rt_runtime_us -1
+
+# 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 exfat
+ insmod /lib/modules/exfat_core.ko
+ insmod /lib/modules/exfat_fs.ko
+
+# ko files for FM Radio
+ insmod /lib/modules/Si4709_driver.ko
+
+# WFD CES Demo
+chmod 0666 /dev/graphics/fb5
+echo 5242880 /proc/sys/net/core/wrem_max
+
+
+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 ro wait noatime
+
+ exec set_crypt_meta_info /dev/block/mmcblk0p12 data
+ exec sfsck /dev/block/mmcblk0p12 ext4 encryptable
+ mount ext4 /dev/block/mmcblk0p12 /data wait nosuid nodev noatime discard,noauto_da_alloc,journal_async_commit
+ exec sfsck /dev/block/mmcblk0p8 ext4
+ mount ext4 /dev/block/mmcblk0p8 /cache nosuid nodev noatime journal_async_commit
+ # SEC_DMCRYPT move mounting efs before apply_disk_policy, and set group id to system
+ mkdir /efs
+ exec sfsck /dev/block/mmcblk0p3 ext4
+ mount ext4 /dev/block/mmcblk0p3 /efs nosuid nodev noatime wait journal_async_commit
+ chown radio system /efs
+ chmod 0771 /efs
+
+on post-fs
+ # once everything is setup, no need to modify /
+ mount rootfs rootfs / ro remount
+
+ # 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
+
+ mkdir /cache/lost+found 0770 root root
+
+ # create data/gps for GPS demon
+ 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
+
+on post-fs-data
+ # We chown/chmod /data again so because mount is run as root + defaults
+ chown system system /data
+ chmod 0771 /data
+
+ # 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 0750 root log
+
+
+ # 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
+
+ # create basic filesystem structure
+ mkdir /data/misc 01775 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
+ # give system access to wpa_supplicant.conf for backup and restore
+ mkdir /data/misc/wifi 0770 wifi system
+ mkdir /efs/wifi 0775 radio system
+ mkdir /efs/bluetooth 0775 radio system
+ mkdir /efs/imei 0775 radio system
+ chmod 0660 /data/misc/wifi/wpa_supplicant.conf
+ mkdir /data/misc/wifi/sockets 0770 wifi wifi
+ mkdir /data/misc/dhcp 0775 dhcp dhcp
+ chown dhcp dhcp /data/misc/dhcp
+ mkdir /data/local 0751 root root
+ 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
+ mkdir /data/misc/radio 0775 radio system
+ mkdir /data/misc/radio/hatp 0775 radio system
+
+ # for TRP/TIS
+ write /data/.psm.info 1
+ chown system root /data/.psm.info
+ chmod 0660 /data/.psm.info
+
+ # create dalvik-cache, so as to enforce our permissions
+ mkdir /data/dalvik-cache 0771 system system
+
+ # create resource-cache and double-check the perms
+ mkdir /data/resource-cache 0771 system system
+ chown system system /data/resource-cache
+ chmod 0771 /data/resource-cache
+
+ # create the lost+found directories, so as to enforce our permissions
+ mkdir /data/lost+found 0770 root root
+
+ #Widevine L1 CTS
+ mkdir /data/drm 0775
+ mkdir /data/drm/IDM 0775
+ mkdir /data/drm/IDM/HTTP 0775
+ chown drm system /data/drm
+ chown drm system /data/drm/IDM
+ chown drm system /data/drm/IDM/HTTP
+ chmod 0775 /data/drm
+ chmod 0775 /data/drm/IDM
+ chmod 0775 /data/drm/IDM/HTTP
+
+ # create directory for DRM plug-ins
+ mkdir /data/drm 0774 drm drm
+
+ #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
+
+ mkdir /system/etc/security/.drm/ext1 0775
+ chown root root /system/etc/security/.drm/ext1
+ chmod 0775 /system/etc/security/.drm/ext1
+
+ # 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
+
+ # PlayReady DRM Support 1
+ mkdir /efs/drm 0775
+ chown drm system /efs/drm
+ chmod 0775 /efs/drm
+ mkdir /efs/drm/playready 0775
+ chown drm system /efs/drm/playready
+ chmod 0775 /efs/drm/playready
+
+
+ # PlayReady DRM Support 2
+ chown drm system /system/etc/security/.drm/bgroupcert.dat
+ chmod 0775 /system/etc/security/.drm/bgroupcert.dat
+ chown drm system /system/etc/security/.drm/devcerttemplate.dat
+ chmod 0775 /system/etc/security/.drm/devcerttemplate.dat
+ chown drm system /system/etc/security/.drm/priv.dat
+ chmod 0775 /system/etc/security/.drm/priv.dat
+ chown drm system /system/etc/security/.drm/zgpriv.dat
+ chmod 0775 /system/etc/security/.drm/zgpriv.dat
+# copy /system/etc/security/.drm/bgroupcert.dat /efs/drm/playready/bgroupcert.dat
+# copy /system/etc/security/.drm/devcerttemplate.dat /efs/drm/playready/devcerttemplate.dat
+# copy /system/etc/security/.drm/priv.dat /efs/drm/playready/priv.dat
+# copy /system/etc/security/.drm/zgpriv.dat /efs/drm/playready/zgpriv.dat
+# copy /system/etc/security/.drm/DxDrmConfig.txt /efs/drm/playready/DxDrmConfig.txt
+
+ # PlayReady DRM Support 5
+# mkdir /data/DxDrm 0775
+# chown drm system /data/DxDrm
+# chmod 0775 /data/DxDrm
+
+
+# systemSW.
+# create log system
+ mkdir /data/log 0775 system log
+ chown system log /data/log
+
+ chmod 0775 /data/log
+ chmod 0775 /data/anr
+
+
+ #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
+
+ 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 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
+
+# fota
+ mkdir /data/fota_test 0775 system log
+ chown system log /data/fota_test
+ chmod 0775 /data/fota_test
+
+ mkdir /cache/fota 0770 system cache
+ chown system cache /cache/fota
+ chmod 0770 /cache/fota
+on boot
+
+# mobicore
+ mkdir /data/app/mcRegistry 0775 system system
+ chmod 0777 /dev/mobicore
+# mobicore trustlets
+ copy /efs/00000000.authtokcont /data/app/mcRegistry/00000000.authtokcont
+ chown system system /data/app/mcRegistry/00000000.authtokcont
+ copy /system/app/FFFFFFFF000000000000000000000001.drbin /data/app/FFFFFFFF000000000000000000000001.drbin
+ chown system system /data/app/FFFFFFFF000000000000000000000001.drbin
+ copy /system/app/mcRegistry/00060308060501020000000000000000.tlbin /data/app/mcRegistry/00060308060501020000000000000000.tlbin
+ chown system system /data/app/mcRegistry/00060308060501020000000000000000.tlbin
+ copy /system/app/mcRegistry/07010000000000000000000000000000.tlbin /data/app/mcRegistry/07010000000000000000000000000000.tlbin
+ chown system system /data/app/mcRegistry/07010000000000000000000000000000.tlbin
+ copy /system/app/mcRegistry/ffffffff000000000000000000000003.tlbin /data/app/mcRegistry/ffffffff000000000000000000000003.tlbin
+ chown system system /data/app/mcRegistry/ffffffff000000000000000000000003.tlbin
+ copy /system/app/mcRegistry/ffffffff000000000000000000000004.tlbin /data/app/mcRegistry/ffffffff000000000000000000000004.tlbin
+ chown system system /data/app/mcRegistry/ffffffff000000000000000000000004.tlbin
+ copy /system/app/mcRegistry/ffffffff000000000000000000000005.tlbin /data/app/mcRegistry/ffffffff000000000000000000000005.tlbin
+ chown system system /data/app/mcRegistry/ffffffff000000000000000000000005.tlbin
+
+# icd
+ exec icd_check
+ chown system system /dev/icd
+ chmod 0644 /dev/icd
+ write /dev/icdr 0
+ chown system system /dev/icdr
+ chmod 0644 /dev/icdr
+ chown system system /dev/tzic
+
+# HDCP 2.x
+ mkdir /data/system/hdcp2 0775 system system
+
+# h2k permission
+ chmod 0644 /efs/redata.bin
+ chmod 0644 /efs/h2k.dat
+
+# Camera
+ mkdir /data/cfw 0775 system system
+
+# basic network init
+ ifup lo
+ hostname localhost
+ domainname localdomain
+
+# set RLIMIT_NICE to allow priorities from 19 to -20
+ setrlimit 13 40 40
+
+# Memory management. Basic kernel parameters, and allow the high
+# level system server to be able to adjust the kernel OOM driver
+# paramters to match how it is managing things.
+ write /proc/sys/vm/overcommit_memory 1
+ write /proc/sys/vm/min_free_order_shift 4
+ chown root system /sys/module/lowmemorykiller/parameters/adj
+ chmod 0664 /sys/module/lowmemorykiller/parameters/adj
+ chown root system /sys/module/lowmemorykiller/parameters/minfree
+ chmod 0664 /sys/module/lowmemorykiller/parameters/minfree
+
+ # Tweak background writeout
+ write /proc/sys/vm/dirty_expire_centisecs 200
+ write /proc/sys/vm/dirty_background_ratio 5
+
+ # 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
+ chown radio system /sys/power/cpufreq_table
+ chown radio system /sys/power/cpufreq_max_limit
+ chown radio system /sys/power/cpufreq_min_limit
+ chown radio system /sys/power/mali_lock
+ chown radio system /sys/class/power_supply/battery/siop_activated
+ chown radio system /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock
+ chown radio system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_lock
+ chown radio system /sys/devices/system/cpu/busfreq/curr_freq
+ chown radio system /sys/module/mali/parameters/mali_dvfs_control
+ chown system radio /sys/bus/platform/devices/s5p-tmu/lot_id
+ chmod 0660 /sys/power/state
+ chmod 0660 /sys/power/wake_lock
+ chmod 0660 /sys/power/wake_unlock
+ chmod 0660 /sys/power/cpufreq_table
+ chmod 0660 /sys/power/cpufreq_max_limit
+ chmod 0660 /sys/power/cpufreq_min_limit
+ chmod 0660 /sys/power/mali_lock
+ chmod 0660 /sys/class/power_supply/battery/siop_activated
+ chmod 0660 /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock
+ chmod 0660 /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_lock
+ chmod 0660 /sys/devices/system/cpu/busfreq/curr_freq
+ chmod 0660 /sys/module/mali/parameters/mali_dvfs_control
+ chmod 0664 /sys/bus/platform/devices/s5p-tmu/lot_id
+ 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/sec/sec_touchkey/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 root radio /proc/cmdline
+
+# Audio (Earjack)
+ chown system radio /sys/class/audio/earjack/select_jack
+ chown system radio /sys/class/audio/earjack/key_state
+ chown system radio /sys/class/audio/earjack/state
+ chown media system /sys/class/audio/earjack/reselect_jack
+
+# Battery node
+ chown system radio /sys/class/power_supply/battery/batt_reset_soc
+ chown system radio /sys/class/power_supply/battery/batt_read_raw_soc
+ chown system radio /sys/class/power_supply/battery/batt_read_adj_soc
+ chown system radio /sys/class/power_supply/battery/batt_type
+ chown system radio /sys/class/power_supply/battery/batt_temp_adc
+ chown system radio /sys/class/power_supply/battery/batt_temp_aver
+ chown system radio /sys/class/power_supply/battery/batt_temp_adc_aver
+ chown system radio /sys/class/power_supply/battery/batt_vfocv
+ chown system radio /sys/class/power_supply/battery/batt_lp_charging
+ chown system radio /sys/class/power_supply/battery/batt_charging_source
+ chown system radio /sys/class/power_supply/battery/test_mode
+ chown system radio /sys/class/power_supply/battery/wc_status
+ chown system radio /sys/class/power_supply/battery/wpc_pin_state
+
+# Thermistor node
+ chown radio system /sys/devices/platform/sec-thermistor/temp_adc
+ chown radio system /sys/devices/platform/sec-thermistor/temperature
+
+# Permissions for touch
+ chown system radio /sys/class/sec/tsp/cmd
+
+# Permissions for Touchkey
+ chown system radio /sys/class/sec/sec_touchkey/enable_disable
+ chown system radio /sys/class/sec/sec_touchkey/touchkey_brightness
+ chown system radio /sys/class/sec/sec_touchkey/touchkey_menu
+ chown system radio /sys/class/sec/sec_touchkey/touchkey_back
+ chown system radio /sys/class/sec/sec_touchkey/touch_update
+ chown system radio /sys/class/sec/sec_touchkey/touch_version
+ chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_version_panel
+ chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_version_phone
+ chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_update_status
+ chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_update
+ chown system radio /sys/class/sec/sec_touchkey/touch_sensitivity
+ chown system radio /sys/class/sec/sec_touchkey/touchkey_threshold
+ chown system system /sys/devices/virtual/sec/sec_touchkey/brightness
+
+# Permissions for gpio_keys
+ chown radio system /sys/class/sec/sec_key/wakeup_keys
+ write /sys/class/sec/sec_key/wakeup_keys 116,172
+
+# Permissions for Camera
+ chown system radio /sys/class/camera/rear/rear_camfw
+ chown system radio /sys/class/camera/rear/rear_camtype
+ chown system radio /sys/class/camera/rear/rear_flash
+ chown system radio /sys/class/camera/rear/isp_core
+ chown system radio /sys/class/camera/front/front_camfw
+ chown system radio /sys/class/camera/front/front_camtype
+ chown system radio /sys/class/flash/flash/flash_power
+
+# 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
+
+# <Sensors & NFC>
+# Input Events
+ chown system radio /sys/class/input/input2/enable
+ chown system radio /sys/class/input/input2/poll_delay
+ chown system radio /sys/class/input/input3/enable
+ chown system radio /sys/class/input/input3/poll_delay
+ chown system radio /sys/class/input/input4/enable
+ chown system radio /sys/class/input/input4/poll_delay
+ chown system radio /sys/class/input/input5/enable
+ chown system radio /sys/class/input/input5/poll_delay
+ chown system radio /sys/class/input/input6/enable
+ chown system radio /sys/class/input/input6/poll_delay
+ chown system radio /sys/class/input/input7/enable
+ chown system radio /sys/class/input/input7/poll_delay
+ chown system radio /sys/class/input/input8/enable
+ chown system radio /sys/class/input/input8/poll_delay
+ chown system radio /sys/class/input/input9/enable
+ chown system radio /sys/class/input/input9/poll_delay
+# Accelerometer_sensor
+ chown system radio /dev/accelerometer
+ chown system radio /sys/class/sensors/accelerometer_sensor
+ chown system radio /sys/class/sensors/accelerometer_sensor/raw_data
+ chown system radio /sys/class/sensors/accelerometer_sensor/calibration
+ chown system radio /sys/class/sensors/accelerometer_sensor/reactive_alert
+ chown system radio /sys/class/sensors/accelerometer_sensor/vendor
+ chown system radio /sys/class/sensors/accelerometer_sensor/name
+# Proximity_sensor
+ chown system radio /sys/class/sensors/proximity_sensor/state
+ chown system radio /sys/class/sensors/proximity_sensor/prox_avg
+ chown system radio /sys/class/sensors/proximity_sensor/prox_cal
+ chown system radio /sys/class/sensors/proximity_sensor/vendor
+ chown system radio /sys/class/sensors/proximity_sensor/name
+ chown system radio /sys/class/sensors/proximity_sensor/prox_thresh
+# Light_sensor
+ chown system radio /sys/class/input/input7/enable
+ chown system radio /sys/class/input/input7/poll_delay
+ chown system radio /sys/class/sensors/light_sensor/lux
+ chown system radio /sys/class/sensors/light_sensor/raw_data
+ chown system radio /sys/class/sensors/light_sensor/vendor
+ chown system radio /sys/class/sensors/light_sensor/name
+# Gyro_sensor
+ chown system radio /dev/lsm330dlc_gyro_misc
+ chown system radio /sys/class/sensors/gyro_sensor/power_on
+ chown system radio /sys/class/sensors/gyro_sensor/power_off
+ chown system radio /sys/class/sensors/gyro_sensor/temperature
+ chown system radio /sys/class/sensors/gyro_sensor/selftest
+ chown system radio /sys/class/sensors/gyro_sensor/selftest_dps
+ chown system radio /sys/class/sensors/gyro_sensor/vendor
+ chown system radio /sys/class/sensors/gyro_sensor/name
+# Barometer_sensor
+ chown system radio /sys/class/input/input5/pressure_reference_level
+ chown system radio /sys/class/input/input5/temperature_reference_level
+ chown system radio /sys/class/input/input5/enable_autozero
+ chown system radio /sys/class/input/input5/compensation_param
+ chown system radio /sys/class/input/input5/reg_value
+ chown system radio /sys/class/input/input5/reg_addr
+ chown system radio /sys/class/sensors/barometer_sensor/sea_level_pressure
+ chown system radio /sys/class/sensors/barometer_sensor/vendor
+ chown system radio /sys/class/sensors/barometer_sensor/name
+ chown system radio /sys/class/sensors/barometer_sensor/calibration
+# Magnetic_sensor
+ chown system radio /dev/akm8975
+ chown system radio /sys/class/sensors/magnetic_sensor/raw_data
+ chown system radio /sys/class/sensors/magnetic_sensor/vendor
+ chown system radio /sys/class/sensors/magnetic_sensor/name
+# NFC
+ setprop ro.nfc.port "I2C"
+ chmod 0600 /dev/pn544
+ chown nfc nfc /dev/pn544
+
+# WIFI
+ setprop wifi.interface wlan0
+
+# 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 radio /sys/class/lcd/panel/device/hs_toggle
+ chown system media_rw /sys/class/lcd/panel/power_reduce
+ chown system system /sys/class/backlight/panel/auto_brightness
+ chown system system /sys/class/graphics/fb0/lcdfreq/level
+
+# 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
+
+# Switch Device
+ chown system system /sys/class/sec/switch/uart_sel
+ chown system system /sys/class/sec/switch/usb_sel
+ chown system system /sys/class/sec/switch/otg_test
+ chown system radio /sys/class/sec/switch/adc
+
+# SVC LED
+ chown system system /sys/class/sec/led/led_r
+ chown system system /sys/class/sec/led/led_g
+ chown system system /sys/class/sec/led/led_b
+
+ chown system system /sys/class/leds/led_r/brightness
+ chown system system /sys/class/leds/led_g/brightness
+ chown system system /sys/class/leds/led_b/brightness
+ chown system system /sys/class/leds/led_r/delay_on
+ chown system system /sys/class/leds/led_g/delay_on
+ chown system system /sys/class/leds/led_b/delay_on
+ chown system system /sys/class/leds/led_r/delay_off
+ chown system system /sys/class/leds/led_g/delay_off
+ chown system system /sys/class/leds/led_b/delay_off
+ chown system system /sys/class/leds/led_r/blink
+ chown system system /sys/class/leds/led_g/blink
+ chown system system /sys/class/leds/led_b/blink
+
+ chown system system /sys/class/sec/led/led_pattern
+ chown system system /sys/class/sec/led/led_blink
+ chown system system /sys/class/sec/led/led_br_lev
+
+# OTG_TEST
+ chown system radio /sys/class/host_notify/usb_otg/booster
+ chmod 0660 /sys/class/host_notify/usb_otg/booster
+
+# 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
+
+# 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 524288,1048576,2097152,262144,524288,1048576
+ setprop net.tcp.buffersize.lte 524288,1048576,2560000,262144,524288,1048576
+ setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208
+ setprop net.tcp.buffersize.hspa 4094,87380,704512,4096,16384,262144
+ setprop net.tcp.buffersize.hsdpa 4094,87380,704512,4096,16384,110208
+ setprop net.tcp.buffersize.hsupa 4094,87380,704512,4096,16384,262144
+ setprop net.tcp.buffersize.hspap 4094,87380,704512,4096,16384,262144
+ setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
+ setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
+
+# wifi display
+ write /proc/sys/net/core/wmem_max 262144
+
+# klaatu tdmb ownership
+ chown system system /dev/tdmb
+ chmod 0660 /dev/tdmb
+
+# permission for HDMI audio path
+ chown media audio /sys/class/hdmi_audio/hdmi_audio/hdmi_audio_set_ext
+
+# 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 charger
+ class_start charger
+
+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
+ setprop vold.post_fs_data_done 1
+
+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
+
+# 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
+
+# Used to set USB configuration at boot and to switch the configuration
+# when changing the default configuration
+on property:persist.sys.usb.config=*
+ setprop sys.usb.config $persist.sys.usb.config
+
+# SISO-ANDR_PERF :: START Changing secheduler to cfq after boot complete
+on property:dev.sfbootcomplete=1
+ write /sys/block/mmcblk0/queue/scheduler cfq
+ write /sys/power/cpufreq_min_limit -1
+#SISO-ANDR_PERF :: END
+
+## 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
+
+service console_user /system/bin/sh
+ class core
+ console
+ disabled
+ user shell
+ group shell log
+
+on property:ro.debuggable=1
+ start console
+
+on property:ro.debuggable=0
+ start console_user
+
+# 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
+
+on property:persist.sys.storage_preload=1
+ mount ext4 /dev/block/mmcblk0p10 /preload nosuid nodev noatime wait ro
+ setprop storage.preload.complete 1
+
+on property:persist.sys.storage_preload=0
+ exec /system/bin/umount /preload
+
+service servicemanager /system/bin/servicemanager
+ class core
+ user system
+ group system
+ critical
+ onrestart restart zygote
+ onrestart restart media
+ onrestart restart surfaceflinger
+ onrestart restart drm
+
+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
+
+# icd
+service icd /system/bin/icd
+ class main
+ user system
+ group system log
+ onrestart exec icd_check
+
+service cpboot-daemon /sbin/cbd -d
+ class main
+ user root
+ group radio cache inet misc audio sdcard_rw log
+
+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
+ onrestart restart cpboot-daemon
+
+#service DR-daemon /system/bin/drexe
+# class main
+# user root
+# group system radio inet net_raw
+
+service DR-daemon /system/bin/ddexe
+ class main
+ user root
+ group system radio inet net_raw
+
+service KIES-daemon /system/bin/kiesexe
+ class main
+ user root
+ group system radio inet net_raw
+
+service SMD-daemon /system/bin/smdexe
+ class main
+ user root
+ group system radio inet net_raw
+
+service DTT-daemon /system/bin/dttexe
+ class main
+ user root
+ group system radio inet net_raw
+
+service DAIG-daemon /system/bin/diagexe
+ 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 660 root system
+ 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 drmrpc sdcard_rw media_rw radio
+
+service media /system/bin/mediaserver
+ class main
+ user media
+ group system audio camera inet net_bt net_bt_admin net_bw_acct drmrpc sdcard_rw
+ ioprio rt 4
+
+service powersnd /system/bin/samsungpowersoundplay
+ class main
+ user media
+ group system
+ disabled
+ oneshot
+
+service bootanim /system/bin/bootanimation
+ class main
+ user graphics
+ group graphics
+ disabled
+ oneshot
+
+service samsungani /system/bin/samsungani
+ class main
+ user graphics
+ group graphics system
+ disabled
+ oneshot
+
+service dbus /system/bin/dbus-daemon --system --nofork
+ class main
+ socket dbus stream 660 bluetooth bluetooth
+ user bluetooth
+ group bluetooth net_bt_admin
+
+service wpa_supplicant /system/bin/wpa_supplicant \
+ -Dnl80211 -iwlan0 -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 660 wifi wifi
+ disabled
+ oneshot
+
+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
+
+#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
+
+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 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
+ # IKE uses UDP port 500. Racoon will setuid to vpn after binding the port.
+ group vpn net_admin inet
+ disabled
+ oneshot
+
+service mtpd /system/bin/mtpd
+ class main
+ socket mtpd stream 600 system system
+ user vpn
+ group vpn net_admin inet net_raw
+ disabled
+ oneshot
+
+service dmb /system/bin/dmbserver
+ class main
+ user system
+ group radio inet misc audio camera graphics net_bt net_bt_admin sdcard_rw
+
+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
+
+service gpsd /system/bin/gpsd -c /system/etc/gps.xml
+ class main
+ socket gps seqpacket 0660 gps system
+ user gps
+ group system inet sdcard_rw
+
+# 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
+
+on property:ro.tvout.enable=false
+ stop TvoutService_C
+
+#Health
+service health /system/bin/healthd
+ class main
+# user health
+# group system bluetooth health
+
+# mobicore
+service mcDriverDaemon /system/bin/mcDriverDaemon -r /data/app/FFFFFFFF000000000000000000000001.drbin
+ class main
+ user system
+ group system
+
+# 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
+
+# service for Playready provisioning app
+service scranton_RD /system/bin/scranton_RD
+ class main
+ user root
+ disabled
+ oneshot
+
+# start for Playready provisioning app
+on property:sys.mobicoredaemon.enable=true
+ start scranton_RD
+
+service postinit /sbin/ext/post-init.sh
+ class core
+ user root
+ oneshot
86 init.smdk4x12.rc
@@ -0,0 +1,86 @@
+import init.smdk4x12.usb.rc
+import init.bt.rc
+
+on early-init
+ export EXTERNAL_STORAGE /mnt/sdcard
+ mkdir /mnt/sdcard 0000 system system
+ # for backwards compatibility
+ symlink /mnt/sdcard /sdcard
+ symlink /efs /factory
+
+ export SECONDARY_STORAGE /mnt/extSdCard:/mnt/UsbDriveA:/mnt/UsbDriveB:/mnt/UsbDriveC:/mnt/UsbDriveD:/mnt/UsbDriveE:/mnt/UsbDriveF
+ mkdir /mnt/extSdCard 0000 system system
+ mkdir /mnt/UsbDriveA 0000 system system
+ mkdir /mnt/UsbDriveB 0000 system system
+ mkdir /mnt/UsbDriveC 0000 system system
+ mkdir /mnt/UsbDriveD 0000 system system
+ mkdir /mnt/UsbDriveE 0000 system system
+ mkdir /mnt/UsbDriveF 0000 system system
+
+
+on post-fs-data
+ # we will remap this as /mnt/sdcard with the sdcard fuse tool
+ mkdir /data/media 0775 media_rw media_rw
+ chown media_rw media_rw /data/media
+
+ # Set indication (checked by vold) that we have finished this action
+ setprop vold.post_fs_data_done 1
+
+on boot
+ mount debugfs /sys/kernel/debug /sys/kernel/debug
+
+ setprop ro.build.product smdk4x12
+ setprop ro.product.device smdk4x12
+ setprop ro.radio.noril yes
+
+# 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
+
+ # Set permission for Widevine DRM temporarily
+ chmod 0777 /dev/s5p-smem
+ rm /data/app/tlcd_sock
+
+ # make param block device link for SysScope
+ symlink /dev/block/mmcblk0p4 /dev/block/param
+
+# serial keyboard port
+ chown root system /dev/ttySAC2
+ chmod 0660 /dev/ttySAC2
+
+# touchscreen
+ chown radio system /sys/class/sec/tsp/cmd
+ chown media_rw media_rw /sys/class/sec/tsp/set_jitter
+
+# epen
+ chown radio system /sys/class/sec/sec_epen/epen_firm_update
+ chown radio system /sys/class/sec/sec_epen/epen_checksum
+ chown radio system /sys/class/sec/sec_epen/epen_checksum_result
+ chown radio system /sys/class/sec/sec_epen/epen_reset
+
+# wakeup keys
+ chown radio system /sys/class/sec/sec_key/wakeup_keys
+ write /sys/class/sec/sec_key/wakeup_keys 116,172
+
+# serial keyboard daemon
+service sec_keyboard /system/bin/sec_keyboard /dev/ttySAC2
+ class late_start
+ disabled
+ group system
+
+on property:ro.uart_debug=0
+ start sec_keyboard
+
+# create virtual SD card at /mnt/sdcard, based on the /data/media directory
+# daemon will drop to user/group system/media_rw after initializing
+# underlying files in /data/media wil be created with user and group media_rw (1023)
+service sdcard /system/bin/sdcard /data/media 1023 1023
+ class late_start
+
+service notified_event /system/bin/notified_event
+ class main
+ user system
+ group system
+ socket notified_event stream 0660 root system
97 init.smdk4x12.usb.rc
@@ -0,0 +1,97 @@
+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.product.manufacturer
+ write /sys/class/android_usb/android0/iProduct $ro.product.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=rndis,acm,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 lib/modules/Si4709_driver.ko
Binary file not shown.
BIN lib/modules/btlock.ko
Binary file not shown.
BIN lib/modules/dhd.ko
Binary file not shown.
BIN lib/modules/exfat_core.ko
Binary file not shown.
BIN lib/modules/exfat_fs.ko
Binary file not shown.
BIN lib/modules/scsi_wait_scan.ko
Binary file not shown.
84 lpm.rc
@@ -0,0 +1,84 @@
+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
+ #mount /tmp /tmp tmpfs
+
+on early-fs
+ insmod /lib/modules/vibrator.ko
+
+ mount ext4 /dev/block/mmcblk0p9 /system ro wait noatime
+ exec sfsck /dev/block/mmcblk0p12 ext4
+ mount ext4 /dev/block/mmcblk0p12 /data wait nosuid nodev noatime discard,noauto_da_alloc,journal_async_commit
+
+ mkdir /data/log 0777
+
+ chmod 0666 /dev/log/radio
+ chmod 0666 /dev/log/main
+ chmod 0666 /dev/log/event
+
+on boot
+# write /sys/class/sec/switch/usb_sel PDA
+
+# CPU Frequency Governor
+ write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor pegasusq
+
+# EHCI runtime enable for LPA
+ write /sys/devices/platform/s5p-ehci/power/control auto
+
+ 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
+
0 proc/EMPTY_DIRECTORY
No changes.
25 res/customconfig/actions/bln_effect
@@ -0,0 +1,25 @@
+#!/sbin/busybox sh
+
+if [ "a$2" != "a" ];then
+ bln_effect=$2
+
+ case "${bln_effect}" in
+ 0)
+ echo 0 > /sys/class/misc/notification/breathing
+ ;;
+ 1)
+ echo 1 > /sys/class/misc/notification/breathing
+ echo reset > /sys/class/misc/notification/breathing_steps
+ echo 2600 3300 70 50 > /sys/class/misc/notification/breathing_steps
+ echo 3300 2600 70 50 > /sys/class/misc/notification/breathing_steps
+ ;;
+ 2)
+ echo 1 > /sys/class/misc/notification/breathing
+ echo reset > /sys/class/misc/notification/breathing_steps
+ echo 2500 2500 1000 100 > /sys/class/misc/notification/breathing_steps
+ echo 3300 3300 1000 100 > /sys/class/misc/notification/breathing_steps
+ ;;
+ esac;
+fi
+
+echo ${bln_effect}
17 res/customconfig/actions/chargecurrent_ac
@@ -0,0 +1,17 @@
+#!/sbin/busybox sh
+
+if [ "a$2" == "a" ];then
+ echo $chargecurrent_ac
+else
+ chargecurrent_ac=$2
+ //in_curr_limit
+ kmemhelper -n samsung_battery_pdata -t int -o 24 $chargecurrent_ac > /dev/null 2>&1
+ //ac
+ kmemhelper -n samsung_battery_pdata -t int -o 28 $chargecurrent_ac > /dev/null 2>&1
+ //cdp
+ kmemhelper -n samsung_battery_pdata -t int -o 36 $chargecurrent_ac > /dev/null 2>&1
+ //dock
+ kmemhelper -n samsung_battery_pdata -t int -o 44 $chargecurrent_ac > /dev/null 2>&1
+ echo $chargecurrent_ac
+fi
+
13 res/customconfig/actions/chargecurrent_usb
@@ -0,0 +1,13 @@
+#!/sbin/busybox sh
+
+if [ "a$2" == "a" ];then
+ echo $chargecurrent_usb
+else
+ chargecurrent_usb=$2
+ //usb
+ kmemhelper -n samsung_battery_pdata -t int -o 32 $chargecurrent_usb > /dev/null 2>&1
+ //etc
+ kmemhelper -n samsung_battery_pdata -t int -o 48 $chargecurrent_usb > /dev/null 2>&1
+ echo $chargecurrent_usb
+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
+
+
21 res/customconfig/actions/generickmem
@@ -0,0 +1,21 @@
+#!/sbin/busybox sh
+# 1 - "generickmem"
+# 2 - symbol name
+# 3 - offset
+# 4 - type
+# 5 - value
+
+configname=$2$3
+
+if [ "a$5" == "a" ];then
+ evalcmd='eval "echo \$$configname"'
+ eval $evalcmd
+else
+ evalcmd='eval "$configname=$5"'
+ eval $evalcmd
+ evalcmd='eval "echo \$$configname"'
+ eval $evalcmd
+ kmemhelper -n $2 -o $3 -t $4 $5 > /dev/null 2>&1
+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 $GPUFREQ4" > /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 $GPUSTAYCOUNT4" > /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}% ${GPUTHRESHOLD3UP}% ${GPUTHRESHOLD4DOWN}%" > /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 ${GPUVOLT4}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
+
26 res/customconfig/actions/schedfeat
@@ -0,0 +1,26 @@
+#!/sbin/busybox sh
+
+if [ "a$2" == "a" ];then
+exit
+fi
+
+if [ "a$3" == "a" ];then
+ evalcmd='eval "echo \$$2"'
+ eval $evalcmd
+else
+ if [ "$3" == "on" ]; then
+ evalcmd='eval "$2=on"'
+ eval $evalcmd
+ echo on
+ _feat=$2
+ else
+ evalcmd='eval "$2=off"'
+ eval $evalcmd
+ echo off
+ _feat=NO_$2
+ fi
+ if [ -f /sys/kernel/debug/sched_features ];then
+ echo $_feat > /sys/kernel/debug/sched_features
+ fi
+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
9 res/customconfig/actions/test-bln
@@ -0,0 +1,9 @@
+#!/sbin/busybox sh
+(
+SLEEPING=`cat /sys/power/wait_for_fb_sleep`
+if [ "$SLEEPING" = "sleeping" ]; then
+sleep 1
+echo 1 > /sys/class/misc/notification/led
+fi
+)&
+echo Turn off the screen to test BLN.
138 res/customconfig/customconfig-helper
@@ -0,0 +1,138 @@
+#!/sbin/busybox sh
+# custom script helper by Gokhan Moral
+
+DEFAULT_PROFILE=/res/customconfig/default.profile
+BATTERY_PROFILE=/res/customconfig/battery.profile
+PERFORMANCE_PROFILE=/res/customconfig/performance.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}.profile ];then
+ cp $DEFAULT_PROFILE ${PROFILE_PATH}/${1}.profile
+ [ "$_ACTIVE_PROFILE" == "battery" ] && cp $BATTERY_PROFILE ${PROFILE_PATH}/${1}.profile
+ [ "$_ACTIVE_PROFILE" == "performance" ] && cp $PERFORMANCE_PROFILE ${PROFILE_PATH}/${1}.profile
+ fi
+ if [ ! -f ${PROFILE_PATH}/${1}.profile ];then
+ cp ${PROFILE_PATH}/${_ACTIVE_PROFILE}.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"
+ _ACTIVE_PROFILE=`cat $ACTIVE_PROFILE`
+ [ "$_ACTIVE_PROFILE" == "battery" ] && read_config "$BATTERY_PROFILE"
+ [ "$_ACTIVE_PROFILE" == "performance" ] && read_config "$PERFORMANCE_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
+if [ ! -f $PROFILE_PATH/battery.profile ];then
+ cp $BATTERY_PROFILE $PROFILE_PATH/battery.profile
+fi
+if [ ! -f $PROFILE_PATH/performance.profile ];then
+ cp $PERFORMANCE_PROFILE $PROFILE_PATH/performance.profile
+fi
200 res/customconfig/customconfig.xml
@@ -0,0 +1,200 @@
+<settingsRoot>
+ <settingsTab name="CPU">
+ <settingsPane description="These settings control CFS (Complete Fair Scheduler) Task Scheduler Settings" name="CFS Settings">
+ <checkbox description="Disabling GENTLE_FAIR_SLEEPERS may give you better UI responsiveness." name="GENTLE_FAIR_SLEEPERS" action="schedfeat GENTLE_FAIR_SLEEPERS" label="GENTLE_FAIR_SLEEPERS"/>
+ <checkbox description="Using ARCH_POWER enables the use of arm topology power functions instead of generic ones." name="ARCH_POWER" action="schedfeat ARCH_POWER" label="ARCH_POWER"/>
+ </settingsPane>
+ <settingsPane description="The following settings control CPU hotplug parameters. You can choose the number of cores and hotplug to be on or off. If you choose hotplug to be off then the number of cores you select will be enabled all the time. If you choose hotplug to be on the number of cores online will be determined based on the load and runqueue. These settings are only effective for governors which use stand-hotplug module. For other governors (such as pegasusq) you can use governor settings."
+ name="CPU Hotplug Settings">
+ <checkbox description="Enable or Disable Hotplugging" name="hotplug_on" action="generic /sys/class/misc/second_core/hotplug_on" label="Hotplug"/>
+ <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="generic /sys/class/misc/second_core/second_core_on">
+ <spinnerItem name="Quad core mode (default)" value="4"/>
+ <spinnerItem name="Triple core mode" value="3"/>
+ <spinnerItem name="Dual core mode" value="2"/>
+ <spinnerItem name="Single core mode" value="1"/>
+ </spinner>
+ </settingsPane>
+
+ <settingsPane description=""
+ name="CPU Idle and Power Settings">
+ <spinner description="Sets the CPU Idle Mode. Idle+LPA is the default and recommended for S3." name="CPU Idle Mode" action="generic /sys/module/cpuidle_exynos4/parameters/enable_mask">
+ <spinnerItem name="Idle + LPA (default)" value="2"/>
+ <spinnerItem name="AFTR + LPA" value="3"/>
+ <spinnerItem name="AFTR only" value="1"/>
+ <spinnerItem name="Idle only" value="0"/>
+ </spinner>
+ <spinner description="Sets the smooth scaling level which prevents ondemand based governors to jump directly to maximum frequency with load spikes. This setting will only change the behavior of ondemand and pegasusq governors." name="Smooth Scaling Level" action="generickmem smooth_level 0 int">
+ <spinnerItem name="1800MHz" value="0"/>
+ <spinnerItem name="1600MHz" value="2"/>
+ <spinnerItem name="1400MHz" value="4"/>
+ <spinnerItem name="1200MHz" value="6"/>
+ <spinnerItem name="1000MHz" value="8"/>
+ <spinnerItem name="800MHz" value="10"/>
+ <spinnerItem name="500MHz" value="13"/>
+ </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)"