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
|
|
|
|
|
2011-01-28 20:39:10 +00:00
|
|
|
mkdir /boot
|
2009-03-04 03:28:42 +00:00
|
|
|
mkdir /sdcard
|
2011-01-16 10:33:04 +00:00
|
|
|
mkdir /sd-ext
|
|
|
|
mkdir /datadata
|
2010-12-12 03:52:06 +00:00
|
|
|
mkdir /emmc
|
2009-03-04 03:28:42 +00:00
|
|
|
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-29 14:22:04 +00:00
|
|
|
# Always start adbd on userdebug and eng builds
|
2012-01-26 21:05:56 +00:00
|
|
|
# In recovery, always run adbd as root.
|
2011-06-29 14:22:04 +00:00
|
|
|
on property:ro.debuggable=1
|
2011-06-19 06:52:01 +00:00
|
|
|
write /sys/class/android_usb/android0/enable 0
|
2011-06-29 14:22:04 +00:00
|
|
|
write /sys/class/android_usb/android0/idVendor 18D1
|
|
|
|
write /sys/class/android_usb/android0/idProduct D001
|
|
|
|
write /sys/class/android_usb/android0/functions adb
|
2012-01-26 21:05:56 +00:00
|
|
|
#write /sys/class/android_usb/android0/enable 1
|
2011-07-07 20:21:24 +00:00
|
|
|
write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer
|
|
|
|
write /sys/class/android_usb/android0/iProduct $ro.product.model
|
|
|
|
write /sys/class/android_usb/android0/iSerial $ro.serialno
|
2012-01-26 21:05:56 +00:00
|
|
|
#start adbd
|
|
|
|
setprop service.adb.root 1
|
2009-03-04 03:28:42 +00:00
|
|
|
|
2011-06-29 14:22:04 +00:00
|
|
|
# Restart adbd so it can run as root
|
2011-06-23 22:30:34 +00:00
|
|
|
on property:service.adb.root=1
|
|
|
|
write /sys/class/android_usb/android0/enable 0
|
|
|
|
restart adbd
|
|
|
|
write /sys/class/android_usb/android0/enable 1
|