<?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.
*/
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.privatespace">

    <application
        android:label="@string/private_space_app_label"
        android:icon="@mipmap/ic_app_icon"
        android:supportsRtl="true">
        <activity android:name=".PrivateSpaceActivity"
            android:exported="true"
            android:theme="@style/Theme.TransparentActivity"
            android:excludeFromRecents="true"
            android:screenOrientation="user"
            android:featureFlag="android.multiuser.enable_moving_content_into_private_space"
            android:label="@string/private_space_activity_label">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <meta-data android:name="android.app.shortcuts"
                android:resource="@xml/shortcuts" />
        </activity>
        <service
            android:name=".filetransfer.FileTransferService"
            android:exported="false"
            android:foregroundServiceType="mediaProcessing"
            android:featureFlag="android.multiuser.enable_moving_content_into_private_space"/>

        <receiver android:name=".BootCompletedBroadcastReceiver"
            android:exported="false"
            android:featureFlag="android.multiuser.enable_moving_content_into_private_space">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>

    </application>

    <uses-permission android:name="android.permission.ACCESS_HIDDEN_PROFILES_FULL" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROCESSING" />
    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

    <uses-sdk android:minSdkVersion="36" android:targetSdkVersion="36" />
</manifest>
