1<?xml version="1.0" encoding="utf-8"?> 2 3<manifest xmlns:android="http://schemas.android.com/apk/res/android" 4 coreApp="true" 5 android:sharedUserId="android.uid.system" 6 package="com.android.DeviceAsWebcam"> 7 8 <uses-feature android:name="android.hardware.usb.host"/> 9 <uses-feature android:name="android.hardware.camera.any" android:required="true"/> 10 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> 11 <uses-permission android:name="android.permission.CAMERA"/> 12 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA"/> 13 14 <application 15 android:label="@string/app_label"> 16 <receiver android:name=".DeviceAsWebcamReceiver" 17 android:exported="true" 18 android:singleUser="true"> 19 <intent-filter> 20 <action android:name="android.hardware.usb.action.USB_STATE"/> 21 </intent-filter> 22 </receiver> 23 24 <activity android:name=".DeviceAsWebcamPreview" 25 android:excludeFromRecents="true" 26 android:screenOrientation="user" 27 android:configChanges="orientation|screenSize|screenLayout|keyboard|keyboardHidden|navigation|uiMode|smallestScreenSize" 28 android:label="@string/app_label" 29 android:theme="@style/ActivityTheme" 30 android:singleUser="true" 31 android:windowSoftInputMode="stateAlwaysHidden"> 32 </activity> 33 34 <service 35 android:name=".DeviceAsWebcamFgService" 36 android:foregroundServiceType="camera" 37 android:singleUser="true"/> 38 </application> 39</manifest> 40