]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/AndroidManifest.xml
8f306a22f0ac99ab9321157b0ab6d597138d2ff8
[PrivacyBrowserAndroid.git] / app / src / main / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2015-2019 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
7
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.
12
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.
17
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/>. -->
20
21 <!-- Install location auto allows users to move Privacy Browser to an SD card if desired. -->
22 <manifest
23     xmlns:android="http://schemas.android.com/apk/res/android"
24     xmlns:tools="http://schemas.android.com/tools"
25     package="com.stoutner.privacybrowser"
26     android:installLocation="auto" >
27
28     <!-- Required to load websites. -->
29     <uses-permission android:name="android.permission.INTERNET" />
30
31     <!-- Required to create home screen shortcuts. -->
32     <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
33
34     <!-- Required to import settings from external storage. -->
35     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
36
37     <!-- Required to export settings and save files to public storage. -->
38     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
39
40
41     <!-- Support Chromebooks that don't have a touch screen. -->
42     <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
43
44
45     <!-- For API >= 23, app data is automatically backed up to Google cloud servers unless `android:allowBackup="false"` and `android:fullBackupContent="false"` is set. -->
46     <application
47         android:label="@string/privacy_browser"
48         android:icon="@mipmap/privacy_browser"
49         android:roundIcon="@mipmap/privacy_browser_round"
50         android:allowBackup="false"
51         android:fullBackupContent="false"
52         android:supportsRtl="true"
53         android:networkSecurityConfig="@xml/network_security_config"
54         tools:ignore="UnusedAttribute" >
55
56         <!-- 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> -->
57         <meta-data
58             android:name="android.webkit.WebView.MetricsOptOut"
59             android:value="true" />
60
61         <!-- Explicitly disable "Safe Browsing". -->
62         <meta-data
63             android:name="android.webkit.WebView.EnableSafeBrowsing"
64             android:value="false" />
65
66         <!-- Specify the Application ID used by the ads in the free flavor. -->
67         <meta-data
68             android:name="com.google.android.gms.ads.APPLICATION_ID"
69             android:value="@string/google_app_id" />
70
71         <!-- Don't initialize the ad system in the free flavor until it is explicitly called. -->
72         <meta-data
73             android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT"
74             android:value="true"/>
75
76         <!-- The file provider is required to encrypt files with OpenKeychain. -->
77         <provider
78             android:name="androidx.core.content.FileProvider"
79             android:authorities="@string/file_provider"
80             android:exported="false"
81             android:grantUriPermissions="true" >
82
83             <meta-data
84                 android:name="android.support.FILE_PROVIDER_PATHS"
85                 android:resource="@xml/file_provider_paths" />
86         </provider>
87         
88         <!-- The theme has to be defined here or an ugly title bar is displayed when the app launches.
89              `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes, which preserves scroll location in the WebView.
90              `android:configChanges="keyboard|keyboardHidden"` makes the activity not reload when a bluetooth keyboard is activated/goes to sleep.
91              `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
92              It also makes it reuse an existing Privacy Browser activity if available instead of launching a new one.
93              `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
94              `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
95         <activity
96             android:name=".activities.MainWebViewActivity"
97             android:label="@string/privacy_browser"
98             android:theme="@style/PrivacyBrowserLight"
99             android:configChanges="orientation|screenSize|keyboard|keyboardHidden"
100             android:launchMode="singleTask"
101             android:screenOrientation="fullUser"
102             android:persistableMode="persistNever"
103             tools:ignore="UnusedAttribute" >
104
105             <intent-filter>
106                 <action android:name="android.intent.action.MAIN" />
107                 <category android:name="android.intent.category.LAUNCHER" />
108             </intent-filter>
109
110             <!-- Process web intents. -->
111             <intent-filter>
112                 <action android:name="android.intent.action.VIEW" />
113
114                 <category android:name="android.intent.category.BROWSABLE" />
115                 <category android:name="android.intent.category.DEFAULT" />
116
117                 <data android:scheme="http" />
118                 <data android:scheme="https" />
119             </intent-filter>
120
121             <!-- Process content intents for text files. -->
122             <intent-filter>
123                 <action android:name="android.intent.action.VIEW" />
124
125                 <category android:name="android.intent.category.BROWSABLE" />
126                 <category android:name="android.intent.category.DEFAULT" />
127
128                 <data android:scheme="content" />
129                 <data android:mimeType="text/*" />
130             </intent-filter>
131
132             <!-- Process web search intents. -->
133             <intent-filter>
134                 <action android:name="android.intent.action.WEB_SEARCH" />
135
136                 <category android:name="android.intent.category.BROWSABLE" />
137                 <category android:name="android.intent.category.DEFAULT" />
138             </intent-filter>
139         </activity>
140
141
142         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
143             `android:configChanges="keyboard|keyboardHidden"` makes the activity not reload when a bluetooth keyboard is activated/goes to sleep.
144             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
145             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
146         <activity
147             android:name=".activities.BookmarksActivity"
148             android:label="@string/bookmarks"
149             android:parentActivityName=".activities.MainWebViewActivity"
150             android:configChanges="orientation|screenSize|keyboard|keyboardHidden"
151             android:screenOrientation="fullUser"
152             android:persistableMode="persistNever"
153             tools:ignore="UnusedAttribute" />
154
155         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
156             `android:configChanges="keyboard|keyboardHidden"` makes the activity not reload when a bluetooth keyboard is activated/goes to sleep.
157             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
158             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
159         <activity
160             android:name=".activities.BookmarksDatabaseViewActivity"
161             android:label="@string/bookmarks_database_view"
162             android:parentActivityName=".activities.BookmarksActivity"
163             android:configChanges="orientation|screenSize|keyboard|keyboardHidden"
164             android:screenOrientation="fullUser"
165             android:persistableMode="persistNever"
166             tools:ignore="UnusedAttribute" />
167
168         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
169             `android:configChanges="keyboard|keyboardHidden"` makes the activity not reload when a bluetooth keyboard is activated/goes to sleep.
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. -->
172         <activity
173             android:name=".activities.RequestsActivity"
174             android:label="@string/requests"
175             android:parentActivityName=".activities.MainWebViewActivity"
176             android:configChanges="orientation|screenSize|keyboard|keyboardHidden"
177             android:screenOrientation="fullUser"
178             android:persistableMode="persistNever"
179             tools:ignore="UnusedAttribute" />
180
181         <!-- `android:configChanges="keyboard|keyboardHidden"` makes the activity not reload when a bluetooth keyboard is activated/goes to sleep.
182             `android:windowSoftInputMode="stateAlwaysHidden"` keeps the keyboard from displaying when the screen is rotated and after the `AddDomainDialog` is dismissed.
183             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
184             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
185         <activity
186             android:name=".activities.DomainsActivity"
187             android:label="@string/domains"
188             android:parentActivityName=".activities.MainWebViewActivity"
189             android:configChanges="keyboard|keyboardHidden"
190             android:screenOrientation="fullUser"
191             android:windowSoftInputMode="stateAlwaysHidden"
192             android:persistableMode="persistNever"
193             tools:ignore="UnusedAttribute" />
194
195         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
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. -->
199         <activity
200             android:name=".activities.SettingsActivity"
201             android:label="@string/settings"
202             android:parentActivityName=".activities.MainWebViewActivity"
203             android:configChanges="orientation|screenSize|keyboard|keyboardHidden"
204             android:screenOrientation="fullUser"
205             android:persistableMode="persistNever"
206             tools:ignore="UnusedAttribute" />
207
208         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
209             `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
210             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
211             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
212         <activity
213             android:name=".activities.ImportExportActivity"
214             android:label="@string/import_export"
215             android:parentActivityName=".activities.MainWebViewActivity"
216             android:configChanges="orientation|screenSize|keyboard|keyboardHidden"
217             android:screenOrientation="fullUser"
218             android:persistableMode="persistNever"
219             tools:ignore="UnusedAttribute" />
220
221         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
222             `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
223             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
224             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
225         <activity
226             android:name=".activities.LogcatActivity"
227             android:label="@string/logcat"
228             android:parentActivityName=".activities.MainWebViewActivity"
229             android:configChanges="orientation|screenSize|keyboard|keyboardHidden"
230             android:screenOrientation="fullUser"
231             android:persistableMode="persistNever"
232             tools:ignore="UnusedAttribute" />
233
234         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
235             `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
236             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
237             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
238         <activity
239             android:name=".activities.GuideActivity"
240             android:label="@string/guide"
241             android:parentActivityName=".activities.MainWebViewActivity"
242             android:configChanges="orientation|screenSize|keyboard|keyboardHidden"
243             android:screenOrientation="fullUser"
244             android:persistableMode="persistNever"
245             tools:ignore="UnusedAttribute" />
246
247         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
248             `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
249             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
250             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
251         <activity
252             android:name=".activities.AboutActivity"
253             android:label="@string/about_privacy_browser"
254             android:parentActivityName=".activities.MainWebViewActivity"
255             android:configChanges="orientation|screenSize|keyboard|keyboardHidden"
256             android:screenOrientation="fullUser"
257             android:persistableMode="persistNever"
258             tools:ignore="UnusedAttribute" />
259
260         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
261             `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
262             `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
263             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
264         <activity
265             android:name=".activities.ViewSourceActivity"
266             android:label="@string/view_source"
267             android:parentActivityName=".activities.MainWebViewActivity"
268             android:configChanges="orientation|screenSize|keyboard|keyboardHidden"
269             android:screenOrientation="fullUser"
270             android:persistableMode="persistNever"
271             tools:ignore="UnusedAttribute" />
272     </application>
273 </manifest>