universal7885: CameraLightSensor: Use correct code to start service

* W ActivityManager: Unable to start service Intent { cmp=com.eurekateam.cameralightsensor/.CameraLightSensorService } U=0: not found

* Ref: https://stackoverflow.com/questions/19105587/unable-to-start-service-intent-not-found

* Makes BootReceiver unable to start service
This commit is contained in:
roynatech2544 2021-11-13 19:19:44 +09:00
commit e4569f7c82
No known key found for this signature in database
GPG key ID: 9675C32163D88D30
5 changed files with 6 additions and 23 deletions

View file

@ -30,13 +30,14 @@
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<activity
<service
android:name=".CameraLightSensorService"
android:exported="true">
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.SCREEN_ON" />
</intent-filter>
</activity>
</service>
</application>
</manifest>