[Solved] Installing on Firestick 4K Max

For discussion of topics specific to MythTV on Android devices
Post Reply
PhilB
Senior
Posts: 311
Joined: Sun May 11, 2014 6:23 pm
Great Britain

[Solved] Installing on Firestick 4K Max

Post by PhilB » Thu Aug 04, 2022 12:33 pm

I am trying to set up a frontend on a Firestick 4K max to use with my v32 backend.

I have the device working;
It's being given a fixed address from my DHCP server (a pihole) and I can ping it.
The Amazon account is set up.

Im using this guide: https://www.mythtv.org/wiki/Android#Setup_on_Android
but cannot find how to carry out stages 1 to 3.
1. Enable installation of apps from unknown sources.
2. Enable developer options on your android device as described in https://developer.android.com/studio/debug/dev-options.
3. Enable USB Debugging in your android device. This will also enable debugging via the network (wifi or ethernet).
as a result adb connect fails:

Code: Select all

adb connect 192.168.x.yy
* daemon not running; starting now at tcp:5037
* daemon started successfully
unable to connect to 192.168.x.yy:5555: Connection refused
Can anyone advise how to do this please?
Phil
Last edited by PhilB on Tue Aug 09, 2022 2:32 pm, edited 1 time in total.

User avatar
jfabernathy
Senior
Posts: 475
Joined: Wed Feb 18, 2015 2:37 pm
Location: Raleigh, NC
United States of America

Re: Installing on Firestick 4K Max

Post by jfabernathy » Thu Aug 04, 2022 1:09 pm

I can add some tips I've discovered with using FireTV sticks with mythtv. This list is my experience and my opinion and your mileage may vary.

1. FireTV 4K is the right firestick. the MAX version while faster will not run mythfrontend correctly. I have tried every setting in the setup --> video playback I can find. None work without the picture going into fast play. FireTV 4K works fine, but the MAX sucks. I've relegated my MAX to a usage where it's only going to be running MythTV Leanfront.
2. Leanfront provides the best picture against your backend, period. Even my NUC 1165G7 all Intel 11th gen Core i7 can't produce as good a picture as the FireTV 4K Max using Leanfront.
3. Use the ADB package from their website and not the one from your Distro's package installer. Once that is installed, just cd into that directory and run the commands as ./adb ....
4. copy any apk you want to install into that directory where the downloaded adb tools are.
5. I use a laptop because you need to see the FireTV console while running adb. The first time you will have to check a box and select okay on a permission on the firestick.
6. I always start any adb session with ./adb kill-server
7. So after that installing an apk is 3 instructions.

Code: Select all

./adb connect <ip address of firestick>
./adb install -r <name of app.apk>
./adb kill-server

PhilB
Senior
Posts: 311
Joined: Sun May 11, 2014 6:23 pm
Great Britain

Re: Installing on Firestick 4K Max

Post by PhilB » Thu Aug 04, 2022 3:07 pm

Thanks for those hints. Use a different version of adb; use leanfront.
I have uninstalled the ubuntu repository version of adb and downloaded and unzipped the file from https://www.xda-developers.com/install- ... setuplinux instead.
I'm still stuck on getting the firestick to respond though - I can ping it but not ./adb connect 192.168.x.y.
./adb devices returns an empty list.
I think it's because I cannot find my way to:
- Enable installation of apps from unknown sources.
- Enable developer options on your android device as described in https://developer.android.com/studio/debug/dev-options.
- Enable USB Debugging
I am on Fire OS 7.2.9.2 (PS7292/2982) if it is relevant.
Where do I find those options?
Phil

User avatar
pgbennett
Developer
Posts: 459
Joined: Mon Apr 27, 2015 5:41 pm
United States of America

Re: Installing on Firestick 4K Max

Post by pgbennett » Thu Aug 04, 2022 3:48 pm

I hope you are using the actual ip address of the fire stick not 192.168.x.y ..
adb connect <actual ip address of fire stick>

PhilB
Senior
Posts: 311
Joined: Sun May 11, 2014 6:23 pm
Great Britain

Re: Installing on Firestick 4K Max

Post by PhilB » Thu Aug 04, 2022 4:00 pm

Yes. 192.168.2.111 for both ping and adb connect.
Everyone tries to hide their local addresses and I blindly followed the herd but if that actually helps anyone then I'm really in trouble!
Phil

PhilB
Senior
Posts: 311
Joined: Sun May 11, 2014 6:23 pm
Great Britain

Re: Installing on Firestick 4K Max

Post by PhilB » Thu Aug 04, 2022 4:00 pm

Yes. 192.168.2.111 for both ping and adb connect.
Everyone tries to hide their local addresses and I blindly followed the herd but if that actually helps anyone then I'm really in trouble!
Phil

User avatar
jfabernathy
Senior
Posts: 475
Joined: Wed Feb 18, 2015 2:37 pm
Location: Raleigh, NC
United States of America

Re: Installing on Firestick 4K Max

Post by jfabernathy » Thu Aug 04, 2022 4:15 pm

Did you enable debug options on the firestick? On the latest software you have to click on the name 10 times to enable. Google turning on debug mode for firestick. There have been different methods for different version of firesticks. Plus the first time you have to click onthe Firetv screen to accept.

PhilB
Senior
Posts: 311
Joined: Sun May 11, 2014 6:23 pm
Great Britain

Re: Installing on Firestick 4K Max

Post by PhilB » Thu Aug 04, 2022 8:39 pm

No - had not set that - am not sure how to.
In settings - my firetv - about - fire TV 4k max if I press central button many times then it says I am already a developer.
That still does not allow adb to connect or list the device so is clearly not right.
Phil
Ps going to be away now til next week so I will be off grid for a few days.

User avatar
jfabernathy
Senior
Posts: 475
Joined: Wed Feb 18, 2015 2:37 pm
Location: Raleigh, NC
United States of America

Re: Installing on Firestick 4K Max

Post by jfabernathy » Thu Aug 04, 2022 8:46 pm

PhilB wrote:
Thu Aug 04, 2022 8:39 pm
No - had not set that - am not sure how to.
In settings - my firetv - about - fire TV 4k max if I press central button many times then it says I am already a developer.
That still does not allow adb to connect or list the device so is clearly not right.
Phil
Ps going to be away now til next week so I will be off grid for a few days.
don't forget to be watching the Firestick while you are adb connecting

PhilB
Senior
Posts: 311
Joined: Sun May 11, 2014 6:23 pm
Great Britain

Re: Installing on Firestick 4K Max

Post by PhilB » Tue Aug 09, 2022 2:31 pm

Many thanks - working now.
Enabling developer options was found under settings > My fire TV > developer
There was an oddity with adb connect – it failed first time but said it was already connected second time.
Leanback then loaded without problems after the on-screen acknowledgement you mention.
There was a glitch with setting backend IP – it just would not bring up the page (unlike setting port number) but eventually did allow me to do so. I don’t know what changed to allow it.
Thanks again.
Phil

Post Reply