Xml文件  |  56行  |  2.5 KB

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 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.cluster.sample"
      android:sharedUserId="android.uid.system">

    <uses-sdk android:targetSdkVersion="23" android:minSdkVersion="23"/>

    <!-- We set TYPE_SYSTEM_ALERT window flag to presentation in order
         to show it outside of activity context -->
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

    <uses-permission android:name="android.permission.CONTROL_INCALL_EXPERIENCE"/>

    <application android:label="@string/app_name"
                 android:icon="@drawable/ic_launcher"
                 android:process="android.car.service"
                 android:directBootAware="true">
        <service android:name="com.android.car.cluster.sample.ClusterInCallService"
                 android:permission="android.permission.BIND_INCALL_SERVICE"
                 android:exported="false">
            <meta-data android:name="android.telecom.METADATA_IN_CALL_UI"
                       android:value="false" />
            <intent-filter>
                <action android:name="android.telecom.InCallService"/>
            </intent-filter>
        </service>

        <service android:name="com.android.car.cluster.sample.StatusBarNotificationListener"
                 android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
                 android:exported="false">
            <intent-filter>
                <action android:name="android.service.notification.NotificationListenerService" />
            </intent-filter>
        </service>

        <service android:name="com.android.car.cluster.sample.InstrumentClusterRenderingServiceImpl"
                 android:exported="false"
                 android:permission="android.car.permission.BIND_INSTRUMENT_CLUSTER_RENDERER_SERVICE"
        />
    </application>
</manifest>