blob: 89a161e703e592f9a092ad78f096947bffd88cbc [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
Doug Zongker703ed152012-03-19 15:52:03 -070018 chown root shell /tmp
19 chmod 0775 /tmp
20
Doug Zongker66392482012-01-10 12:16:04 -080021 write /sys/class/android_usb/android0/enable 0
22 write /sys/class/android_usb/android0/idVendor 18D1
23 write /sys/class/android_usb/android0/idProduct D001
24 write /sys/class/android_usb/android0/functions adb
25 write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
26 write /sys/class/android_usb/android0/iProduct ${ro.product.model}
27 write /sys/class/android_usb/android0/iSerial ${ro.serialno}
28
29
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080030on boot
31
32 ifup lo
33 hostname localhost
34 domainname localdomain
35
36 class_start default
37
Colin Crossdd6a0412010-05-14 13:42:20 -070038service ueventd /sbin/ueventd
39 critical
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080040
41service recovery /sbin/recovery
42
43service adbd /sbin/adbd recovery
Kenny Rootecc76ba2010-06-28 09:01:22 -070044 disabled
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080045
Mike Lockwood718a2f72011-06-29 10:22:04 -040046# Always start adbd on userdebug and eng builds
47on property:ro.debuggable=1
Mike Lockwood7e58b652011-06-19 02:52:01 -040048 write /sys/class/android_usb/android0/enable 1
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080049 start adbd
50
Mike Lockwood718a2f72011-06-29 10:22:04 -040051# Restart adbd so it can run as root
Doug Zongkerfb04b872011-06-23 15:30:34 -070052on property:service.adb.root=1
53 write /sys/class/android_usb/android0/enable 0
54 restart adbd
55 write /sys/class/android_usb/android0/enable 1