device/generic/common
Révision | 40fce290ce68e2ac28f2ec177e54bfcf4eb9e7a2 (tree) |
---|---|
l'heure | 2017-08-10 15:59:37 |
Auteur | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
overlay: add configs for tethering
@@ -20,6 +20,38 @@ | ||
20 | 20 | <!-- These resources are around just to allow their values to be customized |
21 | 21 | for different hardware and product builds. --> |
22 | 22 | <resources> |
23 | + <!-- List of regexpressions describing the interface (if any) that represent tetherable | |
24 | + USB interfaces. If the device doesn't want to support tething over USB this should | |
25 | + be empty. An example would be "usb.*" --> | |
26 | + <string-array translatable="false" name="config_tether_usb_regexs"> | |
27 | + <item>"usb\\d"</item> | |
28 | + <item>"rndis\\d"</item> | |
29 | + </string-array> | |
30 | + | |
31 | + <!-- List of regexpressions describing the interface (if any) that represent tetherable | |
32 | + Wifi interfaces. If the device doesn't want to support tethering over Wifi this | |
33 | + should be empty. An example would be "softap.*" --> | |
34 | + <string-array translatable="false" name="config_tether_wifi_regexs"> | |
35 | + <item>"wlan0"</item> | |
36 | + </string-array> | |
37 | + | |
38 | + <!-- List of regexpressions describing the interface (if any) that represent tetherable | |
39 | + bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this | |
40 | + should be empty. --> | |
41 | + <string-array translatable="false" name="config_tether_bluetooth_regexs"> | |
42 | + <item>"bt-pan"</item> | |
43 | + </string-array> | |
44 | + | |
45 | + <!-- Array of allowable ConnectivityManager network types for tethering --> | |
46 | + <!-- Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or | |
47 | + [0,1,5,7] for TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI and TYPE_BLUETOOTH --> | |
48 | + <integer-array translatable="false" name="config_tether_upstream_types"> | |
49 | + <item>0</item> | |
50 | + <item>1</item> | |
51 | + <item>5</item> | |
52 | + <item>7</item> | |
53 | + </integer-array> | |
54 | + | |
23 | 55 | <!-- This string array should be overridden by the device to present a list of network |
24 | 56 | attributes. This is used by the connectivity manager to decide which networks can coexist |
25 | 57 | based on the hardware --> |
@@ -36,6 +68,7 @@ | ||
36 | 68 | <item>"mobile_supl,3,0,2,60000,true"</item> |
37 | 69 | <item>"mobile_hipri,5,0,3,60000,true"</item> |
38 | 70 | <item>"ethernet,9,9,1,-1,true"</item> |
71 | + <item>"bluetooth,7,7,2,-1,true"</item> | |
39 | 72 | <item>"mobile_fota,10,0,2,60000,true"</item> |
40 | 73 | <item>"mobile_ims,11,0,2,60000,true"</item> |
41 | 74 | <item>"mobile_cbs,12,0,2,60000,true"</item> |
@@ -50,6 +83,7 @@ | ||
50 | 83 | <string-array translatable="false" name="radioAttributes"> |
51 | 84 | <item>"1,1"</item> |
52 | 85 | <item>"0,1"</item> |
86 | + <item>"7,1"</item> | |
53 | 87 | <item>"9,1"</item> |
54 | 88 | </string-array> |
55 | 89 |