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 car input events to be monitored by us. --> 21 <uses-permission android:name="android.car.permission.CAR_MONITOR_INPUT"/> 22 23 <!-- Allows us to inject input events (such as KeyEvent and MotionEvent) into the event stream 24 and deliver them. --> 25 <uses-permission android:name="android.permission.INJECT_EVENTS"/> 26 27 <!-- Allows us to toggle between touch and rotary IME. --> 28 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/> 29 30 <!-- Allows us to have an overlay to capture touch events. --> 31 <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW"/> 32 <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> 33 34 <!-- Allows us to get the username of the current user. --> 35 <uses-permission android:name="android.permission.GET_ACCOUNTS_PRIVILEGED"/> 36 37 <!-- Allows us to read the current activity's metadata for custom nudge actions. --> 38 <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/> 39 40 <!-- Ensures the host app is visible to RotaryService. --> 41 <queries> 42 <intent> 43 <action android:name="android.car.template.host.RendererService" /> 44 </intent> 45 </queries> 46 47 <!-- RotaryService needs to be directBootAware so that it can start before the user is unlocked. --> 48 <application> 49 <service 50 android:name=".RotaryService" 51 android:directBootAware="true" 52 android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE" 53 android:exported="false"> 54 <intent-filter> 55 <action android:name="android.accessibilityservice.AccessibilityService" /> 56 </intent-filter> 57 <meta-data 58 android:name="android.accessibilityservice" 59 android:resource="@xml/accessibility_service_config" /> 60 </service> 61 </application> 62 63</manifest> 64