• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    chown radio radio /sys/class/sec/uart_switch/UART_SEL1/value
26    chmod 660 /sys/class/sec/uart_switch/UART_SEL1/value
27
28# change permission for usb_switch
29    chown radio radio /sys/bus/i2c/drivers/fsa9480/7-0025/switch
30    chmod 660 /sys/bus/i2c/drivers/fsa9480/7-0025/switch
31
32# create data/gps for GPS demon
33    mkdir /data/gps 770 gps system
34    chown gps system /data/gps
35
36on fs
37    mkdir /efs 0775 radio radio
38    mount yaffs2 mtd@efs /efs nosuid nodev
39	chmod 770 /efs/bluetooth
40	chmod 770 /efs/imei
41    mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/system /system wait ro
42    mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/userdata /data wait noatime nosuid nodev
43
44# permissions for bluetooth.
45    chown bluetooth bluetooth /efs/bluetooth
46    chown bluetooth bluetooth ro.bt.bdaddr_path
47    chown bluetooth bluetooth /dev/s3c2410_serial0
48    chmod 0600 /dev/s3c2410_serial0
49    chmod 0660 /sys/class/rfkill/rfkill0/state
50    chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
51    chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
52
53# We chown/chmod /efs because mount is run as root + defaults
54    chown radio radio /efs
55    chmod 0775 /efs
56
57# permissions for NFC
58    setprop ro.nfc.port "I2C"
59    chmod 0600 /dev/pn544
60    chown nfc nfc /dev/pn544
61
62# Permissions for System Server and daemons.
63    chown system system /sys/class/backlight/s5p_bl/brightness
64
65# Define TCP buffer sizes for wimax network
66#   ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
67    setprop net.tcp.buffersize.wimax    4096,524288,1048576,4096,16384,110208
68
69service gpsd /system/vendor/bin/gpsd -c /vendor/etc/gps.xml
70    user system
71    group system inet
72
73# create filesystems if necessary
74service setup_fs /system/bin/setup_fs /dev/block/platform/s3c-sdhci.0/by-name/userdata
75    user root
76    group root
77    oneshot
78
79# 3D init
80service pvrsrvinit /system/vendor/bin/pvrsrvinit
81    user root
82    group root
83    oneshot
84
85service wpa_supplicant /system/bin/wpa_supplicant -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf
86    socket wpa_eth0 dgram 0660 wifi wifi
87    disabled
88    oneshot
89
90# DHCPCD
91# wi-fi
92service dhcpcd_eth0 /system/bin/dhcpcd -ABKL
93    disabled
94    oneshot
95
96# wimax
97service dhcpcd_uwbr0 /system/bin/dhcpcd -ABKL
98    disabled
99    oneshot
100
101# IP Renew
102# wi-fi
103service iprenew_eth0 /system/bin/dhcpcd -n
104    disabled
105    oneshot
106
107# wimax
108service iprenew_uwbr0 /system/bin/dhcpcd -n
109    disabled
110    oneshot
111
112service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm \
113    --baudrate 3000000 --patchram /vendor/firmware/bcm4329.hcd /dev/s3c2410_serial0
114    user bluetooth
115    group bluetooth net_bt_admin
116    disabled
117    oneshot
118
119# bugreport is triggered by holding down volume down, volume up and power
120service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport
121    disabled
122    oneshot
123    keycodes 114 115 116
124
125service wimax_route /system/bin/route add default dev uwbr0
126    disabled
127    oneshot
128