• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    <!-- True if the device supports system decorations on secondary displays. -->
30    <bool name="config_supportsSystemDecorsOnSecondaryDisplays">true</bool>
31
32    <!-- This is the default launcher package with an activity to use on secondary displays that
33         support system decorations.
34         This launcher package must have an activity that supports multiple instances and has
35         corresponding launch mode set in AndroidManifest.
36         {@see android.view.Display#FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS} -->
37    <string name="config_secondaryHomePackage" translatable="false">com.android.car.multidisplay</string>
38
39    <!-- Whether the system enables per-display focus. If the system has the input method for each
40         display, this value should be true. -->
41    <bool name="config_perDisplayFocusEnabled">true</bool>
42
43    <!-- Whether to only install system packages on a user if they're allow-listed for that user
44         type. These are flags and can be freely combined.
45         0  - disable allow-list (install all system packages; no logging)
46         1  - enforce (only install system packages if they are allow-listed)
47         2  - log (log non-allow-listed packages)
48         4  - any package not mentioned in the allow-list file is implicitly allow-listed on all users
49         8  - same as 4, but just for the SYSTEM user
50         16 - ignore OTAs (don't install system packages during OTAs)
51         Common scenarios:
52          - to enable feature (fully enforced) for a complete allow-list: 1
53          - to enable feature for an incomplete allow-list (so use implicit allow-list mode): 5
54          - to enable feature but implicitly allow-list for SYSTEM user to ease local development: 9
55          - to disable feature completely if it had never been enabled: 16
56          - to henceforth disable feature and try to undo its previous effects: 0
57        Note: This list must be kept current with PACKAGE_WHITELIST_MODE_PROP in
58        frameworks/base/services/core/java/com/android/server/pm/UserSystemPackageInstaller.java
59        Package allow-list disabled for testing profile user as default allow-list does not
60        support PROFILE user. -->
61    <integer name="config_userTypePackageWhitelistMode">2</integer>
62
63</resources>
64