| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2017 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" |
| package="com.android.car.carlauncher"> |
| |
| <!-- System permission to access the CarProjectionManager for projection status--> |
| <uses-permission android:name="android.car.permission.ACCESS_CAR_PROJECTION_STATUS"/> |
| <!-- Permission to assign Activity to TDA --> |
| <uses-permission android:name="android.car.permission.CONTROL_CAR_APP_LAUNCH"/> |
| <!-- System permission to host maps activity --> |
| <uses-permission android:name="android.permission.ACTIVITY_EMBEDDING"/> |
| <!-- Needed to change component enabled state when user opens disabled apps. --> |
| <uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/> |
| <!-- Permission for the InCallController to bind the InCallService --> |
| <uses-permission android:name="android.permission.CONTROL_INCALL_EXPERIENCE"/> |
| <!-- System permission to send events to hosted maps activity --> |
| <uses-permission android:name="android.permission.INJECT_EVENTS"/> |
| <!-- System permission to use internal system windows --> |
| <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW"/> |
| <!-- System permission to register TaskOrganizer --> |
| <uses-permission android:name="android.permission.MANAGE_ACTIVITY_TASKS"/> |
| <!-- System permission to bring hosted maps activity to front on main display --> |
| <uses-permission android:name="android.permission.REORDER_TASKS"/> |
| <!-- System permission to remove a task --> |
| <uses-permission android:name="android.permission.REMOVE_TASKS"/> |
| <!-- System permission to call AM.getRunningAppProcesses(). |
| TODO: change this to REAL_GET_TASKS. --> |
| <uses-permission android:name="android.permission.GET_TASKS"/> |
| <!-- System permission to query users on device --> |
| <uses-permission android:name="android.permission.MANAGE_USERS"/> |
| <!-- System permission to control media playback of the active session --> |
| <uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL"/> |
| <!-- System permission to get app usage data --> |
| <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/> |
| <!-- System permission to query all installed packages --> |
| <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/> |
| <!-- Permission to read contacts data. Needed to display contact name on dialer card --> |
| <uses-permission android:name="android.permission.READ_CONTACTS"/> |
| <!-- Permission for read-only access to phone state, namely the status of any ongoing calls --> |
| <uses-permission android:name="android.permission.READ_PHONE_STATE"/> |
| <!-- Allows input events to be monitored by CarDisplayAreaTouchHandler. --> |
| <uses-permission android:name="android.permission.MONITOR_INPUT"/> |
| <!-- Needed to use TYPE_APPLICATION_OVERLAY window type to display title bar. --> |
| <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> |
| <!-- Permission to start a voice interaction service. --> |
| <uses-permission android:name="android.permission.ACCESS_VOICE_INTERACTION_SERVICE" /> |
| <!-- Permission to use InteractionJankMonitor. --> |
| <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" /> |
| <!-- Permission to send notifications --> |
| <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> |
| |
| <!-- To connect to media browser services in other apps, media browser clients |
| that target Android 11 need to add the following in their manifest --> |
| <queries> |
| <intent> |
| <action android:name="android.media.browse.MediaBrowserService" /> |
| </intent> |
| </queries> |
| |
| <application |
| android:icon="@drawable/ic_launcher_home" |
| android:label="@string/app_title" |
| android:theme="@style/Theme.Launcher" |
| android:supportsRtl="true"> |
| <activity |
| android:name=".CarLauncher" |
| android:configChanges="uiMode|mcc|mnc" |
| android:launchMode="singleTask" |
| android:clearTaskOnLaunch="true" |
| android:stateNotNeeded="true" |
| android:resumeWhilePausing="true" |
| android:exported="true" |
| android:windowSoftInputMode="adjustPan"> |
| <meta-data android:name="distractionOptimized" android:value="true"/> |
| <intent-filter> |
| <action android:name="android.intent.action.MAIN"/> |
| <category android:name="android.intent.category.HOME"/> |
| <category android:name="android.intent.category.DEFAULT"/> |
| <category android:name="android.intent.category.LAUNCHER_APP"/> |
| </intent-filter> |
| </activity> |
| <activity |
| android:name=".ControlBarActivity" |
| android:launchMode="singleInstance" |
| android:clearTaskOnLaunch="true" |
| android:stateNotNeeded="true" |
| android:resumeWhilePausing="true" |
| android:exported="true" |
| android:windowSoftInputMode="adjustPan"> |
| <meta-data android:name="distractionOptimized" android:value="true"/> |
| <intent-filter> |
| <category android:name="android.intent.category.DEFAULT" /> |
| </intent-filter> |
| </activity> |
| <activity |
| android:name=".AppGridActivity" |
| android:launchMode="singleInstance" |
| android:exported="true" |
| android:theme="@style/Theme.Launcher.AppGridActivity"> |
| <meta-data android:name="distractionOptimized" android:value="true"/> |
| <intent-filter> |
| <action android:name="com.android.car.carlauncher.ACTION_APP_GRID"/> |
| <category android:name="android.intent.category.DEFAULT"/> |
| </intent-filter> |
| </activity> |
| <service android:name=".homescreen.audio.telecom.InCallServiceImpl" |
| android:permission="android.permission.BIND_INCALL_SERVICE" |
| android:exported="true"> |
| <!-- The home app does not display the in-call UI. This is handled by the |
| Dialer application.--> |
| <meta-data android:name="android.telecom.IN_CALL_SERVICE_UI" android:value="false"/> |
| <meta-data android:name="android.telecom.IN_CALL_SERVICE_CAR_MODE_UI" android:value="false"/> |
| <intent-filter> |
| <action android:name="android.telecom.InCallService"/> |
| </intent-filter> |
| </service> |
| </application> |
| </manifest> |