<?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="aicare.net.cn.sdk.ailinksdkdemoandroid">

    <!--兼容6.0以上的手机Ble-->

    <uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"
        android:maxSdkVersion="30"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"
        android:maxSdkVersion="30"/>
    <!--OTA需要读写文件-->
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <!--android12需要增加maxSdkVersion-->
    <uses-permission
        android:name="android.permission.BLUETOOTH"
        android:maxSdkVersion="30" />
    <uses-permission
        android:name="android.permission.BLUETOOTH_ADMIN"
        android:maxSdkVersion="30" />
    <!--android12还需要增加如下权限,也需求动态申请-->
    <uses-permission android:name="android.permission.BLUETOOTH_SCAN"
        android:usesPermissionFlags="neverForLocation"
        tools:targetApi="s"/>
    <uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />
    <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
    <!--  声明前台服务连接设备的权限(非必须)  -->
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE" />

    <application
        android:name=".base.MyApplication"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:requestLegacyExternalStorage="true"
        android:roundIcon="@mipmap/ic_launcher"
        android:screenOrientation="portrait"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        android:usesCleartextTraffic="true"
        tools:targetApi="q">

        <activity android:name=".home.MainActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <action android:name="android.intent.action.MAIN" />

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


        <activity android:name=".ClearShakeHandsActivity" />

        <activity android:name=".ShowBleActivity" />
        <activity android:name=".BabyCmdActivity" />
        <activity android:name=".TempGunCmdActivity" />
        <activity android:name=".SphyCmdActivity" />
        <activity android:name=".TempCmdActivity" />
        <activity android:name=".HeightCmdActivity" />
        <activity android:name=".BleCmdActivity" />
        <activity android:name=".TestCmdActivity" />
        <activity android:name=".TpmsConnectCmdActivity" />
        <activity android:name=".ConnectBleTestActivity" />
        <activity android:name=".ADWeightScaleCmdActivity" />
        <activity android:name=".ADWeightScaleUserActivity" />
        <activity android:name=".modules.wifi_ble_scale.WeightScaleWifiBleActivity" />
        <activity android:name=".WeightScaleBleActivity" />
        <activity android:name=".WifiConfigActivity" />
        <activity android:name=".modules.eight_bodyfat.EightBodyfatActivity" />
        <activity android:name=".modules.blood_glucose.BloodGlucoseActivity" />
        <activity android:name=".BabyBodyFatCmdActivity" />
        <activity android:name=".BroadcastScaleActivity" />
        <activity android:name=".TransmissionActivity" />
        <activity android:name=".BroadcastBloodOxygenActivity" />
        <activity android:name=".SmartMaskActivity" />
        <activity android:name=".modules.toothbrush.ToothBrushWifiBleActivity" />
        <activity android:name=".BLDWeightScaleBleActivity" />
        <activity android:name=".BloodOxygenActivity" />
        <activity android:name=".modules.blood_glucose.BloodGlucoseTestActivity" />
        <activity android:name=".modules.share_charger.ShareChargerActivity" />
        <activity android:name=".modules.broadcast_height.BroadcastHeightActivity" />
        <activity android:name=".modules.coffee_scale.CoffeeScaleActivity" />
        <activity android:name=".HeightWeightScaleActivity" />
        <activity android:name=".find.FindDeviceActivity" />
        <activity android:name=".TempHumidityActivity" />
        <activity android:name=".modules.ropeskipping.RopeSkippingActivity" />
        <activity android:name=".modules.airdetector.AirDetectorActivity" />
        <activity android:name=".modules.airdetector_test.AirDetectorActivityTest" />
        <activity
            android:name=".modules.food_temp.FoodTempActivity"
            android:windowSoftInputMode="adjustPan|stateHidden" />
        <activity android:name=".find.FindDeviceNewActivity" />
        <activity android:name=".BloodSugar4GActivity" />
        <activity android:name=".modules.share_socket.ShareSocketActivity" />
        <activity android:name=".modules.share_condom.ShareCondomActivity" />
        <activity android:name=".modules.broadcast_nutrition.BroadNutritionActivity" />
        <activity android:name=".modules.ble_nutrition.BleNutritionActivity" />
        <activity android:name=".modules.toothbrush_test.ToothbrushTestActivity" />
        <activity android:name=".modules.leaone_broadcast.LeaOneBroadcastActivity" />
        <activity android:name=".modules.fascia_gun.FasciaGunActivity" />
        <activity android:name=".modules.blood_pressure_tc.BloodPressureTcActivity" />
        <activity android:name=".modules.ropeskipping.RopeSkippingSetActivity" />
        <activity android:name=".modules.body_scale_4g.BodyScale4GActivity" />
        <activity android:name=".AiLinkScooterActivity" />
        <activity android:name=".modules.TempInstrument.TempInstrumentActivity" />
        <activity android:name=".AboutActivity" />
        <activity android:name=".modules.PublicBleNetworkCmdActivity" />
        <activity android:name=".modules.noise_meter.WifiBleNoiseMeterActivity" />
        <activity android:name=".modules.noise_meter.BleNoiseMeterActivity" />
        <activity
            android:name=".modules.meat_probe_charger.MeatProbeChargerActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".modules.meat_probe.MeatProbeActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".modules.weight_scale.WeightScaleActivity"
            android:screenOrientation="portrait" />

        <activity
            android:name=".modules.broadcast_weight_sacle.BroadcastWeightScaleActivity"
            android:screenOrientation="unspecified" />
        <activity
            android:name=".modules.barometric_temp_humidity.BarometricTempHygrometerActivity"
            android:screenOrientation="portrait" />
        <activity android:name=".modules.wifible_sphy.WifiBleSphyActivity" />
        <activity android:name=".modules.PublicWifiBleOtaActivity" />
        <activity android:name=".modules.eight_bodyfat.dual_band.EightDoubleBodyfatActivity" />
        <activity android:name=".modules.PublicMqttActivity" />

        <activity
            android:name=".modules.bw05watch.Bw05WatchActivity"
            android:screenOrientation="portrait" />
        <activity android:name=".modules.ble_nutrition.BleNutritionNutrientActivity" />
        <activity android:name=".modules.eight_bodyfat.EightBodyFatMcuActivity" />
        <activity android:name=".modules.gasDetector.GasDetectorActivity" />

        <provider
            android:name="androidx.core.content.FileProvider"
            android:authorities="${applicationId}.fileProvider"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/file_paths" />
        </provider>

        <service
            android:name="org.eclipse.paho.android.service.MqttService"
            android:enabled="true"
            android:exported="true"></service>

        <service android:name="com.pingwang.bluetoothlib.server.ELinkBleServer"
            android:foregroundServiceType="connectedDevice"
            >

        </service>
    </application>

</manifest>