Advertisement
giveen

init patch

Jun 24th, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.49 KB | None | 0 0
  1. --- /home/giveen/cm10/device/dell/streak/init.rc (our INIT.RC)
  2. +++ /home/giveen/Downloads/boot.img-ramdisk/init.rc (WHAT CM10 USES)
  3. @@ -1,3 +1,13 @@
  4. +# Copyright (C) 2012 The Android Open Source Project
  5. +#
  6. +# IMPORTANT: Do not create world writable files or directories.
  7. +# This is a common source of Android security bugs.
  8. +#
  9. +
  10. +import /init.${ro.hardware}.rc
  11. +import /init.usb.rc
  12. +import /init.trace.rc
  13. +
  14. on early-init
  15. # Set init and its forked children's oom_adj.
  16. write /proc/1/oom_adj -16
  17. @@ -17,12 +27,9 @@
  18. export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
  19. export LD_LIBRARY_PATH /vendor/lib:/system/lib
  20. export ANDROID_BOOTLOGO 1
  21. - export ANDROID_CACHE /cache
  22. export ANDROID_ROOT /system
  23. export ANDROID_ASSETS /system/app
  24. export ANDROID_DATA /data
  25. - export DOWNLOAD_CACHE /cache/download
  26. - export EXTERNAL_STORAGE /mnt/sdcard
  27. export ASEC_MOUNTPOINT /mnt/asec
  28. export LOOP_MOUNTPOINT /mnt/obb
  29. 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
  30. @@ -34,25 +41,16 @@
  31. # Right now vendor lives on the same filesystem as system,
  32. # but someday that may change.
  33. symlink /system/vendor /vendor
  34. -
  35. -# create mountpoints
  36. - mkdir /mnt 0775 root system
  37. - mkdir /mnt/sdcard 0000 system system
  38.  
  39. # Create cgroup mount point for cpu accounting
  40. mkdir /acct
  41. mount cgroup none /acct cpuacct
  42. mkdir /acct/uid
  43.  
  44. -# Backwards Compat - XXX: Going away in G*
  45. - symlink /mnt/sdcard /sdcard
  46. -
  47. mkdir /system
  48. mkdir /data 0771 system system
  49. mkdir /cache 0771 system cache
  50. mkdir /config 0500 root root
  51. - mkdir /persist 0771 system system
  52. - mkdir /firstboot 0755 system system
  53.  
  54. # Directory for putting things only root should see.
  55. mkdir /mnt/secure 0700 root root
  56. @@ -80,25 +78,36 @@
  57. write /proc/sys/kernel/sched_compat_yield 1
  58. write /proc/sys/kernel/sched_child_runs_first 0
  59. write /proc/sys/kernel/randomize_va_space 2
  60. + write /proc/sys/kernel/kptr_restrict 2
  61. + write /proc/sys/kernel/dmesg_restrict 1
  62. + write /proc/sys/vm/mmap_min_addr 32768
  63. + write /proc/sys/kernel/sched_rt_runtime_us 950000
  64. + write /proc/sys/kernel/sched_rt_period_us 1000000
  65.  
  66. # Create cgroup mount points for process groups
  67. mkdir /dev/cpuctl
  68. mount cgroup none /dev/cpuctl cpu
  69. chown system system /dev/cpuctl
  70. chown system system /dev/cpuctl/tasks
  71. - chmod 0777 /dev/cpuctl/tasks
  72. + chmod 0660 /dev/cpuctl/tasks
  73. write /dev/cpuctl/cpu.shares 1024
  74. -
  75. - mkdir /dev/cpuctl/fg_boost
  76. - chown system system /dev/cpuctl/fg_boost/tasks
  77. - chmod 0777 /dev/cpuctl/fg_boost/tasks
  78. - write /dev/cpuctl/fg_boost/cpu.shares 1024
  79. -
  80. - mkdir /dev/cpuctl/bg_non_interactive
  81. - chown system system /dev/cpuctl/bg_non_interactive/tasks
  82. - chmod 0777 /dev/cpuctl/bg_non_interactive/tasks
  83. + write /dev/cpuctl/cpu.rt_runtime_us 950000
  84. + write /dev/cpuctl/cpu.rt_period_us 1000000
  85. +
  86. + mkdir /dev/cpuctl/apps
  87. + chown system system /dev/cpuctl/apps/tasks
  88. + chmod 0666 /dev/cpuctl/apps/tasks
  89. + write /dev/cpuctl/apps/cpu.shares 1024
  90. + write /dev/cpuctl/apps/cpu.rt_runtime_us 800000
  91. + write /dev/cpuctl/apps/cpu.rt_period_us 1000000
  92. +
  93. + mkdir /dev/cpuctl/apps/bg_non_interactive
  94. + chown system system /dev/cpuctl/apps/bg_non_interactive/tasks
  95. + chmod 0666 /dev/cpuctl/apps/bg_non_interactive/tasks
  96. # 5.0 %
  97. - write /dev/cpuctl/bg_non_interactive/cpu.shares 52
  98. + write /dev/cpuctl/apps/bg_non_interactive/cpu.shares 52
  99. + write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_runtime_us 700000
  100. + write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_period_us 1000000
  101.  
  102. # Allow everybody to read the xt_qtaguid resource tracking misc dev.
  103. # This is needed by any process that uses socket tagging.
  104. @@ -108,10 +117,9 @@
  105. # mount mtd partitions
  106. # Mount /system rw first to give the filesystem a chance to save a checkpoint
  107. mount yaffs2 mtd@system /system
  108. - mount yaffs2 mtd@system /system rw remount
  109. - mount yaffs2 mtd@userdata /firstboot
  110. - mount ext4 /dev/block/innersd0p6 /data noatime nosuid nodev nodiratime errors=continue barrier=0 noauto_da_alloc nobh data=writeback
  111. - mount ext4 /dev/block/innersd0p5 /cache noatime nosuid nodev nodiratime errors=continue barrier=0 noauto_da_alloc nobh data=writeback
  112. + mount yaffs2 mtd@system /system ro remount
  113. + mount yaffs2 mtd@userdata /data nosuid nodev
  114. + mount yaffs2 mtd@cache /cache nosuid nodev
  115.  
  116. on post-fs
  117. # once everything is setup, no need to modify /
  118. @@ -159,7 +167,7 @@
  119.  
  120. write /proc/apanic_console 1
  121.  
  122. -# create basic filesystem structure
  123. + # create basic filesystem structure
  124. mkdir /data/misc 01771 system misc
  125. mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
  126. mkdir /data/misc/bluetooth 0770 system system
  127. @@ -167,34 +175,27 @@
  128. mkdir /data/misc/keychain 0771 system system
  129. mkdir /data/misc/vpn 0770 system vpn
  130. mkdir /data/misc/systemkeys 0700 system system
  131. - mkdir /data/misc/vpn/profiles 0770 system system
  132. # give system access to wpa_supplicant.conf for backup and restore
  133. mkdir /data/misc/wifi 0770 wifi wifi
  134. - chmod 0770 /data/misc/wifi
  135. chmod 0660 /data/misc/wifi/wpa_supplicant.conf
  136. - mkdir /data/local 0771 shell shell
  137. + mkdir /data/local 0751 root root
  138. +
  139. + # For security reasons, /data/local/tmp should always be empty.
  140. + # Do not place files or directories in /data/local/tmp
  141. mkdir /data/local/tmp 0771 shell shell
  142. - mkdir /data/local/download 0771 system cache
  143. mkdir /data/data 0771 system system
  144. mkdir /data/app-private 0771 system system
  145. + mkdir /data/app-asec 0700 root root
  146. mkdir /data/app 0771 system system
  147. mkdir /data/property 0700 root root
  148. + mkdir /data/ssh 0750 root shell
  149. + mkdir /data/ssh/empty 0700 root root
  150. mkdir /data/radio 0770 radio radio
  151. - # DRM
  152. - mkdir /data/misc/drm 0777 system system
  153. - chmod 0777 /data/misc/drm
  154. - # symlink /data/misc/drm /system/etc/security/drm
  155. -
  156. - mkdir /cache/download 0771 system cache
  157. -
  158. - # create dalvik-cache and double-check the perms
  159. +
  160. + # create dalvik-cache and double-check the perms, so as to enforce our permissions
  161. mkdir /data/dalvik-cache 0771 system system
  162. chown system system /data/dalvik-cache
  163. chmod 0771 /data/dalvik-cache
  164. -
  165. - mkdir /cache/dalvik-cache 0771 system system
  166. - chown system system /cache/dalvik-cache
  167. - chmod 0771 /cache/dalvik-cache
  168.  
  169. # create resource-cache and double-check the perms
  170. mkdir /data/resource-cache 0771 system system
  171. @@ -202,40 +203,11 @@
  172. chmod 0771 /data/resource-cache
  173.  
  174. # create the lost+found directories, so as to enforce our permissions
  175. - mkdir /data/lost+found 0770
  176. - mkdir /cache/lost+found 0770
  177. -
  178. - # double check the perms, in case lost+found already exists, and set owner
  179. - chown root root /data/lost+found
  180. - chmod 0770 /data/lost+found
  181. - chown root root /cache/lost+found
  182. - chmod 0770 /cache/lost+found
  183. -
  184. - # allow net_raw to have access to /dev/socket directory
  185. - chown root net_raw /dev/socket
  186. - chmod 0775 /dev/socket
  187. -
  188. -# Change bootloader control ownership.
  189. - chown system system /proc/loader
  190. - chmod 0777 /proc/loader
  191. -
  192. -# Shuli, create system log folders.
  193. - mkdir /data/systemlog 0777 root root
  194. - mkdir /data/systemlog/wakelock 0777 root root
  195. - mkdir /data/systemlog/kwakelock 0777 root root
  196. - mkdir /data/systemlog/kwakelock_main 0777 root root
  197. - mkdir /data/systemlog/reload 0777 root root
  198. - chown root system /sys/devices/virtual/misc/lsensor_taos/ctrl
  199. - chown root system /sys/class/leds/lcd-backlight/mode
  200. - chown media camera /sys/class/msm_camera/austin/sensor
  201. - chown media camera /sys/class/msm_camera/austin/status
  202. -
  203. -# Shuli, logfilter, leave this at the bottom.
  204. -on property:ro.build.FEATURE_LOGFILTER_MTD3=1
  205. - chmod 0666 /dev/mtd/mtd3
  206. -
  207. -on property:ro.build.FEATURE_LOGFILTER_MTD4=1
  208. - chmod 0666 /dev/mtd/mtd4
  209. + mkdir /data/lost+found 0770 root root
  210. +
  211. + # create directory for DRM plug-ins - give drm the read/write access to
  212. + # the following directory.
  213. + mkdir /data/drm 0770 drm drm
  214.  
  215. # If there is no fs-post-data action in the init.<device>.rc file, you
  216. # must uncomment this line, otherwise encrypted filesystems
  217. @@ -243,13 +215,8 @@
  218. # Set indication (checked by vold) that we have finished this action
  219. #setprop vold.post_fs_data_done 1
  220.  
  221. - chown system system /sys/class/android_usb/android0/f_mass_storage/lun/file
  222. - chmod 0660 /sys/class/android_usb/android0/f_mass_storage/lun/file
  223. - chown system system /sys/class/android_usb/android0/f_rndis/ethaddr
  224. - chmod 0660 /sys/class/android_usb/android0/f_rndis/ethaddr
  225. -
  226. # Include extra init file
  227. - import /system/etc/init.local.rc
  228. + import /init.cm.rc
  229.  
  230. on boot
  231. # basic network init
  232. @@ -257,17 +224,12 @@
  233. hostname localhost
  234. domainname localdomain
  235.  
  236. - mkdir /data/misc/wifi 0777 wifi wifi
  237. - mkdir /data/misc/wifi/sockets 0777 wifi wifi
  238. - mkdir /data/misc/dhcp 0770 dhcp dhcp
  239. - chown dhcp dhcp /data/misc/dhcp
  240. -
  241. # set RLIMIT_NICE to allow priorities from 19 to -20
  242. setrlimit 13 40 40
  243.  
  244. # Memory management. Basic kernel parameters, and allow the high
  245. # level system server to be able to adjust the kernel OOM driver
  246. -# paramters to match how it is managing things.
  247. +# parameters to match how it is managing things.
  248. write /proc/sys/vm/overcommit_memory 1
  249. write /proc/sys/vm/min_free_order_shift 4
  250. chown root system /sys/module/lowmemorykiller/parameters/adj
  251. @@ -279,21 +241,44 @@
  252. write /proc/sys/vm/dirty_expire_centisecs 200
  253. write /proc/sys/vm/dirty_background_ratio 5
  254.  
  255. - # Adjust socket buffer to enlarge TCP receive window for high bandwidth
  256. - write /proc/sys/net/ipv4/tcp_adv_win_scale 1
  257. -
  258. # Permissions for System Server and daemons.
  259. chown radio system /sys/android_power/state
  260. chown radio system /sys/android_power/request_state
  261. chown radio system /sys/android_power/acquire_full_wake_lock
  262. chown radio system /sys/android_power/acquire_partial_wake_lock
  263. chown radio system /sys/android_power/release_wake_lock
  264. - chown radio system /sys/power/state
  265. + chown system system /sys/power/state
  266. + chown system system /sys/power/wakeup_count
  267. chown radio system /sys/power/wake_lock
  268. chown radio system /sys/power/wake_unlock
  269. chmod 0660 /sys/power/state
  270. chmod 0660 /sys/power/wake_lock
  271. chmod 0660 /sys/power/wake_unlock
  272. +
  273. + chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate
  274. + chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate
  275. + chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
  276. + chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
  277. + chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
  278. + chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
  279. + chown system system /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
  280. + chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
  281. + chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
  282. + chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
  283. + chown system system /sys/devices/system/cpu/cpufreq/interactive/boost
  284. + chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boost
  285. + chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse
  286. + chown system system /sys/devices/system/cpu/cpufreq/interactive/input_boost
  287. + chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/input_boost
  288. +
  289. + # Assume SMP uses shared cpufreq policy for all CPUs
  290. + chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
  291. + chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
  292. + chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
  293. + chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
  294. + chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
  295. + chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
  296. +
  297. chown system system /sys/class/timed_output/vibrator/enable
  298. chown system system /sys/class/leds/keyboard-backlight/brightness
  299. chown system system /sys/class/leds/lcd-backlight/brightness
  300. @@ -312,11 +297,6 @@
  301. chown system system /sys/class/leds/red/device/grppwm
  302. chown system system /sys/class/leds/red/device/blink
  303. chown system system /sys/class/timed_output/vibrator/enable
  304. -
  305. - # Menghan Cheng, 20100428, flash light for camera
  306. - chown media camera /sys/class/leds/spotlight/brightness
  307. - chown media camera /sys/class/timed_output/flash/enable
  308. -
  309. chown system system /sys/module/sco/parameters/disable_esco
  310. chown system system /sys/kernel/ipv4/tcp_wmem_min
  311. chown system system /sys/kernel/ipv4/tcp_wmem_def
  312. @@ -326,45 +306,20 @@
  313. chown system system /sys/kernel/ipv4/tcp_rmem_max
  314. chown root radio /proc/cmdline
  315.  
  316. - chown system system /sys/module/g_android/parameters/product_id
  317. - chown system system /sys/module/g_android/parameters/set_rndis
  318. - chown system system /sys/devices/platform/msm_sdcc.1/polling
  319. - chown system system /sys/devices/platform/msm_sdcc.2/polling
  320. - chown system system /sys/devices/platform/msm_sdcc.3/polling
  321. - chown system system /sys/devices/platform/msm_sdcc.4/polling
  322. - chown system system /sys/devices/platform/android_usb/composition
  323. - chown system system /sys/devices/platform/android_usb/remote_wakeup
  324. -
  325. - # allow system to modify cpufreq control files
  326. - chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
  327. - chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
  328. - chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
  329. - chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
  330. - chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
  331. - chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
  332. -
  333. -# Shuli
  334. - chmod 0666 /dev/auo_misc_touch
  335. -
  336. # Define TCP buffer sizes for various networks
  337. # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
  338. - setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
  339. + setprop net.tcp.buffersize.default 4096,87380,704512,4096,16384,110208
  340. setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576
  341. - setprop net.tcp.buffersize.lte 524288,1048576,2097152,262144,524288,1048576
  342. - setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208
  343. - setprop net.tcp.buffersize.hspa 4094,87380,262144,4096,16384,262144
  344. - setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
  345. - setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
  346. -
  347. -# allow system to modify ksm control files
  348. - chown root system /sys/kernel/mm/ksm/pages_to_scan
  349. - chmod 0664 /sys/kernel/mm/ksm/pages_to_scan
  350. - chown root system /sys/kernel/mm/ksm/sleep_millisecs
  351. - chmod 0664 /sys/kernel/mm/ksm/sleep_millisecs
  352. - chown root system /sys/kernel/mm/ksm/run
  353. - chmod 0664 /sys/kernel/mm/ksm/run
  354. - write /sys/kernel/mm/ksm/sleep_millisecs 1500
  355. - write /sys/kernel/mm/ksm/pages_to_scan 256
  356. + setprop net.tcp.buffersize.lte 4096,87380,1220608,4096,16384,563200
  357. + setprop net.tcp.buffersize.umts 4096,87380,563200,4096,16384,110208
  358. + setprop net.tcp.buffersize.hspa 4096,87380,704512,4096,16384,110208
  359. + setprop net.tcp.buffersize.hsupa 4096,87380,704512,4096,16384,262144
  360. + setprop net.tcp.buffersize.hsdpa 4096,87380,704512,4096,16384,262144
  361. + setprop net.tcp.buffersize.hspap 4096,87380,1220608,4096,16384,393216
  362. + setprop net.tcp.buffersize.edge 4096,26280,35040,4096,16384,35040
  363. + setprop net.tcp.buffersize.gprs 4096,8760,11680,4096,8760,11680
  364. + setprop net.tcp.buffersize.evdo 4096,87380,563200,4096,16384,262144
  365. + setprop net.tcp.buffersize.evdo_b 4096,87380,704512,4096,16384,262144
  366.  
  367. # Set this property so surfaceflinger is not started by system_init
  368. setprop system_init.startsurfaceflinger 0
  369. @@ -400,49 +355,6 @@
  370. on property:vold.decrypt=trigger_shutdown_framework
  371. class_reset late_start
  372. class_reset main
  373. -
  374. -# Used to disable USB when switching states
  375. -on property:sys.usb.config=none
  376. - stop adbd
  377. - write /sys/class/android_usb/android0/enable 0
  378. - write /sys/class/android_usb/android0/bDeviceClass 0
  379. - setprop sys.usb.state $sys.usb.config
  380. -
  381. -# adb only USB configuration
  382. -# This should only be used during device bringup
  383. -# and as a fallback if the USB manager fails to set a standard configuration
  384. -on property:sys.usb.config=adb
  385. - write /sys/class/android_usb/android0/enable 0
  386. - write /sys/class/android_usb/android0/idVendor 18d1
  387. - write /sys/class/android_usb/android0/idProduct D002
  388. - write /sys/class/android_usb/android0/functions $sys.usb.config
  389. - write /sys/class/android_usb/android0/enable 1
  390. - start adbd
  391. - setprop sys.usb.state $sys.usb.config
  392. -
  393. -# USB accessory configuration
  394. -on property:sys.usb.config=accessory
  395. - write /sys/class/android_usb/android0/enable 0
  396. - write /sys/class/android_usb/android0/idVendor 18d1
  397. - write /sys/class/android_usb/android0/idProduct 2d00
  398. - write /sys/class/android_usb/android0/functions $sys.usb.config
  399. - write /sys/class/android_usb/android0/enable 1
  400. - setprop sys.usb.state $sys.usb.config
  401. -
  402. -# USB accessory configuration, with adb
  403. -on property:sys.usb.config=accessory,adb
  404. - write /sys/class/android_usb/android0/enable 0
  405. - write /sys/class/android_usb/android0/idVendor 18d1
  406. - write /sys/class/android_usb/android0/idProduct 2d01
  407. - write /sys/class/android_usb/android0/functions $sys.usb.config
  408. - write /sys/class/android_usb/android0/enable 1
  409. - start adbd
  410. - setprop sys.usb.state $sys.usb.config
  411. -
  412. -# Used to set USB configuration at boot and to switch the configuration
  413. -# when changing the default configuration
  414. -on property:persist.sys.usb.config=*
  415. - setprop sys.usb.config $persist.sys.usb.config
  416.  
  417. ## Daemon processes to be run by init.
  418. ##
  419. @@ -468,18 +380,6 @@
  420. # adbd on at boot in emulator
  421. on property:ro.kernel.qemu=1
  422. start adbd
  423. -
  424. -# This property trigger has added to imitiate the previous behavior of "adb root".
  425. -# The adb gadget driver used to reset the USB bus when the adbd daemon exited,
  426. -# and the host side adb relied on this behavior to force it to reconnect with the
  427. -# new adbd instance after init relaunches it. So now we force the USB bus to reset
  428. -# here when adbd sets the service.adb.root property to 1. We also restart adbd here
  429. -# rather than waiting for init to notice its death and restarting it so the timing
  430. -# of USB resetting and adb restarting more closely matches the previous behavior.
  431. -on property:service.adb.root=1
  432. - write /sys/class/android_usb/android0/enable 0
  433. - restart adbd
  434. - write /sys/class/android_usb/android0/enable 1
  435.  
  436. service servicemanager /system/bin/servicemanager
  437. class core
  438. @@ -500,11 +400,9 @@
  439. class main
  440. socket netd stream 0660 root system
  441. socket dnsproxyd stream 0660 root inet
  442. + socket mdns stream 0660 root system
  443.  
  444. service debuggerd /system/bin/debuggerd
  445. - class main
  446. -
  447. -service qmuxd /system/bin/qmuxd
  448. class main
  449.  
  450. service ril-daemon /system/bin/rild
  451. @@ -512,7 +410,7 @@
  452. socket rild stream 660 root radio
  453. socket rild-debug stream 660 radio system
  454. user root
  455. - group radio cache inet misc audio sdcard_rw qcom_oncrpc diag
  456. + group radio cache inet misc audio sdcard_r sdcard_rw qcom_oncrpc qcom_diag log
  457.  
  458. service surfaceflinger /system/bin/surfaceflinger
  459. class main
  460. @@ -522,7 +420,7 @@
  461.  
  462. service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
  463. class main
  464. - socket zygote stream 666
  465. + socket zygote stream 660 root system
  466. onrestart write /sys/android_power/request_state wake
  467. onrestart write /sys/power/state on
  468. onrestart restart media
  469. @@ -531,12 +429,12 @@
  470. service drm /system/bin/drmserver
  471. class main
  472. user drm
  473. - group system inet drmrpc
  474. + group drm system inet drmrpc sdcard_r
  475.  
  476. service media /system/bin/mediaserver
  477. class main
  478. user media
  479. - group audio camera inet net_bt net_bt_admin net_bw_acct drmrpc
  480. + group audio camera inet net_bt net_bt_admin net_bw_acct drmrpc qcom_diag
  481. ioprio rt 4
  482.  
  483. service bootanim /system/bin/bootanimation
  484. @@ -584,7 +482,7 @@
  485. service keystore /system/bin/keystore /data/misc/keystore
  486. class main
  487. user keystore
  488. - group keystore
  489. + group keystore drmrpc
  490. socket keystore stream 666
  491.  
  492. service dumpstate /system/bin/dumpstate -s
  493. @@ -593,13 +491,14 @@
  494. disabled
  495. oneshot
  496.  
  497. -#Orville,20101013
  498. -#service dbupgrade /system/bin/dbupgrade
  499. -# user root
  500. -# group root
  501. -# oneshot
  502. -
  503. -#service hitop /system/bin/hitop
  504. -# user root
  505. -# group root
  506. -# oneshot
  507. +service sshd /system/bin/start-ssh
  508. + class main
  509. + disabled
  510. +
  511. +service mdnsd /system/bin/mdnsd
  512. + class main
  513. + user mdnsr
  514. + group inet net_raw
  515. + socket mdnsd stream 0660 mdnsr inet
  516. + disabled
  517. + oneshot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement