• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

device/generic/common


Commit MetaInfo

Révision40fce290ce68e2ac28f2ec177e54bfcf4eb9e7a2 (tree)
l'heure2017-08-10 15:59:37
AuteurChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Message de Log

overlay: add configs for tethering

Change Summary

Modification

--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -20,6 +20,38 @@
2020 <!-- These resources are around just to allow their values to be customized
2121 for different hardware and product builds. -->
2222 <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+
2355 <!-- This string array should be overridden by the device to present a list of network
2456 attributes. This is used by the connectivity manager to decide which networks can coexist
2557 based on the hardware -->
@@ -36,6 +68,7 @@
3668 <item>"mobile_supl,3,0,2,60000,true"</item>
3769 <item>"mobile_hipri,5,0,3,60000,true"</item>
3870 <item>"ethernet,9,9,1,-1,true"</item>
71+ <item>"bluetooth,7,7,2,-1,true"</item>
3972 <item>"mobile_fota,10,0,2,60000,true"</item>
4073 <item>"mobile_ims,11,0,2,60000,true"</item>
4174 <item>"mobile_cbs,12,0,2,60000,true"</item>
@@ -50,6 +83,7 @@
5083 <string-array translatable="false" name="radioAttributes">
5184 <item>"1,1"</item>
5285 <item>"0,1"</item>
86+ <item>"7,1"</item>
5387 <item>"9,1"</item>
5488 </string-array>
5589