forked from fuzzra/android_device_zte_blade2
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blade2: don't use faggot usb and other updates
- Loading branch information
Daz Jones
committed
Jan 1, 2013
1 parent
d1af9f0
commit cd09db7
Showing
6 changed files
with
37 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,55 @@ | ||
on init | ||
write /sys/module/g_android/parameters $ro.serialno | ||
write /sys/module/g_android/parameters/product_id 1351 | ||
write /sys/devices/platform/android_usb/functions/cur_pid 1351 | ||
write /sys/devices/platform/android_usb/functions/enable_switch 0 | ||
write /sys/class/android_usb/android0/iSerial CM10.1-Crescent | ||
write /sys/class/android_usb/android0/f_rndis/manufacturer ZTE | ||
write /sys/class/android_usb/android0/f_rndis/vendorID 19d2 | ||
write /sys/class/android_usb/android0/f_rndis/wceis 1 | ||
|
||
on boot | ||
start start_usb0 | ||
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/f_mass_storage/inquiry_string "ZTE" | ||
|
||
on property:sys.usb.config=adb | ||
write /sys/module/g_android/parameters/product_id 1352 | ||
write /sys/class/android_usb/android0/enable 0 | ||
write /sys/class/android_usb/android0/idVendor 19d2 | ||
write /sys/class/android_usb/android0/idProduct 1352 | ||
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} | ||
|
||
on property:sys.usb.config=mass_storage,adb | ||
write /sys/module/g_android/parameters/product_id 1351 | ||
write /sys/class/android_usb/android0/enable 0 | ||
write /sys/class/android_usb/android0/idVendor 19d2 | ||
write /sys/class/android_usb/android0/idProduct 1351 | ||
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} | ||
|
||
on property:sys.usb.config=mass_storage | ||
write /sys/module/g_android/parameters/product_id 1353 | ||
write /sys/class/android_usb/android0/enable 0 | ||
write /sys/class/android_usb/android0/idVendor 19d2 | ||
write /sys/class/android_usb/android0/idProduct 1353 | ||
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=rndis | ||
write /sys/module/g_android/parameters/product_id 1365 | ||
write /sys/class/android_usb/android0/enable 0 | ||
write /sys/class/android_usb/android0/idVendor 19d2 | ||
write /sys/class/android_usb/android0/idProduct 1365 | ||
write /sys/class/android_usb/android0/functions ${sys.usb.config} | ||
write /sys/class/android_usb/android0/bDeviceClass 224 | ||
write /sys/class/android_usb/android0/enable 1 | ||
setprop sys.usb.state ${sys.usb.config} | ||
|
||
on property:sys.usb.config=rndis,adb | ||
write /sys/module/g_android/parameters/product_id 1373 | ||
write /sys/class/android_usb/android0/enable 0 | ||
write /sys/class/android_usb/android0/idVendor 19d2 | ||
write /sys/class/android_usb/android0/idProduct 1373 | ||
write /sys/class/android_usb/android0/functions ${sys.usb.config} | ||
write /sys/class/android_usb/android0/bDeviceClass 224 | ||
write /sys/class/android_usb/android0/enable 1 | ||
start adbd | ||
setprop sys.usb.state ${sys.usb.config} | ||
|
||
on property:sys.usb.config=mass_storage,rndis,adb | ||
write /sys/module/g_android/parameters/product_id 1364 | ||
start adbd | ||
setprop sys.usb.state ${sys.usb.config} | ||
|
||
# Adding this in because adb is being removed from persist.sys.usb.config after booting | ||
on property:persist.service.adb.enable=1 | ||
start adbd | ||
|
||
on property:persist.service.adb.enable=0 | ||
stop adbd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters