keunyoung | 5c7cb26 | 2015-10-19 10:47:45 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | /* |
| 4 | ** Copyright 2015, The Android Open Source Project |
| 5 | ** |
| 6 | ** Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | ** you may not use this file except in compliance with the License. |
| 8 | ** You may obtain a copy of the License at |
| 9 | ** |
| 10 | ** http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | ** |
| 12 | ** Unless required by applicable law or agreed to in writing, software |
| 13 | ** distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | ** See the License for the specific language governing permissions and |
| 16 | ** limitations under the License. |
| 17 | */ |
| 18 | --> |
| 19 | |
| 20 | <!-- Resources to configure car service based on each OEM's preference. --> |
| 21 | |
| 22 | <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> |
Keun-young Park | 6eab4de | 2016-03-31 19:53:02 -0700 | [diff] [blame] | 23 | <!-- Configuration to enable usage of dynamic audio routing. If this is set to false, |
| 24 | dynamic audio routing is disabled and audio works in legacy mode. It may be useful |
| 25 | during initial development where audio hal does not support bus based addressing yet. --> |
Hongwei Wang | f2219ff | 2018-02-21 10:21:25 -0800 | [diff] [blame] | 26 | <bool name="audioUseDynamicRouting">false</bool> |
Hongwei Wang | 56a5163 | 2018-12-03 14:38:50 -0800 | [diff] [blame] | 27 | |
Hongwei Wang | 3a57800 | 2018-05-31 13:11:03 -0700 | [diff] [blame] | 28 | <!-- Configuration to persist master mute state. If this is set to true, |
| 29 | Android will restore the master mute state on boot. --> |
| 30 | <bool name="audioPersistMasterMuteState">true</bool> |
Keun-young Park | 3cb8910 | 2016-05-05 13:16:03 -0700 | [diff] [blame] | 31 | <!-- Whether to block other audio while media audio is muted with display off. When set to true, |
| 32 | other sounds cannot be played either while display is off. If false, only media is muted |
| 33 | and other sounds can be still played. --> |
| 34 | <bool name="displayOffMuteLockAllAudio">true</bool> |
Vitalii Tomkiv | e836ac3 | 2016-04-05 17:26:41 -0700 | [diff] [blame] | 35 | |
Vitalii Tomkiv | 2bd0692 | 2016-07-26 11:07:48 -0700 | [diff] [blame] | 36 | <string name="inputService">android.car.input.service/.DefaultInputService</string> |
Keun-young Park | a28d7b2 | 2016-02-29 16:54:29 -0800 | [diff] [blame] | 37 | |
Kamaljeet Maini | f5f624d | 2018-09-25 17:22:13 -0700 | [diff] [blame] | 38 | <string name="instrumentClusterRendererService">android.car.cluster.loggingrenderer/.LoggingClusterRenderingService</string> |
Keun-young Park | 4727da3 | 2016-05-31 10:00:51 -0700 | [diff] [blame] | 39 | |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 40 | <!-- Whether to enable Activity blocking for safety. When Activity blocking is enabled, |
Keun-young Park | 4727da3 | 2016-05-31 10:00:51 -0700 | [diff] [blame] | 41 | only whitelisted safe Activities will be allowed while car is not parked. --> |
| 42 | <bool name="enableActivityBlockingForSafety">true</bool> |
| 43 | <!-- Activity to be presented when un-safe activity is launched. Take a look at the javadoc of the |
| 44 | default implementation. --> |
| 45 | <string name="activityBlockingActivity">com.android.car/com.android.car.pm.ActivityBlockingActivity</string> |
Ram Periathiruvadi | 2d536c3 | 2018-05-23 12:22:11 -0700 | [diff] [blame] | 46 | <!-- Comma separated list of activities that need to be exempted from getting |
| 47 | blocked in a UX restricted state. |
| 48 | Format of each entry is either to specify package name to whitelist the whole package or |
| 49 | use format of "packagename/activity_classname" for tagging each activities. |
Yao, Yuxing | 4c3b93c | 2019-02-20 09:00:01 -0800 | [diff] [blame] | 50 | For general guidelines to design distraction optimized apps, please refer |
| 51 | to Android Auto Driver Distraction Guidelines. --> |
| 52 | <string name="activityWhitelist"></string> |
| 53 | <!-- Comma separated list of activities that need to be exempted from getting |
| 54 | blocked in a UX restricted state. |
| 55 | Format of each entry is either to specify package name to whitelist the whole package or |
| 56 | use format of "packagename/activity_classname" for tagging each activities. |
Ram Periathiruvadi | 2d536c3 | 2018-05-23 12:22:11 -0700 | [diff] [blame] | 57 | The current implementations expects the following system packages/activities to be |
| 58 | whitelisted. For general guidelines to design distraction optimized apps, please refer |
| 59 | to Android Auto Driver Distraction Guidelines. --> |
Yao, Yuxing | 4c3b93c | 2019-02-20 09:00:01 -0800 | [diff] [blame] | 60 | <string name="systemActivityWhitelist">com.android.systemui,com.google.android.packageinstaller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity,android/com.android.internal.app.ResolverActivity</string> |
Ram Periathiruvadi | 46a3a3d | 2018-03-23 16:58:32 -0700 | [diff] [blame] | 61 | <!-- Comma separated list of activities that will be blocked during restricted state. |
| 62 | Format of each entry is either to specify package name to whitelist the whole package |
| 63 | or use format of "packagename/activity_classname" for tagging each activities.--> |
| 64 | <string name="activityBlacklist"></string> |
Ram Periathiruvadi | d937c32 | 2018-06-13 12:28:12 -0700 | [diff] [blame] | 65 | <!-- List of play store package names that are allowed sources of app installation--> |
| 66 | <string-array translateble="false" name="allowedAppInstallSources"> |
| 67 | </string-array> |
Yao Chen | b982e64 | 2016-10-13 14:22:56 -0700 | [diff] [blame] | 68 | <!-- Default home activity --> |
Pavel Maltsev | ed2c864 | 2017-12-18 12:56:26 -0800 | [diff] [blame] | 69 | <string name="defaultHomeActivity"><!--com.your.package/com.your.package.Activity--></string> |
Mark Tabry | a8fce56 | 2019-01-16 16:24:01 -0800 | [diff] [blame] | 70 | <!-- The com.android.car.vms.VmsClientManager will bind to this list of clients running as system user --> |
| 71 | <string-array translatable="false" name="vmsPublisherSystemClients"> |
| 72 | </string-array> |
| 73 | <!-- The com.android.car.vms.VmsClientManager will bind to this list of clients running as current user --> |
| 74 | <string-array translatable="false" name="vmsPublisherUserClients"> |
Antonio Cortes | 6b3544c | 2017-02-06 16:54:58 -0800 | [diff] [blame] | 75 | </string-array> |
Asaf Rosenfeld | f12116d | 2018-04-20 14:57:25 -0700 | [diff] [blame] | 76 | <!-- Number of milliseconds to wait before trying re-bind to a crashed publisher. --> |
| 77 | <integer name="millisecondsBeforeRebindToVmsPublisher">10000</integer> |
| 78 | |
Enrico Granata | 9c1f272 | 2017-09-21 17:19:04 -0700 | [diff] [blame] | 79 | <!-- Hours of uptime (excluding sleep) after which a 1% increase in the wear of the flash |
| 80 | storage in the head-unit is considered as acceptable level of wear. --> |
| 81 | <integer name="acceptableHoursPerOnePercentFlashWear">70</integer> |
| 82 | |
| 83 | <!-- How often (in hours of uptime excluding sleep) CarService will flush to disk information |
| 84 | about the total running time of the head-unit. A shutdown or reboot of the head-unit |
| 85 | will always cause a flush of the uptime information, regardless of this setting. --> |
| 86 | <integer name="uptimeHoursIntervalBetweenUptimeDataWrite">5</integer> |
Enrico Granata | 3a1e626 | 2017-09-29 12:07:44 -0700 | [diff] [blame] | 87 | |
| 88 | <!-- The name of an activity to be launched by CarService whenever it detects a change in the |
| 89 | level of wear of the flash storage. Value must either be an empty string, which means that |
| 90 | no activity shall be launched, or must be in the format of a flattened ComponentName and |
| 91 | reference a valid activity. It is strongly recommended that the chosen activity be |
| 92 | protected with the android.car.permission.STORAGE_MONITORING permission. --> |
| 93 | <string name="activityHandlerForFlashWearChanges">com.google.android.car.defaultstoragemonitoringcompanionapp/.MainActivity</string> |
Enrico Granata | 3346ed8 | 2017-11-02 13:40:45 -0700 | [diff] [blame] | 94 | |
| 95 | <!-- How often (in seconds) CarService will update I/O metrics from the kernel. --> |
| 96 | <integer name="ioStatsRefreshRateSeconds">60</integer> |
Enrico Granata | 0f72b74 | 2017-11-02 18:26:41 -0700 | [diff] [blame] | 97 | |
| 98 | <!-- The number of I/O metrics samples to keep in memory at one time. |
| 99 | The system will keep a sliding window of samples of this size, and allow |
Enrico Granata | 88d92c8 | 2017-11-30 16:47:15 -0800 | [diff] [blame] | 100 | retrieval of activity this many sample windows back in time. Setting this to |
| 101 | 0 means no samples will be collected, effectively disabling I/O metric collection. --> |
Pavel Maltsev | f4b375e | 2018-04-30 10:16:26 -0700 | [diff] [blame] | 102 | <integer name="ioStatsNumSamplesToStore">15</integer> |
Enrico Granata | 43024de | 2017-11-16 17:09:37 -0800 | [diff] [blame] | 103 | |
| 104 | <!-- The maximum number of KB (1024 bytes) that can be written to storage in one sample |
Enrico Granata | afe7f30 | 2017-11-28 14:18:37 -0800 | [diff] [blame] | 105 | before CarService deems I/O activity excessive. A simple way to set this value |
| 106 | is - given the total writable amount (storage size * P/E cycles) - to make |
| 107 | reasonable assumptions about the expected lifetime of the vehicle and the average |
| 108 | daily driving time, and use that to allocate a per-sample budget. --> |
Pavel Maltsev | f4b375e | 2018-04-30 10:16:26 -0700 | [diff] [blame] | 109 | <integer name="acceptableWrittenKBytesPerSample">115000</integer> |
Enrico Granata | 43024de | 2017-11-16 17:09:37 -0800 | [diff] [blame] | 110 | <!-- The maximum number of fsync() system calls that can be made in one sample before |
| 111 | CarService deems I/O activity excessive. --> |
Pavel Maltsev | f4b375e | 2018-04-30 10:16:26 -0700 | [diff] [blame] | 112 | <integer name="acceptableFsyncCallsPerSample">150</integer> |
Enrico Granata | 43024de | 2017-11-16 17:09:37 -0800 | [diff] [blame] | 113 | |
| 114 | <!-- The maximum number of samples (within an I/O stats sample window) that CarService |
| 115 | should consider exhibiting excessive I/O activity before broadcasting an intent |
| 116 | to signal the potential for flash wear. --> |
Pavel Maltsev | f4b375e | 2018-04-30 10:16:26 -0700 | [diff] [blame] | 117 | <integer name="maxExcessiveIoSamplesInWindow">11</integer> |
Enrico Granata | 43024de | 2017-11-16 17:09:37 -0800 | [diff] [blame] | 118 | |
| 119 | <!-- The name of an intent to be notified by CarService whenever it detects too many |
| 120 | samples with excessive I/O activity. Value must either be an empty string, which |
| 121 | means that no notification will take place, or be in the format of a flattened |
Enrico Granata | afe7f30 | 2017-11-28 14:18:37 -0800 | [diff] [blame] | 122 | ComponentName and reference a valid BroadcastReceiver. This broadcast receiver |
| 123 | must be registered in its containing app's AndroidManifest.xml and it is |
| 124 | strongly recommended that it be protected with the |
| 125 | android.car.permission.STORAGE_MONITORING permission. --> |
Pavel Maltsev | f4b375e | 2018-04-30 10:16:26 -0700 | [diff] [blame] | 126 | <string name="intentReceiverForUnacceptableIoMetrics">com.google.android.car.defaultstoragemonitoringcompanionapp/.ExcessiveIoIntentReceiver</string> |
Joseph Pirozzo | e5ac56c | 2018-01-10 15:05:57 -0800 | [diff] [blame] | 127 | |
| 128 | <!-- The Model ID to advertise Bluetooth Fast Pair connections with. Must be overlayed with |
| 129 | device specific model id. --> |
| 130 | <integer name="fastPairModelId">0x000000</integer> |
| 131 | |
Bryan Eyler | fe99dde | 2018-03-28 13:51:55 -0700 | [diff] [blame] | 132 | <!-- The garage mode configuration, specifying the time after shutdown to reboot into garage |
| 133 | mode and the number of attempts at that time to try before moving to the next wake up |
| 134 | time. This is intended to be a back-off pattern. --> |
| 135 | <string-array translatable="false" name="config_garageModeCadence"> |
| 136 | <!-- <wake up after X min/hour/days>,<how many times> --> |
| 137 | <item>15m,1</item> |
| 138 | <item>6h,8</item> |
| 139 | <item>1d,5</item> |
| 140 | <item>3d,2</item> |
| 141 | <item>7d,3</item> |
| 142 | </string-array> |
| 143 | |
Pavel Maltsev | a1ac7fc | 2018-09-14 14:19:34 -0700 | [diff] [blame] | 144 | <string name="config_TetheredProjectionAccessPointSsid" translatable="false">CarAP</string> |
| 145 | |
Pavel Maltsev | 48a3194 | 2019-03-03 22:08:28 -0800 | [diff] [blame] | 146 | <!-- The consent activity that must be shown for every unknown mobile device before projection |
| 147 | gets started. The format is: com.your.package/com.your.Activity --> |
| 148 | <string name="config_projectionConsentActivity" translatable="false"/> |
| 149 | |
| 150 | <!-- Display Id where projection rendering activity needs to be shown, Specify -1 to use system |
| 151 | defaults --> |
| 152 | <integer name="config_projectionActivityDisplayId" translatable="false">-1</integer> |
| 153 | |
| 154 | <!-- Bounds of the projection activity on the screen. It should be in the pixels and screen |
| 155 | coordinates in the following order: left, top, right, bottom. --> |
| 156 | <integer-array name="config_projectionActivityLaunchBounds" translatable="false"/> |
| 157 | |
| 158 | <!-- UI mode for projection activity. See ProjectionOptions class for possible values. --> |
| 159 | <integer name="config_projectionUiMode" translatable="false">0</integer> |
| 160 | |
keunyoung | 5c7cb26 | 2015-10-19 10:47:45 -0700 | [diff] [blame] | 161 | </resources> |