Nick Kralevich | f3ef127 | 2012-03-14 15:22:54 -0700 | [diff] [blame] | 1 | # Copyright (C) 2012 The Android Open Source Project |
| 2 | # |
| 3 | # IMPORTANT: Do not create world writable files or directories. |
| 4 | # This is a common source of Android security bugs. |
| 5 | # |
| 6 | |
Dima Zavin | 7634bf8 | 2011-12-16 14:23:22 -0800 | [diff] [blame] | 7 | import /init.${ro.hardware}.rc |
Mike Lockwood | 4f5d517 | 2012-04-04 11:26:59 -0700 | [diff] [blame] | 8 | import /init.usb.rc |
Jamie Gennis | 1279013 | 2012-06-06 18:12:48 -0700 | [diff] [blame] | 9 | import /init.trace.rc |
Dima Zavin | 7634bf8 | 2011-12-16 14:23:22 -0800 | [diff] [blame] | 10 | |
Colin Cross | f83d0b9 | 2010-04-21 12:04:20 -0700 | [diff] [blame] | 11 | on early-init |
Dima Zavin | 4a25390 | 2011-11-04 12:45:52 -0700 | [diff] [blame] | 12 | # Set init and its forked children's oom_adj. |
| 13 | write /proc/1/oom_adj -16 |
| 14 | |
Stephen Smalley | 1eee419 | 2012-01-13 08:54:34 -0500 | [diff] [blame] | 15 | # Set the security context for the init process. |
| 16 | # This should occur before anything else (e.g. ueventd) is started. |
| 17 | setcon u:r:init:s0 |
| 18 | |
Colin Cross | f83d0b9 | 2010-04-21 12:04:20 -0700 | [diff] [blame] | 19 | start ueventd |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 20 | |
Mike Lockwood | a2dffa9 | 2010-06-15 20:57:59 -0700 | [diff] [blame] | 21 | # create mountpoints |
| 22 | mkdir /mnt 0775 root system |
| 23 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 24 | on init |
| 25 | |
| 26 | sysclktz 0 |
| 27 | |
| 28 | loglevel 3 |
| 29 | |
| 30 | # setup the global environment |
Brian Swetland | 02863b9 | 2010-09-19 03:36:39 -0700 | [diff] [blame] | 31 | export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin |
| 32 | export LD_LIBRARY_PATH /vendor/lib:/system/lib |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 33 | export ANDROID_BOOTLOGO 1 |
| 34 | export ANDROID_ROOT /system |
| 35 | export ANDROID_ASSETS /system/app |
| 36 | export ANDROID_DATA /data |
San Mehat | a9db22f | 2010-02-24 10:17:32 -0800 | [diff] [blame] | 37 | export ASEC_MOUNTPOINT /mnt/asec |
Kenny Root | c7858a3 | 2010-07-15 12:14:44 -0700 | [diff] [blame] | 38 | export LOOP_MOUNTPOINT /mnt/obb |
Wink Saville | de016ee | 2012-06-13 13:06:33 -0700 | [diff] [blame] | 39 | 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/telephony-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 40 | |
| 41 | # Backward compatibility |
| 42 | symlink /system/etc /etc |
Brian Swetland | bb6f68c | 2009-09-18 15:31:23 -0700 | [diff] [blame] | 43 | symlink /sys/kernel/debug /d |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 44 | |
Brian Swetland | 02863b9 | 2010-09-19 03:36:39 -0700 | [diff] [blame] | 45 | # Right now vendor lives on the same filesystem as system, |
| 46 | # but someday that may change. |
| 47 | symlink /system/vendor /vendor |
San Mehat | 6ea3cc6 | 2010-02-19 18:25:22 -0800 | [diff] [blame] | 48 | |
Mike Chan | 89f235c | 2010-03-01 11:36:10 -0800 | [diff] [blame] | 49 | # Create cgroup mount point for cpu accounting |
| 50 | mkdir /acct |
| 51 | mount cgroup none /acct cpuacct |
| 52 | mkdir /acct/uid |
| 53 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 54 | mkdir /system |
| 55 | mkdir /data 0771 system system |
| 56 | mkdir /cache 0770 system cache |
Dmitry Shmidt | 720f08f | 2009-06-09 14:38:56 -0700 | [diff] [blame] | 57 | mkdir /config 0500 root root |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 58 | |
San Mehat | 6ea3cc6 | 2010-02-19 18:25:22 -0800 | [diff] [blame] | 59 | # Directory for putting things only root should see. |
| 60 | mkdir /mnt/secure 0700 root root |
| 61 | |
| 62 | # Directory for staging bindmounts |
| 63 | mkdir /mnt/secure/staging 0700 root root |
| 64 | |
| 65 | # Directory-target for where the secure container |
| 66 | # imagefile directory will be bind-mounted |
| 67 | mkdir /mnt/secure/asec 0700 root root |
| 68 | |
| 69 | # Secure container public mount points. |
| 70 | mkdir /mnt/asec 0700 root system |
| 71 | mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000 |
San Mehat | 900570e | 2010-01-06 10:38:49 -0800 | [diff] [blame] | 72 | |
Kenny Root | c7858a3 | 2010-07-15 12:14:44 -0700 | [diff] [blame] | 73 | # Filesystem image public mount points. |
| 74 | mkdir /mnt/obb 0700 root system |
| 75 | mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000 |
| 76 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 77 | write /proc/sys/kernel/panic_on_oops 1 |
| 78 | write /proc/sys/kernel/hung_task_timeout_secs 0 |
| 79 | write /proc/cpu/alignment 4 |
| 80 | write /proc/sys/kernel/sched_latency_ns 10000000 |
| 81 | write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000 |
San Mehat | 4322f2d | 2009-06-29 08:47:43 -0700 | [diff] [blame] | 82 | write /proc/sys/kernel/sched_compat_yield 1 |
San Mehat | 7baff71 | 2009-09-16 13:32:23 -0700 | [diff] [blame] | 83 | write /proc/sys/kernel/sched_child_runs_first 0 |
Nick Kralevich | d707fb3 | 2011-10-06 11:47:11 -0700 | [diff] [blame] | 84 | write /proc/sys/kernel/randomize_va_space 2 |
Nick Kralevich | 2e7c833 | 2011-11-02 08:51:37 -0700 | [diff] [blame] | 85 | write /proc/sys/kernel/kptr_restrict 2 |
Nick Kralevich | f9557fb | 2011-11-08 14:38:53 -0800 | [diff] [blame] | 86 | write /proc/sys/kernel/dmesg_restrict 1 |
Nick Kralevich | 27cca21 | 2011-12-05 14:48:08 -0800 | [diff] [blame] | 87 | write /proc/sys/vm/mmap_min_addr 32768 |
Glenn Kasten | b91bd9f | 2012-04-19 16:18:37 -0700 | [diff] [blame] | 88 | write /proc/sys/kernel/sched_rt_runtime_us 950000 |
| 89 | write /proc/sys/kernel/sched_rt_period_us 1000000 |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 90 | |
San Mehat | 529520e | 2009-10-06 11:22:55 -0700 | [diff] [blame] | 91 | # Create cgroup mount points for process groups |
| 92 | mkdir /dev/cpuctl |
San Mehat | b91bf4b | 2010-02-27 08:20:11 -0800 | [diff] [blame] | 93 | mount cgroup none /dev/cpuctl cpu |
San Mehat | 92175e0 | 2010-01-17 12:21:42 -0800 | [diff] [blame] | 94 | chown system system /dev/cpuctl |
San Mehat | 529520e | 2009-10-06 11:22:55 -0700 | [diff] [blame] | 95 | chown system system /dev/cpuctl/tasks |
Glenn Kasten | b91bd9f | 2012-04-19 16:18:37 -0700 | [diff] [blame] | 96 | chmod 0660 /dev/cpuctl/tasks |
San Mehat | 529520e | 2009-10-06 11:22:55 -0700 | [diff] [blame] | 97 | write /dev/cpuctl/cpu.shares 1024 |
Glenn Kasten | b91bd9f | 2012-04-19 16:18:37 -0700 | [diff] [blame] | 98 | write /dev/cpuctl/cpu.rt_runtime_us 950000 |
| 99 | write /dev/cpuctl/cpu.rt_period_us 1000000 |
San Mehat | 529520e | 2009-10-06 11:22:55 -0700 | [diff] [blame] | 100 | |
Dima Zavin | df44b88 | 2012-06-04 10:45:15 -0700 | [diff] [blame] | 101 | mkdir /dev/cpuctl/apps |
| 102 | chown system system /dev/cpuctl/apps/tasks |
| 103 | chmod 0666 /dev/cpuctl/apps/tasks |
| 104 | write /dev/cpuctl/apps/cpu.shares 1024 |
Dima Zavin | 5f2d00b | 2012-06-04 13:15:01 -0700 | [diff] [blame] | 105 | write /dev/cpuctl/apps/cpu.rt_runtime_us 800000 |
Dima Zavin | df44b88 | 2012-06-04 10:45:15 -0700 | [diff] [blame] | 106 | write /dev/cpuctl/apps/cpu.rt_period_us 1000000 |
San Mehat | 529520e | 2009-10-06 11:22:55 -0700 | [diff] [blame] | 107 | |
Dima Zavin | df44b88 | 2012-06-04 10:45:15 -0700 | [diff] [blame] | 108 | mkdir /dev/cpuctl/apps/bg_non_interactive |
| 109 | chown system system /dev/cpuctl/apps/bg_non_interactive/tasks |
| 110 | chmod 0666 /dev/cpuctl/apps/bg_non_interactive/tasks |
San Mehat | 529520e | 2009-10-06 11:22:55 -0700 | [diff] [blame] | 111 | # 5.0 % |
Dima Zavin | df44b88 | 2012-06-04 10:45:15 -0700 | [diff] [blame] | 112 | write /dev/cpuctl/apps/bg_non_interactive/cpu.shares 52 |
Dima Zavin | 5f2d00b | 2012-06-04 13:15:01 -0700 | [diff] [blame] | 113 | write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_runtime_us 700000 |
Dima Zavin | df44b88 | 2012-06-04 10:45:15 -0700 | [diff] [blame] | 114 | write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_period_us 1000000 |
Glenn Kasten | b91bd9f | 2012-04-19 16:18:37 -0700 | [diff] [blame] | 115 | |
JP Abgrall | 8e3ff70 | 2011-09-11 16:12:27 -0700 | [diff] [blame] | 116 | # Allow everybody to read the xt_qtaguid resource tracking misc dev. |
| 117 | # This is needed by any process that uses socket tagging. |
| 118 | chmod 0644 /dev/xt_qtaguid |
| 119 | |
Colin Cross | 31712be | 2010-04-09 12:26:06 -0700 | [diff] [blame] | 120 | on fs |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 121 | # mount mtd partitions |
| 122 | # Mount /system rw first to give the filesystem a chance to save a checkpoint |
Chung-yih Wang | 1f75d70 | 2009-06-01 19:04:05 +0800 | [diff] [blame] | 123 | mount yaffs2 mtd@system /system |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 124 | mount yaffs2 mtd@system /system ro remount |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 125 | mount yaffs2 mtd@userdata /data nosuid nodev |
Colin Cross | 31712be | 2010-04-09 12:26:06 -0700 | [diff] [blame] | 126 | mount yaffs2 mtd@cache /cache nosuid nodev |
| 127 | |
| 128 | on post-fs |
Brian Swetland | 56de7a1 | 2010-09-08 15:06:45 -0700 | [diff] [blame] | 129 | # once everything is setup, no need to modify / |
| 130 | mount rootfs rootfs / ro remount |
| 131 | |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 132 | # We chown/chmod /cache again so because mount is run as root + defaults |
| 133 | chown system cache /cache |
| 134 | chmod 0770 /cache |
Stephen Smalley | 1eee419 | 2012-01-13 08:54:34 -0500 | [diff] [blame] | 135 | # We restorecon /cache in case the cache partition has been reset. |
| 136 | restorecon /cache |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 137 | |
| 138 | # This may have been created by the recovery system with odd permissions |
| 139 | chown system cache /cache/recovery |
| 140 | chmod 0770 /cache/recovery |
Stephen Smalley | 1eee419 | 2012-01-13 08:54:34 -0500 | [diff] [blame] | 141 | # This may have been created by the recovery system with the wrong context. |
| 142 | restorecon /cache/recovery |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 143 | |
| 144 | #change permissions on vmallocinfo so we can grab it from bugreports |
| 145 | chown root log /proc/vmallocinfo |
| 146 | chmod 0440 /proc/vmallocinfo |
| 147 | |
| 148 | #change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks |
| 149 | chown root system /proc/kmsg |
| 150 | chmod 0440 /proc/kmsg |
| 151 | chown root system /proc/sysrq-trigger |
| 152 | chmod 0220 /proc/sysrq-trigger |
| 153 | |
| 154 | # create the lost+found directories, so as to enforce our permissions |
Chia-chi Yeh | ea74414 | 2011-07-08 16:52:18 -0700 | [diff] [blame] | 155 | mkdir /cache/lost+found 0770 root root |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 156 | |
| 157 | on post-fs-data |
Colin Cross | 31712be | 2010-04-09 12:26:06 -0700 | [diff] [blame] | 158 | # We chown/chmod /data again so because mount is run as root + defaults |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 159 | chown system system /data |
| 160 | chmod 0771 /data |
Stephen Smalley | 1eee419 | 2012-01-13 08:54:34 -0500 | [diff] [blame] | 161 | # We restorecon /data in case the userdata partition has been reset. |
| 162 | restorecon /data |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 163 | |
San Mehat | f26d6ce | 2009-09-01 09:11:04 -0700 | [diff] [blame] | 164 | # Create dump dir and collect dumps. |
| 165 | # Do this before we mount cache so eventually we can use cache for |
| 166 | # storing dumps on platforms which do not have a dedicated dump partition. |
Chia-chi Yeh | ea74414 | 2011-07-08 16:52:18 -0700 | [diff] [blame] | 167 | mkdir /data/dontpanic 0750 root log |
San Mehat | f26d6ce | 2009-09-01 09:11:04 -0700 | [diff] [blame] | 168 | |
| 169 | # Collect apanic data, free resources and re-arm trigger |
| 170 | copy /proc/apanic_console /data/dontpanic/apanic_console |
Mike Lockwood | 25f1a5a | 2009-09-11 17:13:28 -0400 | [diff] [blame] | 171 | chown root log /data/dontpanic/apanic_console |
Mike Lockwood | 9332482 | 2009-09-08 22:55:59 -0400 | [diff] [blame] | 172 | chmod 0640 /data/dontpanic/apanic_console |
San Mehat | 020f35f | 2009-09-01 15:38:18 -0700 | [diff] [blame] | 173 | |
San Mehat | f26d6ce | 2009-09-01 09:11:04 -0700 | [diff] [blame] | 174 | copy /proc/apanic_threads /data/dontpanic/apanic_threads |
Mike Lockwood | 25f1a5a | 2009-09-11 17:13:28 -0400 | [diff] [blame] | 175 | chown root log /data/dontpanic/apanic_threads |
Mike Lockwood | 9332482 | 2009-09-08 22:55:59 -0400 | [diff] [blame] | 176 | chmod 0640 /data/dontpanic/apanic_threads |
San Mehat | 020f35f | 2009-09-01 15:38:18 -0700 | [diff] [blame] | 177 | |
San Mehat | f26d6ce | 2009-09-01 09:11:04 -0700 | [diff] [blame] | 178 | write /proc/apanic_console 1 |
| 179 | |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 180 | # create basic filesystem structure |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 181 | mkdir /data/misc 01771 system misc |
Jaikumar Ganesh | 1d36696 | 2009-05-05 22:28:54 -0700 | [diff] [blame] | 182 | mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth |
Jaikumar Ganesh | eafdd86 | 2010-01-07 20:24:55 -0800 | [diff] [blame] | 183 | mkdir /data/misc/bluetooth 0770 system system |
Chia-chi Yeh | 9b4f1ff | 2009-09-18 10:35:26 +0800 | [diff] [blame] | 184 | mkdir /data/misc/keystore 0700 keystore keystore |
Brian Carlstrom | 0491893 | 2011-06-30 22:50:29 -0700 | [diff] [blame] | 185 | mkdir /data/misc/keychain 0771 system system |
Chia-chi Yeh | 9bb4d41 | 2011-07-08 20:03:03 -0700 | [diff] [blame] | 186 | mkdir /data/misc/vpn 0770 system vpn |
Oscar Montemayor | d0aa32c | 2010-01-06 13:18:12 -0800 | [diff] [blame] | 187 | mkdir /data/misc/systemkeys 0700 system system |
Mike Lockwood | 48d116e | 2009-07-08 18:42:08 -0400 | [diff] [blame] | 188 | # give system access to wpa_supplicant.conf for backup and restore |
| 189 | mkdir /data/misc/wifi 0770 wifi wifi |
Amith Yamasani | eefef32 | 2009-07-02 12:08:13 -0700 | [diff] [blame] | 190 | chmod 0660 /data/misc/wifi/wpa_supplicant.conf |
Chia-chi Yeh | 5ebced3 | 2012-03-07 14:52:10 -0800 | [diff] [blame] | 191 | mkdir /data/local 0751 root root |
Nick Kralevich | f3ef127 | 2012-03-14 15:22:54 -0700 | [diff] [blame] | 192 | |
| 193 | # For security reasons, /data/local/tmp should always be empty. |
| 194 | # Do not place files or directories in /data/local/tmp |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 195 | mkdir /data/local/tmp 0771 shell shell |
| 196 | mkdir /data/data 0771 system system |
| 197 | mkdir /data/app-private 0771 system system |
Kenny Root | f8bbaba | 2012-04-12 15:01:52 -0700 | [diff] [blame] | 198 | mkdir /data/app-asec 0700 root root |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 199 | mkdir /data/app 0771 system system |
| 200 | mkdir /data/property 0700 root root |
Mike Lockwood | 9dd2eef | 2011-12-11 20:25:16 -0800 | [diff] [blame] | 201 | mkdir /data/ssh 0750 root shell |
| 202 | mkdir /data/ssh/empty 0700 root root |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 203 | |
Chia-chi Yeh | ea74414 | 2011-07-08 16:52:18 -0700 | [diff] [blame] | 204 | # create dalvik-cache, so as to enforce our permissions |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 205 | mkdir /data/dalvik-cache 0771 system system |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 206 | |
MÃ¥rten Kongstad | b45280d | 2011-05-30 10:24:54 +0200 | [diff] [blame] | 207 | # create resource-cache and double-check the perms |
| 208 | mkdir /data/resource-cache 0771 system system |
| 209 | chown system system /data/resource-cache |
| 210 | chmod 0771 /data/resource-cache |
| 211 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 212 | # create the lost+found directories, so as to enforce our permissions |
Chia-chi Yeh | ea74414 | 2011-07-08 16:52:18 -0700 | [diff] [blame] | 213 | mkdir /data/lost+found 0770 root root |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 214 | |
James Dong | 09cdc0e | 2012-01-06 15:19:26 -0800 | [diff] [blame] | 215 | # create directory for DRM plug-ins - give drm the read/write access to |
| 216 | # the following directory. |
| 217 | mkdir /data/drm 0770 drm drm |
aimitakeshi | e572d59 | 2010-07-27 08:38:35 +0900 | [diff] [blame] | 218 | |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 219 | # If there is no fs-post-data action in the init.<device>.rc file, you |
| 220 | # must uncomment this line, otherwise encrypted filesystems |
| 221 | # won't work. |
| 222 | # Set indication (checked by vold) that we have finished this action |
| 223 | #setprop vold.post_fs_data_done 1 |
| 224 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 225 | on boot |
| 226 | # basic network init |
| 227 | ifup lo |
| 228 | hostname localhost |
| 229 | domainname localdomain |
| 230 | |
| 231 | # set RLIMIT_NICE to allow priorities from 19 to -20 |
| 232 | setrlimit 13 40 40 |
| 233 | |
Dianne Hackborn | 06787f4 | 2011-08-07 16:30:24 -0700 | [diff] [blame] | 234 | # Memory management. Basic kernel parameters, and allow the high |
| 235 | # level system server to be able to adjust the kernel OOM driver |
Glenn Kasten | b91bd9f | 2012-04-19 16:18:37 -0700 | [diff] [blame] | 236 | # parameters to match how it is managing things. |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 237 | write /proc/sys/vm/overcommit_memory 1 |
The Android Open Source Project | e037fd7 | 2009-03-13 13:04:37 -0700 | [diff] [blame] | 238 | write /proc/sys/vm/min_free_order_shift 4 |
Dianne Hackborn | 06787f4 | 2011-08-07 16:30:24 -0700 | [diff] [blame] | 239 | chown root system /sys/module/lowmemorykiller/parameters/adj |
| 240 | chmod 0664 /sys/module/lowmemorykiller/parameters/adj |
| 241 | chown root system /sys/module/lowmemorykiller/parameters/minfree |
| 242 | chmod 0664 /sys/module/lowmemorykiller/parameters/minfree |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 243 | |
San Mehat | 831d8e1 | 2009-10-13 12:24:47 -0700 | [diff] [blame] | 244 | # Tweak background writeout |
| 245 | write /proc/sys/vm/dirty_expire_centisecs 200 |
| 246 | write /proc/sys/vm/dirty_background_ratio 5 |
| 247 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 248 | # Permissions for System Server and daemons. |
| 249 | chown radio system /sys/android_power/state |
| 250 | chown radio system /sys/android_power/request_state |
| 251 | chown radio system /sys/android_power/acquire_full_wake_lock |
| 252 | chown radio system /sys/android_power/acquire_partial_wake_lock |
| 253 | chown radio system /sys/android_power/release_wake_lock |
Arve Hjønnevåg | 1670f83 | 2012-03-20 20:33:09 -0700 | [diff] [blame] | 254 | chown system system /sys/power/state |
| 255 | chown system system /sys/power/wakeup_count |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 256 | chown radio system /sys/power/wake_lock |
| 257 | chown radio system /sys/power/wake_unlock |
| 258 | chmod 0660 /sys/power/state |
| 259 | chmod 0660 /sys/power/wake_lock |
| 260 | chmod 0660 /sys/power/wake_unlock |
Todd Poynor | 0653b97 | 2012-04-11 14:48:51 -0700 | [diff] [blame] | 261 | |
| 262 | chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate |
| 263 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate |
| 264 | chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time |
| 265 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time |
| 266 | chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq |
| 267 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq |
| 268 | chown system system /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load |
| 269 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load |
Todd Poynor | f35c203 | 2012-04-19 13:17:24 -0700 | [diff] [blame] | 270 | chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay |
| 271 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay |
Todd Poynor | 8d3ea1d | 2012-04-24 15:37:13 -0700 | [diff] [blame] | 272 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boost |
| 273 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boost |
Todd Poynor | 4ff10e6 | 2012-05-03 15:20:48 -0700 | [diff] [blame] | 274 | chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse |
Todd Poynor | 33045a6 | 2012-04-27 20:21:18 -0700 | [diff] [blame] | 275 | chown system system /sys/devices/system/cpu/cpufreq/interactive/input_boost |
| 276 | chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/input_boost |
Todd Poynor | 0653b97 | 2012-04-11 14:48:51 -0700 | [diff] [blame] | 277 | |
| 278 | # Assume SMP uses shared cpufreq policy for all CPUs |
| 279 | chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq |
| 280 | chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq |
| 281 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 282 | chown system system /sys/class/timed_output/vibrator/enable |
| 283 | chown system system /sys/class/leds/keyboard-backlight/brightness |
| 284 | chown system system /sys/class/leds/lcd-backlight/brightness |
| 285 | chown system system /sys/class/leds/button-backlight/brightness |
The Android Open Source Project | f614d64 | 2009-03-18 17:39:49 -0700 | [diff] [blame] | 286 | chown system system /sys/class/leds/jogball-backlight/brightness |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 287 | chown system system /sys/class/leds/red/brightness |
| 288 | chown system system /sys/class/leds/green/brightness |
| 289 | chown system system /sys/class/leds/blue/brightness |
| 290 | chown system system /sys/class/leds/red/device/grpfreq |
| 291 | chown system system /sys/class/leds/red/device/grppwm |
| 292 | chown system system /sys/class/leds/red/device/blink |
| 293 | chown system system /sys/class/leds/red/brightness |
| 294 | chown system system /sys/class/leds/green/brightness |
| 295 | chown system system /sys/class/leds/blue/brightness |
| 296 | chown system system /sys/class/leds/red/device/grpfreq |
| 297 | chown system system /sys/class/leds/red/device/grppwm |
| 298 | chown system system /sys/class/leds/red/device/blink |
| 299 | chown system system /sys/class/timed_output/vibrator/enable |
| 300 | chown system system /sys/module/sco/parameters/disable_esco |
| 301 | chown system system /sys/kernel/ipv4/tcp_wmem_min |
| 302 | chown system system /sys/kernel/ipv4/tcp_wmem_def |
| 303 | chown system system /sys/kernel/ipv4/tcp_wmem_max |
| 304 | chown system system /sys/kernel/ipv4/tcp_rmem_min |
| 305 | chown system system /sys/kernel/ipv4/tcp_rmem_def |
| 306 | chown system system /sys/kernel/ipv4/tcp_rmem_max |
| 307 | chown root radio /proc/cmdline |
| 308 | |
| 309 | # Define TCP buffer sizes for various networks |
| 310 | # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax, |
| 311 | setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208 |
Robert Greenwalt | 1ac40f4 | 2011-09-07 15:40:26 -0700 | [diff] [blame] | 312 | setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576 |
| 313 | setprop net.tcp.buffersize.lte 524288,1048576,2097152,262144,524288,1048576 |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 314 | setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208 |
sinikang | aa75df7 | 2011-10-16 12:32:13 -0700 | [diff] [blame] | 315 | setprop net.tcp.buffersize.hspa 4094,87380,262144,4096,16384,262144 |
Naveen Kalla | e8b76a3 | 2012-07-26 00:26:13 -0700 | [diff] [blame] | 316 | setprop net.tcp.buffersize.hsupa 4094,87380,262144,4096,16384,262144 |
| 317 | setprop net.tcp.buffersize.hsdpa 4094,87380,262144,4096,16384,262144 |
| 318 | setprop net.tcp.buffersize.hspap 4094,87380,1220608,4096,16384,1220608 |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 319 | setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040 |
| 320 | setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680 |
Naveen Kalla | e8b76a3 | 2012-07-26 00:26:13 -0700 | [diff] [blame] | 321 | setprop net.tcp.buffersize.evdo 4094,87380,262144,4096,16384,262144 |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 322 | |
Mathias Agopian | a40481b | 2011-03-03 18:48:30 -0800 | [diff] [blame] | 323 | # Set this property so surfaceflinger is not started by system_init |
| 324 | setprop system_init.startsurfaceflinger 0 |
| 325 | |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 326 | class_start core |
| 327 | class_start main |
| 328 | |
| 329 | on nonencrypted |
| 330 | class_start late_start |
| 331 | |
Dima Zavin | ca47cef | 2011-08-24 15:28:23 -0700 | [diff] [blame] | 332 | on charger |
| 333 | class_start charger |
| 334 | |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 335 | on property:vold.decrypt=trigger_reset_main |
| 336 | class_reset main |
| 337 | |
Ken Sumrall | c5c5103 | 2011-03-08 17:01:29 -0800 | [diff] [blame] | 338 | on property:vold.decrypt=trigger_load_persist_props |
| 339 | load_persist_props |
| 340 | |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 341 | on property:vold.decrypt=trigger_post_fs_data |
| 342 | trigger post-fs-data |
| 343 | |
Ken Sumrall | e434915 | 2011-01-17 14:26:34 -0800 | [diff] [blame] | 344 | on property:vold.decrypt=trigger_restart_min_framework |
| 345 | class_start main |
| 346 | |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 347 | on property:vold.decrypt=trigger_restart_framework |
| 348 | class_start main |
| 349 | class_start late_start |
| 350 | |
| 351 | on property:vold.decrypt=trigger_shutdown_framework |
| 352 | class_reset late_start |
| 353 | class_reset main |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 354 | |
| 355 | ## Daemon processes to be run by init. |
| 356 | ## |
Colin Cross | f83d0b9 | 2010-04-21 12:04:20 -0700 | [diff] [blame] | 357 | service ueventd /sbin/ueventd |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 358 | class core |
Colin Cross | f83d0b9 | 2010-04-21 12:04:20 -0700 | [diff] [blame] | 359 | critical |
Stephen Smalley | 1eee419 | 2012-01-13 08:54:34 -0500 | [diff] [blame] | 360 | seclabel u:r:ueventd:s0 |
Colin Cross | f83d0b9 | 2010-04-21 12:04:20 -0700 | [diff] [blame] | 361 | |
Stephen Smalley | ae6f3d7 | 2012-05-01 15:02:53 -0400 | [diff] [blame] | 362 | on property:selinux.reload_policy=1 |
| 363 | restart ueventd |
| 364 | restart installd |
| 365 | |
Brian Swetland | b4d6539 | 2010-10-27 15:40:23 -0700 | [diff] [blame] | 366 | service console /system/bin/sh |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 367 | class core |
Brian Swetland | b4d6539 | 2010-10-27 15:40:23 -0700 | [diff] [blame] | 368 | console |
| 369 | disabled |
| 370 | user shell |
| 371 | group log |
| 372 | |
Mike Lockwood | d49b4ef | 2010-11-19 09:12:27 -0500 | [diff] [blame] | 373 | on property:ro.debuggable=1 |
Brian Swetland | b4d6539 | 2010-10-27 15:40:23 -0700 | [diff] [blame] | 374 | start console |
| 375 | |
Mike Lockwood | 352dfdf | 2011-06-08 17:40:00 -0700 | [diff] [blame] | 376 | # adbd is controlled via property triggers in init.<platform>.usb.rc |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 377 | service adbd /sbin/adbd |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 378 | class core |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 379 | disabled |
Stephen Smalley | 1eee419 | 2012-01-13 08:54:34 -0500 | [diff] [blame] | 380 | seclabel u:r:adbd:s0 |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 381 | |
| 382 | # adbd on at boot in emulator |
| 383 | on property:ro.kernel.qemu=1 |
| 384 | start adbd |
| 385 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 386 | service servicemanager /system/bin/servicemanager |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 387 | class core |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 388 | user system |
Nick Kralevich | 333f24b | 2010-12-10 14:10:16 -0800 | [diff] [blame] | 389 | group system |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 390 | critical |
| 391 | onrestart restart zygote |
| 392 | onrestart restart media |
Mathias Agopian | 04a8759 | 2011-10-31 14:27:36 -0700 | [diff] [blame] | 393 | onrestart restart surfaceflinger |
| 394 | onrestart restart drm |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 395 | |
The Android Open Source Project | e4749f3 | 2009-03-09 11:52:15 -0700 | [diff] [blame] | 396 | service vold /system/bin/vold |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 397 | class core |
The Android Open Source Project | e4749f3 | 2009-03-09 11:52:15 -0700 | [diff] [blame] | 398 | socket vold stream 0660 root mount |
San Mehat | f0cb74e | 2010-02-26 10:01:14 -0800 | [diff] [blame] | 399 | ioprio be 2 |
The Android Open Source Project | e4749f3 | 2009-03-09 11:52:15 -0700 | [diff] [blame] | 400 | |
San Mehat | 192277c | 2010-01-15 07:48:35 -0800 | [diff] [blame] | 401 | service netd /system/bin/netd |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 402 | class main |
San Mehat | 192277c | 2010-01-15 07:48:35 -0800 | [diff] [blame] | 403 | socket netd stream 0660 root system |
Brad Fitzpatrick | 8c5669f | 2010-10-27 10:23:16 -0700 | [diff] [blame] | 404 | socket dnsproxyd stream 0660 root inet |
Robert Greenwalt | 1d91fcf | 2012-03-27 16:59:27 -0700 | [diff] [blame] | 405 | socket mdns stream 0660 root system |
San Mehat | 192277c | 2010-01-15 07:48:35 -0800 | [diff] [blame] | 406 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 407 | service debuggerd /system/bin/debuggerd |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 408 | class main |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 409 | |
| 410 | service ril-daemon /system/bin/rild |
vidya rao | 04cf629 | 2011-06-24 12:15:20 -0700 | [diff] [blame] | 411 | class main |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 412 | socket rild stream 660 root radio |
| 413 | socket rild-debug stream 660 radio system |
| 414 | user root |
Jeff Sharkey | 55b763f | 2012-07-13 11:21:14 -0700 | [diff] [blame] | 415 | group radio cache inet misc audio sdcard_r sdcard_rw log |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 416 | |
Mathias Agopian | a40481b | 2011-03-03 18:48:30 -0800 | [diff] [blame] | 417 | service surfaceflinger /system/bin/surfaceflinger |
| 418 | class main |
| 419 | user system |
| 420 | group graphics |
| 421 | onrestart restart zygote |
| 422 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 423 | service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 424 | class main |
Nick Kralevich | e7fd911 | 2012-01-27 13:06:53 -0800 | [diff] [blame] | 425 | socket zygote stream 660 root system |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 426 | onrestart write /sys/android_power/request_state wake |
| 427 | onrestart write /sys/power/state on |
Dan Bornstein | 1dec503 | 2009-10-09 14:24:51 -0700 | [diff] [blame] | 428 | onrestart restart media |
Brad Fitzpatrick | 6490257 | 2010-09-21 15:49:06 -0700 | [diff] [blame] | 429 | onrestart restart netd |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 430 | |
aimitakeshi | e572d59 | 2010-07-27 08:38:35 +0900 | [diff] [blame] | 431 | service drm /system/bin/drmserver |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 432 | class main |
aimitakeshi | e572d59 | 2010-07-27 08:38:35 +0900 | [diff] [blame] | 433 | user drm |
Jeff Tinker | 65f1fbc | 2012-04-30 22:03:14 -0700 | [diff] [blame] | 434 | group drm system inet drmrpc sdcard_r |
aimitakeshi | e572d59 | 2010-07-27 08:38:35 +0900 | [diff] [blame] | 435 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 436 | service media /system/bin/mediaserver |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 437 | class main |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 438 | user media |
Jeffrey Tinker | 65c4df5 | 2011-10-06 18:19:46 -0700 | [diff] [blame] | 439 | group audio camera inet net_bt net_bt_admin net_bw_acct drmrpc |
San Mehat | f0cb74e | 2010-02-26 10:01:14 -0800 | [diff] [blame] | 440 | ioprio rt 4 |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 441 | |
Mathias Agopian | 8b2cf9f | 2009-05-20 18:09:51 -0700 | [diff] [blame] | 442 | service bootanim /system/bin/bootanimation |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 443 | class main |
Mathias Agopian | 8b2cf9f | 2009-05-20 18:09:51 -0700 | [diff] [blame] | 444 | user graphics |
| 445 | group graphics |
| 446 | disabled |
| 447 | oneshot |
| 448 | |
Jaikumar Ganesh | 1320687 | 2009-09-18 15:45:43 -0700 | [diff] [blame] | 449 | service dbus /system/bin/dbus-daemon --system --nofork |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 450 | class main |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 451 | socket dbus stream 660 bluetooth bluetooth |
| 452 | user bluetooth |
| 453 | group bluetooth net_bt_admin |
| 454 | |
Jaikumar Ganesh | 1320687 | 2009-09-18 15:45:43 -0700 | [diff] [blame] | 455 | service bluetoothd /system/bin/bluetoothd -n |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 456 | class main |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 457 | socket bluetooth stream 660 bluetooth bluetooth |
| 458 | socket dbus_bluetooth stream 660 bluetooth bluetooth |
| 459 | # init.rc does not yet support applying capabilities, so run as root and |
Jaikumar Ganesh | 1d36696 | 2009-05-05 22:28:54 -0700 | [diff] [blame] | 460 | # let bluetoothd drop uid to bluetooth with the right linux capabilities |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 461 | group bluetooth net_bt_admin misc |
| 462 | disabled |
| 463 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 464 | service installd /system/bin/installd |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 465 | class main |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 466 | socket installd stream 600 system system |
| 467 | |
Doug Zongker | d52f54c | 2009-07-23 15:18:34 -0700 | [diff] [blame] | 468 | service flash_recovery /system/etc/install-recovery.sh |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 469 | class main |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 470 | oneshot |
Chung-yih Wang | 1f75d70 | 2009-06-01 19:04:05 +0800 | [diff] [blame] | 471 | |
Chia-chi Yeh | 51afbf5 | 2009-07-01 07:06:47 +0800 | [diff] [blame] | 472 | service racoon /system/bin/racoon |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 473 | class main |
Chung-yih Wang | 1f75d70 | 2009-06-01 19:04:05 +0800 | [diff] [blame] | 474 | socket racoon stream 600 system system |
Chia-chi Yeh | 9bb4d41 | 2011-07-08 20:03:03 -0700 | [diff] [blame] | 475 | # IKE uses UDP port 500. Racoon will setuid to vpn after binding the port. |
Chia-chi Yeh | a246871 | 2011-08-08 10:11:40 -0700 | [diff] [blame] | 476 | group vpn net_admin inet |
Chung-yih Wang | 1f75d70 | 2009-06-01 19:04:05 +0800 | [diff] [blame] | 477 | disabled |
| 478 | oneshot |
| 479 | |
| 480 | service mtpd /system/bin/mtpd |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 481 | class main |
Chung-yih Wang | 1f75d70 | 2009-06-01 19:04:05 +0800 | [diff] [blame] | 482 | socket mtpd stream 600 system system |
Chia-chi Yeh | 51afbf5 | 2009-07-01 07:06:47 +0800 | [diff] [blame] | 483 | user vpn |
Chia-chi Yeh | a246871 | 2011-08-08 10:11:40 -0700 | [diff] [blame] | 484 | group vpn net_admin inet net_raw |
Chung-yih Wang | 1f75d70 | 2009-06-01 19:04:05 +0800 | [diff] [blame] | 485 | disabled |
| 486 | oneshot |
| 487 | |
Chia-chi Yeh | 9b4f1ff | 2009-09-18 10:35:26 +0800 | [diff] [blame] | 488 | service keystore /system/bin/keystore /data/misc/keystore |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 489 | class main |
Chung-yih Wang | 1f75d70 | 2009-06-01 19:04:05 +0800 | [diff] [blame] | 490 | user keystore |
Kenny Root | ad5b9c7 | 2012-02-23 16:31:10 -0800 | [diff] [blame] | 491 | group keystore drmrpc |
Chung-yih Wang | 1f75d70 | 2009-06-01 19:04:05 +0800 | [diff] [blame] | 492 | socket keystore stream 666 |
| 493 | |
Mike Lockwood | abe3a9c | 2009-09-02 18:09:26 -0400 | [diff] [blame] | 494 | service dumpstate /system/bin/dumpstate -s |
Ken Sumrall | 752923c | 2010-12-03 16:33:31 -0800 | [diff] [blame] | 495 | class main |
Mike Lockwood | abe3a9c | 2009-09-02 18:09:26 -0400 | [diff] [blame] | 496 | socket dumpstate stream 0660 shell log |
| 497 | disabled |
| 498 | oneshot |
Mike Lockwood | 9dd2eef | 2011-12-11 20:25:16 -0800 | [diff] [blame] | 499 | |
| 500 | service sshd /system/bin/start-ssh |
| 501 | class main |
Mike Lockwood | 19155b5 | 2012-03-21 11:58:05 -0700 | [diff] [blame] | 502 | disabled |
Robert Greenwalt | 1d91fcf | 2012-03-27 16:59:27 -0700 | [diff] [blame] | 503 | |
| 504 | service mdnsd /system/bin/mdnsd |
| 505 | class main |
| 506 | user mdnsr |
| 507 | group inet net_raw |
| 508 | socket mdnsd stream 0660 mdnsr inet |
| 509 | disabled |
| 510 | oneshot |