Hi all.
There are problems using my application on a Samsung device(samsung SM-S918U1 Android 14 SDK 34).
I have straktrace:
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@d6b4c6f
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 a0.d.a
at a0.c.h
at com.samsung.android.service.svcagent.MainService.t
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)
I would be grateful for any help
I encounter the same error on the same device in the Google Play pre-launch report details. However, in the test video, there is no crash. I don’t think this error pertains to our app, as the receiver name is ‘com.samsung.android.service.svcagent.intent_action_last_command’, but I am not entirely sure.
my stack trace:
04-05 11:31:27.862: E/AndroidRuntime(8456): 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
04-05 11:31:27.862: E/AndroidRuntime(8456): at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1884)
04-05 11:31:27.862: E/AndroidRuntime(8456): at android.app.LoadedApk$ReceiverDispatcher$Args.$r8$lambda$gDuJqgxY6Zb-ifyeubKeivTLAwk(Unknown Source:0)
04-05 11:31:27.862: E/AndroidRuntime(8456): at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(Unknown Source:2)
04-05 11:31:27.862: E/AndroidRuntime(8456): at android.os.Handler.handleCallback(Handler.java:958)
04-05 11:31:27.862: E/AndroidRuntime(8456): at android.os.Handler.dispatchMessage(Handler.java:99)
04-05 11:31:27.862: E/AndroidRuntime(8456): at android.os.Looper.loopOnce(Looper.java:230)
04-05 11:31:27.862: E/AndroidRuntime(8456): at android.os.Looper.loop(Looper.java:319)
04-05 11:31:27.862: E/AndroidRuntime(8456): at android.app.ActivityThread.main(ActivityThread.java:8893)
04-05 11:31:27.862: E/AndroidRuntime(8456): at java.lang.reflect.Method.invoke(Native Method)
04-05 11:31:27.862: E/AndroidRuntime(8456): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
04-05 11:31:27.862: E/AndroidRuntime(8456): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
04-05 11:31:27.862: E/AndroidRuntime(8456): Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 1
04-05 11:31:27.862: E/AndroidRuntime(8456): at java.lang.String.checkBoundsBeginEnd(String.java:4466)
04-05 11:31:27.862: E/AndroidRuntime(8456): at java.lang.String.substring(String.java:2517)
04-05 11:31:27.862: E/AndroidRuntime(8456): at a0.d.a(Unknown Source:39)
04-05 11:31:27.862: E/AndroidRuntime(8456): at a0.c.h(Unknown Source:20)
04-05 11:31:27.862: E/AndroidRuntime(8456): at com.samsung.android.service.svcagent.MainService.t(Unknown Source:22)
04-05 11:31:27.862: E/AndroidRuntime(8456): at com.samsung.android.service.svcagent.MainService.L(Unknown Source:64)
04-05 11:31:27.862: E/AndroidRuntime(8456): at com.samsung.android.service.svcagent.MainService.E(Unknown Source:10)
04-05 11:31:27.862: E/AndroidRuntime(8456): at com.samsung.android.service.svcagent.MainService$a.onReceive(Unknown Source:180)
04-05 11:31:27.862: E/AndroidRuntime(8456): at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1876)
I got the same error from Google Play store review against a samsung Galaxy S23 Ultra test device. there is also a Performance video which does not appear to show a crash
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@d6b4c6f
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 a0.d.a
at a0.c.h
at com.samsung.android.service.svcagent.MainService.t
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)