Add FOREGROUND_SERVICE permission which is now required
[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         <activity android:name="org.altusmetrum.AltosDroid.AltosDroid"
51                   android:label="@string/app_name"
52                   android:configChanges="orientation|keyboardHidden"
53                   android:launchMode="singleTop">
54             <intent-filter>
55                 <category android:name="android.intent.category.LAUNCHER" />
56                 <action android:name="android.intent.action.MAIN" />
57                 <action android:name="android.intent.action.VIEW" />
58                 <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"/>
59             </intent-filter>
60             <meta-data
61                     android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
62                     android:resource="@xml/device_filter" />
63         </activity>
64
65         <activity android:name=".DeviceListActivity"
66                   android:label="@string/select_device"
67                   android:theme="@android:style/Theme.Dialog"
68                   android:configChanges="orientation|keyboardHidden" />
69
70         <activity android:name=".PreloadMapActivity"
71                   android:label="@string/preload_maps"
72                   android:theme="@android:style/Theme.Dialog"
73                   android:configChanges="orientation|keyboardHidden" />
74
75         <activity android:name=".MapTypeActivity"
76                   android:label="@string/map_type"
77                   android:theme="@android:style/Theme.Dialog"
78                   android:configChanges="orientation|keyboardHidden" />
79
80         <activity android:name=".IdleModeActivity"
81                   android:label="@string/idle_mode"
82                   android:theme="@android:style/Theme.Dialog"
83                   android:configChanges="orientation|keyboardHidden" />
84
85         <activity android:name=".IgniterActivity"
86                   android:label="@string/igniters"
87                   android:theme="@android:style/Theme.Dialog"
88                   android:configChanges="orientation|keyboardHidden" />
89
90         <activity android:name=".SetupActivity"
91                   android:label="@string/setup"
92                   android:theme="@android:style/Theme.Dialog"
93                   android:configChanges="orientation" />
94                   
95         <activity android:name=".ManageFrequenciesActivity"
96                   android:label="@string/manage_frequencies"
97                   android:theme="@android:style/Theme.Dialog"
98                   android:configChanges="orientation|keyboard" />
99                   
100         <service android:name=".TelemetryService" />
101
102         <meta-data android:name="com.google.android.maps.v2.API_KEY"
103                    android:value="@GOOGLEKEY@"/>
104         <meta-data android:name="com.google.android.gms.version"
105                    android:value="@integer/google_play_services_version" />
106     </application>
107 </manifest>