<?xml version="1.0" encoding="utf-8"?>
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:tools="http://schemas.android.com/tools">
|
<!-- 网络相关 -->
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.READ_CONTACTS" /> <!-- 外部存储 -->
|
<!-- Android 13开始,如果你的应用targetSdk指定到了33或以上,READ_EXTERNAL_STORAGE权限就完全失去了作用,需要细化 -->
|
<uses-permission
|
android:name="android.permission.READ_EXTERNAL_STORAGE"
|
android:maxSdkVersion="32" />
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
|
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
<uses-permission android:name="android.permission.RECORD_AUDIO" /> <!-- Android 13版本适配,细化存储权限,READ_EXTERNAL_STORAGE无法再使用 -->
|
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
|
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
|
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" /> <!-- 震动权限 -->
|
<uses-permission android:name="android.permission.VIBRATE" /> <!-- 蓝牙权限 -->
|
<uses-permission android:name="android.permission.BLUETOOTH" /> <!-- 拍照权限 -->
|
<uses-permission android:name="android.permission.CAMERA" /> <!-- 安装权限 -->
|
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" /> <!-- 定位权限(用于 WebView 定位) -->
|
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
|
<queries package="${applicationId}">
|
<intent>
|
<action android:name="android.media.action.IMAGE_CAPTURE" />
|
</intent>
|
<intent>
|
<action android:name="android.media.action.ACTION_VIDEO_CAPTURE" />
|
</intent>
|
</queries>
|
|
<application
|
android:name=".MyApplication"
|
android:allowBackup="true"
|
android:dataExtractionRules="@xml/data_extraction_rules"
|
android:fullBackupContent="@xml/backup_rules"
|
android:icon="@mipmap/ic_launcher"
|
android:label="@string/app_name"
|
android:maxAspectRatio="2.4"
|
android:networkSecurityConfig="@xml/network_security_config"
|
android:resizeableActivity="true"
|
android:supportsRtl="true"
|
android:theme="@style/Theme.app"
|
android:usesCleartextTraffic="true"
|
tools:targetApi="31">
|
<!-- 沉浸式状态栏全面屏 -->
|
<meta-data
|
android:name="android.max_aspect"
|
android:value="2.4" /> <!-- 适配华为(huawei)刘海屏 -->
|
<meta-data
|
android:name="android.notch_support"
|
android:value="true" /> <!-- 适配小米(xiaomi)刘海屏 -->
|
<meta-data
|
android:name="notch.config"
|
android:value="portrait|landscape" /> <!-- 屏幕适配 (默认以宽度适配) -->
|
<meta-data
|
android:name="design_width_in_dp"
|
android:value="360" />
|
<meta-data
|
android:name="design_height_in_dp"
|
android:value="640" />
|
|
<activity
|
android:name=".ui.main.MainActivity"
|
android:exported="true" />
|
<activity
|
android:name=".ui.login.LoginActivity"
|
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>
|
<activity
|
android:name=".ui.function.FamilyMemorabiliaActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.CreateFamilyProjectActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.FamilyAssetsActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.FamilyAssetsDetailActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.HomeDevicesActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.HomeDevicesDetailActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.GrowthExperienceActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.HonorCollectionDetailActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.HonorCollectionActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.LittleDoctorDetailActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.LittleDoctorActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.CleanStorageActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.CleanStorageDetailActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.IncomeAndExpensesActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.IncomeAndExpensesDetailActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.PropertyActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.PropertyDetailActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.HundredWishActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.HundredWishDetailActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.CertificateOfHonorActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.CertificateOfHonorDetailActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.MarriageActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.PetActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.PetMemoActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.PetMemoDetailActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.HealthCareActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.AnnualHealthStatusActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.AnnualHealthStatusDetailActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.PrivacyActivity"
|
android:exported="false" />
|
<activity
|
android:name=".ui.function.PrivacyDetailActivity"
|
android:exported="false" />
|
|
</application>
|
|
</manifest>
|