]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/AndroidManifest.xml
Add the Sec-Fetch headers to View Source. https://redmine.stoutner.com/issues/503
[PrivacyBrowserAndroid.git] / app / src / main / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2015-2019 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     package="com.stoutner.privacybrowser"
26     android:installLocation="auto" >
27
28     <!-- Required to load websites. -->
29     <uses-permission android:name="android.permission.INTERNET" />
30
31     <!-- Required to create home screen shortcuts. -->
32     <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
33
34     <!-- Required to import settings from external storage. -->
35     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
36
37     <!-- Required to export settings and save files to public storage. -->
38     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
39
40
41     <!-- Support Chromebooks that don't have a touch screen. -->
42     <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
43
44
45     <!-- For API >= 23, app data is automatically backed up to Google cloud servers unless `android:allowBackup="false"` and `android:fullBackupContent="false"` is set. -->
46     <application
47         android:label="@string/privacy_browser"
48         android:icon="@mipmap/privacy_browser"
49         android:roundIcon="@mipmap/privacy_browser_round"
50         android:allowBackup="false"
51         android:fullBackupContent="false"
52         android:supportsRtl="true"
53         android:networkSecurityConfig="@xml/network_security_config"
54         tools:ignore="UnusedAttribute" >
55
56         <!-- 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> -->
57         <meta-data
58             android:name="android.webkit.WebView.MetricsOptOut"
59             android:value="true" />
60
61         <!-- Explicitly disable "Safe Browsing". -->
62         <meta-data
63             android:name="android.webkit.WebView.EnableSafeBrowsing"
64             android:value="false" />
65
66         <!-- Specify the Application ID used by the ads in the free flavor. -->
67         <meta-data
68             android:name="com.google.android.gms.ads.APPLICATION_ID"
69             android:value="@string/google_app_id" />
70
71         <!-- Don't initialize the ad system in the free flavor until it is explicitly called. -->
72         <meta-data
73             android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT"
74             android:value="true"/>
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         <!-- 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/PrivacyBrowserLight"
101             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
102             android:launchMode="singleTask"
103             android:screenOrientation="fullUser"
104             android:persistableMode="persistNever"
105             tools:ignore="UnusedAttribute" >
106
107             <intent-filter>
108                 <action android:name="android.intent.action.MAIN" />
109                 <category android:name="android.intent.category.LAUNCHER" />
110             </intent-filter>
111
112             <!-- Process web intents. -->
113             <intent-filter>
114                 <action android:name="android.intent.action.VIEW" />
115
116                 <category android:name="android.intent.category.BROWSABLE" />
117                 <category android:name="android.intent.category.DEFAULT" />
118
119                 <data android:scheme="http" />
120                 <data android:scheme="https" />
121             </intent-filter>
122
123             <!-- Process content intents for text files. -->
124             <intent-filter>
125                 <action android:name="android.intent.action.VIEW" />
126
127                 <category android:name="android.intent.category.BROWSABLE" />
128                 <category android:name="android.intent.category.DEFAULT" />
129
130                 <data android:scheme="content" />
131                 <data android:mimeType="text/*" />
132             </intent-filter>
133
134             <!-- Process web search intents. -->
135             <intent-filter>
136                 <action android:name="android.intent.action.WEB_SEARCH" />
137
138                 <category android:name="android.intent.category.BROWSABLE" />
139                 <category android:name="android.intent.category.DEFAULT" />
140             </intent-filter>
141         </activity>
142
143
144         <!-- `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
145             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
146             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
147             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
148             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
149         <activity
150             android:name=".activities.BookmarksActivity"
151             android:label="@string/bookmarks"
152             android:parentActivityName=".activities.MainWebViewActivity"
153             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
154             android:screenOrientation="fullUser"
155             android:persistableMode="persistNever"
156             tools:ignore="UnusedAttribute" />
157
158         <!-- `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
159             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
160             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
161             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
162             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
163         <activity
164             android:name=".activities.BookmarksDatabaseViewActivity"
165             android:label="@string/bookmarks_database_view"
166             android:parentActivityName=".activities.BookmarksActivity"
167             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
168             android:screenOrientation="fullUser"
169             android:persistableMode="persistNever"
170             tools:ignore="UnusedAttribute" />
171
172         <!-- `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
173             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
174             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
175             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
176             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
177         <activity
178             android:name=".activities.RequestsActivity"
179             android:label="@string/requests"
180             android:parentActivityName=".activities.MainWebViewActivity"
181             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
182             android:screenOrientation="fullUser"
183             android:persistableMode="persistNever"
184             tools:ignore="UnusedAttribute" />
185
186         <!-- `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
187             `android:configChanges="keyboard|keyboardHidden"` makes the activity not reload when a bluetooth keyboard is activated/goes to sleep.
188             `android:windowSoftInputMode="stateAlwaysHidden"` keeps the keyboard from displaying when the screen is rotated and after the `AddDomainDialog` is dismissed.
189             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
190             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
191         <activity
192             android:name=".activities.DomainsActivity"
193             android:label="@string/domains"
194             android:parentActivityName=".activities.MainWebViewActivity"
195             android:configChanges="screenLayout|keyboard|keyboardHidden"
196             android:screenOrientation="fullUser"
197             android:windowSoftInputMode="stateAlwaysHidden"
198             android:persistableMode="persistNever"
199             tools:ignore="UnusedAttribute" />
200
201         <!-- `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
202             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
203             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
204             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
205             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
206         <activity
207             android:name=".activities.SettingsActivity"
208             android:label="@string/settings"
209             android:parentActivityName=".activities.MainWebViewActivity"
210             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
211             android:screenOrientation="fullUser"
212             android:persistableMode="persistNever"
213             tools:ignore="UnusedAttribute" />
214
215         <!-- `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
216             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
217             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
218             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
219             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
220         <activity
221             android:name=".activities.ImportExportActivity"
222             android:label="@string/import_export"
223             android:parentActivityName=".activities.MainWebViewActivity"
224             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
225             android:screenOrientation="fullUser"
226             android:persistableMode="persistNever"
227             tools:ignore="UnusedAttribute" />
228
229         <!-- `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
230             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
231             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
232             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
233             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
234         <activity
235             android:name=".activities.LogcatActivity"
236             android:label="@string/logcat"
237             android:parentActivityName=".activities.MainWebViewActivity"
238             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
239             android:screenOrientation="fullUser"
240             android:persistableMode="persistNever"
241             tools:ignore="UnusedAttribute" />
242
243         <!-- `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
244             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
245             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
246             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
247             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
248         <activity
249             android:name=".activities.GuideActivity"
250             android:label="@string/guide"
251             android:parentActivityName=".activities.MainWebViewActivity"
252             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
253             android:screenOrientation="fullUser"
254             android:persistableMode="persistNever"
255             tools:ignore="UnusedAttribute" />
256
257         <!-- `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
258             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
259             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
260             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
261             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
262         <activity
263             android:name=".activities.AboutActivity"
264             android:label="@string/about_privacy_browser"
265             android:parentActivityName=".activities.MainWebViewActivity"
266             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
267             android:screenOrientation="fullUser"
268             android:persistableMode="persistNever"
269             tools:ignore="UnusedAttribute" />
270
271         <!-- `android:configChanges="orientation|screenSize"` makes the activity not restart when the orientation changes, which preserves scroll location in the WebView.
272             `android:configChanges="screenLayout"` makes the activity not restart when entering or exiting split screen mode.
273             `android:configChanges="keyboard|keyboardHidden"` makes the activity not restart when a bluetooth keyboard is activated/goes to sleep.
274             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
275             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
276         <activity
277             android:name=".activities.ViewSourceActivity"
278             android:label="@string/view_source"
279             android:parentActivityName=".activities.MainWebViewActivity"
280             android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden"
281             android:screenOrientation="fullUser"
282             android:persistableMode="persistNever"
283             tools:ignore="UnusedAttribute" />
284     </application>
285 </manifest>