ITVlab / Launch-On-Boot

Launches a TV app when the device boots
MIT License
109 stars 36 forks source link

Launch sideloaded app? #12

Open joq3 opened 6 years ago

joq3 commented 6 years ago

Hi,

The reason why I searched and found this app was that I am out of ideas on how to launch a Task in Tasker everytime I power on my Mi Box (Android TV), which means wake the box from "sleep". I have not found any State or Event in Tasker which works reliably, most of them work very good directly after I power off the box and then start it up again. But if I leave the box for an hour it wont launch the Task.

How have you done this in the app? Is it possible to do the same in Tasker?

As a workaround I downloaded your app, made my Tasker Task to an apk, which I sideloaded. But that wasn't possible to launch from "Launch-On-Boot". So I had to do this: http://atvlauncher.trekgonewild.de/index.php (an TV apk which "points" at the sideloaded apk). This I was able to select from "Launch-On-Boot". But it did not work as intended, the task did not fire (which works when trying to launch the app itself).

Can you maybe add the ability to launch sideloaded apps too? Which are not Android TV apps, but works anyway.

So now I have made a big mess of a little problem. Can you please help me in the right direction, the best solution would be to make a Tasker Event or State which works everytime the device wakes up.

Thank you for the amazing work, I would really appreciate the help with this!

Have a nice weekend!

Fleker commented 6 years ago

It should open the activity, even if indirectly. I'm not sure why it wouldn't.

joq3 commented 6 years ago

Can you add the ability to launch sideloaded apps?

Or else, what do you use to run at wake up? Can i replicate it in Tasker?