blob: 9ff2a2209e761ba0df1d84b188f37e1fcc97b79c [file] [log] [blame]
Remi NGUYEN VAN21c854a2021-03-08 22:05:03 +09001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 ~ Copyright (C) 2021 The Android Open Source Project
4 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
8 ~
9 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
16 -->
17
18<!-- Configuration values for ConnectivityService
19 DO NOT EDIT THIS FILE for specific device configuration; instead, use a Runtime Resources
20 Overlay package following the overlayable.xml configuration in the same directory:
21 https://source.android.com/devices/architecture/rros -->
22<resources>
23
24 <!-- Configuration hook for the URL returned by ConnectivityManager#getCaptivePortalServerUrl.
25 If empty, the returned value is controlled by Settings.Global.CAPTIVE_PORTAL_HTTP_URL,
26 and if that value is empty, the framework will use a hard-coded default.
27 This is *NOT* a URL that will always be used by the system network validation to detect
28 captive portals: NetworkMonitor may use different strategies and will not necessarily use
29 this URL. NetworkMonitor behaviour should be configured with NetworkStack resource overlays
30 instead. -->
31 <!--suppress CheckTagEmptyBody -->
32 <string translatable="false" name="config_networkCaptivePortalServerUrl"></string>
33
34 <!-- The maximum duration (in milliseconds) we expect a network transition to take -->
35 <integer name="config_networkTransitionTimeout">60000</integer>
36
37 <!-- Configuration of network interfaces that support WakeOnLAN -->
38 <string-array translatable="false" name="config_wakeonlan_supported_interfaces">
39 <!--
40 <item>wlan0</item>
41 <item>eth0</item>
42 -->
43 </string-array>
44
Remi NGUYEN VAN5a42a5f2021-03-09 13:35:25 +090045 <string-array translatable="false" name="config_legacy_networktype_restore_timers">
46 <item>2,60000</item><!-- mobile_mms -->
47 <item>3,60000</item><!-- mobile_supl -->
48 <item>4,60000</item><!-- mobile_dun -->
49 <item>5,60000</item><!-- mobile_hipri -->
50 <item>10,60000</item><!-- mobile_fota -->
51 <item>11,60000</item><!-- mobile_ims -->
52 <item>12,60000</item><!-- mobile_cbs -->
53 </string-array>
54
Remi NGUYEN VAN0d4c78d2021-03-17 23:14:53 +090055 <!-- Whether the APF Filter in the device should filter out IEEE 802.3 Frames
56 Those frames are identified by the field Eth-type having values
57 less than 0x600 -->
58 <bool translatable="false" name="config_apfDrop802_3Frames">true</bool>
59
60 <!-- An array of Denylisted EtherType, packets with EtherTypes within this array
61 will be dropped
62 TODO: need to put proper values, these are for testing purposes only -->
63 <integer-array translatable="false" name="config_apfEthTypeDenyList">
64 <item>0x88A2</item>
65 <item>0x88A4</item>
66 <item>0x88B8</item>
67 <item>0x88CD</item>
68 <item>0x88E3</item>
69 </integer-array>
70
71 <!-- Default supported concurrent socket keepalive slots per transport type, used by
72 ConnectivityManager.createSocketKeepalive() for calculating the number of keepalive
73 offload slots that should be reserved for privileged access. This string array should be
74 overridden by the device to present the capability of creating socket keepalives. -->
75 <!-- An Array of "[NetworkCapabilities.TRANSPORT_*],[supported keepalives] -->
76 <string-array translatable="false" name="config_networkSupportedKeepaliveCount">
77 <item>0,1</item>
78 <item>1,3</item>
79 </string-array>
80
Remi NGUYEN VAN97fad722021-03-19 17:41:48 +090081 <!-- Reserved privileged keepalive slots per transport. -->
82 <integer translatable="false" name="config_reservedPrivilegedKeepaliveSlots">2</integer>
83
84 <!-- Allowed unprivileged keepalive slots per uid. -->
85 <integer translatable="false" name="config_allowedUnprivilegedKeepalivePerUid">2</integer>
Remi NGUYEN VAN0d4c78d2021-03-17 23:14:53 +090086
87 <!-- Default value for ConnectivityManager.getMultipathPreference() on metered networks. Actual
88 device behaviour is controlled by the metered multipath preference in
89 ConnectivitySettingsManager. This is the default value of that setting. -->
90 <integer translatable="false" name="config_networkMeteredMultipathPreference">0</integer>
91
92 <!-- Whether the device should automatically switch away from Wi-Fi networks that lose
93 Internet access. Actual device behaviour is controlled by
94 Settings.Global.NETWORK_AVOID_BAD_WIFI. This is the default value of that setting. -->
95 <integer translatable="false" name="config_networkAvoidBadWifi">1</integer>
96
Remi NGUYEN VAN97fad722021-03-19 17:41:48 +090097 <!-- Array of ConnectivityManager.TYPE_xxxx constants for networks that may only
98 be controlled by systemOrSignature apps. -->
99 <integer-array translatable="false" name="config_protectedNetworks">
100 <item>10</item>
101 <item>11</item>
102 <item>12</item>
103 <item>14</item>
104 <item>15</item>
105 </integer-array>
106
107 <!-- Whether the internal vehicle network should remain active even when no
108 apps requested it. -->
109 <bool name="config_vehicleInternalNetworkAlwaysRequested">false</bool>
110
111
112 <!-- If the hardware supports specially marking packets that caused a wakeup of the
113 main CPU, set this value to the mark used. -->
114 <integer name="config_networkWakeupPacketMark">0</integer>
115
116 <!-- Mask to use when checking skb mark defined in config_networkWakeupPacketMark above. -->
117 <integer name="config_networkWakeupPacketMask">0</integer>
118
119 <!-- Whether/how to notify the user on network switches. See LingerMonitor.java. -->
120 <integer translatable="false" name="config_networkNotifySwitchType">0</integer>
121
122 <!-- What types of network switches to notify. See LingerMonitor.java. -->
123 <string-array translatable="false" name="config_networkNotifySwitches">
124 </string-array>
125
Remi NGUYEN VAN0d4c78d2021-03-17 23:14:53 +0900126</resources>