Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
translate ▾

Modern-Apps.git / maps / src / main / AndroidManifest.xml

AndroidManifest.xml177 lines · 8.2 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:tools="http://schemas.android.com/tools">
4 <!-- Single APK for phone and watch. Deliberately NO
5 android.hardware.type.watch uses-feature here: required="true"
6 would block every phone install, and required="false" is
7 disallowed for this feature (lint InvalidWearFeatureAttribute;
8 Google's packaging model does not support one APK for Wear and
9 non-Wear via Play). This app does not distribute through Play's
10 watch channel — it is sideloaded / F-Droid-installed, where no
11 feature declaration is needed to install on a watch — so the
12 APK carries no watch feature filter at all and
13 FormFactor.isWatch (PackageManager.FEATURE_WATCH, still
14 reported by watch hardware at runtime) routes the experience. -->
15 <uses-feature
16 android:name="android.hardware.touchscreen"
17 android:required="false" />
18 <!-- The watch experience keeps the watch CPU awake while it renders. -->
19 <uses-permission android:name="android.permission.WAKE_LOCK" />
20
21 <uses-permission android:name="android.permission.INTERNET" />
22 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
23 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
24
25 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
26 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION" />
27 <!-- ModelDownloadWorker (downloadservice) foreground dataSync promotion. -->
28 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
29 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
30 <!-- Live Updates (API 36 ProgressStyle promoted ongoing): install-time, no runtime prompt. -->
31 <uses-permission android:name="android.permission.POST_PROMOTED_NOTIFICATIONS" />
32
33 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
34
35 <uses-permission android:name="com.vayunmathur.findfamily.permissions.ACCESS_FAMILY" />
36
37 <uses-permission android:name="com.vayunmathur.fooddelivery.permissions.ACCESS_ORDERS" />
38
39 <uses-permission android:name="com.vayunmathur.taxi.permissions.ACCESS_RIDES" />
40
41 <!-- PickContact fallback in ContactAddressButton: whole-contact postal reads need this. -->
42 <uses-permission android:name="android.permission.READ_CONTACTS" />
43 <uses-permission android:name="android.permission.RECORD_AUDIO" />
44 <queries>
45 <intent>
46 <action android:name="android.speech.RecognitionService" />
47 </intent>
48 <intent>
49 <action android:name="android.intent.action.PICK" />
50 <data android:mimeType="vnd.android.cursor.dir/postal-address_v2" />
51 </intent>
52 <intent>
53 <action android:name="com.vayunmathur.findfamily.action.FAMILY_LOCATIONS" />
54 </intent>
55 <package android:name="com.vayunmathur.fooddelivery" />
56 <package android:name="com.vayunmathur.taxi" />
57 </queries>
58
59 <!-- Guards the exported DirectionsIntent so only same-signature installs (the taxi app)
60 can ask maps to plan a route. -->
61 <permission
62 android:name="com.vayunmathur.maps.permissions.ACCESS_MAPS"
63 android:protectionLevel="signature" />
64
65
66 <application
67 android:allowBackup="true"
68 android:dataExtractionRules="@xml/data_extraction_rules"
69 android:icon="@mipmap/ic_launcher"
70 android:label="@string/app_name"
71 android:roundIcon="@mipmap/ic_launcher"
72 android:supportsRtl="true"
73 android:theme="@style/Theme.General">
74
75 <!-- Watch experience is paired with the phone app, not standalone. -->
76 <meta-data
77 android:name="com.google.android.wearable.standalone"
78 android:value="false" />
79 <activity
80 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
81 android:name=".MainActivity"
82 android:exported="true"
83 android:launchMode="singleTop"
84 android:windowSoftInputMode="adjustResize"
85 android:theme="@style/Theme.General">
86 <intent-filter>
87 <action android:name="android.intent.action.MAIN" />
88
89 <category android:name="android.intent.category.LAUNCHER" />
90 </intent-filter>
91
92 <intent-filter>
93 <action android:name="android.intent.action.VIEW" />
94 <category android:name="android.intent.category.DEFAULT" />
95 <category android:name="android.intent.category.BROWSABLE" />
96 <data android:scheme="geo" />
97 </intent-filter>
98
99 <intent-filter>
100 <action android:name="android.intent.action.VIEW" />
101 <category android:name="android.intent.category.DEFAULT" />
102 <category android:name="android.intent.category.BROWSABLE" />
103 <data android:scheme="google.navigation" />
104 </intent-filter>
105
106 <intent-filter android:autoVerify="false">
107 <action android:name="android.intent.action.VIEW" />
108 <category android:name="android.intent.category.DEFAULT" />
109 <category android:name="android.intent.category.BROWSABLE" />
110 <data android:scheme="https" />
111 <data android:scheme="http" />
112 <data android:host="www.google.com" />
113 <data android:host="google.com" />
114 <data android:host="maps.google.com" />
115 <data android:host="maps.app.goo.gl" />
116 <data android:host="goo.gl" />
117 <data android:pathPrefix="/maps" />
118 </intent-filter>
119 </activity>
120
121 <!-- Watch experience: entered only via MainActivity's watch routing
122 (no launcher filter of its own). Inert on a phone: it is reached
123 only from the watch-routed launcher entry. -->
124 <activity
125 android:name=".ui.WearMainActivity"
126 android:exported="false"
127 android:taskAffinity=""
128 android:theme="@android:style/Theme.Material.NoActionBar" />
129
130 <activity
131 android:name=".intents.DirectionsIntent"
132 android:exported="true"
133 android:theme="@android:style/Theme.NoDisplay"
134 android:permission="com.vayunmathur.maps.permissions.ACCESS_MAPS" />
135
136 <activity
137 android:name=".intents.SearchPlacesIntent"
138 android:exported="true"
139 android:theme="@android:style/Theme.NoDisplay"
140 android:permission="com.vayunmathur.maps.permissions.ACCESS_MAPS" />
141
142 <activity
143 android:name=".intents.SavedPlacesIntent"
144 android:exported="true"
145 android:theme="@android:style/Theme.NoDisplay"
146 android:permission="com.vayunmathur.maps.permissions.ACCESS_MAPS" />
147
148 <service
149 android:name=".service.NavigationService"
150 android:foregroundServiceType="location"
151 android:exported="false" />
152
153 <!-- CarAppService must be exported so the car host can discover and
154 bind it; the host validates the app via the car-app handshake,
155 so ExportedService is a false positive here. -->
156 <service
157 android:name=".platform.MapsCarAppService"
158 tools:ignore="ExportedService"
159 android:exported="true"
160 android:foregroundServiceType="location">
161 <intent-filter>
162 <action android:name="androidx.car.app.CarAppService" />
163 <category android:name="androidx.car.app.category.NAVIGATION" />
164 <category android:name="androidx.car.app.category.POI" />
165 </intent-filter>
166 </service>
167
168 <meta-data
169 android:name="androidx.car.app.minCarApiLevel"
170 android:value="1" />
171
172 <meta-data
173 android:name="com.google.android.gms.car.application"
174 android:resource="@xml/automotive_app_desc" />
175 </application>
176
177</manifest>