1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4** Copyright 2022, 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<!--
21  Overlay resources to configure car service based on each OEM's preference.
22  See also packages/services/Car/service/res/values/config.xml
23-->
24<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
25
26    <!-- Maximum number of users we allow to be running at a time -->
27    <integer name="config_multiuserMaxRunningUsers">5</integer>
28
29    <!-- Whether the system enables per-display focus. If the system has the input method for each
30         display, this value should be true. -->
31    <bool name="config_perDisplayFocusEnabled">true</bool>
32
33    <!-- Whether to only install system packages on a user if they're allow-listed for that user
34         type. These are flags and can be freely combined.
35         0  - disable allow-list (install all system packages; no logging)
36         1  - enforce (only install system packages if they are allow-listed)
37         2  - log (log non-allow-listed packages)
38         4  - any package not mentioned in the allow-list file is implicitly allow-listed on all users
39         8  - same as 4, but just for the SYSTEM user
40         16 - ignore OTAs (don't install system packages during OTAs)
41         Common scenarios:
42          - to enable feature (fully enforced) for a complete allow-list: 1
43          - to enable feature for an incomplete allow-list (so use implicit allow-list mode): 5
44          - to enable feature but implicitly allow-list for SYSTEM user to ease local development: 9
45          - to disable feature completely if it had never been enabled: 16
46          - to henceforth disable feature and try to undo its previous effects: 0
47        Note: This list must be kept current with PACKAGE_WHITELIST_MODE_PROP in
48        frameworks/base/services/core/java/com/android/server/pm/UserSystemPackageInstaller.java
49        Package allow-list disabled for testing profile user as default allow-list does not
50        support PROFILE user. -->
51    <integer name="config_userTypePackageWhitelistMode">2</integer>
52
53    <!-- Whether the device allows users to start in background visible on displays.
54         Should be false for most devices, except automotive vehicle with passenger displays. -->
55    <bool name="config_multiuserVisibleBackgroundUsers">true</bool>
56
57</resources>
58