<?xml version="1.0" encoding="utf-8"?><!--
  ~ SPDX-FileCopyrightText: 2020 microG Project Team
  ~ SPDX-License-Identifier: Apache-2.0
  -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="com.google.android.gms.nearby.exposurenotification.EXPOSURE_CALLBACK" />
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

    <application>

        <!-- Exposure Notifications -->

        <service
            android:name="org.microg.gms.nearby.exposurenotification.ScannerService"
            android:process=":persistent" />
        <service
            android:name="org.microg.gms.nearby.exposurenotification.AdvertiserService"
            android:process=":persistent" />
        <service
            android:name="org.microg.gms.nearby.exposurenotification.CleanupService"
            android:process=":persistent" />
        <service
            android:name="org.microg.gms.nearby.exposurenotification.NotifyService"
            android:process=":persistent" />

        <service
            android:name="org.microg.gms.nearby.exposurenotification.ExposureNotificationService"
            android:process=":persistent"
            android:exported="true">
            <intent-filter>
                <action android:name="com.google.android.gms.nearby.exposurenotification.START" />
            </intent-filter>
        </service>

        <receiver
            android:name="org.microg.gms.nearby.exposurenotification.ServiceTrigger"
            android:process=":persistent"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />

                <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
                <action android:name="android.intent.action.PACKAGE_RESTARTED" />
            </intent-filter>
        </receiver>

        <provider
            android:name="org.microg.gms.nearby.exposurenotification.ExposureFileProvider"
            android:authorities="${applicationId}.microg.exposure.export"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/preferences_exposure_notifications_exportedfiles" />
        </provider>

        <activity
            android:name="org.microg.gms.nearby.exposurenotification.ui.ExposureNotificationsConfirmActivity"
            android:exported="false"
            android:process=":ui"
            android:theme="@style/Theme.AppCompat.DayNight.Dialog.Alert.NoActionBar">
            <intent-filter>
                <action android:name="org.microg.gms.nearby.exposurenotification.CONFIRM" />
            </intent-filter>
        </activity>
        <activity
            android:name="org.microg.gms.nearby.exposurenotification.ui.ExposureNotificationsSettingsActivity"
            android:exported="false"
            android:process=":ui"
            android:theme="@style/Theme.AppCompat.DayNight">
            <intent-filter android:priority="-100">
                <action android:name="com.google.android.gms.settings.EXPOSURE_NOTIFICATION_SETTINGS" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
    </application>
</manifest>
