<?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="cc.winboll.studio.winboll"
    android:sharedUserId="com.termux">

    <!-- 拥有完全的网络访问权限 -->
    <uses-permission android:name="android.permission.INTERNET"/>

    <!-- 发送持久广播 -->
    <uses-permission android:name="android.permission.BROADCAST_STICKY"/>

    <!-- 创建桌面快捷方式（Android 8.0 以下兼容） -->
    <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>

    <!-- 对正在运行的应用重新排序 -->
    <uses-permission android:name="android.permission.REORDER_TASKS"/>

    <!-- 计算应用存储空间 -->
    <uses-permission
        android:name="android.permission.GET_PACKAGE_SIZE"/>

    <uses-permission
        android:name="android.permission.QUERY_ALL_PACKAGES"
        tools:ignore="QueryAllPackagesPermission"/>

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:roundIcon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/MyAppTheme"
        android:resizeableActivity="true"
        android:name=".App"
        android:usesCleartextTraffic="true"
        android:networkSecurityConfig="@xml/network_security_config">

        <activity
            android:name=".MainActivity"
            android:label="@string/app_name"
            android:exported="true"
            android:launchMode="singleTask">

            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data android:scheme="http"/>
                <data android:scheme="https"/>
            </intent-filter>

        </activity>

        <activity android:name=".activities.ShortcutActionActivity"/>

        <activity-alias
            android:name=".MainActivityEN1"
            android:targetActivity=".MainActivity"
            android:exported="true"
            android:label="@string/app_name"
            android:icon="@drawable/ic_launcher"
            android:enabled="true">

            <intent-filter>

                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.intent.category.LAUNCHER"/>

            </intent-filter>

            <meta-data
                android:name="android.app.shortcuts"
                android:resource="@xml/shortcutsmainen1"/>

        </activity-alias>

        <activity-alias
            android:name=".MainActivityCN1"
            android:targetActivity=".MainActivity"
            android:exported="true"
            android:label="@string/app_name_cn1"
            android:icon="@drawable/ic_winboll_jindouyun1"
            android:enabled="false">

            <intent-filter>

                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.intent.category.LAUNCHER"/>

            </intent-filter>

            <meta-data
                android:name="android.app.shortcuts"
                android:resource="@xml/shortcutsmaincn1"/>

        </activity-alias>

        <activity-alias
            android:name=".MainActivityCN2"
            android:targetActivity=".MainActivity"
            android:exported="true"
            android:label="@string/app_name_cn2"
            android:icon="@drawable/ic_winboll_jindouyun2"
            android:enabled="false">

            <intent-filter>

                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.intent.category.LAUNCHER"/>

            </intent-filter>

            <meta-data
                android:name="android.app.shortcuts"
                android:resource="@xml/shortcutsmaincn2"/>

        </activity-alias>

        <activity
            android:name=".activities.WinBoLLUnitTestActivity"
            android:label="@string/app_name"
            android:exported="true"
            android:resizeableActivity="true"
            android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation">

            <intent-filter>

                <action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES"/>

                <category android:name="android.intent.category.DEFAULT"/>

            </intent-filter>

        </activity>

        <activity
            android:name=".activities.NewActivity"
            android:label="NewActivity"
            android:exported="true"
            android:resizeableActivity="true"
            android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation"/>

        <activity
            android:name=".activities.New2Activity"
            android:label="New2Activity"
            android:exported="true"
            android:resizeableActivity="true"
            android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation"/>

        <service
            android:name=".MyTileService"
            android:exported="true"
            android:label="@string/tileservice_name"
            android:icon="@drawable/ic_launcher"
            android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">

            <intent-filter>

                <action android:name="android.service.quicksettings.action.QS_TILE"/>

            </intent-filter>

        </service>

        <service
            android:name=".services.MainService"
            android:exported="true"/>

        <service
            android:name="cc.winboll.studio.appbase.services.TestDemoBindService"
            android:exported="true"/>

        <service
            android:name="cc.winboll.studio.appbase.services.TestDemoService"
            android:exported="true"/>

        <service android:name=".services.AssistantService"/>

        <receiver
            android:name="cc.winboll.studio.appbase.receivers.MainReceiver"
            android:exported="true">

            <intent-filter>

                <action android:name="cc.winboll.studio.appbase.receivers.MainReceiver"/>

            </intent-filter>

        </receiver>

        <receiver
            android:name=".widgets.APPNewsWidget"
            android:exported="true">

            <intent-filter>

                <action android:name="cc.winboll.studio.appbase.widgets.APPNewsWidget.ACTION_WAKEUP_SERVICE"/>

                <action android:name="cc.winboll.studio.appbase.widgets.APPNewsWidget.ACTION_RELOAD_REPORT"/>

                <action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>

            </intent-filter>

            <meta-data
                android:name="android.appwidget.provider"
                android:resource="@xml/widget_provider_info_sos"/>

        </receiver>

        <receiver
            android:name=".receivers.APPNewsWidgetClickListener"
            android:exported="true">

            <intent-filter>

                <action android:name="cc.winboll.studio.appbase.receivers.APPNewsWidgetClickListener.ACTION_PRE"/>

                <action android:name="cc.winboll.studio.appbase.receivers.APPNewsWidgetClickListener.ACTION_NEXT"/>

            </intent-filter>

        </receiver>

        <service
            android:name=".SimpleOperateSignalCenterService"
            android:exported="true">

        </service>

        <service
            android:name=".services.TestService"
            android:exported="true"/>

        <receiver
            android:name=".receiver.MyBroadcastReceiver"
            android:exported="true">

            <intent-filter>

                <action android:name="cc.winboll.studio.libappbase.action.SOS"/>

            </intent-filter>

        </receiver>

        <receiver
            android:name=".widgets.StatusWidget"
            android:exported="true">

            <intent-filter>

                <action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>

                <action android:name="cc.winboll.studio.libappbase.widgets.StatusWidget.ACTION_STATUS_UPDATE"/>

            </intent-filter>

            <meta-data
                android:name="android.appwidget.provider"
                android:resource="@xml/widget_provider_info_status"/>

        </receiver>

        <receiver
            android:name=".widgets.StatusWidgetClickListener"
            android:exported="true">

            <intent-filter>

                <action android:name="cc.winboll.studio.libappbase.widgets.StatusWidgetClickListener.ACTION_IVAPP"/>

            </intent-filter>

        </receiver>

        <service android:name="cc.winboll.studio.libappbase.sos.SOSCenter"/>

        <receiver
            android:name="cc.winboll.studio.libappbase.sos.SOSCenterServiceReceiver"
            android:exported="true">

            <intent-filter>

                <action android:name="cc.winboll.studio.libappbase.sos.SOSCenterServiceReceiver"/>

            </intent-filter>

        </receiver>

        <activity android:name="cc.winboll.studio.libappbase.activities.YunActivity"/>

        <activity android:name="cc.winboll.studio.libappbase.activities.LogonActivity"/>

        <activity android:name="cc.winboll.studio.winboll.activities.AboutActivity"/>

        <activity android:name="cc.winboll.studio.winboll.activities.SettingsActivity"/>

        <activity android:name="cc.winboll.studio.winboll.unittest.TestWeWorkSpecSDK"/>

        <activity android:name="cc.winboll.studio.winboll.activities.WXPayActivity"/>

        <activity android:name="cc.winboll.studio.winboll.activities.PatternLockActivity"
            android:exported="true">

            <intent-filter>

                <action android:name="cc.winboll.studio.winboll.activities.PatternLockActivity.ACTION_OPEN_PATTERN"/>

                <category android:name="android.intent.category.DEFAULT"/>

            </intent-filter>

        </activity>

        <activity android:name="cc.winboll.studio.winboll.unittest.TermuxEnvTestActivity"/>

        <activity
            android:name=".termux.NfcTermuxBridgeActivity"
            android:exported="true">

            <intent-filter>

                <action android:name="cc.winboll.studio.winboll.termux.NfcTermuxBridgeActivity.ACTION_BUILD"/>

                <category android:name="android.intent.category.DEFAULT"/>

            </intent-filter>

        </activity>

        <activity android:name="cc.winboll.studio.winboll.termux.MyTermuxActivity"
            android:label="@string/my_termux_activity"
            android:exported="true"
            android:launchMode="singleTask">

            <intent-filter>

                <action android:name="cc.winboll.studio.winboll.action.EXECUTE_TERMUX_BUTTON"/>

                <category android:name="android.intent.category.DEFAULT"/>

            </intent-filter>

        </activity>

    </application>

</manifest>