<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="org.amnezia.vpn.shadowsocks.core"
    tools:ignore="MissingLeanbackLauncher">

    <uses-feature
        android:name="android.hardware.touchscreen"
        android:required="false" />

    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />


    <application
        android:allowBackup="true"
        android:fullBackupContent="@xml/backup_descriptor"
        android:fullBackupOnly="true"
        android:networkSecurityConfig="@xml/network_security_config"
        android:supportsRtl="true"
        tools:targetApi="n">

        <meta-data
            android:name="android.webkit.WebView.EnableSafeBrowsing"
            android:value="true" />
        <meta-data
            android:name="com.google.android.backup.api_key"
            android:value="AEdPqrEAAAAI_zVxZthz2HDuz9toTvkYvL0L5GA-OjeUIfBeXg" />

<!--        <service-->
<!--            android:name="org.amnezia.vpn.shadowsocks.core.bg.ShadowsocksVpnService"-->
<!--            android:directBootAware="true"-->
<!--            android:exported="false"-->
<!--            android:label="@string/app_name"-->
<!--            android:permission="android.permission.BIND_VPN_SERVICE"-->
<!--            android:process=":BG"-->
<!--            tools:targetApi="n">-->
<!--            <intent-filter>-->
<!--                <action android:name="android.net.VpnService" />-->
<!--            </intent-filter>-->
<!--        </service>-->

<!--        <service-->
<!--            android:name="org.amnezia.vpn.shadowsocks.core.bg.TransproxyService"-->
<!--            android:directBootAware="true"-->
<!--            android:exported="false"-->
<!--            android:process=":QtOnlyProcess"-->
<!--            tools:targetApi="n" />-->

<!--        <service-->
<!--            android:name="org.amnezia.vpn.shadowsocks.core.bg.ProxyService"-->
<!--            android:directBootAware="true"-->
<!--            android:exported="false"-->
<!--            android:process=":QtOnlyProcess"-->
<!--            tools:targetApi="n" />-->

<!--        <activity-->
<!--            android:name="org.amnezia.vpn.shadowsocks.core.VpnRequestActivity"-->
<!--            android:excludeFromRecents="true"-->
<!--            android:launchMode="singleTask"-->
<!--            android:taskAffinity=""-->
<!--            android:theme="@style/Theme.AppCompat.Translucent" />-->

        <receiver
            android:name="org.amnezia.vpn.shadowsocks.core.BootReceiver"
            android:directBootAware="true"
            android:enabled="false"
            android:process=":QtOnlyProcess"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
                <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
            </intent-filter>
        </receiver>

        <!-- https://android.googlesource.com/platform/frameworks/support/+/androidx-master-dev/work/workmanager/src/main/AndroidManifest.xml -->
        <provider
            android:name="androidx.work.impl.WorkManagerInitializer"
            android:authorities="androidx.work.impl.WorkManagerInitializer"
            tools:node="remove" />

        <service
            android:name="androidx.work.impl.background.systemalarm.SystemAlarmService"
            android:directBootAware="true"
            android:process=":QtOnlyProcess"
            tools:replace="android:directBootAware" />
        <service
            android:name="androidx.work.impl.background.systemjob.SystemJobService"
            android:directBootAware="true"
            android:process=":QtOnlyProcess"
            tools:replace="android:directBootAware" />

        <receiver
            android:name="androidx.work.impl.utils.ForceStopRunnable$BroadcastReceiver"
            android:directBootAware="true"
            android:process=":QtOnlyProcess"
            tools:replace="android:directBootAware" />
        <receiver
            android:name="androidx.work.impl.background.systemalarm.ConstraintProxy$BatteryChargingProxy"
            android:directBootAware="true"
            android:process=":QtOnlyProcess"
            tools:replace="android:directBootAware" />
        <receiver
            android:name="androidx.work.impl.background.systemalarm.ConstraintProxy$BatteryNotLowProxy"
            android:directBootAware="true"
            android:process=":QtOnlyProcess"
            tools:replace="android:directBootAware" />
        <receiver
            android:name="androidx.work.impl.background.systemalarm.ConstraintProxy$StorageNotLowProxy"
            android:directBootAware="true"
            android:process=":QtOnlyProcess"
            tools:replace="android:directBootAware" />
        <receiver
            android:name="androidx.work.impl.background.systemalarm.ConstraintProxy$NetworkStateProxy"
            android:directBootAware="true"
            android:process=":QtOnlyProcess"
            tools:replace="android:directBootAware" />
        <receiver
            android:name="androidx.work.impl.background.systemalarm.RescheduleReceiver"
            android:directBootAware="true"
            android:process=":QtOnlyProcess"
            tools:replace="android:directBootAware" />
        <receiver
            android:name="androidx.work.impl.background.systemalarm.ConstraintProxyUpdateReceiver"
            android:directBootAware="true"
            android:process=":QtOnlyProcess"
            tools:replace="android:directBootAware" />
    </application>
</manifest>
