mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 19:55:33 -04:00
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:
parent
b867da60fc
commit
e4569f7c82
5 changed files with 6 additions and 23 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue