<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2025 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<!-- Allowlist for system packages included in handheld_system_ext.mk -->
<config>
    <!--  Settings (Settings app) -->
    <!--  Do not install the Settings app for non-FULL SYSTEM user -->
    <!--  @TODO To revisit it again and see if this package still needs to
        be installed on all the PROFILE user types listed,
        b/408457689 - Only changing broader PROFILE to granual PROFILE types.
    -->
    <install-in-user-type package="com.android.settings">
        <install-in user-type="FULL" />
        <install-in user-type="android.os.usertype.profile.CLONE" />
        <install-in user-type="android.os.usertype.profile.MANAGED" />
        <install-in user-type="android.os.usertype.profile.PRIVATE" />
        <install-in user-type="android.os.usertype.profile.SUPERVISING" />
    </install-in-user-type>

    <!-- AccessibilityMenu Service (AccessibilityMenu) that provides touchscreen buttons
        for key system features.
    -->
    <install-in-user-type package="com.android.systemui.accessibility.accessibilitymenu">
        <install-in user-type="FULL" />
    </install-in-user-type>

    <!-- CarrierConfig (CarrierConfig app) -->
    <install-in-user-type package="com.android.carrierconfig">
        <install-in user-type="SYSTEM" />
        <install-in user-type="FULL" />
        <install-in user-type="PROFILE" />
    </install-in-user-type>

    <!-- SystemUI: "everything you see that's not an app™" -->
    <!-- com.android.systemui needs to be pretty much everywhere: HSU, full and managed users -->
    <install-in-user-type package="com.android.systemui">
        <install-in user-type="SYSTEM" />
        <install-in user-type="FULL" />
        <install-in user-type="PROFILE" />
    </install-in-user-type>

    <!-- Quickstep Launcher (Launcher3QuickStep) -->
    <install-in-user-type package="com.android.launcher3">
        <!-- TODO(b/456525459): Unfortunately some things (eg recents) look specifically for
             launcher in user 0
        -->
        <install-in user-type="SYSTEM" />
        <install-in user-type="FULL" />
    </install-in-user-type>
</config>
