AndroidManifest.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools">
  3. <uses-permission
  4. android:name="android.permission.ACCESS_NETWORK_STATE"/>
  5. <uses-permission
  6. android:name="android.permission.CHANGE_NETWORK_STATE"/>
  7. <uses-permission
  8. android:name="android.permission.INTERNET"/>
  9. <uses-permission
  10. android:name="android.permission.FOREGROUND_SERVICE"/>
  11. <uses-permission
  12. android:name="android.permission.FOREGROUND_SERVICE_SYSTEM_EXEMPTED"/>
  13. <!-- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> -->
  14. <uses-permission
  15. android:name="android.permission.POST_NOTIFICATIONS"/>
  16. <uses-permission
  17. android:name="android:activate_vpn"/>
  18. <uses-permission
  19. android:name="android.permission.PACKAGE_USAGE_STATS"
  20. tools:ignore="ProtectedPermissions"/>
  21. <!-- 仅在 Android 10 及以下版本需要存储权限 -->
  22. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
  23. android:maxSdkVersion="29" />
  24. <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
  25. android:maxSdkVersion="29" />
  26. <queries>
  27. <intent>
  28. <action android:name="android.intent.action.VIEW" />
  29. <data android:scheme="https" />
  30. </intent>
  31. </queries>
  32. <queries>
  33. <intent>
  34. <action android:name="android.intent.action.MAIN" />
  35. <category android:name="android.intent.category.LAUNCHER" />
  36. </intent>
  37. </queries>
  38. <queries>
  39. <intent>
  40. <action android:name="android.intent.action.MAIN" />
  41. <category android:name="android.intent.category.APP_BROWSER" />
  42. </intent>
  43. </queries>
  44. <application
  45. android:name=".App"
  46. android:allowBackup="false"
  47. android:enableOnBackInvokedCallback="false"
  48. android:fullBackupContent="false"
  49. android:hardwareAccelerated="true"
  50. android:icon="@mipmap/launcher_icon"
  51. android:label="NoMo"
  52. android:requestLegacyExternalStorage="true"
  53. android:usesCleartextTraffic="true"
  54. tools:targetApi="tiramisu">
  55. <activity
  56. android:name=".MainActivity"
  57. android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
  58. android:exported="true"
  59. android:hardwareAccelerated="true"
  60. android:launchMode="singleTop"
  61. android:theme="@style/LaunchTheme"
  62. android:windowSoftInputMode="adjustResize">
  63. <!-- Specifies an Android theme to apply to this Activity as soon as
  64. the Android process has started. This theme is visible to the user
  65. while the Flutter UI initializes. After that, this theme continues
  66. to determine the Window background behind the Flutter UI. -->
  67. <meta-data
  68. android:name="io.flutter.embedding.android.NormalTheme"
  69. android:resource="@style/NormalTheme"/>
  70. <intent-filter>
  71. <action android:name="android.intent.action.MAIN"/>
  72. <category android:name="android.intent.category.LAUNCHER"/>
  73. </intent-filter>
  74. </activity>
  75. <service
  76. android:name=".XRayService"
  77. android:directBootAware="true"
  78. android:exported="false"
  79. android:foregroundServiceType="systemExempted"
  80. android:label="NoMo"
  81. android:permission="android.permission.BIND_VPN_SERVICE"
  82. android:process=":nomo_vpn_service"
  83. tools:ignore="ForegroundServicePermission">
  84. <intent-filter>
  85. <action
  86. android:name="android.net.VpnService"/>
  87. </intent-filter>
  88. <meta-data
  89. android:name="android.net.VpnService.SUPPORTS_ALWAYS_ON"
  90. android:value="false"/>
  91. </service>
  92. <!-- Don't delete the meta-data below.
  93. This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
  94. <meta-data
  95. android:name="flutterEmbedding"
  96. android:value="2"/>
  97. </application>
  98. <!-- Required to query activities that can process text, see:
  99. https://developer.android.com/training/package-visibility and
  100. https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
  101. In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
  102. <queries>
  103. <intent>
  104. <action
  105. android:name="android.intent.action.PROCESS_TEXT"/>
  106. <data
  107. android:mimeType="text/plain"/>
  108. </intent>
  109. </queries>
  110. </manifest>