]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/AndroidManifest.xml
0608b0410da9735bbafa9fd5b5d2adebebbf18a3
[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         <!-- The file provider is required to encrypt files with OpenKeychain. -->
72         <provider
73             android:name="androidx.core.content.FileProvider"
74             android:authorities="@string/file_provider"
75             android:exported="false"
76             android:grantUriPermissions="true" >
77
78             <meta-data
79                 android:name="android.support.FILE_PROVIDER_PATHS"
80                 android:resource="@xml/file_provider_paths" />
81         </provider>
82         
83         <!-- The theme has to be defined here or an ugly title bar is displayed when the app launches.
84              `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes, which preserves scroll location in the WebView.
85              `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
86              It also makes it reuse an existing Privacy Browser activity if available instead of launching a new one.
87              `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
88              `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
89         <activity
90             android:name=".activities.MainWebViewActivity"
91             android:label="@string/privacy_browser"
92             android:theme="@style/PrivacyBrowserLight"
93             android:configChanges="orientation|screenSize"
94             android:launchMode="singleTask"
95             android:screenOrientation="fullUser"
96             android:persistableMode="persistNever"
97             tools:ignore="UnusedAttribute" >
98
99             <intent-filter>
100                 <action android:name="android.intent.action.MAIN" />
101                 <category android:name="android.intent.category.LAUNCHER" />
102             </intent-filter>
103
104             <!-- Process web intents. -->
105             <intent-filter>
106                 <action android:name="android.intent.action.VIEW" />
107
108                 <category android:name="android.intent.category.BROWSABLE" />
109                 <category android:name="android.intent.category.DEFAULT" />
110
111                 <data android:scheme="http" />
112                 <data android:scheme="https" />
113             </intent-filter>
114
115             <!-- Process content intents for text files. -->
116             <intent-filter>
117                 <action android:name="android.intent.action.VIEW" />
118
119                 <category android:name="android.intent.category.BROWSABLE" />
120                 <category android:name="android.intent.category.DEFAULT" />
121
122                 <data android:scheme="content" />
123                 <data android:mimeType="text/*" />
124             </intent-filter>
125
126             <!-- Process web search intents. -->
127             <intent-filter>
128                 <action android:name="android.intent.action.WEB_SEARCH" />
129
130                 <category android:name="android.intent.category.BROWSABLE" />
131                 <category android:name="android.intent.category.DEFAULT" />
132             </intent-filter>
133         </activity>
134
135
136         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
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. -->
139         <activity
140             android:name=".activities.BookmarksActivity"
141             android:label="@string/bookmarks"
142             android:parentActivityName=".activities.MainWebViewActivity"
143             android:configChanges="orientation|screenSize"
144             android:screenOrientation="fullUser"
145             android:persistableMode="persistNever"
146             tools:ignore="UnusedAttribute" />
147
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. -->
151         <activity
152             android:name=".activities.BookmarksDatabaseViewActivity"
153             android:label="@string/bookmarks_database_view"
154             android:parentActivityName=".activities.BookmarksActivity"
155             android:configChanges="orientation|screenSize"
156             android:screenOrientation="fullUser"
157             android:persistableMode="persistNever"
158             tools:ignore="UnusedAttribute" />
159
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. -->
163         <activity
164             android:name=".activities.RequestsActivity"
165             android:label="@string/requests"
166             android:parentActivityName=".activities.MainWebViewActivity"
167             android:configChanges="orientation|screenSize"
168             android:screenOrientation="fullUser"
169             android:persistableMode="persistNever"
170             tools:ignore="UnusedAttribute" />
171
172         <!-- `android:windowSoftInputMode="stateAlwaysHidden"` keeps the keyboard from displaying when the screen is rotated and after the `AddDomainDialog` is dismissed.
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. -->
175         <activity
176             android:name=".activities.DomainsActivity"
177             android:label="@string/domains"
178             android:parentActivityName=".activities.MainWebViewActivity"
179             android:screenOrientation="fullUser"
180             android:windowSoftInputMode="stateAlwaysHidden"
181             android:persistableMode="persistNever"
182             tools:ignore="UnusedAttribute" />
183
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. -->
187         <activity
188             android:name=".activities.SettingsActivity"
189             android:label="@string/settings"
190             android:parentActivityName=".activities.MainWebViewActivity"
191             android:configChanges="orientation|screenSize"
192             android:screenOrientation="fullUser"
193             android:persistableMode="persistNever"
194             tools:ignore="UnusedAttribute" />
195
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.ImportExportActivity"
201             android:label="@string/import_export"
202             android:parentActivityName=".activities.MainWebViewActivity"
203             android:configChanges="orientation|screenSize"
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:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
210              `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
211         <activity
212             android:name=".activities.LogcatActivity"
213             android:label="@string/logcat"
214             android:parentActivityName=".activities.MainWebViewActivity"
215             android:configChanges="orientation|screenSize"
216             android:screenOrientation="fullUser"
217             android:persistableMode="persistNever"
218             tools:ignore="UnusedAttribute" />
219
220         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
221              `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
222              `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
223         <activity
224             android:name=".activities.GuideActivity"
225             android:label="@string/guide"
226             android:parentActivityName=".activities.MainWebViewActivity"
227             android:configChanges="orientation|screenSize"
228             android:screenOrientation="fullUser"
229             android:persistableMode="persistNever"
230             tools:ignore="UnusedAttribute" />
231
232         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
233              `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
234              `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
235         <activity
236             android:name=".activities.AboutActivity"
237             android:label="@string/about_privacy_browser"
238             android:parentActivityName=".activities.MainWebViewActivity"
239             android:configChanges="orientation|screenSize"
240             android:screenOrientation="fullUser"
241             android:persistableMode="persistNever"
242             tools:ignore="UnusedAttribute" />
243
244         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
245              `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
246              `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
247         <activity
248             android:name=".activities.ViewSourceActivity"
249             android:label="@string/view_source"
250             android:parentActivityName=".activities.MainWebViewActivity"
251             android:configChanges="orientation|screenSize"
252             android:screenOrientation="fullUser"
253             android:persistableMode="persistNever"
254             tools:ignore="UnusedAttribute" />
255     </application>
256 </manifest>