1on boot 2 mount debugfs /sys/kernel/debug /sys/kernel/debug 3 4 setprop ro.build.product herring 5 setprop ro.product.device herring 6 setprop ro.radio.noril yes 7 setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" 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 15# wi-fi 16 mkdir /data/misc/wifi/sockets 0770 wifi wifi 17 mkdir /data/misc/dhcp 0770 dhcp dhcp 18 19# phone 20 setprop ro.telephony.call_ring.multiple 0 21 22# change permission for uart_switch 23 chown radio radio /sys/class/sec/uart_switch/UART_SEL/value 24 chmod 660 /sys/class/sec/uart_switch/UART_SEL/value 25 26# create data/gps for GPS demon 27 mkdir /data/gps 770 gps system 28 chown gps system /data/gps 29 chown gps root /sys/class/sec/gps/GPS_PWR_EN/value 30 chmod 660 /sys/class/sec/gps/GPS_PWR_EN/value 31 32on fs 33 mkdir /efs 0775 radio radio 34 mount yaffs2 mtd@efs /efs nosuid nodev 35 chmod 770 /efs/bluetooth 36 chmod 770 /efs/imei 37 mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/system /system wait ro 38 mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/userdata /data wait noatime nosuid nodev 39 40# permissions for bluetooth. 41 chown bluetooth bluetooth /efs/bluetooth 42 chown bluetooth bluetooth ro.bt.bdaddr_path 43 chown bluetooth bluetooth /dev/s3c2410_serial0 44 chmod 0600 /dev/s3c2410_serial0 45 chmod 0660 /sys/class/rfkill/rfkill0/state 46 chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state 47 chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type 48 49# We chown/chmod /efs because mount is run as root + defaults 50 chown radio radio /efs 51 chmod 0775 /efs 52 53# permissions for NFC 54 setprop ro.nfc.port "I2C" 55 chmod 0600 /dev/pn544 56 chown nfc nfc /dev/pn544 57 58# Permissions for System Server and daemons. 59 chown system system /sys/class/backlight/s5p_bl/brightness 60 61service gpsd /system/vendor/bin/gpsd -c /vendor/etc/gps.xml 62 socket gps seqpacket 0660 gps system 63 user gps 64 group system inet 65 66# create filesystems if necessary 67service setup_fs /system/bin/setup_fs /dev/block/platform/s3c-sdhci.0/by-name/userdata 68 user root 69 group root 70 oneshot 71 72# 3D init 73service pvrsrvinit /system/vendor/bin/pvrsrvinit 74 user root 75 group root 76 oneshot 77 78service wpa_supplicant /system/bin/wpa_supplicant -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf 79 socket wpa_eth0 dgram 0660 wifi wifi 80 disabled 81 oneshot 82 83# DHCPCD 84# wi-fi 85service dhcpcd_eth0 /system/bin/dhcpcd -ABKL 86 disabled 87 oneshot 88 89# wimax 90service dhcpcd_uwbr0 /system/bin/dhcpcd -ABKL 91 disabled 92 oneshot 93 94# IP Renew 95# wi-fi 96service iprenew_eth0 /system/bin/dhcpcd -n 97 disabled 98 oneshot 99 100# wimax 101service iprenew_uwbr0 /system/bin/dhcpcd -n 102 disabled 103 oneshot 104 105service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm \ 106 --baudrate 3000000 --patchram /vendor/firmware/bcm4329.hcd /dev/s3c2410_serial0 107 user bluetooth 108 group bluetooth net_bt_admin 109 disabled 110 oneshot 111 112# bugreport is triggered by holding down volume down, volume up and power 113service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport 114 disabled 115 oneshot 116 keycodes 114 115 116 117 118service wimax_route /system/bin/route add default dev uwbr0 119 disabled 120 oneshot 121