1 # Copyright (C) 2008 The Android Open Source Project 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 on early-init 16 device mtd@misc 0460 radio diag 17 18 # Set timeout value for rmnet stats. 19 write /sys/devices/virtual/net/rmnet0/timeout_suspend 5000000 20 write /sys/devices/virtual/net/rmnet0/timeout 18000000 21 22 on boot 23 # unmap left alt to avoid console switch 24 setkey 0x0 0x38 0x0 25 # reset SEND+MENU+END 26 setkey 0x0 0xe7 0x706 27 setkey 0x0 0x8b 0x707 28 29 setkey 0x40 0xe7 0x706 30 setkey 0x40 0x8b 0x707 31 32 setkey 0x80 0xe7 0x706 33 setkey 0x80 0x8b 0x707 34 35 setkey 0xc0 0xe7 0x706 36 setkey 0xc0 0x8b 0x707 37 setkey 0xc0 0x6b 0x20c 38 39 mkdir /data/misc/wifi 0770 wifi wifi 40 mkdir /data/misc/wifi/sockets 0770 wifi wifi 41 mkdir /data/misc/dhcp 0770 dhcp dhcp 42 chown dhcp dhcp /data/misc/dhcp 43 44 # bluetooth power up/down interface 45 chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type 46 chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state 47 chmod 0660 /sys/class/rfkill/rfkill0/state 48 49 # cpufreq configurations 50 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 245760 51 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand 52 write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 40000 53 write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 85 54 55 # compass/accelerometer daemon 56 service akmd /system/bin/akmd 57 user compass 58 group compass misc input 59 60 service wlan_loader /system/bin/wlan_loader \ 61 -f /system/etc/wifi/Fw1251r1c.bin -e /proc/calibration \ 62 -i /system/etc/wifi/tiwlan.ini 63 disabled 64 oneshot 65 66 service wpa_supplicant /system/bin/wpa_supplicant \ 67 -Dtiwlan0 -itiwlan0 -c/data/misc/wifi/wpa_supplicant.conf -q 68 # we will start as root and wpa_supplicant will switch to user wifi 69 # after setting up the capabilities required for WEXT 70 # user wifi 71 # group wifi inet keystore 72 socket wpa_tiwlan0 dgram 660 wifi wifi 73 disabled 74 oneshot 75 76 service dhcpcd /system/bin/dhcpcd -ABKL 77 disabled 78 oneshot 79 80 service hciattach /system/bin/hciattach \ 81 -n -s 115200 /dev/ttyHS0 texasalt 4000000 flow 82 user bluetooth 83 group bluetooth net_bt_admin 84 disabled 85 86 # bugreport is triggered by the KEY_LEFTSHIFT and KEY_MENU keycodes 87 service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport 88 disabled 89 oneshot 90 keycodes 42 139 91