I bought a cheap Blackview BV5900 running on Android 9.0 (I assume a custom ROM) as I needed something rugged and with long battery life for testing purposes. I'm struggling to find any answers as to why apps won't auto start when they are supposed to. The app in question primarily is Grandstream Wave - Video which is effectively a SIP client. It auto starts just fine on an old Samsung Galaxy V6.
I've tried various auto-start apps to see if I could get around it, but it would seem they fail to load as well on boot, so they don't do the task they are intended to perform. I've been in contact with the manufacturer and their answer is it just won't do it.
As it's a test phone I'm quite happy to root it, although I'm completely new to Android, I'm sure I'll find enough info to get started with a bit of googling.
What I'm after is a bit of help on what to look for and how to find it. From what I gather, the app is looking for a BOOT_COMPLETE
message of some sort, so I'm guessing that is disabled somewhere? Any answers, please assume I know nothing, you will be correct.
EDIT 11May2020
Tried the shell command as requested here - no Joy. Result from shell below. Not sure whether this just means I don't have enough privilege to run it or it's disabled in some way?
Broadcasting: Intent { act=android.intent.action.BOOT_COMPLETED flg=0x400000 pkg=com.grandstream.wave }
Security exception: Permission Denial: not allowed to send broadcast android.intent.action.BOOT_COMPLETED from pid=5834, uid=2000
java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.BOOT_COMPLETED from pid=5834, uid=2000
at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:21774)
at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:22411)
at com.android.server.am.ActivityManagerShellCommand.runSendBroadcast(ActivityManagerShellCommand.java:690)
at com.android.server.am.ActivityManagerShellCommand.onCommand(ActivityManagerShellCommand.java:174)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.am.ActivityManagerService.onShellCommand(ActivityManagerService.java:16434)
at android.os.Binder.shellCommand(Binder.java:634) at android.os.Binder.onTransact(Binder.java:532)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3551)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3397)
at android.os.Binder.execTransact(Binder.java:731)
ACTION_BOOT_COMPLETED
“is a protected intent that can only be sent by the system.”: developer.android.com/reference/android/content/…. So you need root access.