1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2020 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    package="com.android.car.rotary">
19
20    <!-- Allows input events to be monitored by us. -->
21    <uses-permission android:name="android.permission.MONITOR_INPUT"
22                     android:protectionLevel="signature"/>
23
24    <!-- Allows us to inject input events (such as KeyEvent and MotionEvent) into the event stream
25         and deliver them. -->
26    <uses-permission android:name="android.permission.INJECT_EVENTS"
27                     android:protectionLevel="signature"/>
28
29    <!-- RotaryService needs to be directBootAware so that it can start before the user is unlocked. -->
30    <application>
31        <service
32            android:name=".RotaryService"
33            android:directBootAware="true"
34            android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
35            <intent-filter>
36                <action android:name="android.accessibilityservice.AccessibilityService" />
37            </intent-filter>
38            <meta-data
39                android:name="android.accessibilityservice"
40                android:resource="@xml/accessibility_service_config" />
41        </service>
42    </application>
43
44</manifest>
45