Xml文件  |  69行  |  3.2 KB

<?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"
          android:sharedUserId="android.uid.system">
    <!-- System permission to get app usage data -->
    <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/>
    <!-- System permission to send events to hosted maps activity -->
    <uses-permission android:name="android.permission.INJECT_EVENTS"/>
    <!-- System permissions to bring hosted maps activity to front on main display -->
    <uses-permission android:name="android.permission.MANAGE_ACTIVITY_STACKS"/>
    <uses-permission android:name="android.permission.REORDER_TASKS"/>
    <!-- System permission to host maps activity -->
    <uses-permission android:name="android.permission.ACTIVITY_EMBEDDING"/>
    <!-- System permission to control media playback of the active session -->
    <uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL"/>
    <!-- System permission to query users on device -->
    <uses-permission android:name="android.permission.MANAGE_USERS"/>
    <uses-permission android:name="android.car.permission.ACCESS_CAR_PROJECTION_STATUS"/>
    <application
        android:icon="@drawable/ic_launcher_home"
        android:label="@string/app_title"
        android:theme="@style/Theme.Launcher">
        <activity
            android:name=".CarLauncher"
            android:configChanges="uiMode|mcc|mnc"
            android:launchMode="singleTask"
            android:clearTaskOnLaunch="true"
            android:stateNotNeeded="true"
            android:resumeWhilePausing="true"
            android:windowSoftInputMode="adjustPan"
            android:screenOrientation="nosensor">
            <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"/>
            </intent-filter>
        </activity>
        <activity
            android:name=".AppGridActivity"
            android:launchMode="singleInstance"
            android:noHistory="true">
            <meta-data android:name="distractionOptimized" android:value="true"/>
        </activity>
        <activity
            android:name=".AppSearchActivity"
            android:launchMode="singleInstance"
            android:noHistory="true">
            <meta-data android:name="distractionOptimized" android:value="true"/>
        </activity>
    </application>
</manifest>