Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

v1.0

  • Loading branch information...
commit 8902626f0da8ade990347eb2a4a26e2ab8169b06 0 parents
Gokhan Moral authored

Showing 238 changed files with 3,144 additions and 0 deletions. Show diff stats Hide diff stats

  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 @@
  1 +#
  2 +# ADDITIONAL_DEFAULT_PROPERTIES
  3 +#
  4 +ro.secure=1
  5 +ro.allow.mock.location=0
  6 +ro.debuggable=0
  7 +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 @@
  1 +on boot
  2 +
  3 +# for bluetooth
  4 + insmod /lib/modules/btlock.ko
  5 + chmod 664 /dev/btlock
  6 + chown bluetooth system /dev/btlock
  7 +
  8 +service poke_helper /system/bin/brcm_poke_helper /dev/ttySAC0
  9 + class main
  10 + group bluetooth net_bt_admin
  11 +
  12 +service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm --no2bytes --tosleep 50000 \
  13 + --baudrate 4000000 --use_baudrate_for_download --patchram /system/bin/bcm4334.hcd \
  14 + --i2s=1,0,0,0 /dev/ttySAC0
  15 + class main
  16 + user bluetooth
  17 + group bluetooth net_bt_admin
  18 + disabled
  19 + oneshot
  20 +
  21 +service hciattach_le /system/bin/brcm_patchram_plus --enable_hci --no2bytes --tosleep 50000 \
  22 + --baudrate 115200 --use_baudrate_for_download --patchram /system/bin/bcm4334.hcd \
  23 + --i2s=1,0,0,0 /dev/ttySAC0
  24 + class main
  25 + user bluetooth
  26 + group bluetooth net_bt_admin
  27 + disabled
  28 + oneshot
  29 +
  30 +service LE_dut_cmd /system/bin/LE_dut
  31 + group bluetooth net_bt_admin
  32 + disabled
  33 + oneshot
  34 +
  35 +## LE Tx Ouput Power
  36 +service LE_tx_low /system/bin/LE_dut --tx_low
  37 + class main
  38 + group bluetooth net_bt_admin
  39 + disabled
  40 + oneshot
  41 +
  42 +service LE_tx_mid /system/bin/LE_dut --tx_mid
  43 + class main
  44 + group bluetooth net_bt_admin
  45 + disabled
  46 + oneshot
  47 +
  48 +service LE_tx_max /system/bin/LE_dut --tx_max
  49 + class main
  50 + group bluetooth net_bt_admin
  51 + disabled
  52 + oneshot
  53 +
  54 +## LE Tx Modulation Characteristics
  55 +# Payload 0x0F
  56 +service LE_tx_M_low /system/bin/LE_dut --tx_m_low
  57 + class main
  58 + group bluetooth net_bt_admin
  59 + disabled
  60 + oneshot
  61 +
  62 +service LE_tx_M_mid /system/bin/LE_dut --tx_m_mid
  63 + class main
  64 + group bluetooth net_bt_admin
  65 + disabled
  66 + oneshot
  67 +
  68 +service LE_tx_M_max /system/bin/LE_dut --tx_m_max
  69 + class main
  70 + group bluetooth net_bt_admin
  71 + disabled
  72 + oneshot
  73 +
  74 +# Payload 0xAA
  75 +service LE_tx_M_1_low /system/bin/LE_dut --tx_m_1_low
  76 + class main
  77 + group bluetooth net_bt_admin
  78 + disabled
  79 + oneshot
  80 +
  81 +service LE_tx_M_1_mid /system/bin/LE_dut --tx_m_1_mid
  82 + class main
  83 + group bluetooth net_bt_admin
  84 + disabled
  85 + oneshot
  86 +
  87 +service LE_tx_M_1_max /system/bin/LE_dut --tx_m_1_max
  88 + class main
  89 + group bluetooth net_bt_admin
  90 + disabled
  91 + oneshot
  92 +
  93 +## Carrier Frequency
  94 +service LE_tx_C_low /system/bin/LE_dut --tx_c_low
  95 + class main
  96 + group bluetooth net_bt_admin
  97 + disabled
  98 + oneshot
  99 +
  100 +service LE_tx_C_mid /system/bin/LE_dut --tx_c_mid
  101 + class main
  102 + group bluetooth net_bt_admin
  103 + disabled
  104 + oneshot
  105 +
  106 +service LE_tx_C_max /system/bin/LE_dut --tx_c_max
  107 + class main
  108 + group bluetooth net_bt_admin
  109 + disabled
  110 + oneshot
  111 +
  112 +## In-band Emissions
  113 +service LE_tx_I_low /system/bin/LE_dut --tx_i_low
  114 + class main
  115 + group bluetooth net_bt_admin
  116 + disabled
  117 + oneshot
  118 +
  119 +service LE_tx_I_max /system/bin/LE_dut --tx_i_max
  120 + class main
  121 + group bluetooth net_bt_admin
  122 + disabled
  123 + oneshot
  124 +
  125 +## Rx Test
  126 +service LE_rx_ready_low /system/bin/LE_dut --rx_low
  127 + class main
  128 + group bluetooth net_bt_admin
  129 + disabled
  130 + oneshot
  131 +
  132 +service LE_rx_ready_mid /system/bin/LE_dut --rx_mid
  133 + class main
  134 + group bluetooth net_bt_admin
  135 + disabled
  136 + oneshot
  137 +
  138 +service LE_rx_ready_max /system/bin/LE_dut --rx_max
  139 + class main
  140 + group bluetooth net_bt_admin
  141 + disabled
  142 + oneshot
  143 +
  144 +service LE_test_end /system/bin/LE_dut --test_end
  145 + class main
  146 + group bluetooth net_bt_admin
  147 + disabled
  148 + oneshot
  149 +
  150 +# for bluetooth rf test.
  151 +service bt_dut_cmd /system/bin/bcm_dut
  152 + class main
  153 + group bluetooth net_bt_admin
  154 + disabled
  155 + oneshot
78 init.goldfish.rc
... ... @@ -0,0 +1,78 @@
  1 +on early-init
  2 + export EXTERNAL_STORAGE /mnt/sdcard
  3 + mkdir /mnt/sdcard 0000 system system
  4 + # for backwards compatibility
  5 + symlink /mnt/sdcard /sdcard
  6 +
  7 +on boot
  8 + setprop ARGH ARGH
  9 + setprop net.eth0.gw 10.0.2.2
  10 + setprop net.eth0.dns1 10.0.2.3
  11 + setprop net.gprs.local-ip 10.0.2.15
  12 + setprop ro.radio.use-ppp no
  13 + setprop ro.build.product generic
  14 + setprop ro.product.device generic
  15 +
  16 +# fake some battery state
  17 + setprop status.battery.state Slow
  18 + setprop status.battery.level 5
  19 + setprop status.battery.level_raw 50
  20 + setprop status.battery.level_scale 9
  21 +
  22 +# disable some daemons the emulator doesn't want
  23 + stop dund
  24 + stop akmd
  25 +
  26 +# start essential services
  27 + start qemud
  28 + start goldfish-logcat
  29 + start goldfish-setup
  30 +
  31 + setprop ro.setupwizard.mode EMULATOR
  32 +
  33 +# enable Google-specific location features,
  34 +# like NetworkLocationProvider and LocationCollector
  35 + setprop ro.com.google.locationfeatures 1
  36 +
  37 +# For the emulator, which bypasses Setup Wizard, you can specify
  38 +# account info for the device via these two properties. Google
  39 +# Login Service will insert these accounts into the database when
  40 +# it is created (ie, after a data wipe).
  41 +#
  42 +# setprop ro.config.hosted_account username@hosteddomain.org:password
  43 +# setprop ro.config.google_account username@gmail.com:password
  44 +#
  45 +# You MUST have a Google account on the device, and you MAY
  46 +# additionally have a hosted account. No other configuration is
  47 +# supported, and arbitrary breakage may result if you specify
  48 +# something else.
  49 +
  50 +service goldfish-setup /system/etc/init.goldfish.sh
  51 + user root
  52 + group root
  53 + oneshot
  54 +
  55 +# The qemu-props program is used to set various system
  56 +# properties on boot. It must be run early during the boot
  57 +# process to avoid race conditions with other daemons that
  58 +# might read them (e.g. surface flinger), so define it in
  59 +# class 'core'
  60 +#
  61 +service qemu-props /system/bin/qemu-props
  62 + class core
  63 + user root
  64 + group root
  65 + oneshot
  66 +
  67 +service qemud /system/bin/qemud
  68 + socket qemud stream 666
  69 + oneshot
  70 +
  71 +# -Q is a special logcat option that forces the
  72 +# program to check wether it runs on the emulator
  73 +# if it does, it redirects its output to the device
  74 +# named by the androidboot.console kernel option
  75 +# if not, is simply exits immediately
  76 +
  77 +service goldfish-logcat /system/bin/logcat -Q
  78 + oneshot
1,115 init.rc
... ... @@ -0,0 +1,1115 @@
  1 +on early-init
  2 + # Set init and its forked children's oom_adj.
  3 + write /proc/1/oom_adj -16
  4 +
  5 + start ueventd
  6 +
  7 +# create mountpoints
  8 + mkdir /mnt 0775 root system
  9 +
  10 +on init
  11 +# Vibetonz
  12 + export VIBE_PIPE_PATH /dev/pipes
  13 + mkdir /dev/pipes 0771 shell shell
  14 +
  15 +sysclktz 0
  16 +
  17 +loglevel 3
  18 +
  19 +# setup the global environment
  20 + export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
  21 + export LD_LIBRARY_PATH /vendor/lib:/system/lib
  22 + export ANDROID_BOOTLOGO 1
  23 + export ANDROID_ROOT /system
  24 + export ANDROID_ASSETS /system/app
  25 + export ANDROID_DATA /data
  26 + export ASEC_MOUNTPOINT /mnt/asec
  27 + export LOOP_MOUNTPOINT /mnt/obb
  28 + 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
  29 +#WTL_EDM
  30 +# Backward compatibility
  31 + symlink /system/etc /etc
  32 + symlink /sys/kernel/debug /d
  33 +
  34 +# Right now vendor lives on the same filesystem as system,
  35 +# but someday that may change.
  36 + symlink /system/vendor /vendor
  37 +
  38 +# Create cgroup mount point for cpu accounting
  39 + mkdir /acct
  40 + mount cgroup none /acct cpuacct
  41 + mkdir /acct/uid
  42 +
  43 + mkdir /system
  44 + mkdir /data 0771 system system
  45 + mkdir /cache 0770 system cache
  46 + mkdir /config 0500 root root
  47 + mkdir /preload 0771 system system
  48 +
  49 +#add booting sound property
  50 + setprop audioflinger.bootsnd 1
  51 +
  52 + # Directory for putting things only root should see.
  53 + mkdir /mnt/secure 0700 root root
  54 +
  55 + # Directory for staging bindmounts
  56 + mkdir /mnt/secure/staging 0700 root root
  57 +
  58 + # Directory-target for where the secure container
  59 + # imagefile directory will be bind-mounted
  60 + mkdir /mnt/secure/asec 0700 root root
  61 +
  62 + # Secure container public mount points.
  63 + mkdir /mnt/asec 0700 root system
  64 + mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000
  65 +
  66 + # Filesystem image public mount points.
  67 + mkdir /mnt/obb 0700 root system
  68 + mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000
  69 +
  70 + write /proc/sys/kernel/panic_on_oops 1
  71 + write /proc/sys/kernel/hung_task_timeout_secs 0
  72 + write /proc/cpu/alignment 4
  73 + write /proc/sys/kernel/sched_latency_ns 10000000
  74 + write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
  75 + write /proc/sys/kernel/sched_compat_yield 1
  76 + write /proc/sys/kernel/sched_child_runs_first 0
  77 + write /proc/sys/kernel/randomize_va_space 2
  78 + # fix BUG on ./kernel/sched_rt.c
  79 + write /proc/sys/kernel/sched_rt_runtime_us -1
  80 +
  81 +# Create cgroup mount points for process groups
  82 + mkdir /dev/cpuctl
  83 + mount cgroup none /dev/cpuctl cpu
  84 + chown system system /dev/cpuctl
  85 + chown system system /dev/cpuctl/tasks
  86 + chmod 0777 /dev/cpuctl/tasks
  87 + write /dev/cpuctl/cpu.shares 1024
  88 +
  89 + mkdir /dev/cpuctl/fg_boost
  90 + chown system system /dev/cpuctl/fg_boost/tasks
  91 + chmod 0777 /dev/cpuctl/fg_boost/tasks
  92 + write /dev/cpuctl/fg_boost/cpu.shares 1024
  93 +
  94 + mkdir /dev/cpuctl/bg_non_interactive
  95 + chown system system /dev/cpuctl/bg_non_interactive/tasks
  96 + chmod 0777 /dev/cpuctl/bg_non_interactive/tasks
  97 + # 5.0 %
  98 + write /dev/cpuctl/bg_non_interactive/cpu.shares 52
  99 +
  100 +# Allow everybody to read the xt_qtaguid resource tracking misc dev.
  101 +# This is needed by any process that uses socket tagging.
  102 + chmod 0644 /dev/xt_qtaguid
  103 +
  104 +# ko files for exfat
  105 + insmod /lib/modules/exfat_core.ko
  106 + insmod /lib/modules/exfat_fs.ko
  107 +
  108 +# ko files for FM Radio
  109 + insmod /lib/modules/Si4709_driver.ko
  110 +
  111 +# WFD CES Demo
  112 +chmod 0666 /dev/graphics/fb5
  113 +echo 5242880 /proc/sys/net/core/wrem_max
  114 +
  115 +
  116 +on fs
  117 +# mount ext4 partitions
  118 + # Mount /system rw first to give the filesystem a chance to save a checkpoint
  119 + mount ext4 /dev/block/mmcblk0p9 /system ro wait noatime
  120 +
  121 + exec set_crypt_meta_info /dev/block/mmcblk0p12 data
  122 + exec sfsck /dev/block/mmcblk0p12 ext4 encryptable
  123 + mount ext4 /dev/block/mmcblk0p12 /data wait nosuid nodev noatime discard,noauto_da_alloc,journal_async_commit
  124 + exec sfsck /dev/block/mmcblk0p8 ext4
  125 + mount ext4 /dev/block/mmcblk0p8 /cache nosuid nodev noatime journal_async_commit
  126 + # SEC_DMCRYPT move mounting efs before apply_disk_policy, and set group id to system
  127 + mkdir /efs
  128 + exec sfsck /dev/block/mmcblk0p3 ext4
  129 + mount ext4 /dev/block/mmcblk0p3 /efs nosuid nodev noatime wait journal_async_commit
  130 + chown radio system /efs
  131 + chmod 0771 /efs
  132 +
  133 +on post-fs
  134 + # once everything is setup, no need to modify /
  135 + mount rootfs rootfs / ro remount
  136 +
  137 + # We chown/chmod /cache again so because mount is run as root + defaults
  138 + chown system cache /cache
  139 + chmod 0770 /cache
  140 +
  141 + # This may have been created by the recovery system with odd permissions
  142 + chown system cache /cache/recovery
  143 + chmod 0770 /cache/recovery
  144 +
  145 + #change permissions on vmallocinfo so we can grab it from bugreports
  146 + chown root log /proc/vmallocinfo
  147 + chmod 0440 /proc/vmallocinfo
  148 +
  149 + #change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks
  150 + chown root system /proc/kmsg
  151 + chmod 0440 /proc/kmsg
  152 + chown root system /proc/sysrq-trigger
  153 + chmod 0220 /proc/sysrq-trigger
  154 +
  155 + mkdir /cache/lost+found 0770 root root
  156 +
  157 + # create data/gps for GPS demon
  158 + chown root system /dev/ttySAC1
  159 + chmod 0660 /dev/ttySAC1
  160 + chown root system /sys/class/sec/gps/GPS_PWR_EN/value
  161 + chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value
  162 + chown root system /sys/class/sec/gps/GPS_nRST/value
  163 + chmod 0664 /sys/class/sec/gps/GPS_nRST/value
  164 + mkdir /data/gps 771 system system
  165 + chown system system /data/gps
  166 +
  167 +on post-fs-data
  168 + # We chown/chmod /data again so because mount is run as root + defaults
  169 + chown system system /data
  170 + chmod 0771 /data
  171 +
  172 + # Create dump dir and collect dumps.
  173 + # Do this before we mount cache so eventually we can use cache for
  174 + # storing dumps on platforms which do not have a dedicated dump partition.
  175 + mkdir /data/dontpanic 0750 root log
  176 +
  177 +
  178 + # Collect apanic data, free resources and re-arm trigger
  179 + copy /proc/apanic_console /data/dontpanic/apanic_console
  180 + chown root log /data/dontpanic/apanic_console
  181 + chmod 0640 /data/dontpanic/apanic_console
  182 +
  183 + copy /proc/apanic_threads /data/dontpanic/apanic_threads
  184 + chown root log /data/dontpanic/apanic_threads
  185 + chmod 0640 /data/dontpanic/apanic_threads
  186 +
  187 + write /proc/apanic_console 1
  188 +
  189 + # create basic filesystem structure
  190 + mkdir /data/misc 01775 system misc
  191 + mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
  192 + mkdir /data/misc/bluetooth 0770 system system
  193 + mkdir /data/misc/keystore 0700 keystore keystore
  194 + mkdir /data/misc/keychain 0771 system system
  195 + mkdir /data/misc/vpn 0770 system vpn
  196 + mkdir /data/misc/systemkeys 0700 system system
  197 + # give system access to wpa_supplicant.conf for backup and restore
  198 + mkdir /data/misc/wifi 0770 wifi system
  199 + mkdir /efs/wifi 0775 radio system
  200 + mkdir /efs/bluetooth 0775 radio system
  201 + mkdir /efs/imei 0775 radio system
  202 + chmod 0660 /data/misc/wifi/wpa_supplicant.conf
  203 + mkdir /data/misc/wifi/sockets 0770 wifi wifi
  204 + mkdir /data/misc/dhcp 0775 dhcp dhcp
  205 + chown dhcp dhcp /data/misc/dhcp
  206 + mkdir /data/local 0751 root root
  207 + mkdir /data/local/tmp 0771 shell shell
  208 + mkdir /data/data 0771 system system
  209 + mkdir /data/app-private 0771 system system
  210 + mkdir /data/app 0771 system system
  211 + mkdir /data/property 0700 root root
  212 + mkdir /data/misc/radio 0775 radio system
  213 + mkdir /data/misc/radio/hatp 0775 radio system
  214 +
  215 + # for TRP/TIS
  216 + write /data/.psm.info 1
  217 + chown system root /data/.psm.info
  218 + chmod 0660 /data/.psm.info
  219 +
  220 + # create dalvik-cache, so as to enforce our permissions
  221 + mkdir /data/dalvik-cache 0771 system system
  222 +
  223 + # create resource-cache and double-check the perms
  224 + mkdir /data/resource-cache 0771 system system
  225 + chown system system /data/resource-cache
  226 + chmod 0771 /data/resource-cache
  227 +
  228 + # create the lost+found directories, so as to enforce our permissions
  229 + mkdir /data/lost+found 0770 root root
  230 +
  231 + #Widevine L1 CTS
  232 + mkdir /data/drm 0775
  233 + mkdir /data/drm/IDM 0775
  234 + mkdir /data/drm/IDM/HTTP 0775
  235 + chown drm system /data/drm
  236 + chown drm system /data/drm/IDM
  237 + chown drm system /data/drm/IDM/HTTP
  238 + chmod 0775 /data/drm
  239 + chmod 0775 /data/drm/IDM
  240 + chmod 0775 /data/drm/IDM/HTTP
  241 +
  242 + # create directory for DRM plug-ins
  243 + mkdir /data/drm 0774 drm drm
  244 +
  245 + #SISO-PLAYREADY-CHANGES
  246 + #DRM directory creation
  247 + mkdir /system/etc/security/.drm 0775
  248 + chown root root /system/etc/security/.drm
  249 + chmod 0775 /system/etc/security/.drm
  250 +
  251 + mkdir /system/etc/security/.drm/ext1 0775
  252 + chown root root /system/etc/security/.drm/ext1
  253 + chmod 0775 /system/etc/security/.drm/ext1
  254 +
  255 + # Added for Playready DRM Support
  256 + mkdir /data/data/.drm 0775
  257 + chown drm system /data/data/.drm
  258 + chmod 0775 /data/data/.drm
  259 + mkdir /data/data/.drm/.playready 0775
  260 + chown drm system /data/data/.drm/.playready
  261 + chmod 0775 /data/data/.drm/.playready
  262 +
  263 + # PlayReady DRM Support 1
  264 + mkdir /efs/drm 0775
  265 + chown drm system /efs/drm
  266 + chmod 0775 /efs/drm
  267 + mkdir /efs/drm/playready 0775
  268 + chown drm system /efs/drm/playready
  269 + chmod 0775 /efs/drm/playready
  270 +
  271 +
  272 + # PlayReady DRM Support 2
  273 + chown drm system /system/etc/security/.drm/bgroupcert.dat
  274 + chmod 0775 /system/etc/security/.drm/bgroupcert.dat
  275 + chown drm system /system/etc/security/.drm/devcerttemplate.dat
  276 + chmod 0775 /system/etc/security/.drm/devcerttemplate.dat
  277 + chown drm system /system/etc/security/.drm/priv.dat
  278 + chmod 0775 /system/etc/security/.drm/priv.dat
  279 + chown drm system /system/etc/security/.drm/zgpriv.dat
  280 + chmod 0775 /system/etc/security/.drm/zgpriv.dat
  281 +# copy /system/etc/security/.drm/bgroupcert.dat /efs/drm/playready/bgroupcert.dat
  282 +# copy /system/etc/security/.drm/devcerttemplate.dat /efs/drm/playready/devcerttemplate.dat
  283 +# copy /system/etc/security/.drm/priv.dat /efs/drm/playready/priv.dat
  284 +# copy /system/etc/security/.drm/zgpriv.dat /efs/drm/playready/zgpriv.dat
  285 +# copy /system/etc/security/.drm/DxDrmConfig.txt /efs/drm/playready/DxDrmConfig.txt
  286 +
  287 + # PlayReady DRM Support 5
  288 +# mkdir /data/DxDrm 0775
  289 +# chown drm system /data/DxDrm
  290 +# chmod 0775 /data/DxDrm
  291 +
  292 +
  293 +# systemSW.
  294 +# create log system
  295 + mkdir /data/log 0775 system log
  296 + chown system log /data/log
  297 +
  298 + chmod 0775 /data/log
  299 + chmod 0775 /data/anr
  300 +
  301 +
  302 + #Added drm folder to copy drm plugins
  303 + mkdir /system/lib/drm 0775
  304 + chown root root /system/lib/drm
  305 + chmod 0775 /system/lib/drm
  306 + #SISO-PLAYREADY-CHANGES
  307 +
  308 + # DivX DRM
  309 + mkdir /efs/.files 0775
  310 + mkdir /efs/.files/.dx1 0775
  311 + mkdir /efs/.files/.dm33 0775
  312 + mkdir /efs/.files/.mp301 0775
  313 + chown media system /efs/.files/.dx1
  314 + chown media system /efs/.files/.dm33
  315 + chown media system /efs/.files/.mp301
  316 + chmod 0775 /efs/.files/.dx1
  317 + chmod 0775 /efs/.files/.dm33
  318 + chmod 0775 /efs/.files/.mp301
  319 +
  320 +
  321 + # If there is no fs-post-data action in the init.<device>.rc file, you
  322 + # must uncomment this line, otherwise encrypted filesystems
  323 + # won't work.
  324 + # Set indication (checked by vold) that we have finished this action
  325 + #setprop vold.post_fs_data_done 1
  326 +
  327 + chown system system /sys/class/android_usb/android0/f_mass_storage/lun/file
  328 + chmod 0660 /sys/class/android_usb/android0/f_mass_storage/lun/file
  329 + chown system system /sys/class/android_usb/android0/f_rndis/ethaddr
  330 + chmod 0660 /sys/class/android_usb/android0/f_rndis/ethaddr
  331 +
  332 +# MTP permission
  333 + chmod 0660 /dev/usb_mtp_gadget
  334 + chown system system /dev/usb_mtp_gadget
  335 +
  336 +# terminal mode
  337 + chmod 0660 /sys/class/android_usb/android0/terminal_version
  338 + chown system system /sys/class/android_usb/android0/terminal_version
  339 +
  340 +# fota
  341 + mkdir /data/fota_test 0775 system log
  342 + chown system log /data/fota_test
  343 + chmod 0775 /data/fota_test
  344 +
  345 + mkdir /cache/fota 0770 system cache
  346 + chown system cache /cache/fota
  347 + chmod 0770 /cache/fota
  348 +on boot
  349 +
  350 +# mobicore
  351 + mkdir /data/app/mcRegistry 0775 system system
  352 + chmod 0777 /dev/mobicore
  353 +# mobicore trustlets
  354 + copy /efs/00000000.authtokcont /data/app/mcRegistry/00000000.authtokcont
  355 + chown system system /data/app/mcRegistry/00000000.authtokcont
  356 + copy /system/app/FFFFFFFF000000000000000000000001.drbin /data/app/FFFFFFFF000000000000000000000001.drbin
  357 + chown system system /data/app/FFFFFFFF000000000000000000000001.drbin
  358 + copy /system/app/mcRegistry/00060308060501020000000000000000.tlbin /data/app/mcRegistry/00060308060501020000000000000000.tlbin
  359 + chown system system /data/app/mcRegistry/00060308060501020000000000000000.tlbin
  360 + copy /system/app/mcRegistry/07010000000000000000000000000000.tlbin /data/app/mcRegistry/07010000000000000000000000000000.tlbin
  361 + chown system system /data/app/mcRegistry/07010000000000000000000000000000.tlbin
  362 + copy /system/app/mcRegistry/ffffffff000000000000000000000003.tlbin /data/app/mcRegistry/ffffffff000000000000000000000003.tlbin
  363 + chown system system /data/app/mcRegistry/ffffffff000000000000000000000003.tlbin
  364 + copy /system/app/mcRegistry/ffffffff000000000000000000000004.tlbin /data/app/mcRegistry/ffffffff000000000000000000000004.tlbin
  365 + chown system system /data/app/mcRegistry/ffffffff000000000000000000000004.tlbin
  366 + copy /system/app/mcRegistry/ffffffff000000000000000000000005.tlbin /data/app/mcRegistry/ffffffff000000000000000000000005.tlbin
  367 + chown system system /data/app/mcRegistry/ffffffff000000000000000000000005.tlbin
  368 +
  369 +# icd
  370 + exec icd_check
  371 + chown system system /dev/icd
  372 + chmod 0644 /dev/icd
  373 + write /dev/icdr 0
  374 + chown system system /dev/icdr
  375 + chmod 0644 /dev/icdr
  376 + chown system system /dev/tzic
  377 +
  378 +# HDCP 2.x
  379 + mkdir /data/system/hdcp2 0775 system system
  380 +
  381 +# h2k permission
  382 + chmod 0644 /efs/redata.bin
  383 + chmod 0644 /efs/h2k.dat
  384 +
  385 +# Camera
  386 + mkdir /data/cfw 0775 system system
  387 +
  388 +# basic network init
  389 + ifup lo
  390 + hostname localhost
  391 + domainname localdomain
  392 +
  393 +# set RLIMIT_NICE to allow priorities from 19 to -20
  394 + setrlimit 13 40 40
  395 +
  396 +# Memory management. Basic kernel parameters, and allow the high
  397 +# level system server to be able to adjust the kernel OOM driver
  398 +# paramters to match how it is managing things.
  399 + write /proc/sys/vm/overcommit_memory 1
  400 + write /proc/sys/vm/min_free_order_shift 4
  401 + chown root system /sys/module/lowmemorykiller/parameters/adj
  402 + chmod 0664 /sys/module/lowmemorykiller/parameters/adj
  403 + chown root system /sys/module/lowmemorykiller/parameters/minfree
  404 + chmod 0664 /sys/module/lowmemorykiller/parameters/minfree
  405 +
  406 + # Tweak background writeout
  407 + write /proc/sys/vm/dirty_expire_centisecs 200
  408 + write /proc/sys/vm/dirty_background_ratio 5
  409 +
  410 + # Permissions for System Server and daemons.
  411 + chown radio system /sys/android_power/state
  412 + chown radio system /sys/android_power/request_state
  413 + chown radio system /sys/android_power/acquire_full_wake_lock
  414 + chown radio system /sys/android_power/acquire_partial_wake_lock
  415 + chown radio system /sys/android_power/release_wake_lock
  416 + chown radio system /sys/power/state
  417 + chown radio system /sys/power/wake_lock
  418 + chown radio system /sys/power/wake_unlock
  419 + chown radio system /sys/power/cpufreq_table
  420 + chown radio system /sys/power/cpufreq_max_limit
  421 + chown radio system /sys/power/cpufreq_min_limit
  422 + chown radio system /sys/power/mali_lock
  423 + chown radio system /sys/class/power_supply/battery/siop_activated
  424 + chown radio system /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock
  425 + chown radio system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_lock
  426 + chown radio system /sys/devices/system/cpu/busfreq/curr_freq
  427 + chown radio system /sys/module/mali/parameters/mali_dvfs_control
  428 + chown system radio /sys/bus/platform/devices/s5p-tmu/lot_id
  429 + chmod 0660 /sys/power/state
  430 + chmod 0660 /sys/power/wake_lock
  431 + chmod 0660 /sys/power/wake_unlock
  432 + chmod 0660 /sys/power/cpufreq_table
  433 + chmod 0660 /sys/power/cpufreq_max_limit
  434 + chmod 0660 /sys/power/cpufreq_min_limit
  435 + chmod 0660 /sys/power/mali_lock
  436 + chmod 0660 /sys/class/power_supply/battery/siop_activated
  437 + chmod 0660 /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock
  438 + chmod 0660 /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_lock
  439 + chmod 0660 /sys/devices/system/cpu/busfreq/curr_freq
  440 + chmod 0660 /sys/module/mali/parameters/mali_dvfs_control
  441 + chmod 0664 /sys/bus/platform/devices/s5p-tmu/lot_id
  442 + chown system system /sys/class/timed_output/vibrator/enable
  443 + chown system system /sys/class/leds/keyboard-backlight/brightness
  444 + chown system system /sys/class/leds/lcd-backlight/brightness
  445 + chown system system /sys/class/backlight/panel/brightness
  446 + chown system system /sys/class/leds/button-backlight/brightness
  447 + chown system system /sys/class/sec/sec_touchkey/brightness
  448 + chown system system /sys/class/leds/jogball-backlight/brightness
  449 + chown system system /sys/class/leds/red/brightness
  450 + chown system system /sys/class/leds/green/brightness
  451 + chown system system /sys/class/leds/blue/brightness
  452 + chown system system /sys/class/leds/red/device/grpfreq
  453 + chown system system /sys/class/leds/red/device/grppwm
  454 + chown system system /sys/class/leds/red/device/blink
  455 + chown system system /sys/class/leds/red/brightness
  456 + chown system system /sys/class/leds/green/brightness
  457 + chown system system /sys/class/leds/blue/brightness
  458 + chown system system /sys/class/leds/red/device/grpfreq
  459 + chown system system /sys/class/leds/red/device/grppwm
  460 + chown system system /sys/class/leds/red/device/blink
  461 + chown system system /sys/class/timed_output/vibrator/enable
  462 + chown system system /sys/module/sco/parameters/disable_esco
  463 + chown system system /sys/kernel/ipv4/tcp_wmem_min
  464 + chown system system /sys/kernel/ipv4/tcp_wmem_def
  465 + chown system system /sys/kernel/ipv4/tcp_wmem_max
  466 + chown system system /sys/kernel/ipv4/tcp_rmem_min
  467 + chown system system /sys/kernel/ipv4/tcp_rmem_def
  468 + chown system system /sys/kernel/ipv4/tcp_rmem_max
  469 + chown root radio /proc/cmdline
  470 +
  471 +# Audio (Earjack)
  472 + chown system radio /sys/class/audio/earjack/select_jack
  473 + chown system radio /sys/class/audio/earjack/key_state
  474 + chown system radio /sys/class/audio/earjack/state
  475 + chown media system /sys/class/audio/earjack/reselect_jack
  476 +
  477 +# Battery node
  478 + chown system radio /sys/class/power_supply/battery/batt_reset_soc
  479 + chown system radio /sys/class/power_supply/battery/batt_read_raw_soc
  480 + chown system radio /sys/class/power_supply/battery/batt_read_adj_soc
  481 + chown system radio /sys/class/power_supply/battery/batt_type
  482 + chown system radio /sys/class/power_supply/battery/batt_temp_adc
  483 + chown system radio /sys/class/power_supply/battery/batt_temp_aver
  484 + chown system radio /sys/class/power_supply/battery/batt_temp_adc_aver
  485 + chown system radio /sys/class/power_supply/battery/batt_vfocv
  486 + chown system radio /sys/class/power_supply/battery/batt_lp_charging
  487 + chown system radio /sys/class/power_supply/battery/batt_charging_source
  488 + chown system radio /sys/class/power_supply/battery/test_mode
  489 + chown system radio /sys/class/power_supply/battery/wc_status
  490 + chown system radio /sys/class/power_supply/battery/wpc_pin_state
  491 +
  492 +# Thermistor node
  493 + chown radio system /sys/devices/platform/sec-thermistor/temp_adc
  494 + chown radio system /sys/devices/platform/sec-thermistor/temperature
  495 +
  496 +# Permissions for touch
  497 + chown system radio /sys/class/sec/tsp/cmd
  498 +
  499 +# Permissions for Touchkey
  500 + chown system radio /sys/class/sec/sec_touchkey/enable_disable
  501 + chown system radio /sys/class/sec/sec_touchkey/touchkey_brightness
  502 + chown system radio /sys/class/sec/sec_touchkey/touchkey_menu
  503 + chown system radio /sys/class/sec/sec_touchkey/touchkey_back
  504 + chown system radio /sys/class/sec/sec_touchkey/touch_update
  505 + chown system radio /sys/class/sec/sec_touchkey/touch_version
  506 + chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_version_panel
  507 + chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_version_phone
  508 + chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_update_status
  509 + chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_update
  510 + chown system radio /sys/class/sec/sec_touchkey/touch_sensitivity
  511 + chown system radio /sys/class/sec/sec_touchkey/touchkey_threshold
  512 + chown system system /sys/devices/virtual/sec/sec_touchkey/brightness
  513 +
  514 +# Permissions for gpio_keys
  515 + chown radio system /sys/class/sec/sec_key/wakeup_keys
  516 + write /sys/class/sec/sec_key/wakeup_keys 116,172
  517 +
  518 +# Permissions for Camera
  519 + chown system radio /sys/class/camera/rear/rear_camfw
  520 + chown system radio /sys/class/camera/rear/rear_camtype
  521 + chown system radio /sys/class/camera/rear/rear_flash
  522 + chown system radio /sys/class/camera/rear/isp_core
  523 + chown system radio /sys/class/camera/front/front_camfw
  524 + chown system radio /sys/class/camera/front/front_camtype
  525 + chown system radio /sys/class/flash/flash/flash_power
  526 +
  527 +# Permissions for bluetooth
  528 + setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
  529 + chown bluetooth bluetooth ro.bt.bdaddr_path
  530 + chown bluetooth bluetooth /dev/ttySAC0
  531 + chmod 0600 /dev/ttySAC0
  532 + chmod 0660 /sys/class/rfkill/rfkill0/state
  533 + chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  534 + chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
  535 +
  536 +# <Sensors & NFC>
  537 +# Input Events
  538 + chown system radio /sys/class/input/input2/enable
  539 + chown system radio /sys/class/input/input2/poll_delay
  540 + chown system radio /sys/class/input/input3/enable
  541 + chown system radio /sys/class/input/input3/poll_delay
  542 + chown system radio /sys/class/input/input4/enable
  543 + chown system radio /sys/class/input/input4/poll_delay
  544 + chown system radio /sys/class/input/input5/enable
  545 + chown system radio /sys/class/input/input5/poll_delay
  546 + chown system radio /sys/class/input/input6/enable
  547 + chown system radio /sys/class/input/input6/poll_delay
  548 + chown system radio /sys/class/input/input7/enable
  549 + chown system radio /sys/class/input/input7/poll_delay
  550 + chown system radio /sys/class/input/input8/enable
  551 + chown system radio /sys/class/input/input8/poll_delay
  552 + chown system radio /sys/class/input/input9/enable
  553 + chown system radio /sys/class/input/input9/poll_delay
  554 +# Accelerometer_sensor
  555 + chown system radio /dev/accelerometer
  556 + chown system radio /sys/class/sensors/accelerometer_sensor
  557 + chown system radio /sys/class/sensors/accelerometer_sensor/raw_data
  558 + chown system radio /sys/class/sensors/accelerometer_sensor/calibration
  559 + chown system radio /sys/class/sensors/accelerometer_sensor/reactive_alert
  560 + chown system radio /sys/class/sensors/accelerometer_sensor/vendor
  561 + chown system radio /sys/class/sensors/accelerometer_sensor/name
  562 +# Proximity_sensor
  563 + chown system radio /sys/class/sensors/proximity_sensor/state
  564 + chown system radio /sys/class/sensors/proximity_sensor/prox_avg
  565 + chown system radio /sys/class/sensors/proximity_sensor/prox_cal
  566 + chown system radio /sys/class/sensors/proximity_sensor/vendor
  567 + chown system radio /sys/class/sensors/proximity_sensor/name
  568 + chown system radio /sys/class/sensors/proximity_sensor/prox_thresh
  569 +# Light_sensor
  570 + chown system radio /sys/class/input/input7/enable
  571 + chown system radio /sys/class/input/input7/poll_delay
  572 + chown system radio /sys/class/sensors/light_sensor/lux
  573 + chown system radio /sys/class/sensors/light_sensor/raw_data
  574 + chown system radio /sys/class/sensors/light_sensor/vendor
  575 + chown system radio /sys/class/sensors/light_sensor/name
  576 +# Gyro_sensor
  577 + chown system radio /dev/lsm330dlc_gyro_misc
  578 + chown system radio /sys/class/sensors/gyro_sensor/power_on
  579 + chown system radio /sys/class/sensors/gyro_sensor/power_off
  580 + chown system radio /sys/class/sensors/gyro_sensor/temperature
  581 + chown system radio /sys/class/sensors/gyro_sensor/selftest
  582 + chown system radio /sys/class/sensors/gyro_sensor/selftest_dps
  583 + chown system radio /sys/class/sensors/gyro_sensor/vendor
  584 + chown system radio /sys/class/sensors/gyro_sensor/name
  585 +# Barometer_sensor
  586 + chown system radio /sys/class/input/input5/pressure_reference_level
  587 + chown system radio /sys/class/input/input5/temperature_reference_level
  588 + chown system radio /sys/class/input/input5/enable_autozero
  589 + chown system radio /sys/class/input/input5/compensation_param
  590 + chown system radio /sys/class/input/input5/reg_value
  591 + chown system radio /sys/class/input/input5/reg_addr
  592 + chown system radio /sys/class/sensors/barometer_sensor/sea_level_pressure
  593 + chown system radio /sys/class/sensors/barometer_sensor/vendor
  594 + chown system radio /sys/class/sensors/barometer_sensor/name
  595 + chown system radio /sys/class/sensors/barometer_sensor/calibration
  596 +# Magnetic_sensor
  597 + chown system radio /dev/akm8975
  598 + chown system radio /sys/class/sensors/magnetic_sensor/raw_data
  599 + chown system radio /sys/class/sensors/magnetic_sensor/vendor
  600 + chown system radio /sys/class/sensors/magnetic_sensor/name
  601 +# NFC
  602 + setprop ro.nfc.port "I2C"
  603 + chmod 0600 /dev/pn544
  604 + chown nfc nfc /dev/pn544
  605 +
  606 +# WIFI
  607 + setprop wifi.interface wlan0
  608 +
  609 +# Vibetonz
  610 + chmod 0660 /dev/tspdrv
  611 + chown root shell /dev/tspdrv
  612 +
  613 +# Permissions for LCD
  614 + chown system radio /sys/class/lcd/panel/lcd_power
  615 + chown system radio /sys/class/lcd/panel/lcd_type
  616 + chown system radio /sys/class/lcd/panel/device/hs_toggle
  617 + chown system media_rw /sys/class/lcd/panel/power_reduce
  618 + chown system system /sys/class/backlight/panel/auto_brightness
  619 + chown system system /sys/class/graphics/fb0/lcdfreq/level
  620 +
  621 +# Permissions for mDNIe
  622 + chown system media_rw /sys/class/mdnie/mdnie/mode
  623 + chown system media_rw /sys/class/mdnie/mdnie/outdoor
  624 + chown system media_rw /sys/class/mdnie/mdnie/scenario
  625 + chown system system /sys/class/mdnie/mdnie/negative
  626 +
  627 +# Switch Device
  628 + chown system system /sys/class/sec/switch/uart_sel
  629 + chown system system /sys/class/sec/switch/usb_sel
  630 + chown system system /sys/class/sec/switch/otg_test
  631 + chown system radio /sys/class/sec/switch/adc
  632 +
  633 +# SVC LED
  634 + chown system system /sys/class/sec/led/led_r
  635 + chown system system /sys/class/sec/led/led_g
  636 + chown system system /sys/class/sec/led/led_b
  637 +
  638 + chown system system /sys/class/leds/led_r/brightness
  639 + chown system system /sys/class/leds/led_g/brightness
  640 + chown system system /sys/class/leds/led_b/brightness
  641 + chown system system /sys/class/leds/led_r/delay_on
  642 + chown system system /sys/class/leds/led_g/delay_on
  643 + chown system system /sys/class/leds/led_b/delay_on
  644 + chown system system /sys/class/leds/led_r/delay_off
  645 + chown system system /sys/class/leds/led_g/delay_off
  646 + chown system system /sys/class/leds/led_b/delay_off
  647 + chown system system /sys/class/leds/led_r/blink
  648 + chown system system /sys/class/leds/led_g/blink
  649 + chown system system /sys/class/leds/led_b/blink
  650 +
  651 + chown system system /sys/class/sec/led/led_pattern
  652 + chown system system /sys/class/sec/led/led_blink
  653 + chown system system /sys/class/sec/led/led_br_lev
  654 +
  655 +# OTG_TEST
  656 + chown system radio /sys/class/host_notify/usb_otg/booster
  657 + chmod 0660 /sys/class/host_notify/usb_otg/booster
  658 +
  659 +# for datarouter
  660 + chown system system /dev/dun
  661 + chown system system /dev/ttyGS0
  662 + chown system system /dev/ttyGS1
  663 + chown system system /dev/ttyGS2
  664 + chown system system /dev/ttyGS3
  665 +
  666 +# Define TCP buffer sizes for various networks
  667 +# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
  668 + setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
  669 + setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576
  670 + setprop net.tcp.buffersize.lte 524288,1048576,2560000,262144,524288,1048576
  671 + setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208
  672 + setprop net.tcp.buffersize.hspa 4094,87380,704512,4096,16384,262144
  673 + setprop net.tcp.buffersize.hsdpa 4094,87380,704512,4096,16384,110208
  674 + setprop net.tcp.buffersize.hsupa 4094,87380,704512,4096,16384,262144
  675 + setprop net.tcp.buffersize.hspap 4094,87380,704512,4096,16384,262144
  676 + setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
  677 + setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
  678 +
  679 +# wifi display
  680 + write /proc/sys/net/core/wmem_max 262144
  681 +
  682 +# klaatu tdmb ownership
  683 + chown system system /dev/tdmb
  684 + chmod 0660 /dev/tdmb
  685 +
  686 +# permission for HDMI audio path
  687 + chown media audio /sys/class/hdmi_audio/hdmi_audio/hdmi_audio_set_ext
  688 +
  689 +# Set this property so surfaceflinger is not started by system_init
  690 + setprop system_init.startsurfaceflinger 0
  691 +
  692 + class_start core
  693 + class_start main
  694 +
  695 +on nonencrypted
  696 + class_start late_start
  697 +
  698 +on charger
  699 + class_start charger
  700 +
  701 +on property:vold.decrypt=trigger_reset_main
  702 + class_reset main
  703 +
  704 +on property:vold.decrypt=trigger_load_persist_props
  705 + load_persist_props
  706 +
  707 +on property:vold.decrypt=trigger_post_fs_data
  708 + trigger post-fs-data
  709 + setprop vold.post_fs_data_done 1
  710 +
  711 +on property:vold.decrypt=trigger_restart_min_framework
  712 + class_start main
  713 +
  714 +on property:vold.decrypt=trigger_restart_framework
  715 + class_start main
  716 + class_start late_start
  717 +
  718 +on property:vold.decrypt=trigger_shutdown_framework
  719 + class_reset late_start
  720 + class_reset main
  721 +
  722 +# Used to disable USB when switching states
  723 +on property:sys.usb.config=none
  724 + stop adbd
  725 + write /sys/class/android_usb/android0/enable 0
  726 + write /sys/class/android_usb/android0/bDeviceClass 0
  727 + setprop sys.usb.state $sys.usb.config
  728 +
  729 +# adb only USB configuration
  730 +# This should only be used during device bringup
  731 +# and as a fallback if the USB manager fails to set a standard configuration
  732 +on property:sys.usb.config=adb
  733 + write /sys/class/android_usb/android0/enable 0
  734 + write /sys/class/android_usb/android0/idVendor 18d1
  735 + write /sys/class/android_usb/android0/idProduct D002
  736 + write /sys/class/android_usb/android0/functions $sys.usb.config
  737 + write /sys/class/android_usb/android0/enable 1
  738 + start adbd
  739 + setprop sys.usb.state $sys.usb.config
  740 +
  741 +# USB accessory configuration
  742 +on property:sys.usb.config=accessory
  743 + write /sys/class/android_usb/android0/enable 0
  744 + write /sys/class/android_usb/android0/idVendor 18d1
  745 + write /sys/class/android_usb/android0/idProduct 2d00
  746 + write /sys/class/android_usb/android0/functions $sys.usb.config
  747 + write /sys/class/android_usb/android0/enable 1
  748 + setprop sys.usb.state $sys.usb.config
  749 +
  750 +# USB accessory configuration, with adb
  751 +on property:sys.usb.config=accessory,adb
  752 + write /sys/class/android_usb/android0/enable 0
  753 + write /sys/class/android_usb/android0/idVendor 18d1
  754 + write /sys/class/android_usb/android0/idProduct 2d01
  755 + write /sys/class/android_usb/android0/functions $sys.usb.config
  756 + write /sys/class/android_usb/android0/enable 1
  757 + start adbd
  758 + setprop sys.usb.state $sys.usb.config
  759 +
  760 +# Used to set USB configuration at boot and to switch the configuration
  761 +# when changing the default configuration
  762 +on property:persist.sys.usb.config=*
  763 + setprop sys.usb.config $persist.sys.usb.config
  764 +
  765 +# SISO-ANDR_PERF :: START Changing secheduler to cfq after boot complete
  766 +on property:dev.sfbootcomplete=1
  767 + write /sys/block/mmcblk0/queue/scheduler cfq
  768 + write /sys/power/cpufreq_min_limit -1
  769 +#SISO-ANDR_PERF :: END
  770 +
  771 +## Daemon processes to be run by init.
  772 +##
  773 +service ueventd /sbin/ueventd
  774 + class core
  775 + critical
  776 +
  777 +service console /system/bin/sh
  778 + class core
  779 + console
  780 + disabled
  781 + group log
  782 +
  783 +service console_user /system/bin/sh
  784 + class core
  785 + console
  786 + disabled
  787 + user shell
  788 + group shell log
  789 +
  790 +on property:ro.debuggable=1
  791 + start console
  792 +
  793 +on property:ro.debuggable=0
  794 + start console_user
  795 +
  796 +# adbd is controlled via property triggers in init.<platform>.usb.rc
  797 +service adbd /sbin/adbd
  798 + class core
  799 + disabled
  800 +
  801 +# adbd on at boot in emulator
  802 +on property:ro.kernel.qemu=1
  803 + start adbd
  804 +
  805 +# This property trigger has added to imitiate the previous behavior of "adb root".
  806 +# The adb gadget driver used to reset the USB bus when the adbd daemon exited,
  807 +# and the host side adb relied on this behavior to force it to reconnect with the
  808 +# new adbd instance after init relaunches it. So now we force the USB bus to reset
  809 +# here when adbd sets the service.adb.root property to 1. We also restart adbd here
  810 +# rather than waiting for init to notice its death and restarting it so the timing
  811 +# of USB resetting and adb restarting more closely matches the previous behavior.
  812 +on property:service.adb.root=1
  813 + write /sys/class/android_usb/android0/enable 0
  814 + restart adbd
  815 + write /sys/class/android_usb/android0/enable 1
  816 +
  817 +on property:persist.sys.storage_preload=1
  818 + mount ext4 /dev/block/mmcblk0p10 /preload nosuid nodev noatime wait ro
  819 + setprop storage.preload.complete 1
  820 +
  821 +on property:persist.sys.storage_preload=0
  822 + exec /system/bin/umount /preload
  823 +
  824 +service servicemanager /system/bin/servicemanager
  825 + class core
  826 + user system
  827 + group system
  828 + critical
  829 + onrestart restart zygote
  830 + onrestart restart media
  831 + onrestart restart surfaceflinger
  832 + onrestart restart drm
  833 +
  834 +service vold /system/bin/vold
  835 + class core
  836 + socket vold stream 0660 root mount
  837 + ioprio be 2
  838 + socket dir_enc_report stream 0660 root mount
  839 +
  840 +service netd /system/bin/netd
  841 + class main
  842 + socket netd stream 0660 root system
  843 + socket dnsproxyd stream 0660 root inet
  844 +
  845 +service debuggerd /system/bin/debuggerd
  846 + class main