WebKey & Google Play on FTV2 - Fire TV General

So, I have a PM a while back about Webkey app on FTV. Here it is
@clembo100 said:
Hi there, I have just installed webkey on my Amazon TV Firestick in order to remote access Kodi installation configs etc.
When starting the app on the browser I can connect but get a plain replica of a phone on the screen with a small android icon on it but no actual way of viewing the screen or controlling anything. The mouse pointer changes when over some of the edges of the screen as though to do something but nothing seems to be working correctly. I wondered if you had come across this or can help with a fix? Thanks for reading this
Click to expand...
Click to collapse
I had the same problem on my FTV2 running version 3.2.6. The new version is not as feature rich (no terminal, no file transfers, no file system navigation, no way to input text easily) as the old one. Alas, you cannot run the older version on FTV2, it will refuse to start, either manually or auto-boot.
But, I have playing around with it and found that you can navigate menus using the keyboard arrow keys. Certain menu items can be invoked using mouse clicks as well (eg, if you go to Applications and open an app., you get different choices like "Run App" or "Clear Data". You can click on them and it seems to work). Also, usually once you are within an app, you can point and click using your mouse. So, even though it is crippled, it does work, though not as seamlessly as the older version. You can get the latest one at http://webkey.cc/ and there is a link for direct apk download.
One of the best uses I have for it right now is to interact with Google Play (system app). I have frozen my GPlay app at 5.6.8. As others have indicated, the mouse does not work (using K400) in the app. But, I can point and click in the GPlay app using Webkey and it makes it easy. Tip, if you need to click on the rectangle formed by 3 horizontal lines at the top of the page to get into your settings, click on the top left corner of that rectangle (of just those 3 lines) and the menu should pop down.
An interesting thing I found, if you install GPlay (5.6.8) as a user app, the mouse works, but it stops working when GPlay (same version) is installed as a system app. Of course as a user app, you get the error (976?) that won't allow you to install apps from within GPlay.

Related

[Q] Can Android Market be installed on a non rooted KF?

I have a few questions and they are probably answered here but I'm at work so its very hard tor me to get on my phone.
- is their a way to get android market on a KF even if its not rooted? I really would just like to install apps that are not in the amazon market. A new launcher,etc. Do you have to be rooted to install apps from android?
- What is side loading apps? I keep hearing people talk about this? What is it for?
- is there a way to text people from my KF? If so can anyone tell me a good app?
- how can I change the amazon keyboard to say swiftkey or something?
- any way to play movies on the KF? Could I drop a mkv, avi, divx, etc. movie from my pc onto my kindle? Or could I stream it to my kindle somehow?
- last question to now...is there a way to improve the touch screen response? I have to repeatedly touch icons, links and whatnot. I thought I saw an app that improves the KF screen?
Thanks everyone for the help, its greatly appreciated.
bal1985 said:
I have a few questions and they are probably answered here but I'm at work so its very hard tor me to get on my phone.
1) - is their a way to get android market on a KF even if its not rooted? I really would just like to install apps that are not in the amazon market. A new launcher,etc. Do you have to be rooted to install apps from android?
2) - What is side loading apps? I keep hearing people talk about this? What is it for?
3) - is there a way to text people from my KF? If so can anyone tell me a good app?
4) - how can I change the amazon keyboard to say swiftkey or something?
5) - any way to play movies on the KF? Could I drop a mkv, avi, divx, etc. movie from my pc onto my kindle? Or could I stream it to my kindle somehow?
6) - last question to now...is there a way to improve the touch screen response? I have to repeatedly touch icons, links and whatnot. I thought I saw an app that improves the KF screen?
Thanks everyone for the help, its greatly appreciated.
Click to expand...
Click to collapse
1) No. Market needs root to install. Some other launchers work without root, but you now have to side load them. You can add other non-Amazon apps in many cases, but without root, you can't use the Android Market, so you would need to side load them.
2) Copying the APK install files via download or via usb or other means.
3) The Kindle Fire is not a phone, there is no radio in the device so no text messaging. You can use things like Google Talk but you need root to install it. There are some web based txt stuff, but that is not really on the device.
4) Need root to do this
5) There are other video players that will do this. Like MX Video player
6) Not really.
6 In particular is starting to get on my nerves. I think its an OS/Kernel issue because tapping stuff elsewhere seems to be ok, but that bar is a headache. Hit back 5x and you see it light up each time.
Also I dont know if its dolphin browser or what but a lot of the times I tap a typing area like google search, after 2-3 letters it just hides the keyboard.
Also I've been having more issues where you click a typable area and start typing, but nothing shows. Keyboard is showing recommended words, but none will actually show on the screen.
Oh, also if you're watching a video on a site, good luck moving the time bar. Sometimes I have to press and hold my finger 2-3 seconds for it to trigger.
Seems to be a little worse since 6.2 imo.
Once the kindle is rooted and the entire market is installed does the kindle act like an android phone? Do you get the android home screen? With cm7 does your tablet act just like phone obviously without gos and so on.
bal1985 said:
Once the kindle is rooted and the entire market is installed does the kindle act like an android phone? Do you get the android home screen? With cm7 does your tablet act just like phone obviously without gos and so on.
Click to expand...
Click to collapse
The market is just an app that you use to get more apps.
It will still look and feel like an out of the box kindle fire.
And last I recall the market wont show up in the standard kindle launcher, so no one would even know it was there.
You have to take additional steps to even utilize it.
CM7 would make it act like an android device. there are tablets with CM7 so it has nothing to do with phones. Gos I assume is gps, and some tablets have that so it isnt phone only.
Hi,
Please refer to the article below. It will give you a deeper understanding of what rooting is and some tweaks you can do to the unit.
http://www.terracode.com/KindleFire/KF_Review_and_Tweaks_P1.html
If you have google voice linked with your Sprint number, you can send and receive texts via Google Voice
I have the Market installed but for some reason there are tons of apps missing for the market. Is their way to fix this?
Apps like Yahoo Fantasy Football to Google Maps or Google Earth are not there.
bal1985 said:
...
- is there a way to text people from my KF? If so can anyone tell me a good app?
...is there a way to improve the touch screen response?...
Click to expand...
Click to collapse
I think you can send/receive a limited number of text messages as well as make /receive calls with a free Google Voice account. I have not tested this with the Kindle Fire, so someone else may correct me.
There is an app called TouchScreen Booster that may help you adjust your screen sensitivity.
the following is from an other thread i don't remember (thanks to them !)
additional settings in build.prop:
# Rendering User Interface With GPU
debug.sf.hw=1
# Increase overall touch responsiveness
video.accelerate.hw=1
windowsmgr_max_events_per_sec=150
debug.performance.tuning=1
MAKE BACKUP COPY !!! - CAUTION WITH MODIFYING BUILD.PROP !!!
if your not sure - leave it !
i made this settings and i'm satisfied ...
Go to Kindle Fire browser Google search for "applanet". Under the link will be on the left "familiar interface" I tried that one first and it didn't work. On the right of it is one called "Version". I clicked that one and it directly started downloading an app. Tap the upper left part of the screen where the notifications are and when it is done downloading tap on its notification. It will install. (prior to this you need to go to settings - device and turn on download from unknown sources) install it and it creates an app called Applanet Market. Go to the Amazon market and search for ADW ex. Download that. You may find apps on Applanet that are not in Amazons.Search for any application you want. Like youtube, earth, gmail, whatever. When you're done playing with applanet hit your home key. It will give you a choice of ADW or stock. Check off the default box and choose ADW. Go to menu at bottom and go to ADW settings. Advanced. Set columns to 6 and rows to 6 and return back. At the bottom middle you have the ADW 3 button controller. I opened the app drawer (middle button) and dragged the Kindle Fire launcher to home screen and then long pressed it and dragged it over the area left of the appdrawer button. It will stick here and with it you can get to the stock KF home screen. But whenever you tap home, you will go to ADW. If you ever want to change that, go to settings. Applications. ADW. And at the lower area you can choose to release the default.
Sent from my DROIDX using Tapatalk
krelvinaz said:
5) There are other video players that will do this. Like MX Video player
QUOTE]
In response to this and OP's earlier question, MX is good. Moboplayer is good too, but I've been having full screen problems with Mobo. On streaming, you can use Dropbox or Sugarsync (I use SS, there is a thread on it in the apps category). For streaming though, I've found that MX doesn't work great and Mobo is better, which is why I use that for streaming, although I still have the full screen issues. If you stream using SS, just make sure that file is encoded in a quality to get a good stream. There is also another thread on how to setup files to do this in apps category as well.
Click to expand...
Click to collapse
Is applanet back up?
Sent from my Kindle Fire using Tapatalk

[Q] Nook Simple Touch - all set up and it's partly fun

Hi all, recently bought one of these nice little devices myself. This is how I got on, not all that's supposed to work actually does.
Rooting with Touchnnoter 2.1.31 was easy enough and I soon found SearchMarket to access Android Market. What does work: Kindle, QuickPic, AdAway, DropBox, GoodNews
So I could be reading books and news, but I'd like to have a bit more, namely web access!
- ReadItLater/Pocket is shown as purchased in Market, but can't be installed
- Stock browser shows starting page as Error404, directly opening another page works first time only, but links or scrolling don't. Plus it often crashes.
- pre-installed Opera Mini didn't work, so I uninstalled and reinstalled:
a) only clicking "accept" REALLY fast allowed me to open it at all, otherwise it'd crash
b) spiegel.de and BBCNews always crash, even with images turned off I only briefly see the page layout
- Opera Mini Next doesn't open,
- Opera Mobile and Evernote are supposed to work, but don't appear on SearchMarket
- Dolphin Browser often crashes as well, plus no add-ons can be found
Any ideas why this is happening?
Plus: can anybody tell me how to access the external sdcard? I tried several file managers, activated root access etc. but have never been able to access /mnt/ or external_sd or emmc. So I haven't been able to sideload any apk either.
Thanks!
I use Opera Mobile, I found the apk somewhere (not on Market).
The SD card appears as /sdcard in the system (i.e. shell or ADB).
It is the second device mounted on the USB (i.e. desktop).
If you are writing an application you need the permission android.permission.WRITE_EXTERNAL_STORAGE.
There's also Instafetch as an alternative clipper.
Regards market errors, it's nice to do adb installs anyway, just a matter of getting hold of the .apk, possibly from AppBrain. OperaMobile (not to be mistaken with the lighter streaming OperaMini) works well for me. Perhaps there's a apk direct from Opera available.
It sounds like you have a problem with market. Perhaps adblock could be interfering? As I say, check out alternative ways to install in the interim.
The last couple versions of opera mini don't work but luckily I backed up my apps via airdroid and have a version that works. Readitlater/Pocket does not work because their recent updates have dropped android 2.1 support. Have you tried es file explorer? In ES you tap the home icon on the toolbar and select Phone the sdcard should then appear as a folder
PatchMeUp said:
- Opera Mobile and Evernote are supposed to work, but don't appear on SearchMarket
Click to expand...
Click to collapse
I see both Opera Mobile and Evernote through SearchMarket.
Try to see if you can find Opera Mobile directly from Market (not SearchMarket)
Market -> App -> Communication -> Top Free
Opera Mobile is on the second page.
Alternatively you could go to Google Play on your desktop/laptop
and see if the Nook shows up on the devices (its called Phone).
Then install them on the website for the device, and a few seconds later you will see them install on the nook.
--
PatchMeUp said:
- Opera Mobile and Evernote are supposed to work, but don't appear on SearchMarket
Click to expand...
Click to collapse
play.google.com/store/apps
Browsing and installing from the webstore is definitely way faster than on the Nook.
Also, I use another app called Quick Search Widget. Launch it as an app or from the widget. It can search the Market, and also doubles as a Google/wikipedia/... search widget.
Wow, thank you all for your tips - quite a kick-start and steep learning curve!
SD card: my bad, as "sdcard" was available. But as I recently formatted this drawer on my SGS (wanting to format the external sdcard, but wiping the OS...) I was extra cautious. Settled.
I downloaded adb and installed apks, great! I still don't get it how to do this on the Nook itself. There's something in NookColorTools about the app having to be in /system/apps/ or else it won't work...
And I'm quite proud to have figured out why Market didn't work! There was something wrong with the content filter: although set to "all", a lot of apps were blocked. Having switched to "mature", I'm in business with Evernote and trying out Instafetch.
BTW: @Schneicw, you're the best! The working OperaMini.apk was the best birthday present (couple of days early)! You wouldn't happen to have an old ReadItLater.apk lying around as well?!?
Next, I'll give the ebooklauncher a shot. Fingers crossed!
PatchMeUp said:
W
I downloaded adb and installed apks, great! I still don't get it how to do this on the Nook itself. There's something in NookColorTools about the app having to be in /system/apps/ or else it won't work...
Click to expand...
Click to collapse
You probably do not have install of Non-Market apps enabled.
Bring up NookColor Tools, and you will see check box with "Allow Non Market Apps". This might be checked (but still not working).
So you need to uncheck this box and recheck it.
Also try out remote install of apps from the google play website play.google.com/store/apps from a laptop (you need to login with the same account as on your nook), I find that really convenient...
--
I've got my Nook Simple Touch rooted with latest Touchnooter. The thing is, I don't want to use the Android Market at all. I want to install the F-Droid repository instead, as it has nothing but Free Software Apps, and has satisfied all my needs on my Droid phone, and I would prefer to keep as much of my data away from google as I can.
I have the FDroid.apk file. But I can't understand how to install it. I have the box (about allowing install of outside apps) in NookColor Tools checked. But I don't know how to get to the file on the SD card to start installing it.
What is this I've been hearing about installing with adb? Does that mean you can't just go to a file manager, select the apk, and begin installing? Because that is essentially how F-Droid installs its apps. Just does it all on its own, you just click "Install". But if that method doesn't work on the NST. Than F-Droid won't work
Any help would be very appreciated. God Bless ya guys!!
P.S. also the stock browser doesn't really work right. just goes to a black screen after a couple different web pages. And Opera (the one installed by Touchnooter) won't open at all. Just flashes the screen once, then stays on the home screen.
We really need a custom made CyanogenMod Rom!!! I get the feeling it would solve alot of our issues.
clem11388 said:
I have the FDroid.apk file. But I can't understand how to install it. I have the box (about allowing install of outside apps) in NookColor Tools checked. But I don't know how to get to the file on the SD card to start installing it.
Click to expand...
Click to collapse
You should be able to connect the nook to your Windows machine and copy the .apk onto the sdcard.
For browser Opera Mobile works for me.
TouchNooter also has the Amazon Market, which you could use.
--
cbay said:
You should be able to connect the nook to your Windows machine and copy the .apk onto the sdcard.
For browser Opera Mobile works for me.
TouchNooter also has the Amazon Market, which you could use.
--
Click to expand...
Click to collapse
well as a first note, I would like to say I have no Windows machines at all. I am 100% Linux
But I already have the apk file on my SD card. Its just I have no idea how to get to the file to install it. I thought that the app "Super Manager" was a file explorer/manager of some sort. But it does the same thing as Opera, I click on the icon in the App drawer, and the screen just flashes once or twice. Then returns the the home screen. No thing saying that it has crashed or anything.
So that is where I'm stuck.
Also, as a side note, I wish to use the F-Droid repository, because I want to use nothing but Open Source (Also known as Freedom Based) Software. Including markets. It's the number one reason why I use nothing but Linux on my machines. Linux is also faster than Mac or Windows, but won't get into that can of worms right now. hahaha.
You could write your own file explorer Jk
adb install seems to be the way for you.
Google "ADB download install", there should be a ton of links.
However now you will have software created by google installed/running on
your linux machine. (ha ha).
--
cbay said:
You could write your own file explorer Jk
adb install seems to be the way for you.
Google "ADB download install", there should be a ton of links.
However now you will have software created by google installed/running on
your linux machine. (ha ha).
--
Click to expand...
Click to collapse
Lol Well I have next to zero programming knowledge. But when I find the the best open source file explorer I'm definitely gonna throw the dev more than a few bucks for his hard work.
I'll look into adb installing for now. Just really hope and pray we get a Cyanogen or some other real Rom ported to NST soon. I think would solve all our issues with a totally different rom on it.
P.S. yes, having proprietary google software is gonna bug the crap outta me!! lol
God Bless ya guys!

Peloton Spin Bike

I have a peloton Spin Bike, and it can with a screen where your able to stream workouts on through the companies subscription. The screen is operated by Android Jellybean: 4.1.1.
OK, so here's my challenge for anyone that,s willing to accept!
Problem: when you turn on the peloton bike screen your locked into the peloton app, and the you can't get out of the app to do other things... For example, watch YouTube or something else.
Challenge: I'm sure this is an easy hack, but if anyone can figure out how to unlock this. You be compensated for your efforts!
I'd love to be compensated for the effort, but really you can just Google the command sequence as it's pretty popular to install Netflix and watch movies rather than consume the Peloton content.
I successfully extracted the Peloton APK from the bike and installed it on my Galaxy S6. The issue is that it won't go past the login screen. I figure one of two things is happening. Either the app is calling a procedure to validate that hardware on the bike is working before logging in, or two, the Peloton server is validating the login request is coming from a bike instead of another device via a token or validation of operating system version, etc.
pretty simple to do, go to about section of the bike, tap on the lower right corner area of the about screen, which should take you out of the app into a main android area....after that open the browser, download apk installer and then download whatever apps you want to add to the tablet
hey guys, just bought a used peloton and have two really specific questions:
- has anyone reset all the data through settings? If so, what happens?
- I'm not seeing the invisible button that everyone is describing here and in other forums. I also have developer options on so I can see all of the hit areas. Am I missing something?
Thank you!
Hack Peleton
conspawn said:
pretty simple to do, go to about section of the bike, tap on the lower right corner area of the about screen, which should take you out of the app into a main android area....after that open the browser, download apk installer and then download whatever apps you want to add to the tablet
Click to expand...
Click to collapse
But once you are in the about screen, how do you download new software? I dont see an option anywhere to download. I only see the disable ap button.
My Peloton console won't go beyond searching for network if I use Wifi, or download updates if I use ethernet. I don't think it's a hardware failure and had been looking for a ROM to load it. Anyone backup their console? It's a first generation tablet running lollipop.
Any chance someone figured out how to do this with the Peloton Tread? Its running Android 7... I can get to APKmirror.com and click download, just feel like they went to an extra effort to hide / disable downloads... or maybe a way to side load via USB, I can't get a USB device to recognize...
jimmyLS said:
Any chance someone figured out how to do this with the Peloton Tread? Its running Android 7... I can get to APKmirror.com and click download, just feel like they went to an extra effort to hide / disable downloads... or maybe a way to side load via USB, I can't get a USB device to recognize...
Click to expand...
Click to collapse
Did you ever figure this out?
QwertyMC said:
Did you ever figure this out?
Click to expand...
Click to collapse
If you connect via USB you can place the APK on the device. My only issue is that it wont install as its an unknown source and i am unable to allow unknown sources to install.
if youre on a peloton running nougat (android 7.0), from the login screen you can go to:
wifi (icon, top right) --> system settings --> legal (licenses etc.) --> and click any button that says homepage.
it will bring you up in a browser from which point you can download a third party launcher such as Nova and use it to display a stock android UX (homescreen). once you have this you might choose to download an apk for google play, or even just grab apks (app files) via google searches. (for example: google: Netflix android 7.0 apk --> then follow links to download).
This does not work for me. Clicking download does nothing. Any ideas.
New Peloton screen not allowing third party apps
atthedustin said:
if youre on a peloton running nougat (android 7.0), from the login screen you can go to:
wifi (icon, top right) --> system settings --> legal (licenses etc.) --> and click any button that says homepage.
it will bring you up in a browser from which point you can download a third party launcher such as Nova and use it to display a stock android UX (homescreen). once you have this you might choose to download an apk for google play, or even just grab apks (app files) via google searches. (for example: google: Netflix android 7.0 apk --> then follow links to download).
Click to expand...
Click to collapse
I just got the bike the other day and tried through both downloading the app directly onto the peloton tablet (as you recommended) and through ADB, followed the instructions of this :
https://www.reddit.com/r/pelotoncycle/wiki/index/howto/root
but it would just "hang"
I then learnt to add -p when installing through ADB and discovered this error:
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl1690417893.tmp/base.apk: AndroidManifest.xml]
I have tired using ADB to install the app on my android phone and it worked fine - which means it's not the app - I believe!
Please help!!!
Sn4pdragon said:
New Peloton screen not allowing third party apps
I just got the bike the other day and tried through both downloading the app directly onto the peloton tablet (as you recommended) and through ADB, followed the instructions of this :
https://www.reddit.com/r/pelotoncycle/wiki/index/howto/root
but it would just "hang"
I then learnt to add -p when installing through ADB and discovered this error:
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl1690417893.tmp/base.apk: AndroidManifest.xml]
I have tired using ADB to install the app on my android phone and it worked fine - which means it's not the app - I believe!
Please help!!!
Click to expand...
Click to collapse
Did you manage to resolve this? Having the same issue on my console running Android 7. Also tried the adb commands to allow unknown sources as it's not available to be set in UI
DB555555 said:
Did you manage to resolve this? Having the same issue on my console running Android 7. Also tried the adb commands to allow unknown sources as it's not available to be set in UI
Click to expand...
Click to collapse
do you active subscription? if not you need to get it to install apps.
radixsort said:
do you active subscription? if not you need to get it to install apps.
Click to expand...
Click to collapse
Do you need to maintain the subscription to utilize apps? Wondering whether to get a month trial or just pay for a month to get the apps I want on there and then cancel.
coronanlime said:
Do you need to maintain the subscription to utilize apps? Wondering whether to get a month trial or just pay for a month to get the apps I want on there and then cancel.
Click to expand...
Click to collapse
You don't need active subscription to use apps that you have already installed. Sadly, The problem is most of the apps have new versions and old versions are deprecated within few months.
Definitely try Wired XDisplay as DC Rainmaker's post, to doscreen mirror from your laptop.
How to Load Zwift or TrainerRoad on a Peloton Bike: A Geek's Guide
This post started almost 100% for my own reference as a simple notepad file. But enough people asked about my random Instagram stories using it for Zwift and TrainerRoad, that I figured I’d write it up into something semi-cohesive. While
www.dcrainmaker.com

Yotaphone 2: How to stop tutorial from running after factory reset?

I'm not sure of the reason, but the touch screen of my Yotaphone 2's e-ink stopped working. The e-ink screen itself visualises what it is supposed to, but it doesn't react to touches. The LED screen is OK. I thought this may be a software problem, so I did a factory reset that would probably eliminate it. It didn't, and the problem that I have now is that I can't even use the LED screen, because at startup it runs the tutorial, and the tutorial requires you to interact with the e-ink screen, which, in my case, is impossible, because it is not responsive to touches. So I never get to the "desktop" and the app launcher - the tutorial has to be completed. If I slide from the top rim I can get into Settings. I've tried stopping the process from the list of active apps, but it doesn't work. Anyone has an idea what to do?
I have the same issue yesterday and couldn't find a way to bypass the tutorial. As you I tried to kill the process via adb and didn't work. I also thought that there might be a place in the phone where the app checks to see if it has been run as it only runs the first time.
Two things to try:
1. Do you have the folder /data/data/com.yotadevices.yotaphone2.tutorial ? I see this in my phone so maybe it is created as a check. The folder is empty, you can try to create it as root to see if this bypasses?
2. Send the events via adb sendevent to the /dev/input/event4 or via input tap. You will need to calculate the coordinates somehow.
Good luck!
jaboto said:
I have the same issue yesterday and couldn't find a way to bypass the tutorial. As you I tried to kill the process via adb and didn't work. I also thought that there might be a place in the phone where the app checks to see if it has been run as it only runs the first time.
Two things to try:
1. Do you have the folder /data/data/com.yotadevices.yotaphone2.tutorial ? I see this in my phone so maybe it is created as a check. The folder is empty, you can try to create it as root to see if this bypasses?
2. Send the events via adb sendevent to the /dev/input/event4 or via input tap. You will need to calculate the coordinates somehow.
Good luck!
Click to expand...
Click to collapse
There was nothing I could do about it, but I found a workaround which would at least let me use the phone somehow. From the bottom side you can launch Google search and search for a popular android app, which will take you to the Play store. From then I installed Sidebar Lite by Mohammad Adib (probably other sidebar launchers would also work) and then the sidebar launcher works on top of the Tutorial and you can dock several apps in there.

[GUIDE] Remapping Android TV remote buttons

Remapping Android TV remote buttons
​In this guide I will explain a way to remap to the shortcut buttons on the remotes of Android TV devices which cannot simply be remapped by e.g. Button Mapper.
I will use the Walmart Onn Box as example for this guide, but it should also work for devices like the Xiaomi Mi Box.
The general idea is to install an Android automation app which analyzes the system logs of you device and starts your desired apps when it sees the button press log messages.
Enabling ADB
To install the automation app and give it permissions it needs, you must enable developper mode on your Android TV device and connect to it from your computer.
Those two turorials should explain you how to do it:
https://www.xda-developers.com/how-to-sideload-apps-android-tv​
https://www.xda-developers.com/install-adb-windows-macos-linux​
Easy way to control your Android TV device
Since it is very cumbersome or impossible to do everything with the remote control I recommend to use ScrCpy.
This allows you to easily control your device from your computer using mouse and keyboard.
After installation you can connect to your device with adb and enter 'scrcpy' in your console. You should instantly see the screen of your TV on your computer.
Installing 'Automate'
The app I recommend for the automation is called 'Automate'. It is free, but sadly can't be directly installed from the app store on Android TV (because of compatibility).
To avoid this limitation you can download the APK from e.g. Apkmirror and install it manually via ADB.
adb install .\path\to\the\downloaded\apk\Automate_v1.32.6.apk
Click to expand...
Click to collapse
While you are at it you can also give the app some privileges which it needs later to read the system logs and to start the apps.
adb shell pm grant com.llamalab.automate android.permission.SYSTEM_ALERT_WINDOW
adb shell pm grant com.llamalab.automate android.permission.READ_LOGS
Click to expand...
Click to collapse
To start Automate you need a launcher that can see sideloaded apps. I recommend the X-plore File Manager since it's also a good file manager and can be easily installed from the app store.
( There are also other alternatives like 'Tasker' instead of 'Automate', but since that is not free and activation doesn't work properly on a sideloaded app I can't recommend that. )
Configuring 'Automate'
After starting Automate you can create a new 'flow'. The goal of that flow is to monitor the system logs, and start your desired apps everytime it sees a button press message.
That can be done mainly with a 'Log await' node that contains following configuration:
Tag: WindowManager
Message: .*interceptKeyTq keycode=(\d+).*
Priority: Debug
Logged message (array): keycode
Click to expand...
Click to collapse
You can then use "Expression true?" nodes to check for the found value in keycode (e.g. for the Live TV button) ...
Formula: =keycode[1] = "172"
Click to expand...
Click to collapse
... and start your desired app with "App start" nodes.
Package: com.google.android.tv
Click to expand...
Click to collapse
An example of a full flow can be found here: Remap Onn. Android TV remote buttons
Conclusion
After setting all this up the apps should start when you press the buttons.
However the original app (or its installation view) also starts before it, so if you press the back button you will return to that app instead of the previously running app. To avoid that just use the home button instead.
The Automate app will not automatically start if you reboot your Android TV device. If you want that you can activate that in the settings: 'Run on system startup'. But make sure that everything works perfectly before you do that!
If you get stuck in a loop where you can't use other apps and also can't open and configure Automate anymore, you can use this command via ADB to disable all flows:
adb shell am broadcast -a com.llamalab.automate.intent.action.STOP_FLOW -n com.llamalab.automate/.StartServiceReceiver
Click to expand...
Click to collapse
Double_A_92 said:
To start Automate you need a launcher that can see sideloaded apps.
Click to expand...
Click to collapse
As a one-off, in case you don't want to install another app, you can always run:
Code:
adb shell am start -n com.llamalab.automate/.FlowListActivity
KenMacD said:
As a one-off, in case you don't want to install another app, you can always run:
Code:
adb shell am start -n com.llamalab.automate/.FlowListActivity
Click to expand...
Click to collapse
I went to Settings > Apps > See all apps and then scrolled down and clicked 'Show system apps'. You can find Automate, and then click open to launch.
Thanks for your guide. Now my Xiaomi Stick 4K remotes Netflix, Prime Video and Patchwall buttons are changed to open other apps.
Can you make Automate flow work like Button Mapper having also double click and long press open different apps.
stapreedi said:
Can you make Automate flow work like Button Mapper having also double click and long press open different apps.
Click to expand...
Click to collapse
That's probably not possible, since this is a very janky way that relies only on the android system text logs. Maybe the double click could be done in some complicated way, but the long press definitely not.
Thank you for your reply.
I asked same thing at Reddit AutomateUser and Automate developer ballzak69 answered but he did not tell how to modify flow:
https://www.reddit.com/r/AutomateUser/comments/uo5c00
Your guide is popular:
https://www.reddit.com/r/MiBox/comments/uo1m4s
Thanks for Idea. I have acer remote with netflix, youtube, primevideo and tiki live button. How to find keycode for these button in my acer remote because given keycode don't works
omdhar said:
Thanks for Idea. I have acer remote with netflix, youtube, primevideo and tiki live button. How to find keycode for these button in my acer remote because given keycode don't works
Click to expand...
Click to collapse
Connect the output of the "Log await" with the "Toast show" node, and the output of that back into the "Log await". That will create a little message popup with the keycode everytime you press a button.
Double_A_92 said:
Connect the output of the "Log await" with the "Toast show" node, and the output of that back into the "Log await". That will create a little message popup with the keycode everytime you press a button.
Click to expand...
Click to collapse
Thanks. It will be great if you could share flow example to generate keycode in message popup. It will also help many other here too.
omdhar said:
Thanks. It will be great if you could share flow example to generate keycode in message popup. It will also help many other here too.
Click to expand...
Click to collapse
Download this file Remap Onn. Android TV remote buttons and do what Double_A_92 told. Use your tablet or phone to modify flow file because its easier. When you modify flow file on your tablet or phone then you have to use example Aida64 for app package names on your tv. Use Send files to TV for what app name says. You can do it from Automate apps share icon.
Hey, thanks for the detailed guide! i did everything (i think )but when i hit start its stuck on the “Log await” i used your shared flow cause i got the same box.
Any ideas?
harel013 said:
Hey, thanks for the detailed guide! i did everything (i think )but when i hit start its stuck on the “Log await” i used your shared flow cause i got the same box.
Any ideas?
Click to expand...
Click to collapse
Hmm weird. Try deleting the flow and download it again so you have a fresh copy.
Also make sure to configure which apps you want to start. In my shared flow they are just random apps that I had installed. Maybe that causes problems if they aren't actually installed on the system.
what is different between this way and others way like "Button Mapper" or tvQuickActions?
oldman20 said:
what is different between this way and others way like "Button Mapper" or tvQuickActions?
Click to expand...
Click to collapse
This is for devices where the vendor buttons are not even registered as button presses by the system. So if you tried to use ButtonMapper or other apps, it wound't let you select the button and instead always open the app written on the button.
But yeah, if ButtonMapper works for your device that's obviously a much better way of doing it.
Double_A_92 said:
This is for devices where the vendor buttons are not even registered as button presses by the system. So if you tried to use ButtonMapper or other apps, it wound't let you select the button and instead always open the app written on the button.
But yeah, if ButtonMapper works for your device that's obviously a much better way of doing it.
Click to expand...
Click to collapse
thank, it got it!
btw, can i ask this?
How to check succeeded in transforming tv box into an Android TV ? or just download app from Google Play without issue?
I have the entire thing written out and plugged in, the only issue im having now is "Syntax error in regexp pattern near index1" i cant figure out through google what im doing wrong.
NarkosNakan said:
I have the entire thing written out and plugged in, the only issue im having now is "Syntax error in regexp pattern near index1" i cant figure out through google what im doing wrong.
Click to expand...
Click to collapse
Make sure you really wrote
.*interceptKeyTq keycode=(\d+).*
With all the dots and asterisks....
Double_A_92 said:
Make sure you really wrote
.*interceptKeyTq keycode=(\d+).*
With all the dots and asterisks....
Click to expand...
Click to collapse
Thank you very much, i couldn't see the first period at all in the main post~
The last problem im having is finding key codes, i don't understand how we find those for the app.
NarkosNakan said:
The last problem im having is finding key codes, i don't understand how we find those for the app.
Click to expand...
Click to collapse
Connect the output of the "Log await" with the "Toast show" node, and the output of that back into the "Log await". That will create a little message popup with the keycode everytime you press a button.

Categories

Resources