AndroidManifest.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools">
  3. <uses-permission android:name="android.permission.INTERNET"/>
  4. <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>
  5. <uses-permission android:name="android.permission.VIBRATE"/>
  6. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
  7. android:maxSdkVersion="29" />
  8. <application
  9. android:label="${appLabel}"
  10. android:name=".App"
  11. android:icon="@mipmap/ic_launcher"
  12. android:theme="@style/Theme.AppCompat.Light.NoActionBar"
  13. tools:replace="android:label,android:theme">
  14. <activity
  15. android:name=".MainActivity"
  16. android:exported="true"
  17. android:launchMode="singleTop"
  18. android:taskAffinity=""
  19. android:theme="@style/LaunchTheme"
  20. android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
  21. android:hardwareAccelerated="true"
  22. android:windowSoftInputMode="adjustResize">
  23. <!-- Specifies an Android theme to apply to this Activity as soon as
  24. the Android process has started. This theme is visible to the user
  25. while the Flutter UI initializes. After that, this theme continues
  26. to determine the Window background behind the Flutter UI. -->
  27. <meta-data
  28. android:name="io.flutter.embedding.android.NormalTheme"
  29. android:resource="@style/NormalTheme"
  30. />
  31. <intent-filter>
  32. <action android:name="android.intent.action.MAIN"/>
  33. <category android:name="android.intent.category.LAUNCHER"/>
  34. </intent-filter>
  35. </activity>
  36. <!-- Don't delete the meta-data below.
  37. This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
  38. <meta-data
  39. android:name="flutterEmbedding"
  40. android:value="2" />
  41. </application>
  42. <!-- Required to query activities that can process text, see:
  43. https://developer.android.com/training/package-visibility and
  44. https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
  45. In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
  46. <queries>
  47. <intent>
  48. <action android:name="android.intent.action.VIEW"/>
  49. <data android:scheme="https"/>
  50. </intent>
  51. <intent>
  52. <action android:name="android.intent.action.VIEW"/>
  53. <data android:scheme="http"/>
  54. </intent>
  55. <intent>
  56. <action android:name="android.intent.action.PROCESS_TEXT"/>
  57. <data android:mimeType="text/plain"/>
  58. </intent>
  59. <!-- Android 11+:否则无法解析 / 拉起处理 APK 的安装器(PACKAGE_INSTALL) -->
  60. <intent>
  61. <action android:name="android.intent.action.VIEW"/>
  62. <data android:mimeType="application/vnd.android.package-archive"/>
  63. </intent>
  64. </queries>
  65. </manifest>