AndroidManifest.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools">
  3. <!--允许访问网络,必选权限-->
  4. <uses-permission android:name="android.permission.INTERNET" />
  5. <!--允许获取精确位置,精准定位必选-->
  6. <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  7. <!--允许获取粗略位置,粗略定位必选-->
  8. <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
  9. <!--允许获取设备和运营商信息,用于问题排查和网络定位(无gps情况下的定位),若需网络定位功能则必选-->
  10. <uses-permission android:name="android.permission.READ_PHONE_STATE" />
  11. <!--允许获取网络状态,用于网络定位(无gps情况下的定位),若需网络定位功能则必选-->
  12. <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  13. <!--允许获取wifi网络信息,用于网络定位(无gps情况下的定位),若需网络定位功能则必选-->
  14. <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
  15. <!--允许获取wifi状态改变,用于网络定位(无gps情况下的定位),若需网络定位功能则必选-->
  16. <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
  17. <!--后台获取位置信息,若需后台定位则必选-->
  18. <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
  19. <!--用于申请调用A-GPS模块,卫星定位加速-->
  20. <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
  21. <!--允许写设备缓存,用于问题排查-->
  22. <uses-permission android:name="android.permission.WRITE_SETTINGS" />
  23. <!--允许写入扩展存储,用于写入缓存定位数据-->
  24. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  25. <!--允许读设备等信息,用于问题排查-->
  26. <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
  27. <!--允许安装应用-->
  28. <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
  29. <!-- 蓝⽛打印机权限 -->
  30. <!-- 蓝⽛权限 -->
  31. <uses-permission android:name="android.permission.BLUETOOTH" />
  32. <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
  33. <!-- android 5以上 android 12以下,蓝⽛搜索需要位置权限 -->
  34. <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
  35. <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"
  36. />
  37. <!--android 12 需要申请蓝⽛搜索权限、连接权限 ⽆需申请位置权限 -->
  38. <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
  39. <uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation" tools:targetApi="s" />
  40. <application
  41. android:name="${applicationName}"
  42. android:icon="@drawable/ic_launcher"
  43. android:label="${APP_NAME}"
  44. android:requestLegacyExternalStorage="true">
  45. <activity
  46. android:name=".MainActivity"
  47. android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
  48. android:exported="true"
  49. android:hardwareAccelerated="true"
  50. android:launchMode="singleTop"
  51. android:networkSecurityConfig="@xml/network_security_config"
  52. android:theme="@style/LaunchTheme"
  53. android:windowSoftInputMode="adjustResize">
  54. <!-- Specifies an Android theme to apply to this Activity as soon as
  55. the Android process has started. This theme is visible to the user
  56. while the Flutter UI initializes. After that, this theme continues
  57. to determine the Window background behind the Flutter UI. -->
  58. <meta-data
  59. android:name="io.flutter.embedding.android.NormalTheme"
  60. android:resource="@style/NormalTheme" />
  61. <!-- Displays an Android View that continues showing the launch screen
  62. Drawable until Flutter paints its first frame, then this splash
  63. screen fades out. A splash screen is useful to avoid any visual
  64. gap between the end of Android's launch screen and the painting of
  65. Flutter's first frame. -->
  66. <meta-data
  67. android:name="io.flutter.embedding.android.SplashScreenDrawable"
  68. android:resource="@drawable/launch_background" />
  69. <intent-filter>
  70. <action android:name="android.intent.action.MAIN" />
  71. <category android:name="android.intent.category.LAUNCHER" />
  72. </intent-filter>
  73. </activity>
  74. <!-- Don't delete the meta-data below.
  75. This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
  76. <meta-data
  77. android:name="flutterEmbedding"
  78. android:value="2" />
  79. <!-- 配置定位Service -->
  80. <service android:name="com.amap.api.location.APSService"/>
  81. </application>
  82. </manifest>