| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2021 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:tools="http://schemas.android.com/tools" |
| package="androidx.car.app.sample.navigation" |
| android:versionCode="1" |
| android:versionName="1.0"> |
| |
| <uses-permission android:name="android.permission.INTERNET"/> |
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> |
| <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> |
| <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> |
| |
| <uses-permission android:name="androidx.car.app.NAVIGATION_TEMPLATES"/> |
| <uses-permission android:name="androidx.car.app.ACCESS_SURFACE"/> |
| <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> |
| |
| <!-- Various required feature settings for an automotive app. --> |
| <uses-feature |
| android:name="android.hardware.type.automotive" |
| android:required="true" /> |
| <uses-feature |
| android:name="android.software.car.templates_host" |
| android:required="true" /> |
| <uses-feature |
| android:name="android.hardware.wifi" |
| android:required="false" /> |
| <uses-feature |
| android:name="android.hardware.screen.portrait" |
| android:required="false" /> |
| <uses-feature |
| android:name="android.hardware.screen.landscape" |
| android:required="false" /> |
| |
| <application |
| android:label="@string/app_name" |
| android:icon="@drawable/ic_launcher" |
| android:extractNativeLibs="false"> |
| |
| <meta-data |
| android:name="com.android.automotive" |
| android:resource="@xml/automotive_app_desc" |
| tools:ignore="MetadataTagInsideApplicationTag" /> |
| |
| <meta-data android:name="androidx.car.app.minCarApiLevel" |
| android:value="1" |
| tools:ignore="MetadataTagInsideApplicationTag" /> |
| |
| <service |
| android:name="androidx.car.app.sample.navigation.common.car.NavigationCarAppService" |
| android:foregroundServiceType="location" |
| android:exported="true"> |
| |
| <intent-filter> |
| <action android:name="androidx.car.app.CarAppService" /> |
| <category android:name="androidx.car.app.category.NAVIGATION"/> |
| </intent-filter> |
| </service> |
| <service |
| android:name="androidx.car.app.sample.navigation.common.nav.NavigationService" |
| android:enabled="true" |
| android:exported="true"> |
| </service> |
| |
| <activity |
| android:name="androidx.car.app.activity.CarAppActivity" |
| android:theme="@android:style/Theme.DeviceDefault.NoActionBar" |
| android:exported="true" |
| android:label="Navigation"> |
| |
| <intent-filter> |
| <action android:name="android.intent.action.MAIN" /> |
| <category android:name="android.intent.category.LAUNCHER" /> |
| </intent-filter> |
| <meta-data android:name="distractionOptimized" android:value="true"/> |
| </activity> |
| |
| </application> |
| </manifest> |