<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.eurekateam.cameralightsensor" android:sharedUserId="android.uid.system">
   <uses-permission android:name="android.permission.WRITE_SETTINGS"/>
   <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
   <uses-permission android:name="android.permission.CAMERA"/>
   <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
   <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
   <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
   <uses-permission android:name="android.permission.CAMERA_OPEN_CLOSE_LISTENER"/>
   <uses-feature android:name="android.hardware.camera"/>
   <uses-feature android:name="android.hardware.camera2.full"/>
   <uses-feature android:name="android.hardware.camera.autofocus"/>
   <protected-broadcast android:name="com.android.systemui.doze.pulse"/>
   <application android:allowBackup="true" android:label="@string/app_name" android:persistent="true">
      <receiver android:name=".BootReceiver" android:defaultToDeviceProtectedStorage="true" android:directBootAware="true" android:enabled="true" android:exported="true">
         <intent-filter android:priority="1000">
            <action android:name="android.intent.action.BOOT_COMPLETED"/>
            <category android:name="android.intent.category.DEFAULT"/>
         </intent-filter>
      </receiver>
      <service android:name=".CameraLightSensorService" android:exported="true" android:foregroundServiceType="camera">
         <intent-filter android:priority="1000">
            <action android:name="android.intent.action.SCREEN_OFF"/>
            <action android:name="android.intent.action.USER_PRESENT"/>
         </intent-filter>
      </service>
   </application>
</manifest>
