| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <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.CHANGE_NETWORK_STATE"/>
- <uses-permission
- android:name="android.permission.INTERNET"/>
- <uses-permission
- android:name="android.permission.FOREGROUND_SERVICE"/>
- <uses-permission
- android:name="android.permission.FOREGROUND_SERVICE_SYSTEM_EXEMPTED"/>
- <!-- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> -->
- <uses-permission
- android:name="android.permission.POST_NOTIFICATIONS"/>
- <uses-permission
- android:name="android:activate_vpn"/>
- <uses-permission
- android:name="android.permission.PACKAGE_USAGE_STATS"
- tools:ignore="ProtectedPermissions"/>
- <!-- 仅在 Android 10 及以下版本需要存储权限 -->
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
- android:maxSdkVersion="29" />
- <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
- android:maxSdkVersion="29" />
- <queries>
- <intent>
- <action android:name="android.intent.action.VIEW" />
- <data android:scheme="https" />
- </intent>
- </queries>
- <queries>
- <intent>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent>
- </queries>
- <queries>
- <intent>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.APP_BROWSER" />
- </intent>
- </queries>
- <application
- android:name=".App"
- android:allowBackup="false"
- android:enableOnBackInvokedCallback="false"
- android:fullBackupContent="false"
- android:hardwareAccelerated="true"
- android:icon="@mipmap/launcher_icon"
- android:label="NoMo"
- android:requestLegacyExternalStorage="true"
- android:usesCleartextTraffic="true"
- tools:targetApi="tiramisu">
- <activity
- android:name=".MainActivity"
- android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
- android:exported="true"
- android:hardwareAccelerated="true"
- android:launchMode="singleTop"
- android:theme="@style/LaunchTheme"
- android:windowSoftInputMode="adjustResize">
- <!-- Specifies an Android theme to apply to this Activity as soon as
- the Android process has started. This theme is visible to the user
- while the Flutter UI initializes. After that, this theme continues
- to determine the Window background behind the Flutter UI. -->
- <meta-data
- android:name="io.flutter.embedding.android.NormalTheme"
- android:resource="@style/NormalTheme"/>
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- <category android:name="android.intent.category.LAUNCHER"/>
- </intent-filter>
- </activity>
- <service
- android:name=".XRayService"
- android:directBootAware="true"
- android:exported="false"
- android:foregroundServiceType="systemExempted"
- android:label="NoMo"
- android:permission="android.permission.BIND_VPN_SERVICE"
- android:process=":nomo_vpn_service"
- tools:ignore="ForegroundServicePermission">
- <intent-filter>
- <action
- android:name="android.net.VpnService"/>
- </intent-filter>
- <meta-data
- android:name="android.net.VpnService.SUPPORTS_ALWAYS_ON"
- android:value="false"/>
- </service>
- <!-- Don't delete the meta-data below.
- This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
- <meta-data
- android:name="flutterEmbedding"
- android:value="2"/>
- </application>
- <!-- Required to query activities that can process text, see:
- https://developer.android.com/training/package-visibility and
- https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
- In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
- <queries>
- <intent>
- <action
- android:name="android.intent.action.PROCESS_TEXT"/>
- <data
- android:mimeType="text/plain"/>
- </intent>
- </queries>
- </manifest>
|