Obtainium icon indicating copy to clipboard operation
Obtainium copied to clipboard

[Feature Request] Support Android TV / non touch devices

Open peat80 opened this issue 3 years ago • 32 comments

Hello, i just discovered this nice app and thought it would be nice to have to update some apps from github, mainly on my androidtv device. Unfortunately it does not (completely) work on non touch devices it seems. It opens fine in landscape and i can navigate to all buttons perfectly fine with remote, but there is no reaction when i press the ok button. So it looks to me like this app could be made to work with minimal effort. 🤔

Would be really nice if non touch support could be added in an future release. 😎👍 Keep up the good work.

peat80 avatar Feb 14 '23 15:02 peat80

Not sure how simple this will be, but definitely something to look into.

ImranR98 avatar Feb 14 '23 17:02 ImranR98

https://www.dltlabs.com/blog/how-to-create-an-android-tv-app-using-flutter-362536

peat80 avatar May 15 '23 15:05 peat80

Not sure how simple this will be, but definitely something to look into.

It should be pretty easy. The only issue with it working on Android TV/Fire Stick is that pressing the enter/ok button in the remote doesn't register as a button tap, but the navigation mostly works fine already. That's the only thing that needs fixing.

PlasmaticRiver avatar May 23 '23 23:05 PlasmaticRiver

Currently stuggle with FireTV devices not having a good availability of apps and i have to sideload everything. I ended creating a custom fdroid repo and manually upload everything to it and using Droid-ify to install which has partially-works navigation for android tv so i use mouse-toggle app to emulate the mouse 😅

So this one i am so interested about.

KingLucius avatar Jul 01 '23 10:07 KingLucius

Any update on this ? would be really helpful to have access to GitHub repo via Android TV as it's sometimes difficult to access internal storage or a web browser

lorrding avatar Aug 12 '23 15:08 lorrding

Any update on this ? would be really helpful to have access to GitHub repo via Android TV as it's sometimes difficult to access internal storage or a web browser

Still waiting on the Dev to patch in ATV support. Just using it sideloaded for now with Mouse Toggle to interact with the UI.

PlasmaticRiver avatar Aug 19 '23 01:08 PlasmaticRiver

Fixing in next release (issue was https://github.com/flutter/flutter/issues/106817)

ImranR98 avatar Aug 19 '23 03:08 ImranR98

https://github.com/ImranR98/Obtainium/releases/tag/v0.13.26-beta

ImranR98 avatar Aug 19 '23 05:08 ImranR98

Sadly this only works partially. It only works on the first level. Pressing OK does do nothing in opened popups and dialogue boxes. Also OK does nothing when you enter text and want to confirm your entry.

peat80 avatar Aug 19 '23 15:08 peat80

would be a great addition, as updating apps on android tv is always a pain

WardPearce avatar Sep 02 '23 10:09 WardPearce

would be a great addition, as updating apps on android tv is always a pain

You should try Apkupdater on your tv too. A great tool that has a nice tv ui. 😀

https://github.com/rumboalla/apkupdater

peat80 avatar Sep 02 '23 11:09 peat80

thank you 🙌

WardPearce avatar Sep 02 '23 11:09 WardPearce

Currently testing it myself on a Chromecast w/ Google TV. Same issue with the Middle Key. Need to open it through Aptoide because it has no banner.

Here's one on the house, made it myself in Inkscape, under the CC-BY SA 4.0.

Obtainium_TV_banner.zip Obtainium_TV_banner Obtainium_TV_banner_padded

SecularSteve avatar Nov 02 '23 12:11 SecularSteve

This seems to have improved in a recent version (possibly by a flutter update?). Confirming dialogs and navigating views seems to work fine now but the text boxes trap the focus in a way which makes adding apps impossible with just a remote and on-screen keyboard.

GenericMale avatar Feb 25 '24 13:02 GenericMale

So you think this issue could be closed?

DwainZwerg avatar Feb 26 '24 11:02 DwainZwerg

Of course not. But it works a little better now. If you configure your apps on the phone, make a backup and then import it on tv its atleast useable for updating them. 😎👌

peat80 avatar Feb 26 '24 16:02 peat80

To close the issue atleast leanback support with tv banner and working text boxes to edit and add apps on tv would be needed i think. 🤔

peat80 avatar Feb 26 '24 16:02 peat80

So you think this issue could be closed?

Unfortunately no because it's still not possible to use the app on a TV with a remote. I used an external keypad with a touchpad to add the apps but running updates works perfectly fine just with the TV remote (this wasn't working before).

The main thing which needs to be fixed are the text inputs. Problem is that as soon as you focus a text field (e.g. using the D-Pad on the remote), the onscreen keyboard is shown and there is no way to close that and focus the next control. So you can't click the Add or Search Button or edit any of the other inputs because you get stuck at the first text field in the view. Clicking the enter key in the onscreen keyboard or pressing the back key on the remote will unfocus the control and you start traversing the controls from the top of the view again.

There are various workarounds proposed in https://github.com/flutter/flutter/issues/49783 but i couldn't get any of them to work.

One thing that kinda helps is to set textInputAction: TextInputAction.next on the TextFormField (in GeneratedFormSubForm). This will put the focus on the next control when the enter button is clicked in the onscreen keyboard. This behavior probably isn't obvious to users and it can be pretty annoying when you wanna go through a page with many text fields (e.g. the Edit App view) but at least you can reach all the controls somehow without a touch device.

GenericMale avatar Feb 26 '24 16:02 GenericMale