summaryrefslogtreecommitdiff
path: root/altosdroid/app/src/main/AndroidManifest.xml.in
blob: 69b5463b6a8bc874a7652c752d45dbb6acd256c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?xml version="1.0" encoding="utf-8"?>
<!--

 Copyright © 2012 Mike Beattie <mike@ethernal.org>

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 General Public License for more details.

 You should have received a copy of the GNU General Public License along
 with this program; if not, write to the Free Software Foundation, Inc.,
 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="org.altusmetrum.AltosDroid">
    <!-- Google Maps -->
    <uses-feature android:glEsVersion="0x00020000" android:required="true"/>

    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

    <!-- Permissions needed to access bluetooth -->
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <!-- Permissions needed to save Telemetry logs to SD card -->
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <!-- Permissions needed for GoogleMaps -->
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

    <permission android:name="org.altusmetrum.AltosDroid.permission.MAPS_RECEIVE"
                android:protectionLevel="signature"/>
    <uses-permission android:name="org.altusmetrum.AltosDroid.permission.MAPS_RECEIVE"/>

    <!-- Permissions needed to access USB OTG -->
    <uses-feature android:name="android.hardware.usb.host" android:required="false" />

    <application android:label="@string/app_name"
                 android:icon="@drawable/app_icon"
                 android:allowBackup="true"
                 android:theme="@style/CustomTheme">

        <activity android:name="org.altusmetrum.AltosDroid.AltosDroid"
                  android:label="@string/app_name"
                  android:configChanges="orientation|keyboardHidden"
                  android:launchMode="singleTop">
            <intent-filter>
                <category android:name="android.intent.category.LAUNCHER" />
                <action android:name="android.intent.action.MAIN" />
                <action android:name="android.intent.action.VIEW" />
                <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"/>
            </intent-filter>
            <meta-data
                    android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
                    android:resource="@xml/device_filter" />
        </activity>

        <activity android:name=".DeviceListActivity"
                  android:label="@string/select_device"
                  android:theme="@android:style/Theme.Dialog"
                  android:configChanges="orientation|keyboardHidden" />

        <activity android:name=".PreloadMapActivity"
                  android:label="@string/preload_maps"
                  android:theme="@android:style/Theme.Dialog"
                  android:configChanges="orientation|keyboardHidden" />

        <activity android:name=".MapTypeActivity"
                  android:label="@string/map_type"
                  android:theme="@android:style/Theme.Dialog"
                  android:configChanges="orientation|keyboardHidden" />

        <activity android:name=".IdleModeActivity"
                  android:label="@string/idle_mode"
                  android:theme="@android:style/Theme.Dialog"
                  android:configChanges="orientation|keyboardHidden" />

        <activity android:name=".IgniterActivity"
                  android:label="@string/igniters"
                  android:theme="@android:style/Theme.Dialog"
                  android:configChanges="orientation|keyboardHidden" />

        <activity android:name=".SetupActivity"
                  android:label="@string/setup"
                  android:theme="@android:style/Theme.Dialog"
                  android:configChanges="orientation" />

        <activity android:name=".ManageFrequenciesActivity"
                  android:label="@string/manage_frequencies"
                  android:theme="@android:style/Theme.Dialog"
                  android:configChanges="orientation|keyboard" />
		  
        <service android:name=".TelemetryService" />

        <meta-data android:name="com.google.android.maps.v2.API_KEY"
                   android:value="@GOOGLEKEY@"/>
        <meta-data android:name="com.google.android.gms.version"
                   android:value="@integer/google_play_services_version" />
    </application>
</manifest>