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 save files to the public download folder. -->
32 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
35 <!-- Support Chromebooks that don't have a touch screen. -->
36 <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
39 <!-- For API >= 23, app data is automatically backed up to Google cloud servers unless `android:allowBackup="false"` and `android:fullBackupContent="false"` is set. -->
41 android:label="@string/privacy_browser"
42 android:icon="@mipmap/privacy_browser"
43 android:roundIcon="@mipmap/privacy_browser_round"
44 android:allowBackup="false"
45 android:fullBackupContent="false"
46 android:supportsRtl="true" >
48 <!-- 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> -->
50 android:name="android.webkit.WebView.MetricsOptOut"
51 android:value="true" />
53 <!-- Explicitly disable "Safe Browsing". -->
55 android:name="android.webkit.WebView.EnableSafeBrowsing"
56 android:value="false" />
58 <!-- The theme has to be defined here or an ugly title bar is displayed when the app launches.
59 `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes, which preserves scroll location in the WebView.
60 `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
61 It also makes it reuse an existing Privacy Browser activity if available instead of launching a new one.
62 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
63 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
65 android:name=".activities.MainWebViewActivity"
66 android:label="@string/privacy_browser"
67 android:theme="@style/PrivacyBrowserLight"
68 android:configChanges="orientation|screenSize"
69 android:launchMode="singleTask"
70 android:screenOrientation="fullUser"
71 android:persistableMode="persistNever"
72 tools:ignore="UnusedAttribute" >
75 <action android:name="android.intent.action.MAIN" />
76 <category android:name="android.intent.category.LAUNCHER" />
79 <!-- `android.intent.action.VIEW` with the two data schemes enables processing of web intents. -->
81 <action android:name="android.intent.action.VIEW" />
82 <category android:name="android.intent.category.BROWSABLE" />
83 <category android:name="android.intent.category.DEFAULT" />
84 <data android:scheme="http" />
85 <data android:scheme="https" />
90 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
91 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
92 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
94 android:name=".activities.BookmarksActivity"
95 android:label="@string/bookmarks"
96 android:parentActivityName=".activities.MainWebViewActivity"
97 android:configChanges="orientation|screenSize"
98 android:screenOrientation="fullUser"
99 android:persistableMode="persistNever"
100 tools:ignore="UnusedAttribute" />
102 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
103 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
104 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
106 android:name=".activities.BookmarksDatabaseViewActivity"
107 android:label="@string/bookmarks_database_view"
108 android:parentActivityName=".activities.BookmarksActivity"
109 android:configChanges="orientation|screenSize"
110 android:screenOrientation="fullUser"
111 android:persistableMode="persistNever"
112 tools:ignore="UnusedAttribute" />
114 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
115 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
116 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
118 android:name=".activities.RequestsActivity"
119 android:label="@string/requests"
120 android:parentActivityName=".activities.MainWebViewActivity"
121 android:configChanges="orientation|screenSize"
122 android:screenOrientation="fullUser"
123 android:persistableMode="persistNever"
124 tools:ignore="UnusedAttribute" />
126 <!-- `android:windowSoftInputMode="stateAlwaysHidden"` keeps the keyboard from displaying when the screen is rotated and after the `AddDomainDialog` is dismissed.
127 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
128 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
130 android:name=".activities.DomainsActivity"
131 android:label="@string/domains"
132 android:parentActivityName=".activities.MainWebViewActivity"
133 android:screenOrientation="fullUser"
134 android:windowSoftInputMode="stateAlwaysHidden"
135 android:persistableMode="persistNever"
136 tools:ignore="UnusedAttribute" />
138 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
139 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
140 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
142 android:name=".activities.SettingsActivity"
143 android:label="@string/privacy_browser_settings"
144 android:parentActivityName=".activities.MainWebViewActivity"
145 android:configChanges="orientation|screenSize"
146 android:screenOrientation="fullUser"
147 android:persistableMode="persistNever"
148 tools:ignore="UnusedAttribute" />
150 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
151 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
152 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
154 android:name=".activities.GuideActivity"
155 android:label="@string/privacy_browser_guide"
156 android:parentActivityName=".activities.MainWebViewActivity"
157 android:configChanges="orientation|screenSize"
158 android:screenOrientation="fullUser"
159 android:persistableMode="persistNever"
160 tools:ignore="UnusedAttribute" />
162 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
163 `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
164 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
166 android:name=".activities.AboutActivity"
167 android:label="@string/about_privacy_browser"
168 android:parentActivityName=".activities.MainWebViewActivity"
169 android:configChanges="orientation|screenSize"
170 android:screenOrientation="fullUser"
171 android:persistableMode="persistNever"
172 tools:ignore="UnusedAttribute" />
174 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
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. -->
178 android:name=".activities.ViewSourceActivity"
179 android:label="@string/view_source"
180 android:parentActivityName=".activities.MainWebViewActivity"
181 android:configChanges="orientation|screenSize"
182 android:screenOrientation="fullUser"
183 android:persistableMode="persistNever"
184 tools:ignore="UnusedAttribute" />