summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Hillenbrand <daniel.hillenbrand@codeworkx.de>2012-06-19 18:03:25 +0200
committerDaniel Hillenbrand <daniel.hillenbrand@codeworkx.de>2012-06-19 18:03:25 +0200
commit1adb3983ff4fe862994f123c2fb554fbf93b0c62 (patch)
tree16097542920fff5f437a16cd75acc3ee514b13f0
parent49ee9e76e64499a62bee4e7a6b1171d662712273 (diff)
downloaddevice_samsung_p5100-1adb3983ff4fe862994f123c2fb554fbf93b0c62.zip
device_samsung_p5100-1adb3983ff4fe862994f123c2fb554fbf93b0c62.tar.gz
device_samsung_p5100-1adb3983ff4fe862994f123c2fb554fbf93b0c62.tar.bz2
init: usb rc
-rwxr-xr-xinit.espresso10.rc2
-rwxr-xr-xinit.espresso10.usb.rc (renamed from init.espresso.usb.rc)25
2 files changed, 23 insertions, 4 deletions
diff --git a/init.espresso10.rc b/init.espresso10.rc
index df7dbc6..4dc64a8 100755
--- a/init.espresso10.rc
+++ b/init.espresso10.rc
@@ -1,4 +1,4 @@
-import init.espresso.usb.rc
+import init.espresso10.usb.rc
on early-init
export EXTERNAL_STORAGE /mnt/sdcard
diff --git a/init.espresso.usb.rc b/init.espresso10.usb.rc
index 9ef87f3..7545695 100755
--- a/init.espresso.usb.rc
+++ b/init.espresso10.usb.rc
@@ -3,10 +3,12 @@ on init
write /sys/class/android_usb/android0/f_rndis/manufacturer Samsung
write /sys/class/android_usb/android0/f_rndis/vendorID 04e8
write /sys/class/android_usb/android0/f_rndis/wceis 1
-
+
on boot
- 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/iManufacturer $ro.manufacturer
+ write /sys/class/android_usb/android0/iProduct $ro.model
+ write /sys/class/android_usb/android0/iSerial $ro.serialno
+ write /sys/class/android_usb/f_mass_storage/inquiry_string "Samsung"
on property:sys.usb.config=mtp
write /sys/class/android_usb/android0/enable 0
@@ -68,3 +70,20 @@ on property:sys.usb.config=rndis,dm
write /sys/class/android_usb/android0/functions $sys.usb.config
write /sys/class/android_usb/android0/enable 1
setprop sys.usb.state $sys.usb.config
+
+on property:sys.usb.config=mass_storage
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 685B
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state $sys.usb.config
+
+on property:sys.usb.config=mass_storage,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 685e
+ write /sys/class/android_usb/android0/functions $sys.usb.config
+ write /sys/class/android_usb/android0/enable 1
+ start adbd
+ setprop sys.usb.state $sys.usb.config