Home | History | Annotate | Download | only in service
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2015 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 
     17 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     18         xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
     19         package="com.android.car"
     20         coreApp="true"
     21         android:sharedUserId="android.uid.system">
     22 
     23     <original-package android:name="com.android.car" />
     24      <permission-group
     25         android:name="android.car.permission-group.CAR_MONITORING"
     26         android:icon="@drawable/car_ic_mode"
     27         android:description="@string/car_permission_desc"
     28         android:label="@string/car_permission_label" />
     29     <permission
     30         android:name="android.car.permission.ADJUST_CAR_CABIN"
     31         android:protectionLevel="system|signature"
     32         android:label="@string/car_permission_label_cabin"
     33         android:description="@string/car_permission_desc_cabin" />
     34     <permission
     35         android:name="android.car.permission.CAR_ENERGY"
     36         android:permissionGroup="android.car.permission-group.CAR_MONITORING"
     37         android:protectionLevel="dangerous"
     38         android:label="@string/car_permission_label_energy"
     39         android:description="@string/car_permission_desc_energy" />
     40     <permission
     41         android:name="android.car.permission.CAR_IDENTIFICATION"
     42         android:protectionLevel="system|signature"
     43         android:label="@string/car_permission_label_car_identification"
     44         android:description="@string/car_permission_desc_car_identification" />
     45     <permission
     46         android:name="android.car.permission.CONTROL_CAR_CLIMATE"
     47         android:protectionLevel="system|signature"
     48         android:label="@string/car_permission_label_hvac"
     49         android:description="@string/car_permission_desc_hvac" />
     50     <permission
     51         android:name="android.car.permission.CONTROL_CAR_DOORS"
     52         android:protectionLevel="system|signature"
     53         android:label="@string/car_permission_label_control_car_doors"
     54         android:description="@string/car_permission_desc_control_car_doors" />
     55     <permission
     56         android:name="android.car.permission.CONTROL_CAR_WINDOWS"
     57         android:protectionLevel="system|signature"
     58         android:label="@string/car_permission_label_control_car_windows"
     59         android:description="@string/car_permission_desc_control_car_windows" />
     60     <permission
     61         android:name="android.car.permission.CONTROL_CAR_MIRRORS"
     62         android:protectionLevel="system|signature"
     63         android:label="@string/car_permission_label_control_car_mirrors"
     64         android:description="@string/car_permission_desc_control_car_mirrors" />
     65     <permission
     66         android:name="android.car.permission.CONTROL_CAR_SEATS"
     67         android:protectionLevel="system|signature"
     68         android:label="@string/car_permission_label_control_car_seats"
     69         android:description="@string/car_permission_desc_control_car_seats" />
     70     <permission
     71         android:name="android.car.permission.CAR_MILEAGE"
     72         android:protectionLevel="system|signature"
     73         android:label="@string/car_permission_label_mileage"
     74         android:description="@string/car_permission_desc_mileage" />
     75     <permission
     76         android:name="android.car.permission.CAR_TIRES"
     77         android:protectionLevel="system|signature"
     78         android:label="@string/car_permission_label_car_tires"
     79         android:description="@string/car_permission_desc_car_tires" />
     80     <permission
     81         android:name="android.car.permission.CAR_SPEED"
     82         android:permissionGroup="android.permission-group.LOCATION"
     83         android:protectionLevel="dangerous"
     84         android:label="@string/car_permission_label_speed"
     85         android:description="@string/car_permission_desc_speed" />
     86     <permission
     87         android:name="android.car.permission.CAR_ENERGY_PORTS"
     88         android:protectionLevel="normal"
     89         android:label="@string/car_permission_label_car_energy_ports"
     90         android:description="@string/car_permission_desc_car_energy_ports" />
     91     <permission
     92         android:name="android.car.permission.CAR_ENGINE_DETAILED"
     93         android:protectionLevel="system|signature"
     94         android:label="@string/car_permission_label_car_engine_detailed"
     95         android:description="@string/car_permission_desc_car_engine_detailed" />
     96     <permission
     97         android:name="android.car.permission.CAR_DYNAMICS_STATE"
     98         android:protectionLevel="system|signature"
     99         android:label="@string/car_permission_label_vehicle_dynamics_state"
    100         android:description="@string/car_permission_desc_vehicle_dynamics_state" />
    101     <permission
    102         android:name="android.car.permission.CAR_VENDOR_EXTENSION"
    103         android:protectionLevel="system|signature"
    104         android:label="@string/car_permission_label_vendor_extension"
    105         android:description="@string/car_permission_desc_vendor_extension" />
    106     <permission
    107         android:name="android.car.permission.CAR_PROJECTION"
    108         android:protectionLevel="system|signature"
    109         android:label="@string/car_permission_label_projection"
    110         android:description="@string/car_permission_desc_projection" />
    111     <permission
    112         android:name="android.car.permission.CAR_MOCK_VEHICLE_HAL"
    113         android:protectionLevel="system|signature"
    114         android:label="@string/car_permission_label_mock_vehicle_hal"
    115         android:description="@string/car_permission_desc_mock_vehicle_hal" />
    116     <permission
    117         android:name="android.car.permission.CAR_INFO"
    118         android:protectionLevel="normal"
    119         android:label="@string/car_permission_label_car_info"
    120         android:description="@string/car_permission_desc_car_info" />
    121     <permission
    122         android:name="android.car.permission.CAR_EXTERIOR_ENVIRONMENT"
    123         android:protectionLevel="normal"
    124         android:label="@string/car_permission_label_car_exterior_environment"
    125         android:description="@string/car_permission_desc_car_exterior_environment" />
    126     <permission
    127         android:name="android.car.permission.CAR_EXTERIOR_LIGHTS"
    128         android:protectionLevel="system|signature"
    129         android:label="@string/car_permission_label_car_exterior_lights"
    130         android:description="@string/car_permission_desc_car_exterior_lights" />
    131     <permission
    132         android:name="android.car.permission.CONTROL_CAR_EXTERIOR_LIGHTS"
    133         android:protectionLevel="system|signature"
    134         android:label="@string/car_permission_label_control_car_exterior_lights"
    135         android:description="@string/car_permission_desc_control_car_exterior_lights" />
    136     <permission
    137         android:name="android.car.permission.CAR_POWERTRAIN"
    138         android:protectionLevel="normal"
    139         android:label="@string/car_permission_label_car_powertrain"
    140         android:description="@string/car_permission_desc_car_powertrain" />
    141     <permission
    142         android:name="android.car.permission.CAR_NAVIGATION_MANAGER"
    143         android:protectionLevel="system|signature"
    144         android:label="@string/car_permission_car_navigation_manager"
    145         android:description="@string/car_permission_desc_car_navigation_manager" />
    146     <permission
    147         android:name="android.car.permission.CAR_DIAGNOSTICS"
    148         android:protectionLevel="system|signature"
    149         android:label="@string/car_permission_label_diag_read"
    150         android:description="@string/car_permission_desc_diag_read" />
    151     <permission
    152       android:name="android.car.permission.CLEAR_CAR_DIAGNOSTICS"
    153       android:protectionLevel="system|signature"
    154       android:label="@string/car_permission_label_diag_clear"
    155       android:description="@string/car_permission_desc_diag_clear" />
    156     <permission
    157         android:name="android.car.permission.VMS_PUBLISHER"
    158         android:protectionLevel="system|signature"
    159         android:label="@string/car_permission_label_vms_publisher"
    160         android:description="@string/car_permission_desc_vms_publisher" />
    161     <permission
    162         android:name="android.car.permission.VMS_SUBSCRIBER"
    163         android:protectionLevel="system|signature"
    164         android:label="@string/car_permission_label_vms_subscriber"
    165         android:description="@string/car_permission_desc_vms_subscriber" />
    166     <permission
    167         android:name="android.car.permission.CAR_DRIVING_STATE"
    168         android:protectionLevel="system|signature"
    169         android:label="@string/car_permission_label_driving_state"
    170         android:description="@string/car_permission_desc_driving_state" />
    171     <!--  may replace this with system permission if proper one is defined. -->
    172     <permission
    173         android:name="android.car.permission.CONTROL_APP_BLOCKING"
    174         android:protectionLevel="system|signature"
    175         android:label="@string/car_permission_label_control_app_blocking"
    176         android:description="@string/car_permission_desc_control_app_blocking" />
    177 
    178     <permission
    179         android:name="android.car.permission.CAR_CONTROL_AUDIO_VOLUME"
    180         android:protectionLevel="system|signature"
    181         android:label="@string/car_permission_label_audio_volume"
    182         android:description="@string/car_permission_desc_audio_volume" />
    183 
    184     <permission
    185         android:name="android.car.permission.CAR_CONTROL_AUDIO_SETTINGS"
    186         android:protectionLevel="system|signature"
    187         android:label="@string/car_permission_label_audio_settings"
    188         android:description="@string/car_permission_desc_audio_settings" />
    189 
    190     <permission
    191             android:name="android.car.permission.BIND_INSTRUMENT_CLUSTER_RENDERER_SERVICE"
    192             android:protectionLevel="signature"
    193             android:label="@string/car_permission_label_bind_instrument_cluster_rendering"
    194             android:description="@string/car_permission_desc_bind_instrument_cluster_rendering"/>
    195 
    196     <permission
    197             android:name="android.car.permission.BIND_CAR_INPUT_SERVICE"
    198             android:protectionLevel="signature"
    199             android:label="@string/car_permission_label_bind_input_service"
    200             android:description="@string/car_permission_desc_bind_input_service"/>
    201 
    202     <permission
    203             android:name="android.car.permission.CAR_DISPLAY_IN_CLUSTER"
    204             android:protectionLevel="system|signature"
    205             android:label="@string/car_permission_car_display_in_cluster"
    206             android:description="@string/car_permission_desc_car_display_in_cluster" />
    207 
    208     <permission android:name="android.car.permission.CAR_INSTRUMENT_CLUSTER_CONTROL"
    209                 android:protectionLevel="system|signature"
    210                 android:label="@string/car_permission_car_cluster_control"
    211                 android:description="@string/car_permission_desc_car_cluster_control" />
    212 
    213     <permission android:name="android.car.permission.STORAGE_MONITORING"
    214         android:protectionLevel="system|signature"
    215         android:label="@string/car_permission_label_storage_monitoring"
    216         android:description="@string/car_permission_desc_storage_monitoring" />
    217 
    218     <uses-permission android:name="android.permission.CALL_PHONE" />
    219     <uses-permission android:name="android.permission.DEVICE_POWER" />
    220     <uses-permission android:name="android.permission.GRANT_RUNTIME_PERMISSIONS" />
    221     <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
    222     <uses-permission android:name="android.permission.MANAGE_ACTIVITY_STACKS" />
    223     <uses-permission android:name="android.permission.MODIFY_AUDIO_ROUTING" />
    224     <uses-permission android:name="android.permission.MODIFY_DAY_NIGHT_MODE" />
    225     <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
    226     <uses-permission android:name="android.permission.READ_CALL_LOG" />
    227     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    228     <uses-permission android:name="android.permission.REAL_GET_TASKS" />
    229     <uses-permission android:name="android.permission.REBOOT" />
    230     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    231     <uses-permission android:name="android.permission.REMOVE_TASKS" />
    232     <uses-permission android:name="android.permission.WRITE_SETTINGS" />
    233     <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
    234     <uses-permission android:name="android.permission.BLUETOOTH" />
    235     <uses-permission android:name="android.permission.MANAGE_USERS" />
    236     <uses-permission android:name="android.permission.LOCATION_HARDWARE" />
    237     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    238 
    239     <application android:label="Car service"
    240                  android:directBootAware="true"
    241                  android:allowBackup="false"
    242                  android:persistent="true">
    243 
    244         <uses-library android:name="android.test.runner" />
    245         <service android:name=".CarService"
    246                 android:singleUser="true">
    247             <intent-filter>
    248                 <action android:name="android.car.ICar" />
    249             </intent-filter>
    250         </service>
    251         <service android:name=".PerUserCarService" android:exported="false" />
    252         <activity android:name="com.android.car.pm.ActivityBlockingActivity"
    253                   android:excludeFromRecents="true"
    254                   android:theme="@android:style/Theme.Translucent.NoTitleBar"
    255                   android:exported="false"
    256                   android:launchMode="singleTask">
    257             <intent-filter>
    258                 <action android:name="android.intent.action.MAIN" />
    259             </intent-filter>
    260         </activity>
    261     </application>
    262 </manifest>
    263