blob: e2b4236dddcec6e358dbce2581b44ddf0623c851 [file] [log] [blame]
Colin Crossdd6a0412010-05-14 13:42:20 -07001on early-init
2 start ueventd
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08003
4on 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
18on boot
19
20 ifup lo
21 hostname localhost
22 domainname localdomain
23
24 class_start default
25
Colin Crossdd6a0412010-05-14 13:42:20 -070026service ueventd /sbin/ueventd
27 critical
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080028
29service recovery /sbin/recovery
30
31service adbd /sbin/adbd recovery
Kenny Rootecc76ba2010-06-28 09:01:22 -070032 disabled
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080033
Mike Lockwood7e58b652011-06-19 02:52:01 -040034on 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
39on 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 Projectc24a8e62009-03-03 19:28:42 -080045 start adbd
46
Mike Lockwood7e58b652011-06-19 02:52:01 -040047on 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
55on 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