1 <?xml version="1.0" encoding="utf-8"?>
4 Copyright 2015-2016 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.
46 https://developer.android.com/reference/android/webkit/WebView.html -->
48 android:name="android.webkit.WebView.MetricsOptOut"
49 android:value="true" />
51 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes, which preserves scroll location in the WebView.
52 `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
53 It also makes it reuse an existing Privacy Browser activity if available instead of launching a new one.
54 `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
55 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
57 android:name=".activities.MainWebView"
58 android:label="@string/privacy_browser"
59 android:configChanges="orientation|screenSize"
60 android:launchMode="singleTask"
61 android:screenOrientation="fullUser"
62 android:persistableMode="persistNever"
63 tools:ignore="UnusedAttribute" >
66 <action android:name="android.intent.action.MAIN" />
67 <category android:name="android.intent.category.LAUNCHER" />
70 <!-- `android.intent.action.VIEW` with the two data schemes enables processing of web intents. -->
72 <action android:name="android.intent.action.VIEW" />
73 <category android:name="android.intent.category.BROWSABLE" />
74 <category android:name="android.intent.category.DEFAULT" />
75 <data android:scheme="http" />
76 <data android:scheme="https" />
81 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
82 `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
83 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
85 android:name=".activities.Bookmarks"
86 android:label="@string/bookmarks"
87 android:theme="@style/PrivacyBrowser.SecondaryActivity"
88 android:parentActivityName=".activities.MainWebView"
89 android:configChanges="orientation|screenSize"
90 android:screenOrientation="fullUser"
91 android:persistableMode="persistNever"
92 tools:ignore="UnusedAttribute" />
94 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
95 `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
96 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
98 android:name=".activities.BookmarksDatabaseView"
99 android:label="@string/bookmarks_database_view"
100 android:theme="@style/PrivacyBrowser.SecondaryActivity"
101 android:parentActivityName=".activities.Bookmarks"
102 android:configChanges="orientation|screenSize"
103 android:screenOrientation="fullUser"
104 android:persistableMode="persistNever"
105 tools:ignore="UnusedAttribute" />
107 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
108 `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
109 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
111 android:name=".activities.Settings"
112 android:label="@string/privacy_browser_settings"
113 android:theme="@style/Settings"
114 android:parentActivityName=".activities.MainWebView"
115 android:configChanges="orientation|screenSize"
116 android:screenOrientation="fullUser"
117 android:persistableMode="persistNever"
118 tools:ignore="UnusedAttribute" />
120 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
121 `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
122 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
124 android:name=".activities.Domains"
125 android:label="@string/domains"
126 android:theme="@style/PrivacyBrowser.SecondaryActivity"
127 android:parentActivityName=".activities.MainWebView"
128 android:configChanges="orientation|screenSize"
129 android:screenOrientation="fullUser"
130 android:persistableMode="persistNever"
131 tools:ignore="UnusedAttribute" />
133 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
134 `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
135 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
137 android:name=".activities.Guide"
138 android:label="@string/privacy_browser_guide"
139 android:theme="@style/PrivacyBrowser.SecondaryActivity"
140 android:parentActivityName=".activities.MainWebView"
141 android:configChanges="orientation|screenSize"
142 android:screenOrientation="fullUser"
143 android:persistableMode="persistNever"
144 tools:ignore="UnusedAttribute" />
146 <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
147 `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
148 `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
150 android:name=".activities.About"
151 android:label="@string/about_privacy_browser"
152 android:theme="@style/PrivacyBrowser.SecondaryActivity"
153 android:parentActivityName=".activities.MainWebView"
154 android:configChanges="orientation|screenSize"
155 android:screenOrientation="fullUser"
156 android:persistableMode="persistNever"
157 tools:ignore="UnusedAttribute" />