Convert to AndroidX from support_v4
[fw/altos] / altosdroid / app / src / main / AndroidManifest.xml.in
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3
4  Copyright © 2012 Mike Beattie <mike@ethernal.org>
5
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10
11  This program is distributed in the hope that it will be useful, but
12  WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  General Public License for more details.
15
16  You should have received a copy of the GNU General Public License along
17  with this program; if not, write to the Free Software Foundation, Inc.,
18  59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19
20 -->
21 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
22           package="org.altusmetrum.AltosDroid">
23     <!-- Google Maps -->
24     <uses-feature android:glEsVersion="0x00020000" android:required="true"/>
25
26     <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
27
28     <!-- Permissions needed to access bluetooth -->
29     <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
30     <uses-permission android:name="android.permission.BLUETOOTH" />
31     <!-- Permissions needed to save Telemetry logs to SD card -->
32     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
33     <!-- Permissions needed for GoogleMaps -->
34     <uses-permission android:name="android.permission.INTERNET"/>
35     <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
36     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
37     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
38
39     <permission android:name="org.altusmetrum.AltosDroid.permission.MAPS_RECEIVE"
40                 android:protectionLevel="signature"/>
41     <uses-permission android:name="org.altusmetrum.AltosDroid.permission.MAPS_RECEIVE"/>
42
43     <!-- Permissions needed to access USB OTG -->
44     <uses-feature android:name="android.hardware.usb.host" android:required="false" />
45
46     <application android:label="@string/app_name"
47                  android:icon="@drawable/app_icon"
48                  android:allowBackup="true"
49                  android:theme="@style/CustomTheme">
50
51         <activity android:name="org.altusmetrum.AltosDroid.AltosDroid"
52                   android:label="@string/app_name"
53                   android:configChanges="orientation|keyboardHidden"
54                   android:launchMode="singleTop">
55             <intent-filter>
56                 <category android:name="android.intent.category.LAUNCHER" />
57                 <action android:name="android.intent.action.MAIN" />
58                 <action android:name="android.intent.action.VIEW" />
59                 <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"/>
60             </intent-filter>
61             <meta-data
62                     android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
63                     android:resource="@xml/device_filter" />
64         </activity>
65
66         <activity android:name=".DeviceListActivity"
67                   android:label="@string/select_device"
68                   android:theme="@android:style/Theme.Dialog"
69                   android:configChanges="orientation|keyboardHidden" />
70
71         <activity android:name=".PreloadMapActivity"
72                   android:label="@string/preload_maps"
73                   android:theme="@android:style/Theme.Dialog"
74                   android:configChanges="orientation|keyboardHidden" />
75
76         <activity android:name=".MapTypeActivity"
77                   android:label="@string/map_type"
78                   android:theme="@android:style/Theme.Dialog"
79                   android:configChanges="orientation|keyboardHidden" />
80
81         <activity android:name=".IdleModeActivity"
82                   android:label="@string/idle_mode"
83                   android:theme="@android:style/Theme.Dialog"
84                   android:configChanges="orientation|keyboardHidden" />
85
86         <activity android:name=".IgniterActivity"
87                   android:label="@string/igniters"
88                   android:theme="@android:style/Theme.Dialog"
89                   android:configChanges="orientation|keyboardHidden" />
90
91         <activity android:name=".SetupActivity"
92                   android:label="@string/setup"
93                   android:theme="@android:style/Theme.Dialog"
94                   android:configChanges="orientation" />
95
96         <activity android:name=".ManageFrequenciesActivity"
97                   android:label="@string/manage_frequencies"
98                   android:theme="@android:style/Theme.Dialog"
99                   android:configChanges="orientation|keyboard" />
100                   
101         <service android:name=".TelemetryService" />
102
103         <meta-data android:name="com.google.android.maps.v2.API_KEY"
104                    android:value="@GOOGLEKEY@"/>
105         <meta-data android:name="com.google.android.gms.version"
106                    android:value="@integer/google_play_services_version" />
107     </application>
108 </manifest>