2010-05-14 20:42:20 +00:00
|
|
|
on early-init
|
|
|
|
start ueventd
|
2009-03-04 03:28:42 +00:00
|
|
|
|
|
|
|
on init
|
|
|
|
export PATH /sbin
|
|
|
|
export ANDROID_ROOT /system
|
|
|
|
export ANDROID_DATA /data
|
|
|
|
export EXTERNAL_STORAGE /sdcard
|
|
|
|
|
|
|
|
symlink /system/etc /etc
|
|
|
|
|
|
|
|
mkdir /sdcard
|
|
|
|
mkdir /system
|
|
|
|
mkdir /data
|
|
|
|
mkdir /cache
|
|
|
|
mount /tmp /tmp tmpfs
|
|
|
|
|
|
|
|
on boot
|
|
|
|
|
|
|
|
ifup lo
|
|
|
|
hostname localhost
|
|
|
|
domainname localdomain
|
|
|
|
|
|
|
|
class_start default
|
|
|
|
|
2010-05-14 20:42:20 +00:00
|
|
|
service ueventd /sbin/ueventd
|
|
|
|
critical
|
2009-03-04 03:28:42 +00:00
|
|
|
|
|
|
|
service recovery /sbin/recovery
|
|
|
|
|
|
|
|
service adbd /sbin/adbd recovery
|
2010-06-28 16:01:22 +00:00
|
|
|
disabled
|
2009-03-04 03:28:42 +00:00
|
|
|
|
2011-06-19 06:52:01 +00:00
|
|
|
on property:persist.sys.usb.config=*
|
|
|
|
setprop sys.usb.config $persist.sys.usb.config
|
|
|
|
|
|
|
|
#one of the following property triggers will enable adb if it is enabled in regular operation
|
|
|
|
|
|
|
|
on property:sys.usb.config=mass_storage,adb
|
|
|
|
write /sys/class/android_usb/android0/enable 0
|
|
|
|
write /sys/class/android_usb/android0/idVendor 18d1
|
|
|
|
write /sys/class/android_usb/android0/idProduct Fec0
|
|
|
|
write /sys/class/android_usb/android0/functions $sys.usb.config
|
|
|
|
write /sys/class/android_usb/android0/enable 1
|
|
|
|
start adbd
|
|
|
|
|
|
|
|
on property:sys.usb.config=mtp,adb
|
|
|
|
write /sys/class/android_usb/android0/enable 0
|
|
|
|
write /sys/class/android_usb/android0/idVendor 18d1
|
|
|
|
write /sys/class/android_usb/android0/idProduct Fec0
|
|
|
|
write /sys/class/android_usb/android0/functions $sys.usb.config
|
|
|
|
write /sys/class/android_usb/android0/enable 1
|
|
|
|
start adbd
|
|
|
|
|
|
|
|
on property:sys.usb.config=ptp,adb
|
|
|
|
write /sys/class/android_usb/android0/enable 0
|
|
|
|
write /sys/class/android_usb/android0/idVendor 18d1
|
|
|
|
write /sys/class/android_usb/android0/idProduct Fec0
|
|
|
|
write /sys/class/android_usb/android0/functions $sys.usb.config
|
|
|
|
write /sys/class/android_usb/android0/enable 1
|
2009-03-04 03:28:42 +00:00
|
|
|
start adbd
|
|
|
|
|