43a0787eead32ac47b2ae51866bdb3deed0937a9
[fw/altos] / altosdroid / 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           android:versionCode="@ANDROID_VERSION@"
24           android:versionName="@VERSION@">
25     <uses-sdk android:targetSdkVersion="12" android:minSdkVersion="12"/>
26     <!-- Google Maps -->
27     <uses-feature android:glEsVersion="0x00020000" android:required="true"/>
28
29     <!-- Permissions needed to access bluetooth -->
30     <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
31     <uses-permission android:name="android.permission.BLUETOOTH" />
32     <!-- Permissions needed to save Telemetry logs to SD card -->
33     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
34     <!-- Permissions needed for GoogleMaps -->
35     <uses-permission android:name="android.permission.INTERNET"/>
36     <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
37     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
38     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
39
40     <permission android:name="org.altusmetrum.AltosDroid.permission.MAPS_RECEIVE"
41                 android:protectionLevel="signature"/>
42     <uses-permission android:name="org.altusmetrum.AltosDroid.permission.MAPS_RECEIVE"/>
43
44     <!-- Permissions needed to access USB OTG -->
45     <uses-feature android:name="android.hardware.usb.host" android:required="false" />
46
47     <application android:label="@string/app_name"
48                  android:icon="@drawable/app_icon"
49                  android:allowBackup="true"
50                  android:theme="@style/CustomTheme">
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                 <action android:name="android.intent.action.MAIN" />
57                 <category android:name="android.intent.category.LAUNCHER" />
58             </intent-filter>
59         </activity>
60
61         <activity android:name="org.altusmetrum.AltosDroid.AltosDroid"
62                   android:configChanges="orientation|keyboardHidden"
63                   android:launchMode="singleTop">
64           <intent-filter>
65             <action
66                 android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"/>
67           </intent-filter>
68           <meta-data
69               android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
70               android:resource="@xml/device_filter" />
71         </activity>
72
73         <activity android:name=".DeviceListActivity"
74                   android:label="@string/select_device"
75                   android:theme="@android:style/Theme.Dialog"
76                   android:configChanges="orientation|keyboardHidden" />
77
78         <activity android:name=".PreloadMapActivity"
79                   android:label="@string/preload_maps"
80                   android:theme="@android:style/Theme.Dialog"
81                   android:configChanges="orientation|keyboardHidden" />
82
83         <activity android:name=".MapTypeActivity"
84                   android:label="@string/map_type"
85                   android:theme="@android:style/Theme.Dialog"
86                   android:configChanges="orientation|keyboardHidden" />
87
88         <activity android:name=".IdleModeActivity"
89                   android:label="@string/idle_mode"
90                   android:theme="@android:style/Theme.Dialog"
91                   android:configChanges="orientation|keyboardHidden" />
92
93         <activity android:name=".IgniterActivity"
94                   android:label="@string/igniters"
95                   android:theme="@android:style/Theme.Dialog"
96                   android:configChanges="orientation|keyboardHidden" />
97
98         <activity android:name=".SetupActivity"
99                   android:label="@string/setup"
100                   android:theme="@android:style/Theme.Dialog"
101                   android:configChanges="orientation" />
102                   
103         <activity android:name=".ManageFrequenciesActivity"
104                   android:label="@string/manage_frequencies"
105                   android:theme="@android:style/Theme.Dialog"
106                   android:configChanges="orientation|keyboard" />
107                   
108         <service android:name=".TelemetryService" />
109
110         <meta-data android:name="com.google.android.gms.version"
111                    android:value="@integer/google_play_services_version" />
112     </application>
113 </manifest>