Colin Cross | dd6a041 | 2010-05-14 13:42:20 -0700 | [diff] [blame] | 1 | on early-init |
| 2 | start ueventd |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 3 | |
| 4 | on init |
| 5 | export PATH /sbin |
| 6 | export ANDROID_ROOT /system |
| 7 | export ANDROID_DATA /data |
| 8 | export EXTERNAL_STORAGE /sdcard |
| 9 | |
| 10 | symlink /system/etc /etc |
| 11 | |
| 12 | mkdir /sdcard |
| 13 | mkdir /system |
| 14 | mkdir /data |
| 15 | mkdir /cache |
| 16 | mount /tmp /tmp tmpfs |
| 17 | |
| 18 | on boot |
| 19 | |
| 20 | ifup lo |
| 21 | hostname localhost |
| 22 | domainname localdomain |
| 23 | |
| 24 | class_start default |
| 25 | |
Colin Cross | dd6a041 | 2010-05-14 13:42:20 -0700 | [diff] [blame] | 26 | service ueventd /sbin/ueventd |
| 27 | critical |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 28 | |
| 29 | service recovery /sbin/recovery |
| 30 | |
| 31 | service adbd /sbin/adbd recovery |
Kenny Root | ecc76ba | 2010-06-28 09:01:22 -0700 | [diff] [blame] | 32 | disabled |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 33 | |
Mike Lockwood | 718a2f7 | 2011-06-29 10:22:04 -0400 | [diff] [blame] | 34 | # Always start adbd on userdebug and eng builds |
| 35 | on property:ro.debuggable=1 |
Mike Lockwood | 7e58b65 | 2011-06-19 02:52:01 -0400 | [diff] [blame] | 36 | write /sys/class/android_usb/android0/enable 0 |
Mike Lockwood | 718a2f7 | 2011-06-29 10:22:04 -0400 | [diff] [blame] | 37 | write /sys/class/android_usb/android0/idVendor 18D1 |
| 38 | write /sys/class/android_usb/android0/idProduct D001 |
| 39 | write /sys/class/android_usb/android0/functions adb |
Mike Lockwood | 7e58b65 | 2011-06-19 02:52:01 -0400 | [diff] [blame] | 40 | write /sys/class/android_usb/android0/enable 1 |
Michael Ward | 9334878 | 2011-07-07 13:21:24 -0700 | [diff] [blame] | 41 | write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer |
| 42 | write /sys/class/android_usb/android0/iProduct $ro.product.model |
| 43 | write /sys/class/android_usb/android0/iSerial $ro.serialno |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 44 | start adbd |
| 45 | |
Mike Lockwood | 718a2f7 | 2011-06-29 10:22:04 -0400 | [diff] [blame] | 46 | # Restart adbd so it can run as root |
Doug Zongker | fb04b87 | 2011-06-23 15:30:34 -0700 | [diff] [blame] | 47 | on property:service.adb.root=1 |
| 48 | write /sys/class/android_usb/android0/enable 0 |
| 49 | restart adbd |
| 50 | write /sys/class/android_usb/android0/enable 1 |