Sumedh Sen | 61542be | 2023-01-19 15:59:37 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | ~ Copyright (C) 2023 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 | <!-- |
| 19 | This XML defines an allowlist for packages that should not be scanned in a "stopped" state. |
| 20 | When this feature is turned on (indicated by the config config_stopSystemPackagesByDefault in |
| 21 | core/res/res/values/config.xml) packages on the system partition that are encountered by |
| 22 | the PackageManagerService for the first time are scanned in the "stopped" state. This allowlist |
| 23 | is also considered while creating new users on the device. Stopped state is not set during |
| 24 | subsequent reboots. |
| 25 | |
| 26 | Example usage |
| 27 | 1. <initial-package-state package="com.example.app" stopped="false"/> |
| 28 | Indicates that a system package - com.example.app's initial stopped state should not be set |
| 29 | by the Package Manager. By default, system apps are marked as stopped. |
| 30 | 2. <initial-package-state package="com.example.app" stopped="true"/> |
| 31 | Indicates that a system package - com.example.app's initial state should be set by the |
| 32 | Package Manager to "stopped=true". It will have the same effect on the |
| 33 | package's stopped state even if this package was not included in the allow list. |
| 34 | 3. <initial-package-state package="com.example.app"/> |
| 35 | Invalid usage. |
| 36 | --> |
| 37 | |
| 38 | <config></config> |