|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
1 | 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
2 | 3 | xmlns:tools="http://schemas.android.com/tools">
|
3 | 4 |
|
|
13 | 14 |
|
14 | 15 | <uses-permission android:name="android.permission.INTERNET" />
|
15 | 16 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
16 |
| - <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> |
17 | 17 | <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
18 | 18 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
19 | 19 | <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
|
20 |
| - <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" /> |
21 |
| - |
22 | 20 | <uses-permission
|
23 | 21 | android:name="android.permission.QUERY_ALL_PACKAGES"
|
24 | 22 | tools:ignore="QueryAllPackagesPermission" />
|
| 23 | + <uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" /> |
| 24 | + <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> |
25 | 25 |
|
26 | 26 | <application
|
27 |
| - android:name=".FlClashApplication" |
| 27 | + android:name=".Application" |
28 | 28 | android:banner="@mipmap/ic_banner"
|
29 | 29 | android:hardwareAccelerated="true"
|
30 | 30 | android:icon="@mipmap/ic_launcher"
|
31 | 31 | android:label="FlClash">
|
32 | 32 | <activity
|
33 |
| - android:name="com.follow.clash.MainActivity" |
| 33 | + android:name=".MainActivity" |
34 | 34 | android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
35 | 35 | android:exported="true"
|
36 | 36 | android:hardwareAccelerated="true"
|
37 | 37 | android:launchMode="singleTop"
|
38 | 38 | android:theme="@style/LaunchTheme"
|
39 | 39 | android:windowSoftInputMode="adjustResize">
|
40 |
| - <!-- Specifies an Android theme to apply to this Activity as soon as |
41 |
| - the Android process has started. This theme is visible to the user |
42 |
| - while the Flutter UI initializes. After that, this theme continues |
43 |
| - to determine the Window background behind the Flutter UI. --> |
44 | 40 | <meta-data
|
45 | 41 | android:name="io.flutter.embedding.android.NormalTheme"
|
46 | 42 | android:resource="@style/NormalTheme" />
|
47 | 43 |
|
48 | 44 | <intent-filter>
|
49 | 45 | <action android:name="android.intent.action.MAIN" />
|
| 46 | + |
50 | 47 | <category android:name="android.intent.category.LAUNCHER" />
|
51 | 48 | <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
|
52 | 49 | </intent-filter>
|
|
67 | 64 | </intent-filter>
|
68 | 65 | </activity>
|
69 | 66 |
|
70 |
| - <meta-data |
71 |
| - android:name="io.flutter.embedding.android.EnableImpeller" |
72 |
| - android:value="false" /> |
73 |
| - |
74 | 67 | <activity
|
75 | 68 | android:name=".TempActivity"
|
| 69 | + android:excludeFromRecents="true" |
76 | 70 | android:exported="true"
|
77 | 71 | android:theme="@style/TransparentTheme">
|
78 | 72 | <intent-filter>
|
|
85 | 79 | </intent-filter>
|
86 | 80 | <intent-filter>
|
87 | 81 | <category android:name="android.intent.category.DEFAULT" />
|
88 |
| - <action android:name="${applicationId}.action.CHANGE" /> |
| 82 | + <action android:name="${applicationId}.action.TOGGLE" /> |
89 | 83 | </intent-filter>
|
90 | 84 | </activity>
|
91 | 85 |
|
92 | 86 | <service
|
93 |
| - android:name=".services.FlClashTileService" |
| 87 | + android:name=".TileService" |
94 | 88 | android:exported="true"
|
95 | 89 | android:icon="@drawable/ic"
|
96 | 90 | android:label="FlClash"
|
97 |
| - android:permission="android.permission.BIND_QUICK_SETTINGS_TILE" |
98 |
| - tools:targetApi="n"> |
| 91 | + android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"> |
99 | 92 | <intent-filter>
|
100 | 93 | <action android:name="android.service.quicksettings.action.QS_TILE" />
|
101 | 94 | </intent-filter>
|
|
104 | 97 | android:value="true" />
|
105 | 98 | </service>
|
106 | 99 |
|
107 |
| - <provider |
108 |
| - android:name=".FilesProvider" |
109 |
| - android:authorities="${applicationId}.files" |
| 100 | + <receiver |
| 101 | + android:name=".BroadcastReceiver" |
| 102 | + android:enabled="true" |
110 | 103 | android:exported="true"
|
111 |
| - android:grantUriPermissions="true" |
112 |
| - android:permission="android.permission.MANAGE_DOCUMENTS" |
113 |
| - android:process=":background"> |
114 |
| - <intent-filter> |
115 |
| - <action android:name="android.content.action.DOCUMENTS_PROVIDER" /> |
116 |
| - </intent-filter> |
117 |
| - </provider> |
118 |
| - |
119 |
| - <provider |
120 |
| - android:name="androidx.core.content.FileProvider" |
121 |
| - android:authorities="${applicationId}.fileProvider" |
122 |
| - android:exported="false" |
123 |
| - android:grantUriPermissions="true"> |
124 |
| - <meta-data |
125 |
| - android:name="android.support.FILE_PROVIDER_PATHS" |
126 |
| - android:resource="@xml/file_paths" /> |
127 |
| - </provider> |
128 |
| - |
129 |
| - <service |
130 |
| - android:name=".services.FlClashVpnService" |
131 |
| - android:exported="false" |
132 |
| - android:foregroundServiceType="dataSync" |
133 |
| - android:permission="android.permission.BIND_VPN_SERVICE"> |
| 104 | + android:permission="${applicationId}.permission.RECEIVE_BROADCASTS"> |
134 | 105 | <intent-filter>
|
135 |
| - <action android:name="android.net.VpnService" /> |
| 106 | + <action android:name="${applicationId}.intent.action.START" /> |
| 107 | + <action android:name="${applicationId}.intent.action.STOP" /> |
| 108 | + <action android:name="${applicationId}.intent.action.TOGGLE" /> |
136 | 109 | </intent-filter>
|
137 |
| - <property |
138 |
| - android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" |
139 |
| - android:value="vpn" /> |
140 |
| - </service> |
141 |
| - |
142 |
| - <service |
143 |
| - android:name=".services.FlClashService" |
144 |
| - android:exported="false" |
145 |
| - android:foregroundServiceType="dataSync"> |
146 |
| - <property |
147 |
| - android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" |
148 |
| - android:value="service" /> |
149 |
| - </service> |
| 110 | + </receiver> |
150 | 111 |
|
151 | 112 | <meta-data
|
152 | 113 | android:name="flutterEmbedding"
|
|
0 commit comments