AndroidManifest.xml 11.1 KB
Newer Older
Daniel Wolf's avatar
Daniel Wolf committed
1
2
3
4
5
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools"
          package="com.frostnerd.smokescreen">

6
7
8
9
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
10
    <uses-permission android:name="android.permission.USE_FINGERPRINT"/>
11
    <uses-permission android:name="android.permission.VIBRATE"/>
12
    <uses-permission android:name="android.permission.INSTALL_SHORTCUT"/>
13
    <uses-permission android:name="android.permission.USE_BIOMETRIC"/>
Daniel Wolf's avatar
Daniel Wolf committed
14
15

    <application
16
            android:name=".SmokeScreen"
Daniel Wolf's avatar
Daniel Wolf committed
17
18
19
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
20
            android:roundIcon="@mipmap/ic_launcher"
Daniel Wolf's avatar
Daniel Wolf committed
21
22
            android:supportsRtl="true"
            android:theme="@style/AppTheme_Mono"
23
24
            tools:ignore="GoogleAppIndexingWarning"
            android:fullBackupContent="@xml/backup_descriptor">
25
26
27
        <activity
                android:name=".activity.PinActivity"
                android:theme="@style/Theme.AppCompat.Light.Dialog.Alert"
28
                android:noHistory="true"
29
                android:autoRemoveFromRecents="true">
Daniel Wolf's avatar
Daniel Wolf committed
30
31
32
33
34
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
35
36
37
38

        </activity>
        <activity android:name=".activity.MainActivity">

Daniel Wolf's avatar
Daniel Wolf committed
39
        </activity>
Daniel Wolf's avatar
Daniel Wolf committed
40
41
42
43
44
45
46
47
        <activity
                android:name=".activity.ShortcutActivity"
                android:exported="true"
                android:launchMode="singleTop"
                android:noHistory="true"
                android:autoRemoveFromRecents="true"
                android:taskAffinity="com.frostnerd.smokescreen.ShortcutTask"
                android:theme="@style/Theme.AppCompat.Light.Dialog.Alert"/>
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
        <activity
                android:name=".activity.LoggingDialogActivity"
                android:autoRemoveFromRecents="true"
                android:label="@string/activity_label_enable_logging"
                android:process=":logexport"
                android:theme="@style/Theme.AppCompat.Light.Dialog.Alert"
                android:noHistory="true">
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>

                <data
                        android:mimeType="*/*"
                        android:scheme="content"
                        android:host="*"
                        android:pathPattern=".*\\.nebulologgingkey"
                        tools:ignore="AppLinkUrlError"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>

                <data
                        android:mimeType="*/*"
                        android:scheme="file"
                        android:host="*"
                        android:pathPattern=".*\\.nebulologgingkey"
                        tools:ignore="AppLinkUrlError"/>
            </intent-filter>
        </activity>
78
79
        <activity
                android:name=".activity.ServerImportActivity"
80
81
                android:autoRemoveFromRecents="true"
                android:noHistory="true"
82
                android:label="@string/activity_label_import_servers"
83
                android:theme="@style/Theme.AppCompat.Light.Dialog.Alert">
84
85
86
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
87

88
89
90
                <data
                        android:mimeType="*/*"
                        android:scheme="content"
91
                        android:host="*"
92
93
                        android:pathPattern=".*\\.dohserver"
                        tools:ignore="AppLinkUrlError"/>
94
95
96
97
98
99
                <data
                        android:mimeType="*/*"
                        android:scheme="content"
                        android:host="*"
                        android:pathPattern=".*\\.nebuloserver"
                        tools:ignore="AppLinkUrlError"/>
100
101
            </intent-filter>
            <intent-filter>
102
103
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
104

105
                <data
106
107
                        android:mimeType="*/*"
                        android:scheme="file"
108
                        android:host="*"
109
                        android:pathPattern=".*\\.dohserver"
110
                        tools:ignore="AppLinkUrlError"/>
111
112
113
114
115
116
                <data
                        android:mimeType="*/*"
                        android:scheme="content"
                        android:host="*"
                        android:pathPattern=".*\\.nebuloserver"
                        tools:ignore="AppLinkUrlError"/>
117
            </intent-filter>
118
            <intent-filter android:autoVerify="true">
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
                <action android:name="android.intent.action.VIEW"/>

                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>

                <data android:scheme="https"/>
                <data android:scheme="http"/>
                <data android:pathPattern="/servers/.*"/>
                <data android:host="www.smokescreen.app"/>
                <data android:host="smokescreen.app"/>
            </intent-filter>
        </activity>
        <activity
                android:name=".activity.QueryImportActivity"
                android:autoRemoveFromRecents="true"
                android:noHistory="true"
                android:label="@string/activity_label_import_queries"
                android:theme="@style/Theme.AppCompat.Light.Dialog.Alert">
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data
                        android:mimeType="*/*"
                        android:scheme="content"
143
                        android:host="*"
144
145
                        android:pathPattern=".*\\.querycsv"
                        tools:ignore="AppLinkUrlError"/>
146
            </intent-filter>
147

148
        </activity>
149
150
151
152
        <activity
                android:name=".activity.BackgroundVpnConfigureActivity"
                android:launchMode="singleInstance"
                android:theme="@style/Theme.AppCompat.Light.Dialog.Alert"/>
153
154
155
156
157
158
159
160
        <activity
                android:name=".activity.ErrorDialogActivity"
                android:autoRemoveFromRecents="true"
                android:clearTaskOnLaunch="true"
                android:excludeFromRecents="true"
                android:launchMode="singleTop"
                android:noHistory="true"
                android:process=".ErrorProcess"
161
162
163
164
165
166
167
168
169
                android:theme="@style/Theme.AppCompat.Light.Dialog.Alert"/>
        <activity
                android:name=".tasker.ConfigureActivity"
                android:exported="true"
                android:icon="@mipmap/ic_launcher"
                android:label="@string/app_name"
                android:uiOptions="splitActionBarWhenNarrow"
                android:windowSoftInputMode="adjustResize">
            <intent-filter>
170
                <action android:name="com.twofortyfouram.locale.intent.action.EDIT_SETTING"/>
171
172
            </intent-filter>
        </activity>
173
174
175
176
        <activity
                android:name=".activity.SpeedTestActivity"
                android:theme="@style/AppTheme_Mono"
                android:label="@string/activity_label_speed_test"
177
                android:parentActivityName=".activity.MainActivity"
178
                />
179
180
        <activity
                android:name=".activity.DnsRuleActivity"
Daniel Wolf's avatar
Daniel Wolf committed
181
                android:label="@string/activity_label_dns_rules"
182
                android:parentActivityName=".activity.MainActivity"
Daniel Wolf's avatar
Daniel Wolf committed
183
                />
184

Daniel Wolf's avatar
Daniel Wolf committed
185
186
187
188
189
190
191
192
193
194
195
        <service
                android:name=".service.DnsVpnService"
                android:permission="android.permission.BIND_VPN_SERVICE"
                android:stopWithTask="false">
            <intent-filter>
                <action android:name="android.net.VpnService"/>
            </intent-filter>
            <meta-data
                    android:name="android.net.VpnService.SUPPORTS_ALWAYS_ON"
                    android:value="true"/>
        </service>
196
197
198
        <service
                android:name=".service.VpnRestartService"
                android:exported="false"/>
199
200
201
202
203
204
205
206
207
        <service
                android:name=".service.StartStopTileService"
                android:label="@string/quicksettings_start_text"
                android:icon="@drawable/ic_play"
                android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
            <intent-filter>
                <action android:name="android.service.quicksettings.action.QS_TILE"/>
            </intent-filter>
        </service>
208
        <service android:name=".service.RuleImportService"/>
209
        <service android:name=".service.RuleExportService"/>
210
        <service android:name=".service.RootDnsService"/>
211

212
        <receiver
213
                android:name=".receiver.AutostartReceiver"
214
215
                android:enabled="true"
                android:exported="true">
216
            <intent-filter>
217
218
                <action android:name="android.intent.action.BOOT_COMPLETED"/>
                <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED"/>
219
220
221
222
                <action android:name="android.intent.action.QUICKBOOT_POWERON"/>
                <!-- for htc -->

                <action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/>
223
224
225
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
226
            </intent-filter>
227
            <intent-filter>
228
229
                <action android:name="android.intent.action.PACKAGE_REPLACED"/>
                <data android:scheme="package"/>
230
            </intent-filter>
231
        </receiver>
232
233
234
235
236
        <receiver
                android:name=".tasker.FireReceiver"
                android:exported="true"
                android:process=":background">
            <intent-filter>
237
                <action android:name="com.twofortyfouram.locale.intent.action.FIRE_SETTING"/>
238
239
240
            </intent-filter>
        </receiver>

241
242
243
244
245
246
247
248
249
250
        <provider
                android:authorities="com.frostnerd.smokescreen.LogZipProvider"
                android:name="androidx.core.content.FileProvider"
                android:exported="false"
                android:grantUriPermissions="true">
            <meta-data
                    android:name="android.support.FILE_PROVIDER_PATHS"
                    android:resource="@xml/log_file_paths"
                    />
        </provider>
Daniel Wolf's avatar
Daniel Wolf committed
251
252
253
    </application>

</manifest>