1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2016 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<manifest xmlns:android="http://schemas.android.com/apk/res/android" 17 xmlns:tools="http://schemas.android.com/tools" 18 package="android.car.cluster" 19 android:sharedUserId="android.uid.system"> 20 21 <uses-sdk android:targetSdkVersion="25" android:minSdkVersion="25"/> 22 23 <protected-broadcast android:name="android.car.cluster.NAVIGATION_STATE_UPDATE"/> 24 25 <!-- We set TYPE_SYSTEM_ALERT window flag to presentation in order 26 to show it outside of activity context --> 27 <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> 28 <uses-permission android:name="android.permission.CONTROL_INCALL_EXPERIENCE"/> 29 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" 30 tools:ignore="ProtectedPermissions"/> 31 <uses-permission android:name="android.permission.MANAGE_ACTIVITY_STACKS"/> 32 <uses-permission android:name="android.permission.INJECT_EVENTS"/> 33 <uses-permission android:name="android.permission.INTERNET" /> 34 <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW"/> 35 <!-- Required by 'singleUser' service attribute --> 36 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/> 37 <!-- Required by 'startActivityAsUser' --> 38 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL"/> 39 <!-- Required to detect the current user in the device --> 40 <uses-permission android:name="android.permission.MANAGE_USERS" /> 41 <!-- Required to launch navigation apps --> 42 <uses-permission android:name="android.car.permission.CAR_INSTRUMENT_CLUSTER_CONTROL"/> 43 <!-- Required to watch activities running on the cluster --> 44 <uses-permission android:name="android.permission.SET_ACTIVITY_WATCHER"/> 45 <!-- Required to show car sensor data --> 46 <uses-permission android:name="android.car.permission.CAR_ENERGY"/> 47 <uses-permission android:name="android.car.permission.CAR_POWERTRAIN"/> 48 <uses-permission android:name="android.car.permission.CAR_INFO"/> 49 <uses-permission android:name="android.car.permission.CAR_SPEED"/> 50 <uses-permission android:name="android.car.permission.CAR_ENGINE_DETAILED"/> 51 52 <uses-permission android:name="android.permission.READ_PHONE_STATE" /> 53 54 <application android:label="@string/app_name" 55 android:icon="@mipmap/ic_launcher" 56 android:directBootAware="true"> 57 <service android:name=".ClusterRenderingService" 58 android:exported="false" 59 android:singleUser="true" 60 android:permission="android.car.permission.BIND_INSTRUMENT_CLUSTER_RENDERER_SERVICE"/> 61 62 <service android:name=".LoggingClusterRenderingService" 63 android:exported="false" 64 android:permission="android.car.permission.BIND_INSTRUMENT_CLUSTER_RENDERER_SERVICE"/> 65 66 <activity android:name=".MainClusterActivity" 67 android:exported="false" 68 android:showForAllUsers="true" 69 android:theme="@style/Theme.ClusterTheme"> 70 <intent-filter> 71 <action android:name="android.intent.action.MAIN"/> 72 <category android:name="android.intent.category.DEFAULT"/> 73 </intent-filter> 74 </activity> 75 76 <activity android:name=".FakeFreeNavigationActivity" 77 android:exported="false" 78 android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 79 android:launchMode="singleInstance" 80 android:resizeableActivity="true" 81 android:permission="android.car.permission.CAR_DISPLAY_IN_CLUSTER" 82 android:allowEmbedded="true"> 83 </activity> 84 </application> 85</manifest> 86