|
| 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 |
|
| 5 | + <permission |
| 6 | + android:name="${applicationId}.permission.RECEIVE_BROADCASTS" |
| 7 | + android:protectionLevel="signature" /> |
| 8 | + |
4 | 9 | <uses-feature |
5 | 10 | android:name="android.hardware.touchscreen" |
6 | 11 | android:required="false" /> |
|
13 | 18 |
|
14 | 19 | <uses-permission android:name="android.permission.INTERNET" /> |
15 | 20 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> |
16 | | - <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> |
17 | 21 | <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> |
18 | 22 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
19 | 23 | <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> |
20 | | - <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" /> |
21 | | - |
22 | 24 | <uses-permission |
23 | 25 | android:name="android.permission.QUERY_ALL_PACKAGES" |
24 | 26 | tools:ignore="QueryAllPackagesPermission" /> |
| 27 | + <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" /> |
| 28 | + <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> |
25 | 29 |
|
26 | 30 | <application |
27 | | - android:name=".FlClashApplication" |
| 31 | + android:name=".Application" |
28 | 32 | android:banner="@mipmap/ic_banner" |
| 33 | + android:extractNativeLibs="true" |
29 | 34 | android:hardwareAccelerated="true" |
30 | 35 | android:icon="@mipmap/ic_launcher" |
31 | 36 | android:label="FlClash"> |
|
47 | 52 |
|
48 | 53 | <intent-filter> |
49 | 54 | <action android:name="android.intent.action.MAIN" /> |
| 55 | + |
50 | 56 | <category android:name="android.intent.category.LAUNCHER" /> |
51 | 57 | <category android:name="android.intent.category.LEANBACK_LAUNCHER" /> |
52 | 58 | </intent-filter> |
|
73 | 79 |
|
74 | 80 | <activity |
75 | 81 | android:name=".TempActivity" |
| 82 | + android:excludeFromRecents="true" |
76 | 83 | android:exported="true" |
77 | 84 | android:theme="@style/TransparentTheme"> |
78 | 85 | <intent-filter> |
|
85 | 92 | </intent-filter> |
86 | 93 | <intent-filter> |
87 | 94 | <category android:name="android.intent.category.DEFAULT" /> |
88 | | - <action android:name="${applicationId}.action.CHANGE" /> |
| 95 | + <action android:name="${applicationId}.action.TOGGLE" /> |
89 | 96 | </intent-filter> |
90 | 97 | </activity> |
91 | 98 |
|
92 | 99 | <service |
93 | | - android:name=".services.FlClashTileService" |
| 100 | + android:name=".TileService" |
94 | 101 | android:exported="true" |
95 | 102 | android:icon="@drawable/ic" |
96 | 103 | android:label="FlClash" |
97 | | - android:permission="android.permission.BIND_QUICK_SETTINGS_TILE" |
98 | | - tools:targetApi="n"> |
| 104 | + android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"> |
99 | 105 | <intent-filter> |
100 | 106 | <action android:name="android.service.quicksettings.action.QS_TILE" /> |
101 | 107 | </intent-filter> |
|
104 | 110 | android:value="true" /> |
105 | 111 | </service> |
106 | 112 |
|
| 113 | + <receiver |
| 114 | + android:name=".BroadcastReceiver" |
| 115 | + android:enabled="true" |
| 116 | + android:exported="true" |
| 117 | + android:permission="${applicationId}.permission.RECEIVE_BROADCASTS"> |
| 118 | + <intent-filter> |
| 119 | + <action android:name="${applicationId}.intent.action.START" /> |
| 120 | + <action android:name="${applicationId}.intent.action.STOP" /> |
| 121 | + <action android:name="${applicationId}.intent.action.TOGGLE" /> |
| 122 | + </intent-filter> |
| 123 | + </receiver> |
| 124 | + |
| 125 | + |
107 | 126 | <provider |
108 | 127 | android:name=".FilesProvider" |
109 | 128 | android:authorities="${applicationId}.files" |
|
126 | 145 | android:resource="@xml/file_paths" /> |
127 | 146 | </provider> |
128 | 147 |
|
129 | | - <service |
130 | | - android:name=".services.FlClashVpnService" |
131 | | - android:exported="false" |
132 | | - android:foregroundServiceType="dataSync" |
133 | | - android:permission="android.permission.BIND_VPN_SERVICE"> |
134 | | - <intent-filter> |
135 | | - <action android:name="android.net.VpnService" /> |
136 | | - </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> |
150 | | - |
151 | 148 | <meta-data |
152 | 149 | android:name="flutterEmbedding" |
153 | 150 | android:value="2" /> |
|
0 commit comments