<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.xugame.gameconsole"
    android:installLocation="internalOnly"
    android:sharedUserId="android.uid.system"
    android:versionCode="1597175257"
    android:versionName="1.15.0">

    <uses-feature android:glEsVersion="0x00020000" />
    <uses-feature
        android:name="android.hardware.touchscreen"
        android:required="false" />
    <uses-feature
        android:name="android.software.leanback"
        android:required="false" />
    <uses-feature
        android:name="android.hardware.gamepad"
        android:required="false" />

    <uses-permission android:name="android.permission.VIBRATE" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission>

    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
    <uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" />
    <!-- 程序自启动权限 -->
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />

    <!--    <uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission>-->


    <uses-permission android:name="android.permission.RECORD_AUDIO" />


    <application
        android:allowAudioPlaybackCapture="true"
        android:allowBackup="true"
        android:extractNativeLibs="true"
        android:hasCode="true"
        android:icon="@mipmap/ic_launcher"
        android:isGame="true"
        android:label="@string/app_name"
        android:requestLegacyExternalStorage="true"
        android:roundIcon="@mipmap/ic_launcher"
        android:supportsRtl="true"
        android:theme="@style/Theme.GameConsole"
        tools:ignore="UnusedAttribute">
        <activity
            android:name=".TextCopyFileActivity"
            android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale"
            android:exported="true"

            android:launchMode="singleTop">
            <intent-filter>
<!--                <action android:name="android.intent.action.MAIN" />-->
<!--                <category android:name="android.intent.category.LAUNCHER" />-->
<!--                <data-->
<!--                    android:host="com.xugame.gameconsole.TextCopyFileActivity"-->
<!--                    android:scheme="com.xugame.gameconsole.TextCopyFileActivity"-->
<!--                    tools:ignore="AppLinkUrlError" />-->
                <category android:name="android.intent.category.LAUNCHER" />

                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.HOME" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.MONKEY" />
            </intent-filter>
        </activity>
        <activity
            android:name=".MainActivity"
            android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale"
            android:exported="true">
            <intent-filter>
                <data
                    android:host="com.xugame.gameconsole.MainActivity"
                    android:scheme="com.xugame.gameconsole.MainActivity"
                    tools:ignore="AppLinkUrlError" />
            </intent-filter>
        </activity>
        <activity
            android:name=".emulator.RetroArchEmulatorActivity"
            android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale"

            android:launchMode="standard">
            <meta-data
                android:name="android.app.lib_name"
                android:value="retroarch-activity" />
            <meta-data
                android:name="android.app.func_name"
                android:value="ANativeActivity_onCreate" />
        </activity>

        <activity android:name=".Test2Activity">
            <meta-data
                android:name="android.app.lib_name"
                android:value="retroarch-activity" />
            <meta-data
                android:name="android.app.func_name"
                android:value="ANativeActivity_onCreate" />

        </activity>
        <activity android:name="com.xugame.Test3Activity"></activity>

        <provider
            android:name="com.retroarch.browser.provider.RetroDocumentsProvider"
            android:authorities="${applicationId}.documents"
            android:enabled="@bool/document_provider_enabled"
            android:exported="true"
            android:grantUriPermissions="true"
            android:permission="android.permission.MANAGE_DOCUMENTS">
            <intent-filter>
                <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
            </intent-filter>
        </provider>
    </application>

</manifest>