AndroidManifest.xml 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. package="com.example.farmer_client">
  4. <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
  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" tools:ignore="ProtectedPermissions" />
  23. <!--允许写入扩展存储,用于写入缓存定位数据-->
  24. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  25. <!--允许读设备等信息,用于问题排查-->
  26. <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
  27. <application
  28. android:label="农忙助手"
  29. android:name="${applicationName}"
  30. android:icon="@mipmap/ic_launcher">
  31. <activity
  32. android:name=".MainActivity"
  33. android:exported="true"
  34. android:launchMode="singleTop"
  35. android:theme="@style/LaunchTheme"
  36. android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
  37. android:hardwareAccelerated="true"
  38. android:windowSoftInputMode="adjustResize">
  39. <!-- Specifies an Android theme to apply to this Activity as soon as
  40. the Android process has started. This theme is visible to the user
  41. while the Flutter UI initializes. After that, this theme continues
  42. to determine the Window background behind the Flutter UI. -->
  43. <meta-data
  44. android:name="io.flutter.embedding.android.NormalTheme"
  45. android:resource="@style/NormalTheme"
  46. />
  47. <intent-filter>
  48. <action android:name="android.intent.action.MAIN"/>
  49. <category android:name="android.intent.category.LAUNCHER"/>
  50. </intent-filter>
  51. </activity>
  52. <!-- Don't delete the meta-data below.
  53. This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
  54. <meta-data
  55. android:name="flutterEmbedding"
  56. android:value="2" />
  57. <meta-data
  58. android:name="com.amap.api.v2.apikey"
  59. android:value="b481b4187e24e625fa0056fd0530e663"/>
  60. <service android:name="com.amap.api.location.APSService"
  61. tools:ignore="MissingClass" />
  62. </application>
  63. </manifest>