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 | 7e58b65 | 2011-06-19 02:52:01 -0400 | [diff] [blame] | 34 | on property:persist.sys.usb.config=* |
| 35 | setprop sys.usb.config $persist.sys.usb.config |
| 36 | |
| 37 | #one of the following property triggers will enable adb if it is enabled in regular operation |
| 38 | |
| 39 | on property:sys.usb.config=mass_storage,adb |
| 40 | write /sys/class/android_usb/android0/enable 0 |
| 41 | write /sys/class/android_usb/android0/idVendor 18d1 |
| 42 | write /sys/class/android_usb/android0/idProduct Fec0 |
| 43 | write /sys/class/android_usb/android0/functions $sys.usb.config |
| 44 | write /sys/class/android_usb/android0/enable 1 |
The Android Open Source Project | c24a8e6 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 45 | start adbd |
| 46 | |
Mike Lockwood | 7e58b65 | 2011-06-19 02:52:01 -0400 | [diff] [blame] | 47 | on property:sys.usb.config=mtp,adb |
| 48 | write /sys/class/android_usb/android0/enable 0 |
| 49 | write /sys/class/android_usb/android0/idVendor 18d1 |
| 50 | write /sys/class/android_usb/android0/idProduct Fec0 |
| 51 | write /sys/class/android_usb/android0/functions $sys.usb.config |
| 52 | write /sys/class/android_usb/android0/enable 1 |
| 53 | start adbd |
| 54 | |
| 55 | on property:sys.usb.config=ptp,adb |
| 56 | write /sys/class/android_usb/android0/enable 0 |
| 57 | write /sys/class/android_usb/android0/idVendor 18d1 |
| 58 | write /sys/class/android_usb/android0/idProduct Fec0 |
| 59 | write /sys/class/android_usb/android0/functions $sys.usb.config |
| 60 | write /sys/class/android_usb/android0/enable 1 |
| 61 | start adbd |
| 62 | |
Doug Zongker | fb04b87 | 2011-06-23 15:30:34 -0700 | [diff] [blame] | 63 | on property:service.adb.root=1 |
| 64 | write /sys/class/android_usb/android0/enable 0 |
| 65 | restart adbd |
| 66 | write /sys/class/android_usb/android0/enable 1 |