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