]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/AndroidManifest.xml
Display the bookmark opened in background snackbar in from of the bookmark drawer...
[PrivacyBrowserAndroid.git] / app / src / main / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2015-2022 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
7
8   Privacy Browser is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Browser is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <!-- Install location `auto` allows users to move Privacy Browser to an SD card if desired. -->
22 <manifest
23     xmlns:android="http://schemas.android.com/apk/res/android"
24     xmlns:tools="http://schemas.android.com/tools"
25     android:installLocation="auto" >
26
27     <!-- Required to load websites. -->
28     <uses-permission android:name="android.permission.INTERNET" />
29
30     <!-- Required to create home screen shortcuts. -->
31     <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
32
33
34     <!-- Support Chromebooks that don't have a touch screen. -->
35     <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
36
37     <!-- List the apps that Privacy Browser needs to query to see if they are installed. -->
38     <queries>
39         <!-- I2P. -->
40         <package android:name="net.i2p.android.router" />
41
42         <!-- Orbot. -->
43         <package android:name="org.torproject.android" />
44
45         <!-- OpenKeyChain. -->
46         <package android:name="org.sufficientlysecure.keychain" />
47     </queries>
48
49     <!-- For API >= 23, app data is automatically backed up to Google cloud servers unless `android:allowBackup="false"` and `android:fullBackupContent="false"` is set.
50         `tools:ignore="DataExtractionRules` removes the warning that backups can still transfer data device to device. -->
51     <application
52         android:label="@string/privacy_browser"
53         android:icon="@mipmap/privacy_browser"
54         android:roundIcon="@mipmap/privacy_browser_round"
55         android:allowBackup="false"
56         android:fullBackupContent="false"
57         android:supportsRtl="true"
58         android:networkSecurityConfig="@xml/network_security_config"
59         tools:ignore="DataExtractionRules,UnusedAttribute" >
60
61         <!-- If `android:name="android.webkit.WebView.MetricsOptOut"` is not `true` then `WebViews` will upload metrics to Google.  <https://developer.android.com/reference/android/webkit/WebView.html> -->
62         <meta-data
63             android:name="android.webkit.WebView.MetricsOptOut"
64             android:value="true" />
65
66         <!-- Explicitly disable "Safe Browsing". -->
67         <meta-data
68             android:name="android.webkit.WebView.EnableSafeBrowsing"
69             android:value="false" />
70
71         <!-- Specify the Application ID used by the ads in the free flavor. -->
72         <meta-data
73             android:name="com.google.android.gms.ads.APPLICATION_ID"
74             android:value="@string/google_app_id" />
75
76         <!-- The file provider is required to encrypt files with OpenKeychain. -->
77         <provider
78             android:name="androidx.core.content.FileProvider"
79             android:authorities="@string/file_provider"
80             android:exported="false"
81             android:grantUriPermissions="true" >
82
83             <meta-data
84                 android:name="android.support.FILE_PROVIDER_PATHS"
85                 android:resource="@xml/file_provider_paths" />
86         </provider>
87         
88         <!-- MainWebViewActivity.  The label uses the short name so that it isn't truncated under the icon in the launcher on most phones.
89             The theme has to be defined here or an ugly title bar is displayed when the app launches.
90             `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
91             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
92             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
93             `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
94             It also makes it reuse an existing Privacy Browser activity if available instead of launching a new one.
95             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
96             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
97         <activity
98             android:name=".activities.MainWebViewActivity"
99             android:label="@string/short_name"
100             android:theme="@style/PrivacyBrowser"
101             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
102             android:launchMode="singleTask"
103             android:screenOrientation="fullUser"
104             android:persistableMode="persistNever"
105             android:exported="true"
106             tools:ignore="UnusedAttribute" >
107
108             <intent-filter>
109                 <action android:name="android.intent.action.MAIN" />
110                 <category android:name="android.intent.category.LAUNCHER" />
111             </intent-filter>
112
113             <!-- Process web intents. -->
114             <intent-filter>
115                 <action android:name="android.intent.action.VIEW" />
116
117                 <category android:name="android.intent.category.BROWSABLE" />
118                 <category android:name="android.intent.category.DEFAULT" />
119
120                 <data android:scheme="http" />
121                 <data android:scheme="https" />
122             </intent-filter>
123
124             <!-- Process all content intents. -->
125             <intent-filter>
126                 <action android:name="android.intent.action.VIEW" />
127
128                 <category android:name="android.intent.category.BROWSABLE" />
129                 <category android:name="android.intent.category.DEFAULT" />
130
131                 <data android:scheme="content" />
132
133                 <!-- Process text and images. -->
134                 <data android:mimeType="text/*" />
135                 <data android:mimeType="image/*" />
136
137                 <!-- Process MHT web archives. -->
138                 <data android:mimeType="multipart/related" />
139                 <data android:mimeType="message/rfc822" />
140             </intent-filter>
141
142             <!-- Process intents for text strings.  Sometimes URLs are presented this way. -->
143             <intent-filter>
144                 <action android:name="android.intent.action.SEND" />
145
146                 <category android:name="android.intent.category.DEFAULT" />
147
148                 <data android:mimeType="text/plain" />
149             </intent-filter>
150
151             <!-- Process web search intents. -->
152             <intent-filter>
153                 <action android:name="android.intent.action.WEB_SEARCH" />
154
155                 <category android:name="android.intent.category.BROWSABLE" />
156                 <category android:name="android.intent.category.DEFAULT" />
157             </intent-filter>
158         </activity>
159
160
161         <!-- BookmarksActivity.  `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
162             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
163             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
164             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
165             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
166         <activity
167             android:name=".activities.BookmarksActivity"
168             android:label="@string/bookmarks"
169             android:parentActivityName=".activities.MainWebViewActivity"
170             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
171             android:screenOrientation="fullUser"
172             android:persistableMode="persistNever"
173             tools:ignore="UnusedAttribute" />
174
175         <!-- BookmarksDatabaseViewActivity.  `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
176             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
177             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
178             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
179             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
180         <activity
181             android:name=".activities.BookmarksDatabaseViewActivity"
182             android:label="@string/bookmarks_database_view"
183             android:parentActivityName=".activities.BookmarksActivity"
184             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
185             android:screenOrientation="fullUser"
186             android:persistableMode="persistNever"
187             tools:ignore="UnusedAttribute" />
188
189         <!-- RequestsActivity.  `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
190             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
191             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
192             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
193             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
194         <activity
195             android:name=".activities.RequestsActivity"
196             android:label="@string/requests"
197             android:parentActivityName=".activities.MainWebViewActivity"
198             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
199             android:screenOrientation="fullUser"
200             android:persistableMode="persistNever"
201             tools:ignore="UnusedAttribute" />
202
203         <!-- DomainsActivity.  `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
204             `android:configChanges="keyboard|keyboardHidden"` makes the activity not reload when a bluetooth keyboard is activated/goes to sleep.
205             `android:windowSoftInputMode="stateAlwaysHidden"` keeps the keyboard from displaying when the screen is rotated and after the `AddDomainDialog` is dismissed.
206             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
207             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
208         <activity
209             android:name=".activities.DomainsActivity"
210             android:label="@string/domains"
211             android:parentActivityName=".activities.MainWebViewActivity"
212             android:configChanges="screenLayout|keyboard|keyboardHidden"
213             android:screenOrientation="fullUser"
214             android:windowSoftInputMode="stateAlwaysHidden"
215             android:persistableMode="persistNever"
216             tools:ignore="UnusedAttribute" />
217
218         <!-- SettingsActivity.  `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
219             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
220             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
221             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
222             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
223         <activity
224             android:name=".activities.SettingsActivity"
225             android:label="@string/settings"
226             android:parentActivityName=".activities.MainWebViewActivity"
227             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
228             android:screenOrientation="fullUser"
229             android:persistableMode="persistNever"
230             tools:ignore="UnusedAttribute" />
231
232         <!-- ImportExportActivity.  `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
233             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
234             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
235             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
236             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
237         <activity
238             android:name=".activities.ImportExportActivity"
239             android:label="@string/import_export"
240             android:parentActivityName=".activities.MainWebViewActivity"
241             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
242             android:screenOrientation="fullUser"
243             android:persistableMode="persistNever"
244             tools:ignore="UnusedAttribute" />
245
246         <!-- LogcatActivity.  `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
247             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
248             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
249             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
250             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
251         <activity
252             android:name=".activities.LogcatActivity"
253             android:label="@string/logcat"
254             android:parentActivityName=".activities.MainWebViewActivity"
255             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
256             android:screenOrientation="fullUser"
257             android:persistableMode="persistNever"
258             tools:ignore="UnusedAttribute" />
259
260         <!-- GuideActivity.  `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
261             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
262             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
263             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
264             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
265         <activity
266             android:name=".activities.GuideActivity"
267             android:label="@string/guide"
268             android:parentActivityName=".activities.MainWebViewActivity"
269             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
270             android:screenOrientation="fullUser"
271             android:persistableMode="persistNever"
272             tools:ignore="UnusedAttribute" />
273
274         <!-- AboutActivity.  `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
275             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
276             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
277             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
278             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
279         <activity
280             android:name=".activities.AboutActivity"
281             android:label="@string/about_privacy_browser"
282             android:parentActivityName=".activities.MainWebViewActivity"
283             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
284             android:screenOrientation="fullUser"
285             android:persistableMode="persistNever"
286             tools:ignore="UnusedAttribute" />
287
288         <!-- ViewSourceActivity.  `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
289             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
290             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
291             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
292             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
293         <activity
294             android:name=".activities.ViewSourceActivity"
295             android:label="@string/view_source"
296             android:parentActivityName=".activities.MainWebViewActivity"
297             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
298             android:screenOrientation="fullUser"
299             android:persistableMode="persistNever"
300             tools:ignore="UnusedAttribute" />
301     </application>
302 </manifest>