]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/AndroidManifest.xml
Bump the target API to 28.
[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 save files to the public download folder. -->
32     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
33
34
35     <!-- Support Chromebooks that don't have a touch screen. -->
36     <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
37
38
39     <!-- For API >= 23, app data is automatically backed up to Google cloud servers unless `android:allowBackup="false"` and `android:fullBackupContent="false"` is set. -->
40     <application
41         android:label="@string/privacy_browser"
42         android:icon="@mipmap/privacy_browser"
43         android:roundIcon="@mipmap/privacy_browser_round"
44         android:allowBackup="false"
45         android:fullBackupContent="false"
46         android:supportsRtl="true"
47         android:networkSecurityConfig="@xml/network_security_config"
48         tools:ignore="UnusedAttribute" >
49
50         <!-- 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> -->
51         <meta-data
52             android:name="android.webkit.WebView.MetricsOptOut"
53             android:value="true" />
54
55         <!-- Explicitly disable "Safe Browsing". -->
56         <meta-data
57             android:name="android.webkit.WebView.EnableSafeBrowsing"
58             android:value="false" />
59
60         <!-- The theme has to be defined here or an ugly title bar is displayed when the app launches.
61              `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes, which preserves scroll location in the WebView.
62              `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
63              It also makes it reuse an existing Privacy Browser activity if available instead of launching a new one.
64              `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
65              `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
66         <activity
67             android:name=".activities.MainWebViewActivity"
68             android:label="@string/privacy_browser"
69             android:theme="@style/PrivacyBrowserLight"
70             android:configChanges="orientation|screenSize"
71             android:launchMode="singleTask"
72             android:screenOrientation="fullUser"
73             android:persistableMode="persistNever"
74             tools:ignore="UnusedAttribute" >
75
76             <intent-filter>
77                 <action android:name="android.intent.action.MAIN" />
78                 <category android:name="android.intent.category.LAUNCHER" />
79             </intent-filter>
80
81             <!-- `android.intent.action.VIEW` with the two data schemes enables processing of web intents. -->
82             <intent-filter>
83                 <action android:name="android.intent.action.VIEW" />
84                 <category android:name="android.intent.category.BROWSABLE" />
85                 <category android:name="android.intent.category.DEFAULT" />
86                 <data android:scheme="http" />
87                 <data android:scheme="https" />
88             </intent-filter>
89         </activity>
90
91
92         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
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.BookmarksActivity"
97             android:label="@string/bookmarks"
98             android:parentActivityName=".activities.MainWebViewActivity"
99             android:configChanges="orientation|screenSize"
100             android:screenOrientation="fullUser"
101             android:persistableMode="persistNever"
102             tools:ignore="UnusedAttribute" />
103
104         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
105              `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
106              `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
107         <activity
108             android:name=".activities.BookmarksDatabaseViewActivity"
109             android:label="@string/bookmarks_database_view"
110             android:parentActivityName=".activities.BookmarksActivity"
111             android:configChanges="orientation|screenSize"
112             android:screenOrientation="fullUser"
113             android:persistableMode="persistNever"
114             tools:ignore="UnusedAttribute" />
115
116         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
117              `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
118              `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
119         <activity
120             android:name=".activities.RequestsActivity"
121             android:label="@string/requests"
122             android:parentActivityName=".activities.MainWebViewActivity"
123             android:configChanges="orientation|screenSize"
124             android:screenOrientation="fullUser"
125             android:persistableMode="persistNever"
126             tools:ignore="UnusedAttribute" />
127
128         <!-- `android:windowSoftInputMode="stateAlwaysHidden"` keeps the keyboard from displaying when the screen is rotated and after the `AddDomainDialog` is dismissed.
129              `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
130              `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
131         <activity
132             android:name=".activities.DomainsActivity"
133             android:label="@string/domains"
134             android:parentActivityName=".activities.MainWebViewActivity"
135             android:screenOrientation="fullUser"
136             android:windowSoftInputMode="stateAlwaysHidden"
137             android:persistableMode="persistNever"
138             tools:ignore="UnusedAttribute" />
139
140         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
141              `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
142              `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
143         <activity
144             android:name=".activities.SettingsActivity"
145             android:label="@string/privacy_browser_settings"
146             android:parentActivityName=".activities.MainWebViewActivity"
147             android:configChanges="orientation|screenSize"
148             android:screenOrientation="fullUser"
149             android:persistableMode="persistNever"
150             tools:ignore="UnusedAttribute" />
151
152         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
153              `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
154              `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
155         <activity
156             android:name=".activities.GuideActivity"
157             android:label="@string/privacy_browser_guide"
158             android:parentActivityName=".activities.MainWebViewActivity"
159             android:configChanges="orientation|screenSize"
160             android:screenOrientation="fullUser"
161             android:persistableMode="persistNever"
162             tools:ignore="UnusedAttribute" />
163
164         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
165              `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
166              `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
167         <activity
168             android:name=".activities.AboutActivity"
169             android:label="@string/about_privacy_browser"
170             android:parentActivityName=".activities.MainWebViewActivity"
171             android:configChanges="orientation|screenSize"
172             android:screenOrientation="fullUser"
173             android:persistableMode="persistNever"
174             tools:ignore="UnusedAttribute" />
175
176         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
177              `android:persistableMode="persistNever"` removes Privacy Browser from the recent apps list on a device reboot.
178              `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
179         <activity
180             android:name=".activities.ViewSourceActivity"
181             android:label="@string/view_source"
182             android:parentActivityName=".activities.MainWebViewActivity"
183             android:configChanges="orientation|screenSize"
184             android:screenOrientation="fullUser"
185             android:persistableMode="persistNever"
186             tools:ignore="UnusedAttribute" />
187     </application>
188 </manifest>