Continuing the discussion from My app crashes when using samsung:
Hello,
App is crashing in samsung Galaxy S23 Ultra.
Stack trace
java.lang.RuntimeException: Error receiving broadcast Intent { act=com.samsung.android.service.svcagent.intent_action_last_command flg=0x10 } in com.samsung.android.service.svcagent.MainService$a@52db34e
Exception java.lang.RuntimeException: Error receiving broadcast Intent { act=com.samsung.android.service.svcagent.intent_action_last_command flg=0x10 } in com.samsung.android.service.svcagent.MainService$a@52db34e
at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0 (LoadedApk.java:1884)
at android.app.LoadedApk$ReceiverDispatcher$Args.$r8$lambda$gDuJqgxY6Zb-ifyeubKeivTLAwk
at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run
at android.os.Handler.handleCallback (Handler.java:958)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loopOnce (Looper.java:230)
at android.os.Looper.loop (Looper.java:319)
at android.app.ActivityThread.main (ActivityThread.java:8893)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:608)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)
Caused by java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 1
at java.lang.String.checkBoundsBeginEnd (String.java:4466)
at java.lang.String.substring (String.java:2517)
at androidx.compose.foundation.lazy.layout.IntervalListKt.access$binarySearch (IntervalList.kt)
at androidx.compose.foundation.lazy.layout.IntervalList.h (IntervalList.kt)
at com.samsung.android.service.svcagent.MainService.t
at com.samsung.android.service.svcagent.MainService.L
at com.samsung.android.service.svcagent.MainService.E
at com.samsung.android.service.svcagent.MainService$a.onReceive
at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0 (LoadedApk.java:1876)