1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2021 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9      http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17<manifest
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:tools="http://schemas.android.com/tools">
20
21  <uses-permission android:name="android.permission.INTERNET"/>
22  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
23  <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
24  <uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION"/>
25
26  <!-- For PlaceListMapTemplate -->
27  <uses-permission android:name="androidx.car.app.MAP_TEMPLATES"/>
28
29  <!-- For the navigation demos. -->
30  <uses-permission android:name="androidx.car.app.NAVIGATION_TEMPLATES"/>
31  <uses-permission android:name="androidx.car.app.ACCESS_SURFACE"/>
32
33  <!-- SDK 33 onwards, apps require this permission to send any notifications to the system -->
34  <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
35
36  <!-- For Access to Car Hardware. -->
37  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
38  <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
39  <uses-permission android:name="com.google.android.gms.permission.CAR_MILEAGE"/>
40  <uses-permission android:name="com.google.android.gms.permission.CAR_SPEED"/>
41  <uses-permission android:name="com.google.android.gms.permission.CAR_FUEL"/>
42
43  <application
44      android:label="@string/app_name"
45      android:icon="@drawable/ic_launcher"
46      android:supportsRtl="true">
47
48    <meta-data
49        android:name="com.google.android.gms.car.application"
50        android:resource="@xml/automotive_app_desc"
51        tools:ignore="MetadataTagInsideApplicationTag" />
52
53    <meta-data
54        android:name="androidx.car.app.theme"
55        android:resource="@style/CarAppTheme"
56        tools:ignore="MetadataTagInsideApplicationTag" />
57
58    <meta-data android:name="androidx.car.app.minCarApiLevel"
59        android:value="1"
60        tools:ignore="MetadataTagInsideApplicationTag" />
61
62    <service
63        android:name=".common.ShowcaseService"
64        android:exported="true">
65      <intent-filter>
66          <action android:name="androidx.car.app.CarAppService"/>
67          <category android:name="androidx.car.app.category.NAVIGATION"/>
68      </intent-filter>
69      <intent-filter>
70        <action android:name="androidx.car.app.action.NAVIGATE" />
71        <category android:name="android.intent.category.DEFAULT"/>
72        <data android:scheme="geo" />
73      </intent-filter>
74    </service>
75
76    <service
77        android:name=".common.screens.navigationdemos.NavigationNotificationService"
78        android:foregroundServiceType="location"
79        android:exported="true">
80    </service>
81
82    <provider
83        android:name=".common.screens.templatelayouts.listtemplates.DelayedFileProvider"
84        android:authorities="com.showcase.fileprovider"
85        android:exported="false"
86        android:grantUriPermissions="true">
87      <meta-data
88          android:name="android.support.FILE_PROVIDER_PATHS"
89          android:resource="@xml/file_provider_paths"/>
90    </provider>
91
92  </application>
93</manifest>
94