1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright © 2015-2017 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 homescreen shortcuts. -->
29 <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
32 <!-- Support Chromebooks that don't have a touch screen. -->
33 <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
36 <!-- For API >= 23, app data is automatically backed up to Google cloud servers unless `android:allowBackup="false"` and `android:fullBackupContent="false"` is set. -->
38 android:label="@string/privacy_browser"
39 android:icon="@mipmap/privacy_browser"
40 android:theme="@style/PrivacyBrowser"
41 android:allowBackup="false"
42 android:fullBackupContent="false"
43 android:supportsRtl="true" >
45 <!-- 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> -->
47 android:name="android.webkit.WebView.MetricsOptOut"
48 android:value="true" />
50 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes, which preserves scroll location in the WebView.
51 `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
52 It also makes it reuse an existing Privacy Browser activity if available instead of launching a new one.
53 `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
54 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
56 android:name=".activities.MainWebViewActivity"
57 android:label="@string/privacy_browser"
58 android:configChanges="orientation|screenSize"
59 android:launchMode="singleTask"
60 android:screenOrientation="fullUser"
61 android:persistableMode="persistNever"
62 tools:ignore="UnusedAttribute" >
65 <action android:name="android.intent.action.MAIN" />
66 <category android:name="android.intent.category.LAUNCHER" />
69 <!-- `android.intent.action.VIEW` with the two data schemes enables processing of web intents. -->
71 <action android:name="android.intent.action.VIEW" />
72 <category android:name="android.intent.category.BROWSABLE" />
73 <category android:name="android.intent.category.DEFAULT" />
74 <data android:scheme="http" />
75 <data android:scheme="https" />
80 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
81 `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
82 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
84 android:name=".activities.BookmarksActivity"
85 android:label="@string/bookmarks"
86 android:theme="@style/PrivacyBrowser.SecondaryActivity"
87 android:parentActivityName=".activities.MainWebViewActivity"
88 android:configChanges="orientation|screenSize"
89 android:screenOrientation="fullUser"
90 android:persistableMode="persistNever"
91 tools:ignore="UnusedAttribute" />
93 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
94 `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
95 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
97 android:name=".activities.BookmarksDatabaseViewActivity"
98 android:label="@string/bookmarks_database_view"
99 android:theme="@style/PrivacyBrowser.SecondaryActivity"
100 android:parentActivityName=".activities.BookmarksActivity"
101 android:configChanges="orientation|screenSize"
102 android:screenOrientation="fullUser"
103 android:persistableMode="persistNever"
104 tools:ignore="UnusedAttribute" />
106 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
107 `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
108 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
110 android:name=".activities.SettingsActivity"
111 android:label="@string/privacy_browser_settings"
112 android:theme="@style/Settings"
113 android:parentActivityName=".activities.MainWebViewActivity"
114 android:configChanges="orientation|screenSize"
115 android:screenOrientation="fullUser"
116 android:persistableMode="persistNever"
117 tools:ignore="UnusedAttribute" />
119 <!-- `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
120 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
122 android:name=".activities.DomainsActivity"
123 android:label="@string/domains"
124 android:theme="@style/PrivacyBrowser.SecondaryActivity"
125 android:parentActivityName=".activities.MainWebViewActivity"
126 android:screenOrientation="fullUser"
127 android:persistableMode="persistNever"
128 tools:ignore="UnusedAttribute" />
130 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
131 `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
132 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21.
133 `android:windowSoftInputMode="stateAlwaysHidden"` removes the keyboard from the screen, which is displayed because `ScrollViews` always focus the first `EditText` despite being told not to. -->
135 android:name=".activities.DomainSettingsActivity"
136 android:label="@string/domain_settings"
137 android:theme="@style/PrivacyBrowser.SecondaryActivity"
138 android:parentActivityName=".activities.DomainsActivity"
139 android:configChanges="orientation|screenSize"
140 android:screenOrientation="fullUser"
141 android:windowSoftInputMode="stateAlwaysHidden"
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 recents screen on a device reboot.
147 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
149 android:name=".activities.GuideActivity"
150 android:label="@string/privacy_browser_guide"
151 android:theme="@style/PrivacyBrowser.SecondaryActivity"
152 android:parentActivityName=".activities.MainWebViewActivity"
153 android:configChanges="orientation|screenSize"
154 android:screenOrientation="fullUser"
155 android:persistableMode="persistNever"
156 tools:ignore="UnusedAttribute" />
158 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
159 `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
160 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
162 android:name=".activities.AboutActivity"
163 android:label="@string/about_privacy_browser"
164 android:theme="@style/PrivacyBrowser.SecondaryActivity"
165 android:parentActivityName=".activities.MainWebViewActivity"
166 android:configChanges="orientation|screenSize"
167 android:screenOrientation="fullUser"
168 android:persistableMode="persistNever"
169 tools:ignore="UnusedAttribute" />