forked from kingao/cm-android_device_lenovo_stuttgart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.smdk4x12.usb.rc
executable file
·69 lines (63 loc) · 3.19 KB
/
init.smdk4x12.usb.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
on boot
write /sys/class/android_usb/android0/iManufacturer "Lenovo"
write /sys/class/android_usb/android0/iProduct "LePhone"
write /sys/class/android_usb/android0/iSerial $ro.serialno
write /sys/class/android_usb/android0/f_mass_storage/inquiry_string "Lenovo LePhone 0100"
write /sys/class/android_usb/android0/f_mass_storage/lun2/file "/system/media/autorun.iso"
write /sys/class/android_usb/android0/f_rndis/manufacturer Lenovo
write /sys/class/android_usb/android0/f_rndis/vendorID 17ef
write /sys/class/android_usb/android0/f_rndis/wceis 1
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 17ef
write /sys/class/android_usb/android0/idProduct 7533
write /sys/class/android_usb/android0/functions mass_storage,adb
write /sys/class/android_usb/android0/enable 1
start adbd
setprop sys.usb.state mass_storage,adb
on property:sys.usb.config=mass_storage
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 17ef
write /sys/class/android_usb/android0/idProduct 7532
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 17ef
write /sys/class/android_usb/android0/idProduct 7533
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=mtp
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 18d1
write /sys/class/android_usb/android0/idProduct 4e26
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=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 4e26
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=rndis
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 17ef
write /sys/class/android_usb/android0/idProduct 7534
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/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 17ef
write /sys/class/android_usb/android0/idProduct 7535
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