1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright © 2015-2019 Soren Stoutner <soren@stoutner.com>.
6 This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
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.
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.
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/>. -->
21 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
22 xmlns:tools="http://schemas.android.com/tools"
23 package="com.stoutner.privacybrowser" >
25 <!-- Required to load websites. -->
26 <uses-permission android:name="android.permission.INTERNET" />
28 <!-- Required to create home screen shortcuts. -->
29 <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
31 <!-- Required to import settings from external storage. -->
32 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
34 <!-- Required to export settings and save files to public storage. -->
35 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
38 <!-- Support Chromebooks that don't have a touch screen. -->
39 <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
42 <!-- For API >= 23, app data is automatically backed up to Google cloud servers unless `android:allowBackup="false"` and `android:fullBackupContent="false"` is set. -->
44 android:label="@string/privacy_browser"
45 android:icon="@mipmap/privacy_browser"
46 android:roundIcon="@mipmap/privacy_browser_round"
47 android:allowBackup="false"
48 android:fullBackupContent="false"
49 android:supportsRtl="true"
50 android:networkSecurityConfig="@xml/network_security_config"
51 tools:ignore="UnusedAttribute" >
53 <!-- 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> -->
55 android:name="android.webkit.WebView.MetricsOptOut"
56 android:value="true" />
58 <!-- Explicitly disable "Safe Browsing". -->
60 android:name="android.webkit.WebView.EnableSafeBrowsing"
61 android:value="false" />
63 <!-- Specify the Application ID used by the ads in the free flavor. -->
65 android:name="com.google.android.gms.ads.APPLICATION_ID"
66 android:value="@string/google_app_id" />
68 <!-- The file provider is required to encrypt files with OpenKeychain. -->
70 android:name="androidx.core.content.FileProvider"
71 android:authorities="@string/file_provider"
72 android:exported="false"
73 android:grantUriPermissions="true" >
76 android:name="android.support.FILE_PROVIDER_PATHS"
77 android:resource="@xml/file_provider_paths" />
80 <!-- The theme has to be defined here or an ugly title bar is displayed when the app launches.
81 `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes, which preserves scroll location in the WebView.
82 `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
83 It also makes it reuse an existing Privacy Browser activity if available instead of launching a new one.
84 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
85 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
87 android:name=".activities.MainWebViewActivity"
88 android:label="@string/privacy_browser"
89 android:theme="@style/PrivacyBrowserLight"
90 android:configChanges="orientation|screenSize"
91 android:launchMode="singleTask"
92 android:screenOrientation="fullUser"
93 android:persistableMode="persistNever"
94 tools:ignore="UnusedAttribute" >
97 <action android:name="android.intent.action.MAIN" />
98 <category android:name="android.intent.category.LAUNCHER" />
101 <!-- Process web intents. -->
103 <action android:name="android.intent.action.VIEW" />
105 <category android:name="android.intent.category.BROWSABLE" />
106 <category android:name="android.intent.category.DEFAULT" />
108 <data android:scheme="http" />
109 <data android:scheme="https" />
112 <!-- Process content intents for text files. -->
114 <action android:name="android.intent.action.VIEW" />
116 <category android:name="android.intent.category.BROWSABLE" />
117 <category android:name="android.intent.category.DEFAULT" />
119 <data android:scheme="content" />
120 <data android:mimeType="text/*" />
123 <!-- Process web search intents. -->
125 <action android:name="android.intent.action.WEB_SEARCH" />
127 <category android:name="android.intent.category.BROWSABLE" />
128 <category android:name="android.intent.category.DEFAULT" />
133 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
134 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
135 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
137 android:name=".activities.BookmarksActivity"
138 android:label="@string/bookmarks"
139 android:parentActivityName=".activities.MainWebViewActivity"
140 android:configChanges="orientation|screenSize"
141 android:screenOrientation="fullUser"
142 android:persistableMode="persistNever"
143 tools:ignore="UnusedAttribute" />
145 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
146 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
147 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
149 android:name=".activities.BookmarksDatabaseViewActivity"
150 android:label="@string/bookmarks_database_view"
151 android:parentActivityName=".activities.BookmarksActivity"
152 android:configChanges="orientation|screenSize"
153 android:screenOrientation="fullUser"
154 android:persistableMode="persistNever"
155 tools:ignore="UnusedAttribute" />
157 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
158 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
159 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
161 android:name=".activities.RequestsActivity"
162 android:label="@string/requests"
163 android:parentActivityName=".activities.MainWebViewActivity"
164 android:configChanges="orientation|screenSize"
165 android:screenOrientation="fullUser"
166 android:persistableMode="persistNever"
167 tools:ignore="UnusedAttribute" />
169 <!-- `android:windowSoftInputMode="stateAlwaysHidden"` keeps the keyboard from displaying when the screen is rotated and after the `AddDomainDialog` is dismissed.
170 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
171 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
173 android:name=".activities.DomainsActivity"
174 android:label="@string/domains"
175 android:parentActivityName=".activities.MainWebViewActivity"
176 android:screenOrientation="fullUser"
177 android:windowSoftInputMode="stateAlwaysHidden"
178 android:persistableMode="persistNever"
179 tools:ignore="UnusedAttribute" />
181 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
182 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
183 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
185 android:name=".activities.SettingsActivity"
186 android:label="@string/settings"
187 android:parentActivityName=".activities.MainWebViewActivity"
188 android:configChanges="orientation|screenSize"
189 android:screenOrientation="fullUser"
190 android:persistableMode="persistNever"
191 tools:ignore="UnusedAttribute" />
193 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
194 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
195 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
197 android:name=".activities.ImportExportActivity"
198 android:label="@string/import_export"
199 android:parentActivityName=".activities.MainWebViewActivity"
200 android:configChanges="orientation|screenSize"
201 android:screenOrientation="fullUser"
202 android:persistableMode="persistNever"
203 tools:ignore="UnusedAttribute" />
205 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
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. -->
209 android:name=".activities.LogcatActivity"
210 android:label="@string/logcat"
211 android:parentActivityName=".activities.MainWebViewActivity"
212 android:configChanges="orientation|screenSize"
213 android:screenOrientation="fullUser"
214 android:persistableMode="persistNever"
215 tools:ignore="UnusedAttribute" />
217 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
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. -->
221 android:name=".activities.GuideActivity"
222 android:label="@string/guide"
223 android:parentActivityName=".activities.MainWebViewActivity"
224 android:configChanges="orientation|screenSize"
225 android:screenOrientation="fullUser"
226 android:persistableMode="persistNever"
227 tools:ignore="UnusedAttribute" />
229 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
230 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
231 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
233 android:name=".activities.AboutActivity"
234 android:label="@string/about_privacy_browser"
235 android:parentActivityName=".activities.MainWebViewActivity"
236 android:configChanges="orientation|screenSize"
237 android:screenOrientation="fullUser"
238 android:persistableMode="persistNever"
239 tools:ignore="UnusedAttribute" />
241 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
242 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
243 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
245 android:name=".activities.ViewSourceActivity"
246 android:label="@string/view_source"
247 android:parentActivityName=".activities.MainWebViewActivity"
248 android:configChanges="orientation|screenSize"
249 android:screenOrientation="fullUser"
250 android:persistableMode="persistNever"
251 tools:ignore="UnusedAttribute" />