soef / ioBroker.firetv

Fire TV adapter for ioBroker
MIT License
7 stars 13 forks source link

startApp - howTo? #16

Open The-Big-M opened 6 years ago

The-Big-M commented 6 years ago

Hi, i just installed the Adapter on my ioBroker. Unfortunately, it doesn't work the way I think... Emulate "home"-click inside a blockly-code works, but i dont know how to start / stop a app. Please, can you explain me how? Second question. 3 of my firetv´s are in a different network-Segment, so the iobroker is behind a firewall. Which ports do i need to open?

Kind Regards Matze

klaus-schuster commented 5 years ago

it seems that you need to know the exact name off the class to start.. i just got the tagesschau to work with that entry in the StartApp

de.cellular.tagesschau/de.ndr.tagesschau.firetv.activities.HomeActivity

i got that from connecting via adb to the stick

adb connect xx.xx.xx.xx:5555

to get the package name:

adb shell pm list packages -f tages

to get some idea about what the class may be named:

adb shell pm dump /data/app/de.cellular.tagesschau-1/base.apk | grep tages


if you just enter de.cellular.tagesschau the adapter tries to open "MainActivity" which doesn't seem to exist...

i need a beer now

oskarnarten commented 5 years ago

using this string com.plexapp.android/com.plexapp.plex.activities.SplashActivity in the field StartApp started the PLEX client on my FireTV

tushjd commented 4 years ago

Hello,

I just figured out how to use startApp for any apps. 1) download and install "package browser" from fire tv apps 2) start and filter for your app name. For example "magenta" 3) Open the packed if found and write down the app name on the first entry. For example "tv.accedo.xdk.dtag.production" 4) go to Activities.. and click on the first entry (public enabled activity ... 5) write down the name value (name="...") for example "t.accedo.xdk.dtag.MainActivity" 6) combine your notes from 3) and 5) with a "/" in between. For example: tv.accedo.xdk.dtag.production/tv.accedo.xdk.dtag.MainActivity 7) enter the whole string into appStart to start the app

SchiFrank commented 1 year ago

Hi, doesn't work for kodi. The string is "org.xbmc.kodi/org.xbmc.kodi.Splash". Any ideas, what I could try?