forked from Atrix-Dev-Team/android_device_motorola_olympus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.olympus.usb.rc
executable file
·47 lines (38 loc) · 1.35 KB
/
init.olympus.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
# From Usb.apk code
# public static final int USB_MODE_NGP = 0;
# public static final int USB_MODE_MTP = 1;
# public static final int USB_MODE_MSC = 2;
# public static final int USB_MODE_RNDIS = 3;
# public static final int USB_MODE_MODEM = 4;
# public static final int USB_MODE_NONE = 5;
on property:sys.usb.config=none
exec /system/bin/start usb_switch:5
setprop sys.usb.state $sys.usb.config
on property:sys.usb.config=adb
exec /system/bin/start usb_switch:5
start adbd
setprop sys.usb.state $sys.usb.config
on property:sys.usb.config=mass_storage,adb
exec /system/bin/start usb_switch:2
start adbd
setprop sys.usb.state $sys.usb.config
on property:sys.usb.config=mass_storage
exec /system/bin/start usb_switch:2
setprop sys.usb.state $sys.usb.config
on property:sys.usb.config=rndis
exec /system/bin/start usb_switch:3
setprop sys.usb.state $sys.usb.config
on property:sys.usb.config=rndis,adb
exec /system/bin/start usb_switch:3
start adbd
setprop sys.usb.state $sys.usb.config
on property:sys.usb.config=mtp
exec /system/bin/start usb_switch:1
setprop sys.usb.state $sys.usb.config
on property:sys.usb.config=mtp,adb
exec /system/bin/start usb_switch:1
start adbd
setprop sys.usb.state $sys.usb.config
service usb_switch /system/bin/usb_switch.sh
disabled
oneshot