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

    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
    <uses-permission android:name="android.permission.BODY_SENSORS" />

    <uses-permission
        android:name="android.permission.LOCATION_HARDWARE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.INSTALL_LOCATION_PROVIDER"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.NETWORK_SCAN"
        tools:ignore="ProtectedPermissions" />
    <uses-permission
        android:name="android.permission.MODIFY_PHONE_STATE"
        tools:ignore="ProtectedPermissions" />

    <application>
        <uses-library android:name="com.android.location.provider" />

        <service
            android:name="org.microg.gms.location.network.NetworkLocationService"
            android:exported="false">
            <intent-filter>
                <action android:name="org.microg.gms.location.network.ACTION_NETWORK_LOCATION_SERVICE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="org.microg.gms.location.network.ACTION_NETWORK_IMPORT_EXPORT" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </service>
        <provider
            android:name="org.microg.gms.location.network.DatabaseExportFileProvider"
            android:authorities="${applicationId}.microg.location.export"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/location_exported_files" />
        </provider>
        <service
            android:name="org.microg.gms.location.provider.NetworkLocationProviderService"
            android:exported="true"
            android:permission="android.permission.WRITE_SECURE_SETTINGS">
            <intent-filter>
                <action android:name="com.android.location.service.v2.NetworkLocationProvider" />
                <action android:name="com.android.location.service.v3.NetworkLocationProvider" />
            </intent-filter>
            <meta-data
                android:name="serviceVersion"
                android:value="2" />
        </service>
        <service
            android:name="org.microg.gms.location.provider.FusedLocationProviderService"
            android:exported="true"
            android:permission="android.permission.WRITE_SECURE_SETTINGS">
            <intent-filter>
                <action android:name="com.android.location.service.FusedLocationProvider" />
            </intent-filter>
            <meta-data
                android:name="serviceVersion"
                android:value="2" />
        </service>
        <service
            android:name="org.microg.gms.location.provider.GeocodeProviderService"
            android:exported="true"
            android:permission="android.permission.WRITE_SECURE_SETTINGS">
            <intent-filter>
                <action android:name="com.android.location.service.GeocodeProvider" />
                <action android:name="com.google.android.location.GeocodeProvider" />
            </intent-filter>
            <meta-data
                android:name="serviceVersion"
                android:value="2" />
        </service>
    </application>
</manifest>
