| kyoungheon | c46b48b | 2010-08-18 15:07:38 -0700 | [diff] [blame] | 1 | on boot |
| Brian Swetland | ec04e35 | 2010-09-19 06:34:17 -0700 | [diff] [blame] | 2 | mount debugfs /sys/kernel/debug /sys/kernel/debug |
| 3 | |
| Brian Swetland | 921f0de | 2010-09-20 17:06:13 -0700 | [diff] [blame] | 4 | setprop ro.build.product herring |
| 5 | setprop ro.product.device herring |
| kyoungheon | c46b48b | 2010-08-18 15:07:38 -0700 | [diff] [blame] | 6 | setprop ro.radio.noril yes |
| hyungseoung.yoo | 7f217b6 | 2010-09-15 12:47:10 -0700 | [diff] [blame] | 7 | setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" |
| kyoungheon | c46b48b | 2010-08-18 15:07:38 -0700 | [diff] [blame] | 8 | |
| 9 | # fake some battery state |
| 10 | setprop status.battery.state Slow |
| 11 | setprop status.battery.level 5 |
| 12 | setprop status.battery.level_raw 50 |
| 13 | setprop status.battery.level_scale 9 |
| 14 | |
| JIKWANG KANG | 44732f1 | 2010-08-31 12:42:55 -0700 | [diff] [blame] | 15 | # wi-fi |
| 16 | mkdir /data/misc/wifi/sockets 0770 wifi wifi |
| 17 | mkdir /data/misc/dhcp 0770 dhcp dhcp |
| 18 | |
| Ed Heyl | eb722dd | 2010-09-07 18:13:41 -0700 | [diff] [blame] | 19 | # phone |
| JIKWANG KANG | 94e2554 | 2010-09-22 20:12:55 -0700 | [diff] [blame] | 20 | setprop ro.telephony.call_ring.multiple 0 |
| Ed Heyl | eb722dd | 2010-09-07 18:13:41 -0700 | [diff] [blame] | 21 | |
| Ed Heyl | 0f26a39 | 2010-09-02 11:40:57 -0700 | [diff] [blame] | 22 | # create data/gps for GPS demon |
| Alexy Shin | a8be4ac | 2010-10-09 04:09:22 +0900 | [diff] [blame] | 23 | mkdir /data/gps 700 gps system |
| 24 | chown gps system /data/gps |
| 25 | chown gps root /sys/class/sec/gps/GPS_PWR_EN/value |
| Brian Swetland | ff8195d | 2010-10-08 19:02:51 -0700 | [diff] [blame^] | 26 | chmod 660 /sys/class/sec/gps/GPS_PWR_EN/value |
| hyungseoung.yoo | 393fc37 | 2010-09-02 22:50:35 +0900 | [diff] [blame] | 27 | |
| Mike J. Chen | ac9a9cd | 2010-09-11 22:16:37 -0700 | [diff] [blame] | 28 | # sensors sysfs attributes. input devices are created dynamically |
| 29 | # so we can't be sure which is which. this is a bit of a hack until |
| 30 | # (and if) init is modified to handle uevents (or ueventd is modified |
| 31 | # to support sysfs). |
| 32 | chown input input /sys/class/input/event0/device/enable |
| 33 | chown input input /sys/class/input/event1/device/enable |
| 34 | chown input input /sys/class/input/event2/device/enable |
| 35 | chown input input /sys/class/input/event3/device/enable |
| 36 | chown input input /sys/class/input/event4/device/enable |
| 37 | chown input input /sys/class/input/event5/device/enable |
| 38 | chown input input /sys/class/input/event6/device/enable |
| 39 | chown input input /sys/class/input/event7/device/enable |
| 40 | chown input input /sys/class/input/event8/device/enable |
| 41 | chown input input /sys/class/input/event9/device/enable |
| 42 | chmod 660 /sys/class/input/event0/device/enable |
| 43 | chmod 660 /sys/class/input/event1/device/enable |
| 44 | chmod 660 /sys/class/input/event2/device/enable |
| 45 | chmod 660 /sys/class/input/event3/device/enable |
| 46 | chmod 660 /sys/class/input/event4/device/enable |
| 47 | chmod 660 /sys/class/input/event5/device/enable |
| 48 | chmod 660 /sys/class/input/event6/device/enable |
| 49 | chmod 660 /sys/class/input/event7/device/enable |
| 50 | chmod 660 /sys/class/input/event8/device/enable |
| 51 | chmod 660 /sys/class/input/event9/device/enable |
| 52 | chown input input /sys/class/input/event0/device/poll_delay |
| 53 | chown input input /sys/class/input/event1/device/poll_delay |
| 54 | chown input input /sys/class/input/event2/device/poll_delay |
| 55 | chown input input /sys/class/input/event3/device/poll_delay |
| 56 | chown input input /sys/class/input/event4/device/poll_delay |
| 57 | chown input input /sys/class/input/event5/device/poll_delay |
| 58 | chown input input /sys/class/input/event6/device/poll_delay |
| 59 | chown input input /sys/class/input/event7/device/poll_delay |
| 60 | chown input input /sys/class/input/event9/device/poll_delay |
| 61 | chown input input /sys/class/input/event9/device/poll_delay |
| 62 | chmod 660 /sys/class/input/event0/device/poll_delay |
| 63 | chmod 660 /sys/class/input/event1/device/poll_delay |
| 64 | chmod 660 /sys/class/input/event2/device/poll_delay |
| 65 | chmod 660 /sys/class/input/event3/device/poll_delay |
| 66 | chmod 660 /sys/class/input/event4/device/poll_delay |
| 67 | chmod 660 /sys/class/input/event5/device/poll_delay |
| 68 | chmod 660 /sys/class/input/event6/device/poll_delay |
| 69 | chmod 660 /sys/class/input/event7/device/poll_delay |
| 70 | chmod 660 /sys/class/input/event9/device/poll_delay |
| 71 | chmod 660 /sys/class/input/event9/device/poll_delay |
| 72 | |
| Jeong-Seok Yang | 7562f3f | 2010-09-07 22:08:26 -0700 | [diff] [blame] | 73 | on fs |
| 74 | mkdir /efs 0775 radio radio |
| 75 | mount yaffs2 mtd@efs /efs nosuid nodev |
| Brian Swetland | 921f0de | 2010-09-20 17:06:13 -0700 | [diff] [blame] | 76 | mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/system /system wait ro |
| Brian Swetland | 6404048 | 2010-10-06 16:44:47 -0700 | [diff] [blame] | 77 | mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/userdata /data wait noatime nosuid nodev |
| Choi jonghwan | 043350a | 2010-09-05 19:41:25 -0700 | [diff] [blame] | 78 | |
| hyungseoung.yoo | 393fc37 | 2010-09-02 22:50:35 +0900 | [diff] [blame] | 79 | # permissions for bluetooth. |
| 80 | chown bluetooth bluetooth ro.bt.bdaddr_path |
| 81 | chown bluetooth bluetooth /dev/s3c2410_serial0 |
| 82 | chmod 0600 /dev/s3c2410_serial0 |
| 83 | chmod 0660 /sys/class/rfkill/rfkill0/state |
| 84 | chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state |
| 85 | chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type |
| 86 | |
| Nick Pelly | 5cc7d64 | 2010-09-03 17:22:42 -0700 | [diff] [blame] | 87 | # permissions for NFC |
| 88 | setprop ro.nfc.port "I2C" |
| 89 | chmod 0666 /dev/pn544 |
| 90 | |
| Jeong-Seok Yang | 7562f3f | 2010-09-07 22:08:26 -0700 | [diff] [blame] | 91 | # Permissions for System Server and daemons. |
| 92 | chown system system /sys/class/backlight/s5p_bl/brightness |
| 93 | |
| Brian Swetland | 43a841e | 2010-09-21 15:50:50 -0700 | [diff] [blame] | 94 | service gpsd /system/vendor/bin/gpsd -c /vendor/etc/gps.xml |
| Alexy Shin | a8be4ac | 2010-10-09 04:09:22 +0900 | [diff] [blame] | 95 | socket gps seqpacket 0660 gps system |
| 96 | user gps |
| 97 | group inet |
| Jeong-Seok Yang | 7562f3f | 2010-09-07 22:08:26 -0700 | [diff] [blame] | 98 | |
| Brian Swetland | 86304be | 2010-09-15 16:13:20 -0700 | [diff] [blame] | 99 | # create filesystems if necessary |
| Brian Swetland | 6404048 | 2010-10-06 16:44:47 -0700 | [diff] [blame] | 100 | service setup_fs /system/bin/setup_fs /dev/block/platform/s3c-sdhci.0/by-name/userdata |
| Brian Swetland | 86304be | 2010-09-15 16:13:20 -0700 | [diff] [blame] | 101 | user root |
| 102 | group root |
| 103 | oneshot |
| 104 | |
| Jeong-Seok Yang | 7562f3f | 2010-09-07 22:08:26 -0700 | [diff] [blame] | 105 | # 3D init |
| Brian Swetland | 61da085 | 2010-09-19 03:46:56 -0700 | [diff] [blame] | 106 | service pvrsrvinit /system/vendor/bin/pvrsrvinit |
| Jeong-Seok Yang | 7562f3f | 2010-09-07 22:08:26 -0700 | [diff] [blame] | 107 | user root |
| 108 | group root |
| 109 | oneshot |
| 110 | |
| JIKWANG KANG | 44732f1 | 2010-08-31 12:42:55 -0700 | [diff] [blame] | 111 | service wpa_supplicant /system/bin/wpa_supplicant -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf |
| Jeong-Seok Yang | 7562f3f | 2010-09-07 22:08:26 -0700 | [diff] [blame] | 112 | socket wpa_eth0 dgram 0660 wifi wifi |
| 113 | disabled |
| 114 | oneshot |
| JIKWANG KANG | 44732f1 | 2010-08-31 12:42:55 -0700 | [diff] [blame] | 115 | |
| 116 | service dhcpcd /system/bin/dhcpcd -ABKL |
| Jeong-Seok Yang | 7562f3f | 2010-09-07 22:08:26 -0700 | [diff] [blame] | 117 | disabled |
| 118 | oneshot |
| hyungseoung.yoo | 393fc37 | 2010-09-02 22:50:35 +0900 | [diff] [blame] | 119 | |
| DooHyunHwang | f13282c | 2010-10-06 12:57:22 -0700 | [diff] [blame] | 120 | service hciattach /system/bin/brcm_patchram_plus -d --enable_hci --enable_lpm \ |
| hyungseoung.yoo | 7b728e2 | 2010-09-22 11:12:43 -0700 | [diff] [blame] | 121 | --baudrate 3000000 --patchram /vendor/firmware/bcm4329.hcd /dev/s3c2410_serial0 |
| hyungseoung.yoo | 393fc37 | 2010-09-02 22:50:35 +0900 | [diff] [blame] | 122 | user bluetooth |
| 123 | group bluetooth net_bt_admin |
| 124 | disabled |
| 125 | oneshot |
| Ed Heyl | d1c4091 | 2010-09-07 18:13:00 -0700 | [diff] [blame] | 126 | |
| Brian Swetland | 34cfd9e | 2010-09-21 13:19:29 -0700 | [diff] [blame] | 127 | service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport |
| 128 | disabled |
| 129 | oneshot |
| DooHyunHwang | 8a469ff | 2010-09-28 17:12:48 -0700 | [diff] [blame] | 130 | keycodes 114 115 |