Xml文件  |  119行  |  5.61 KB

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2015 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:androidprv="http://schemas.android.com/apk/prv/res/android"
        package="com.android.car"
        coreApp="true"
        android:sharedUserId="android.uid.system">

    <original-package android:name="com.android.car" />

    <permission-group
        android:name="android.car.permission.CAR_INFORMATION"
        android:icon="@drawable/car_ic_mode"
        android:description="@string/car_permission_desc"
        android:label="@string/car_permission_label" />
    <permission
        android:name="android.car.permission.CAR_CAMERA"
        android:protectionLevel="system|signature"
        android:label="@string/car_permission_label_camera"
        android:description="@string/car_permission_desc_camera" />
    <permission
        android:name="android.car.permission.CAR_FUEL"
        android:permissionGroup="android.car.permission.CAR_INFORMATION"
        android:protectionLevel="dangerous"
        android:label="@string/car_permission_label_fuel"
        android:description="@string/car_permission_desc_fuel" />
    <permission
        android:name="android.car.permission.CAR_HVAC"
        android:protectionLevel="system|signature"
        android:label="@string/car_permission_label_hvac"
        android:description="@string/car_permission_desc_hvac" />
    <permission
        android:name="android.car.permission.CAR_MILEAGE"
        android:permissionGroup="android.car.permission.CAR_INFORMATION"
        android:protectionLevel="dangerous"
        android:label="@string/car_permission_label_mileage"
        android:description="@string/car_permission_desc_mileage" />
    <permission
        android:name="android.car.permission.CAR_SPEED"
        android:permissionGroup="android.permission-group.LOCATION"
        android:protectionLevel="dangerous"
        android:label="@string/car_permission_label_speed"
        android:description="@string/car_permission_desc_speed" />
    <permission
        android:name="android.car.permission.CAR_VENDOR_EXTENSION"
        android:protectionLevel="system|signature"
        android:label="@string/car_permission_label_vendor_extension"
        android:description="@string/car_permission_desc_vendor_extension" />
    <permission
        android:name="android.car.permission.CAR_RADIO"
        android:protectionLevel="system|signature"
        android:label="@string/car_permission_label_radio"
        android:description="@string/car_permission_desc_radio" />
    <permission
        android:name="android.car.permission.CAR_PROJECTION"
        android:protectionLevel="system|signature"
        android:label="@string/car_permission_label_projection"
        android:description="@string/car_permission_desc_projection" />
    <permission
        android:name="android.car.permission.CAR_MOCK_VEHICLE_HAL"
        android:protectionLevel="system|signature"
        android:label="@string/car_permission_label_mock_vehicle_hal"
        android:description="@string/car_permission_desc_mock_vehicle_hal" />
    <permission
        android:name="android.car.permission.CAR_NAVIGATION_MANAGER"
        android:protectionLevel="system|signature"
        android:label="@string/car_permission_car_navigation_manager"
        android:description="@string/car_permission_desc_car_navigation_manager" />

    <!--  may replace this with system permission if proper one is defined. -->
    <permission
        android:name="android.car.permission.CONTROL_APP_BLOCKING"
        android:protectionLevel="system|signature"
        android:label="@string/car_permission_label_control_app_blocking"
        android:description="@string/car_permission_desc_control_app_blocking" />

    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
    <uses-permission android:name="android.permission.DEVICE_POWER" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.REBOOT" />
    <uses-permission android:name="android.permission.MODIFY_AUDIO_ROUTING" />
    <uses-permission android:name="android.permission.MODIFY_DAY_NIGHT_MODE" />
    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />

    <application android:label="Car service"
            android:directBootAware="true"
            android:allowBackup="false"
	    android:persistent="true">

        <service android:name=".CarService"
                android:singleUser="true">
            <intent-filter>
                <action android:name="android.car.ICar" />
            </intent-filter>
        </service>
        <receiver android:name=".BootReceiver">
            <intent-filter android:priority="1000">
                <action android:name="android.intent.action.PRE_BOOT_COMPLETED"/>
                <action android:name="android.intent.action.BOOT_COMPLETED"/>
            </intent-filter>
        </receiver>
    </application>
</manifest>