1<manifest xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 package="com.example.android.vdmdemo.host" 4 android:versionCode="1" 5 android:versionName="1.0"> 6 7 <uses-sdk 8 android:minSdkVersion="34" 9 android:targetSdkVersion="35" /> 10 11 <uses-feature android:name="android.software.companion_device_setup" /> 12 13 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> 14 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE" /> 15 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> 16 <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> 17 18 <uses-permission android:name="android.permission.CREATE_VIRTUAL_DEVICE" /> 19 <uses-permission android:name="android.permission.RECORD_AUDIO" /> 20 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 21 <uses-permission android:name="android.permission.MODIFY_AUDIO_ROUTING" /> 22 <uses-permission android:name="android.permission.QUERY_AUDIO_STATE" /> 23 24 <uses-permission 25 android:name="android.permission.REQUEST_COMPANION_SELF_MANAGED" 26 tools:ignore="ProtectedPermissions" /> 27 <uses-permission 28 android:name="android.permission.REQUEST_COMPANION_PROFILE_APP_STREAMING" 29 tools:ignore="ProtectedPermissions" /> 30 <uses-permission 31 android:name="android.permission.REQUEST_COMPANION_PROFILE_NEARBY_DEVICE_STREAMING" 32 tools:ignore="ProtectedPermissions" /> 33 <uses-permission 34 android:name="android.permission.ADD_ALWAYS_UNLOCKED_DISPLAY" 35 tools:ignore="ProtectedPermissions" /> 36 <uses-permission 37 android:name="android.permission.ADD_TRUSTED_DISPLAY" 38 tools:ignore="ProtectedPermissions" /> 39 40 <queries> 41 <intent> 42 <action android:name="android.intent.action.MAIN" /> 43 <category android:name="android.intent.category.LAUNCHER" /> 44 </intent> 45 </queries> 46 47 <application 48 android:name=".VdmHostApplication" 49 android:label="@string/app_name" 50 android:theme="@style/AppTheme"> 51 <activity 52 android:name=".MainActivity" 53 android:exported="true"> 54 <intent-filter> 55 <action android:name="android.intent.action.MAIN" /> 56 <category android:name="android.intent.category.LAUNCHER" /> 57 </intent-filter> 58 </activity> 59 <activity 60 android:name=".InputActivity" 61 android:exported="true" /> 62 <activity 63 android:name=".SettingsActivity" 64 android:exported="true" 65 android:excludeFromRecents="true"> 66 <intent-filter> 67 <action android:name="android.intent.action.APPLICATION_PREFERENCES" /> 68 <category android:name="android.intent.category.DEFAULT" /> 69 </intent-filter> 70 </activity> 71 <activity 72 android:name=".CustomLauncherActivity" 73 android:exported="true" 74 android:launchMode="singleTop" 75 android:theme="@style/AppTheme.FullScreen" /> 76 77 <service 78 android:name=".VdmService" 79 android:exported="false" 80 android:foregroundServiceType="connectedDevice" /> 81 <service 82 android:name=".VdmProxyIme" 83 android:exported="false" 84 android:permission="android.permission.BIND_INPUT_METHOD"> 85 <intent-filter> 86 <action android:name="android.view.InputMethod" /> 87 </intent-filter> 88 <meta-data 89 android:name="android.view.im" 90 android:resource="@xml/proxy_ime" /> 91 </service> 92 <service 93 android:name=".NotificationListener" 94 android:exported="false" 95 android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"> 96 <intent-filter> 97 <action android:name="android.service.notification.NotificationListenerService" /> 98 </intent-filter> 99 </service> 100 </application> 101</manifest>