<?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.ccwangluo.accelerator">

    <!-- 【必须】 移动推送 TPNS SDK VIP版本所需权限 -->
    <permission
        android:name="com.ccwangluo.accelerator.permission.XGPUSH_RECEIVE"
        android:protectionLevel="signature" />
    <uses-permission android:name="com.ccwangluo.accelerator.permission.XGPUSH_RECEIVE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
    <uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" /> <!-- 通过GPS得到精确位置 -->
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <!-- 通过网络得到粗略位置 -->
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <!-- 访问网络. 某些位置信息需要从网络服务器获取 -->
    <uses-permission android:name="android.permission.INTERNET" /> <!-- 访问WiFi状态. 需要WiFi信息用于网络定位 -->
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <!-- 修改WiFi状态. 发起WiFi扫描, 需要WiFi信息用于网络定位 -->
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <!-- 访问网络的变化, 需要某些信息用于网络定位 -->
    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> <!-- 访问手机当前状态, 需要device id用于网络定位 -->
    <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <!-- 访问蓝牙状态，需要蓝牙信息用于网络定位 -->
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> <!-- 支持A-GPS辅助定位 -->
    <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /> <!-- 用于 log 日志 -->
    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"  tools:ignore="QueryAllPackagesPermission"/>

    <uses-permission android:name="android.permission.RECORD_AUDIO" tools:node="remove"/>
<!--    <uses-permission android:name="android.permission.READ_SMS" tools:node="remove"/>-->
    <uses-permission android:name="android.permission.READ_CALENDAR" tools:node="remove"/>
    <uses-permission android:name="android.permission.READ_CONTACTS" tools:node="remove"/>
    <uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" tools:node="remove"/>
<!-- 配置可查询包名， 配置测试游戏必须添加 添加  -->
    <queries>
        <package android:name="com.tencent.mm" />
        <package android:name="com.tencent.mobileqq" />
        <package android:name="com.qzone" />
        <package android:name="com.baidu.browser.apps" />
        <package android:name="com.ldsanguo.shark" />
        <package android:name="com.ldsanguomj.shark" />
        <package android:name="com.nexon.mdnf.cbt" />
        <package android:name="com.google.android.gsf" />
        <package android:name="com.google.android.gms" />
        <package android:name="com.android.vending" />
        <package android:name="com.tencent.mm" />
        <package android:name="com.goplaycn.googleinstall" />
        <package android:name="io.kkzs" />
        <package android:name="com.eg.android.AlipayGphone" />
        <package android:name="com.pearlabyss.blackdesertm"/>
        <package android:name="com.wemade.mir4global"/>
        <package android:name="com.wemade.mir4"/>
        <package android:name="com.netmarble.nanakr"/>
        <package android:name="com.nexon.mdnf"/>
    </queries>

    <application
        android:name=".App"
        android:allowBackup="true"
        android:icon="@mipmap/tt_logo"
        android:label="@string/app_name"
        android:networkSecurityConfig="@xml/network_security_config"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        android:largeHeap="true"
        android:usesCleartextTraffic="true">
        <activity
            android:name=".ui.login.PhoneLoginActivity"
            android:exported="false"
            android:screenOrientation="portrait"
            android:theme="@style/AppTheme.NoActionBar" >
        </activity>
        <activity
            android:name=".ui.MainActivity"
            android:label="@string/app_name"
            android:exported="true"
            android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

        <meta-data
            android:name="TencentMapSDK"
            android:value="KZFBZ-QJ26J-WAYFC-FIO5N-FE453-QTFTT" />

        <meta-data
            android:name="XG_SERVER_SUFFIX"
            android:value="tpns.sh.tencent.com" />
        <uses-library android:name="org.apache.http.legacy" android:required="false"/>
        <receiver android:name=".receiver.MyXGPushBaseReceiver">
            <intent-filter>
                <!-- 接收消息透传 -->
                <action android:name="com.tencent.android.xg.vip.action.PUSH_MESSAGE" />
                <!-- 监听注册、反注册、设置/删除标签、通知被点击等处理结果 -->
                <action android:name="com.tencent.android.xg.vip.action.FEEDBACK" />
            </intent-filter>
        </receiver>
        <!-- 在自身应用的AndroidManifest.xml文件中添加如下结点，其中 xxx 为任意自定义名称: -->
        <!-- 关闭与 TPNS 应用的联合保活功能，请配置 -->
        <provider
            android:name="com.tencent.android.tpush.XGPushProvider"
            tools:replace="android:authorities"
            android:authorities="com.ccwangluo.accelerator.ccwangluo.XGVIP_PUSH_AUTH"
            android:exported="false" />
        <activity android:name=".ui.web.BlankActivity"/>
        <activity
            android:name=".wxapi.WXEntryActivity"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:exported="true"
            android:theme="@android:style/Theme.Translucent.NoTitleBar" />
         <provider android:name="androidx.core.content.FileProvider"
         android:authorities="com.ccwangluo.accelerator.fileprovider"
         android:exported="false"
             tools:replace="android:authorities"
         android:grantUriPermissions="true">
         <meta-data
         android:name="android.support.FILE_PROVIDER_PATHS"
         android:resource="@xml/filepaths"/>
         </provider>
        <activity
            android:name="com.tencent.tauth.AuthActivity"
            android:launchMode="singleTask"
            android:noHistory="true">
            <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="101994779" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.tencent.connect.common.AssistActivity"
            android:configChanges="orientation|keyboardHidden"
            android:screenOrientation="behind"
            android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<!--         <provider-->
<!--         android:authorities="com.ccwangluo.accelerator.fileprovider"-->
<!--         android:name="androidx.core.content.FileProvider"-->
<!--         android:exported="false"-->
<!--         android:grantUriPermissions="true"-->
<!--         >-->
<!--         <meta-data-->
<!--         android:name="android.support.FILE_PROVIDER_PATHS"-->
<!--         android:resource="@xml/filepaths"/>-->
<!--         </provider>-->
<!--        <activity-->
<!--            android:name="com.alipay.sdk.app.H5PayActivity"-->
<!--            android:configChanges="orientation|keyboardHidden|navigation"-->
<!--            android:exported="false"-->
<!--            android:screenOrientation="behind" >-->
<!--        </activity>-->
<!--        <activity-->
<!--            android:name="com.alipay.sdk.auth.AuthActivity"-->
<!--            android:configChanges="orientation|keyboardHidden|navigation"-->
<!--            android:exported="false"-->
<!--            android:screenOrientation="behind" >-->
<!--        </activity>-->

        <activity
            android:name="com.chuanglan.shanyan_sdk.view.CmccLoginActivity"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:launchMode="singleTop"
            android:screenOrientation="behind"
            />

        <activity-alias
            android:name="com.cmic.gen.sdk.view.GenLoginAuthActivity"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:launchMode="singleTop"
            android:screenOrientation="behind"
            android:targetActivity="com.chuanglan.shanyan_sdk.view.CmccLoginActivity"
            />
        <activity
            android:name="com.chuanglan.shanyan_sdk.view.ShanYanOneKeyActivity"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:launchMode="singleTop"
            android:screenOrientation="behind"
            />
        <activity
            android:name="com.chuanglan.shanyan_sdk.view.CTCCPrivacyProtocolActivity"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:launchMode="singleTop"
            android:screenOrientation="behind"
            />
    </application>

</manifest>