1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright © 2015-2018 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 theme has to be defined here or an ugly title bar is displayed when the app launches.
69 `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes, which preserves scroll location in the WebView.
70 `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
71 It also makes it reuse an existing Privacy Browser activity if available instead of launching a new one.
72 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
73 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
75 android:name=".activities.MainWebViewActivity"
76 android:label="@string/privacy_browser"
77 android:theme="@style/PrivacyBrowserLight"
78 android:configChanges="orientation|screenSize"
79 android:launchMode="singleTask"
80 android:screenOrientation="fullUser"
81 android:persistableMode="persistNever"
82 tools:ignore="UnusedAttribute" >
85 <action android:name="android.intent.action.MAIN" />
86 <category android:name="android.intent.category.LAUNCHER" />
89 <!-- `android.intent.action.VIEW` with the two data schemes enables processing of web intents. -->
91 <action android:name="android.intent.action.VIEW" />
92 <category android:name="android.intent.category.BROWSABLE" />
93 <category android:name="android.intent.category.DEFAULT" />
94 <data android:scheme="http" />
95 <data android:scheme="https" />
100 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
101 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
102 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
104 android:name=".activities.BookmarksActivity"
105 android:label="@string/bookmarks"
106 android:parentActivityName=".activities.MainWebViewActivity"
107 android:configChanges="orientation|screenSize"
108 android:screenOrientation="fullUser"
109 android:persistableMode="persistNever"
110 tools:ignore="UnusedAttribute" />
112 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
113 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
114 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
116 android:name=".activities.BookmarksDatabaseViewActivity"
117 android:label="@string/bookmarks_database_view"
118 android:parentActivityName=".activities.BookmarksActivity"
119 android:configChanges="orientation|screenSize"
120 android:screenOrientation="fullUser"
121 android:persistableMode="persistNever"
122 tools:ignore="UnusedAttribute" />
124 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
125 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
126 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
128 android:name=".activities.RequestsActivity"
129 android:label="@string/requests"
130 android:parentActivityName=".activities.MainWebViewActivity"
131 android:configChanges="orientation|screenSize"
132 android:screenOrientation="fullUser"
133 android:persistableMode="persistNever"
134 tools:ignore="UnusedAttribute" />
136 <!-- `android:windowSoftInputMode="stateAlwaysHidden"` keeps the keyboard from displaying when the screen is rotated and after the `AddDomainDialog` is dismissed.
137 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
138 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
140 android:name=".activities.DomainsActivity"
141 android:label="@string/domains"
142 android:parentActivityName=".activities.MainWebViewActivity"
143 android:screenOrientation="fullUser"
144 android:windowSoftInputMode="stateAlwaysHidden"
145 android:persistableMode="persistNever"
146 tools:ignore="UnusedAttribute" />
148 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
149 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
150 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
152 android:name=".activities.SettingsActivity"
153 android:label="@string/privacy_browser_settings"
154 android:parentActivityName=".activities.MainWebViewActivity"
155 android:configChanges="orientation|screenSize"
156 android:screenOrientation="fullUser"
157 android:persistableMode="persistNever"
158 tools:ignore="UnusedAttribute" />
160 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
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. -->
164 android:name=".activities.ImportExportActivity"
165 android:label="@string/import_export"
166 android:parentActivityName=".activities.MainWebViewActivity"
167 android:configChanges="orientation|screenSize"
168 android:screenOrientation="fullUser"
169 android:persistableMode="persistNever"
170 tools:ignore="UnusedAttribute" />
172 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
173 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
174 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
176 android:name=".activities.GuideActivity"
177 android:label="@string/privacy_browser_guide"
178 android:parentActivityName=".activities.MainWebViewActivity"
179 android:configChanges="orientation|screenSize"
180 android:screenOrientation="fullUser"
181 android:persistableMode="persistNever"
182 tools:ignore="UnusedAttribute" />
184 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
185 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
186 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
188 android:name=".activities.AboutActivity"
189 android:label="@string/about_privacy_browser"
190 android:parentActivityName=".activities.MainWebViewActivity"
191 android:configChanges="orientation|screenSize"
192 android:screenOrientation="fullUser"
193 android:persistableMode="persistNever"
194 tools:ignore="UnusedAttribute" />
196 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
197 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
198 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
200 android:name=".activities.ViewSourceActivity"
201 android:label="@string/view_source"
202 android:parentActivityName=".activities.MainWebViewActivity"
203 android:configChanges="orientation|screenSize"
204 android:screenOrientation="fullUser"
205 android:persistableMode="persistNever"
206 tools:ignore="UnusedAttribute" />