1<?xml version='1.0' encoding='utf-8'?>
2<!-- Copyright (C) 2021 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<resourceOveruseConfiguration version="1.0">
18  <componentType> VENDOR </componentType>
19
20  <!-- List of safe to kill system packages. -->
21  <safeToKillPackages>
22    <package> com.vendor.package.A </package>
23    <package> com.vendor.package.B </package>
24  </safeToKillPackages>
25
26  <!-- List of vendor package prefixes. -->
27  <vendorPackagePrefixes>
28    <packagePrefix> com.vendor.package </packagePrefix>
29  </vendorPackagePrefixes>
30
31  <!-- List of unique package names to app category mappings. -->
32  <packagesToAppCategoryTypes>
33    <packageAppCategory type="MEDIA"> com.vendor.package.A </packageAppCategory>
34    <packageAppCategory type="MAPS"> com.vendor.package.B </packageAppCategory>
35    <packageAppCategory type="MEDIA"> com.third.party.package.C </packageAppCategory>
36    <packageAppCategory type="MAPS"> system.package.D </packageAppCategory>
37  </packagesToAppCategoryTypes>
38
39  <ioOveruseConfiguration>
40    <!-- Thresholds in MiB for all vendor packages that don’t have package specific thresholds. -->
41    <componentLevelThresholds>
42      <state id="foreground_mode"> 1024 </state>
43      <state id="background_mode"> 512 </state>
44      <state id="garage_mode"> 3072 </state>
45    </componentLevelThresholds>
46
47    <!-- Package specific thresholds. -->
48    <packageSpecificThresholds>
49      <perStateThreshold id="com.vendor.package.C">
50        <state id="foreground_mode"> 400 </state>
51        <state id="background_mode"> 100 </state>
52        <state id="garage_mode"> 200 </state>
53      </perStateThreshold>
54
55      <perStateThreshold id="com.vendor.package.D">
56        <state id="foreground_mode"> 1024 </state>
57        <state id="background_mode"> 500 </state>
58        <state id="garage_mode"> 2048 </state>
59      </perStateThreshold>
60    </packageSpecificThresholds>
61
62    <!-- Application category specific thresholds. -->
63    <appCategorySpecificThresholds>
64      <perStateThreshold id="MEDIA">
65        <state id="foreground_mode"> 600 </state>
66        <state id="background_mode"> 700 </state>
67        <state id="garage_mode"> 1024 </state>
68      </perStateThreshold>
69
70      <perStateThreshold id="MAPS">
71        <state id="foreground_mode"> 800 </state>
72        <state id="background_mode"> 900 </state>
73        <state id="garage_mode"> 2048 </state>
74      </perStateThreshold>
75    </appCategorySpecificThresholds>
76  </ioOveruseConfiguration>
77</resourceOveruseConfiguration>
78