x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Android broadcast receiver, autostart app on boot

How to make the application waiting for android boot broadcast receiver and autostart itself? I turn on device and I want the application to autostart. I heard of broadcast receiver class in java, but how to add this to ue4 activity or manifest? I'm trying to add permission alt text to the manifest and receiver alt text to the application section

Product Version: UE 4.19
Tags:
permission.png (3.7 kB)
receiver.png (11.2 kB)
more ▼

asked Sep 11 '18 at 11:38 AM in Packaging & Deployment

avatar image

DanielDurys
57 1 2 5

avatar image DanielDurys Sep 12 '18 at 10:00 AM

I'm trying to make this on Daydream Lenovo Mirage Solo (but this has Android so it should work) If I try run command in adb like this to test an application run: adb shell am broadcast -a android.intent.action.BOOT_COMPLETED I got security exception and I'm not allowed to use this.

Security exception: Permission Denial: not allowed to send broadcast android.intent.action.BOOT_COMPLETED from pid=3501, uid=2000

java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.BOOT_COMPLETED from pid=3501, uid=2000 at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:19185) at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:19823) at com.android.server.am.ActivityManagerShellCommand.runSendBroadcast(ActivityManagerShellCommand.java:614) at com.android.server.am.ActivityManagerShellCommand.onCommand(ActivityManagerShellCommand.java:154) at android.os.ShellCommand.exec(ShellCommand.java:96) at com.android.server.am.ActivityManagerService.onShellCommand(ActivityManagerService.java:15009) at android.os.Binder.shellCommand(Binder.java:573) at android.os.Binder.onTransact(Binder.java:473) at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:4256) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2940) at android.os.Binder.execTransact(Binder.java:674)

How can I disable that security on Mirage Solo?

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question