Fire TV control over ADB with HTPC - Fire TV General

Not sure if this is interesting to anyone else or not looking for a harmony remote solution but..
Because you can control the Fire TV Stick over ADB: ( sigh.. can't post links, aftnews + how-to-remotely-control-an-amazon-fire-tv-or-fire-tv-stick-via-adb/ )
There are also a few more commands available which you can see here: ( search android KeyEvent ) (for media buttons mainly, but many interesting buttons that might come in handy on the stick)
My setup for this includes.. Logitech Harmony Remote using a Media Center IR receiver on an HTPC using Windows 7, and a Fire TV Stick
I made batch files for each of the remote commands, with an adb connect to the IP of the Stick just incase (it timesout after a while and if it's already connected it ignores the command). Then I setup AutoHotkey to look at my chosen remote commands, there is another autohotkey script that I use that tracks all button presses, so that you can just press the button on the remote and see the code to create a keybinding with. So now I have a script of all of the remote commands that I want which run the corresponding batch file. Then I setup one final script to turn on/off the keybinding script. I chose to use my Guide button to toggle this because I have no DVR in my HTPC anyway.
So the end result is that I can control my Fire TV stick via Harmony Remote -> IR Receiver on HTPC -> Autohotkey keybinding grabs the input when running -> Runs the ADB command for it. When I press Guide it goes into "Fire TV mode", and when I press it again it goes back to normal (so that I can control my HTPC again)
It's not the cleanest and there is a delay because the adb commands take about half a second to trigger, but it works and I'm satisfied for now. Because I haven't seen anyone else with a setup like this I thought I'd share. Just let me know if you want me to provide the scripts I have and go into more detail. I plan on refining it some too because I know next to nothing about batch files (I could probably just have one with different arguments, the only argument is the command number you want to send anyway) or autohotkey.

Related

Use your PC keyboard and mouse to remotely control your Fire TV (requires root)

Setup Synergy (server) on your PC.
Sideload Synergy Android Client on your Fire TV.
The client can be setup from the Fire TV remote. Press "Right" from the empty textarea at the bottom to select "Connect".
The client will continue to run, even with the Fire TV is asleep. Just use escape to wake it, though you will have to reconnect after a restart.
I haven't found the right key combinations for Home or Menu, but ESC works for Back. I'll update this post if I stumble across them or someone posts them below.
For help setting up the server on your PC, see the Synergy User Guide.
Tip: I personally prefer to use hotkeys to switch between screens, rather than moving the mouse off screen. If you choose to use move your mouse from screen to screen, I highly recommend setting up a hotkey to bring your focus back to the main screen, for when you lose track of your mouse.
Note: An older version of Synergy is still available to download for free on SourceForge, though I haven't tested it with the android client.
I also ran across ShareKM (Share Keyboard & Mouse) in the related threads when posting this, but I haven't tested it, either.
Using a keyboard and mouse does not require root.
xp314a said:
Setup Synergy (server) on your PC.
Sideload Synergy Android Client on your Fire TV.
The client can be setup from the Fire TV remote. Press "Right" from the empty textarea at the bottom to select "Connect".
The client will continue to run, even with the Fire TV is asleep. Just use escape to wake it, though you will have to reconnect after a restart.
I haven't found the right key combinations for Home or Menu, but ESC works for Back. I'll update this post if I stumble across them or someone posts them below.
For help setting up the server on your PC, see the Synergy User Guide.
Tip: I personally prefer to use hotkeys to switch between screens, rather than moving the mouse off screen. If you choose to use move your mouse from screen to screen, I highly recommend setting up a hotkey to bring your focus back to the main screen, for when you lose track of your mouse.
Note: An older version of Synergy is still available to download for free on SourceForge, though I haven't tested it with the android client.
I also ran across ShareKM (Share Keyboard & Mouse) in the related threads when posting this, but I haven't tested it, either.
Click to expand...
Click to collapse
Or you can just plug the hundred different mice and keyboards into your fire TV through a hub and it works natively unless I'm missing something about synergy.
Spykez0129 said:
Or you can just plug the hundred different mice and keyboards into your fire TV through a hub and it works natively unless I'm missing something about synergy.
Click to expand...
Click to collapse
Relax guys, he is just pointing out options. This would be useful say for someone that does not have a stand alone mouse or keyboard but has a laptop they can use to make the random selection here and there.
Sent from my SCH-I545 using Tapatalk
z31fanatic said:
Using a keyboard and mouse does not require root.
Click to expand...
Click to collapse
Spykez0129 said:
Or you can just plug the hundred different mice and keyboards into your fire TV through a hub and it works natively unless I'm missing something about synergy.
Click to expand...
Click to collapse
This is to remotely control the Fire TV with the local keyboard and mouse on a PC or laptop. I have updated the thread title to clarify.
How do you sideload the synergy android client? the apk file is missing from the zip file your link leads to
Link
ChuckK3rd said:
How do you sideload the synergy android client? the apk file is missing from the zip file your link leads to
Click to expand...
Click to collapse
sourceforge.net/projects/synergyandroid/files/Release%200.0005%20Alpha/
I haven't been able to get it to work for me. It just tells me I wasn't able to "Failed to connect to Wolvey:24800" on the firestick side. I changed the computer name to Wolvey since the previous one was the LAPTOP-;kjasdf and I was too lazy to sit there and try typing that over and over again. I restarted my computer after changing the name as well. Not sure what I'm doing wrong.
Also, I was wondering if DeskDock was tried out as well since it seems to be considered to be a more stable alternative?
Thanks
wolvmarine said:
I haven't been able to get it to work for me. It just tells me I wasn't able to "Failed to connect to Wolvey:24800" on the firestick side. I changed the computer name to Wolvey since the previous one was the LAPTOP-;kjasdf and I was too lazy to sit there and try typing that over and over again. I restarted my computer after changing the name as well. Not sure what I'm doing wrong.
Also, I was wondering if DeskDock was tried out as well since it seems to be considered to be a more stable alternative?
Thanks
Click to expand...
Click to collapse
Just use this no root required. vysor

[GUIDE] N64 Games with Wiimote - no root

Play with a Wiimote/Wii remote N64 games on Amazon Fire TV - no root
This box has more skills than I thought...
What you need:
- mouse (wukong app works good enough although it is in chinese- select in the square box with the 4 dots inside the third column and you have the mouse mode -https://lh3.ggpht.com/pXQ-tYDMTHS3OmbLFNTXKpOGwWuI02X87osJRf0NM34MJss3mul23LYBFDm227MBgII=h900)
- n64 oid http://www.emuparadise.me/Nintendo_64_Emulators/Android/N64oid%28Update%29/383 (i use vers. 2.7)
- bluez ime app (play store- sideload it) https://play.google.com/store/apps/details?id=com.hexad.bluezime&hl=de-
- Roms
What to do:
1. Install n64oid on aftv, install bluez ime on aftv
2. load a rom in n64oid
3. screen is at first start always black - push the settings/options button on aftv remote and select restart
4. Rom should load now - press settings again
5. select settings-> input method - disable virtual keyboard
6.Here comes the tricky part. Make sure bluez ime is installed. n64oid would ask you anyway now to install it.
Select Bluetooth gamepads-> controller 1 -> select device -scan!
7. Now you need the mouse. Be quick! Scan for devices . Press 1/2 on wiimote so it starts blinking.
8. Select the Wiimote with the mouse!!! you can't select it with the aftv remote.
9. Wiimote is still blinking: select device driver- Wiimote beta
10. Wiimote is still blinking: select connect
11. If everthing worked out: The wiimote stopped blinking and shows one blue dot. under connect it says "connected".
12. Congrats! You can now go to keymappings and you can remap the wiimote to a n64 controller. use a nunchuk if you want an analog stick.
13. Remap how you like - here is a Map of an original n64 controller http://www.gratuitousscience.com/wp-content/uploads/2013/06/controller_n64_diagram.jpg
14. Save your profile (I have a profile for a layout with nunchuk and without, since I dont need the nunchuk in Mario kart 64. )
15 If you want to add another wiimote repeat the same with controller 2. The second wiimote will also show only one blue dot - just as the first remote as controller 1 , dont worry about it)
Thats basicly it.
If you start the n64oid emulator next time, you have to connect the controller again by selecting connect and pressing 1/2. The device is saved. so the controller selected as number 1 has to be always the same! (there is a mac address)
Better gameplay:
Select settings-> audio video settings -> max frame skips - scroll to 1. I experienced better game play with no hick ups
Problems:
If the wiimote constantly blinks, although its connected, your aftv might be to far away. I had this at the beginnig and wondered why the connection broke up. This happens to me with controller number 2. Sometimes it still blinks and the gameplay works perfect, sometimes it breakes up. Maybe someone knows why. Sometimes this helped: kill the apps n64oid/bluez ime and restart again, or restarting the whole box.
magdap said:
Play with a Wiimote/Wii remote N64 games on Amazon Fire TV - no root
This box has more skills than I thought...
What you need:
- mouse (wukong app works good enough although it is in chinese- select in the square box with the 4 dots inside the third column and you have the mouse mode -https://lh3.ggpht.com/pXQ-tYDMTHS3OmbLFNTXKpOGwWuI02X87osJRf0NM34MJss3mul23LYBFDm227MBgII=h900)
- n64 oid http://www.emuparadise.me/Nintendo_64_Emulators/Android/N64oid%28Update%29/383 (i use vers. 2.7)
- bluez ime app (play store- sideload it) https://play.google.com/store/apps/details?id=com.hexad.bluezime&hl=de-
- Roms
What to do:
1. Install n64oid on aftv, install bluez ime on aftv
2. load a rom in n64oid
3. screen is at first start always black - push the settings/options button on aftv remote and select restart
4. Rom should load now - press settings again
5. select settings-> input method - disable virtual keyboard
6.Here comes the tricky part. Make sure bluez ime is installed. n64oid would ask you anyway now to install it.
Select Bluetooth gamepads-> controller 1 -> select device -scan!
7. Now you need the mouse. Be quick! Scan for devices . Press 1/2 on wiimote so it starts blinking.
8. Select the Wiimote with the mouse!!! you can't select it with the aftv remote.
9. Wiimote is still blinking: select device driver- Wiimote beta
10. Wiimote is still blinking: select connect
11. If everthing worked out: The wiimote stopped blinking and shows one blue dot. under connect it says "connected".
12. Congrats! You can now go to keymappings and you can remap the wiimote to a n64 controller. use a nunchuk if you want an analog stick.
13. Remap how you like - here is a Map of an original n64 controller http://www.gratuitousscience.com/wp-content/uploads/2013/06/controller_n64_diagram.jpg
14. Save your profile (I have a profile for a layout with nunchuk and without, since I dont need the nunchuk in Mario kart 64. )
15 If you want to add another wiimote repeat the same with controller 2. The second wiimote will also show only one blue dot - just as the first remote as controller 1 , dont worry about it)
Thats basicly it.
If you start the n64oid emulator next time, you have to connect the controller again by selecting connect and pressing 1/2. The device is saved. so the controller selected as number 1 has to be always the same! (there is a mac address)
Better gameplay:
Select settings-> audio video settings -> max frame skips - scroll to 1. I experienced better game play with no hick ups
Problems:
If the wiimote constantly blinks, although its connected, your aftv might be to far away. I had this at the beginnig and wondered why the connection broke up. This happens to me with controller number 2. Sometimes it still blinks and the gameplay works perfect, sometimes it breakes up. Maybe someone knows why. Sometimes this helped: kill the apps n64oid/bluez ime and restart again, or restarting the whole box.
Click to expand...
Click to collapse
Any idea if this should work on the Fire TV Stick? I try to connect and I get Error: BT socket connect failed. What version of BluezIME are you using?
I use the play store version 1.20. I never had this problem. on which step does this problem appear?
I also installed this now: https://code.google.com/p/android-bluez-ime/downloads/detail?name=BluezIME-HIDEnabler.apk&can=2&q=
maybe this helps.
So, I'm able to complete all steps through selecting Wiimote (HID) from the driver list. Then when I try to select Connect I get the Error. Do you know if Wiimote (Beta) is different than Wiimote (HID)? I don't have the Beta option. Are you using an original Wii controller or a Wii Controller Plus controller?
56789 said:
So, I'm able to complete all steps through selecting Wiimote (HID) from the driver list. Then when I try to select Connect I get the Error. Do you know if Wiimote (Beta) is different than Wiimote (HID)? I don't have the Beta option. Are you using an original Wii controller or a Wii Controller Plus controller?
Click to expand...
Click to collapse
Wiimote HID and wiimote beta, both worked for me. if it shows now wiimote HID that means you installed the apk from my last post.
I am using an original wiimote. I do have a motion plus but it also works with all my other wiimotes which don't have a plus modul on it.
I just found a thread where people are having this issue. https://code.google.com/p/android-bluez-ime/issues/detail?id=7
it seems like this happens on some android phones while on others this doesn't happen.
So my guess is, that this won't work on fire tv stick. Maybe someone can approve this.
Edit: maybe a restart helps? Press select and play for 10 seconds
Are you using the the Fire TV or the Stick? I'm looking through the spec page on Amazon right now and it looks like the Stick uses Bluetooth 3.0 protocol whereas the Fire TV uses Bluetooth 4.0. I'm guessing that might have something to do with it.
https://developer.amazon.com/public...re-tv/docs/device-and-platform-specifications
56789 said:
Are you using the the Fire TV or the Stick? I'm looking through the spec page on Amazon right now and it looks like the Stick uses Bluetooth 3.0 protocol whereas the Fire TV uses Bluetooth 4.0. I'm guessing that might have something to do with it.
https://developer.amazon.com/public...re-tv/docs/device-and-platform-specifications
Click to expand...
Click to collapse
good research! i am using the box not the stick.
does this work with other emulators?
...only if that emulator lets you control the bluetooth settings. I dont know any other n64 emulator.
This doesn't even work with the Shield.
Is it just me or did the 5.0.5 update broke the wiimote connection? Thanks!
walkabouts said:
Is it just me or did the 5.0.5 update broke the wiimote connection? Thanks!
Click to expand...
Click to collapse
Quite likely. Wiimotes don't work on android 5 and above so I'm guessing the same is so on the fire.
When I click on " connect" the fire tv remote stops working and the fire tv freezes. Just a restart helps.... Too bad. Anyone got a solution?

[GUIDE] How to get DirecTV working on Fire Tv Stick

Hello Everyone, Today I am going to show you how to get DirecTV on your Fire TV Stick. This may work on a Fire Tv too. Tell me if it does.
Credits to @AndroidDeveloper4Life Used his Thread as Base
Credits to TopTutorials for Mouse Toggle
1. Download the DirecTV for Tablets | Download
2. Download Mouse Toggle | Download
3. Extract Mouse Toggle.zip and Install using ADB.
4. Once Installed open Mouse toggle and Turn Mouse Toggle off and then on and Make Sure ADB Debugging is on.
5. When the Status says Started, Go to the Next Step.
6. Install DirecTV on your Fire TV Stick.
7. If the Mouse Toggle installed and is running QUICKLY double tap <PLAY/PAUSE> and A Mouse Will Appear
(No Not A Real One). To make the mouse Disappear Click the <PLAY/PAUSE> and let go and then hold the <PLAY/PAUSE> again and The Mouse will disappear. Use the D-Pad to control the mouse Up Goes UP, Down Goes Down and you know the rest.
8. Use the mouse to accept the Terms and Conditions
9. Login into your DirecTV Account
10. Profit?
Worked for Me, hopefully it will work for you. If i am missing something please let me know. Mouse Toggle is also very helpful with Browsers, as know i can use Chrome on my AFTS. If you want me to make a tutorial on how to use Chrome, Please let me know. Have a good day
DirecTV for tablets
Any of the apks that I sideload doesn't work because it's outdated. Do you have any ideas? I can't find anything else here to read.

[GUIDE] Using First Party Dualshock 3 (PS3) Controller on Fire TV via USB

This is a tutorial on how to get an official Sony brand Dualshock 3+Sixaxis Controller (AKA PS3 controller) working on your Fire TV over USB.
This has been tested on confirmed working on the Fire TV 2 (Sloane) but will presumably work on all generations and versions of Fire TV as long as it is rooted.
WHAT YOU WILL NEED:
-Root Access (required for joy to touch feature, with apparently must be activated to use the feature that emulates other controllers)
-A Terminal Emulator app or ADB
-SELinux set to "Permissive" (I use the app SELinux Mode Changer)
-The following apps installed:
*USB/BT Joystick Center
*Sixaxis Enabler
-Mouse (any USB or Bluetooth mouse should be fine. I use a logitech K400+ Keyboard With Touchpad)
OR
-Mouse Toggle app
-Powered USB Hub (Only if your mouse is USB)
OPTIONAL: My supplied keymaping file
This is a pretty straightforward process, in all reality. Here are the steps.
1. Install USB/BT Joystick Center. I have included the APK for an older free version of the app, but I would suggest obtaining the latest "Gold" version, which is for sale on Google Play.
2. Open your ADB connection or Terminal Emulator of choice, enter a root shell with "su" and enter the following commands:
Code:
ime enable com.poke64738.usbjoygold/.USBJoyIME
ime set com.poke64738.usbjoygold/.USBJoyIME
OR
Code:
ime enable com.free.usbjoyfree/.USBJoyFreeIME
ime set com.free.usbjoyfree/.USBJoyFreeIME
Depending on if you are using the paid 2019 Gold version, or the free 2018 version, respectively.
Then you may close your ADB or terminal. Honestly I'm not entirely sure this is even needed, since we are going to be using gamepad emulation, but I would say to do it just in case.
3. Install Sixaxis Enabler, open it, and follow the instructions on screen. Allow the app to access the USB Device when prompted
NOTE: Sixaxis Enabler may tell you that your firmware does not support Sixaxis and that the service is stopped. In that case Keep disconnecting the controller and reconnecting it and pressing the PS Button. "Eventually it will say Sixaxis ENABLED Please Try buttons and sticks"
This is NOT a free app and is available for purchase on Google Play.
When you get "Sixaxis ENABLED" the four LEDs will stop blinking and just LED 1 will blink. If you keep getting the not supported message, and your LED 1 blinks, continue because you might still be able to get it to work.
4. Exit Sixaxis Enabler and open USB/BT Joystick Center. For this you will need some sort of mouse functionality.
Check in the upper left of the screen and make sure that the IME switch is orange and says "ON" (this should be the case, as we have already enabled and set the IME in ADB/Terminal)
With your mouse, click the IME switch and it should bring up a little menu. Click on USBJoyIME and the menu will close. This was just to be absolutely sure that the IME was FOR SURE selected.
5.Below the IME switch, there is a oval shaped cluster of buttons that will say "Search, Auto, Norm, HID"
Click "Norm" and then click allow on the prompts to access the USB Device. (if you have multiple devices connected over USB, it will ask for each device. You do NOT need to allow them all if you do not wish, a black notification at the top of the screen will tell you what device it found so you know what the app is requesting access to. I just click allow on all because it doesn't hurt anything)
After it gets trough all the USB devices, it will start a check for bluetooth devices, and will show a prompt with your paired devices on it, you can just click back on your Fire Remote or keyboard.
After a few seconds, a gray square will appear on the screen that says "PS3 USB Controller and LED 1 on your PS3 controller should now be solid. With your mouse, click on the square. A little black text box will say something about loading a keymap file. If you click some buttons on your controller, you should see the little boxes underneath the big gray box blinking orange and white when you press them. CONGRATS! You now have your PS3 controller working on your Fire TV.
Don't be content yet, WE ARENT DONE.
While this is a somewhat functional way to control your Fire TV, I don't find the default settings to be optimal. It seems like I can't rapidly press buttons. I can enter in two or three button presses before it stops accepting input for a moment. Also, despite all the controller buttons working on the test in USB/BT Joystick center, the default keymap is NOT properly configured for the Fire TV, and I was only able to get the D-pad to work outside of Joystick Center.
Instead of fussing around trying to get everything working with the default IME setting, I decided to use the app's built in controller emulation feature to simulate an Xbox 360 controller. (There is also a setting to emulate a PS3 controller, but I figured it would be better to make the system think I'm using a 360 controller, which is officially supported, then a controller that I had to install off of this stuff just to use) So onto Step...
6. With your mouse, go to the upper right and click the switch "J>T"
If you do not Already have SELinux set to Permissive, it will give you a message saying that this must be done. Do so however you want, but as mentioned above, I use the app "SELinux Mode Changer" to achieve this. The app can be found on F-Droid
With SELinux set to Permissive, give USB/BT Joystick Center Superuser rights when prompted, and the switch will turn ON.
Once "J>T" is on, to the left of that you will see the Green "JOY>" switch and a small box next to it that says "IME NAT 360 PS3"
Just click the box until "360" is selected
From here you can use the little boxes underneath the "PS3 USB Controller" box, or just load my keymap file, in order to configure the buttons and sticks properly. If you use my keymap file, down load "PS3to360_JoyPrefsFile_1356_616_0.xml" from the attachments and paste it into the folder for USBJoy in the root of your Fire's internal memory (for me it is called "USBJoyGoldData") then use the little load button and it should appear as "PS3 to 360"
With that out of the way, you are finally DONE! Your Dualshock 3 controller is connected and configured to act as an Xbox 360 controller on your Fire TV and you may now proceed to use it on your games, Emulators, or whatever you want to do with it!
When you are done, just make sure to disable "J>T" with Joystick center before you disconnect the Dualshock, otherwise things will bug out, and if you arent using an alternate launcher with mouse support, you wont be able to re-enter the app to disable it, and will have to reboot the Fire TV.
I would also suggest disabling USBJoyIME when you are not using your controller, as I have noticed that typing with my K400+ keyboard acts strange on some apps, such as Puffin Browser, when it is still enabled.
Code:
ime disable com.poke64738.usbjoygold/.USBJoyIME
OR
Code:
ime disable com.free.usbjoyfree/.USBJoyFreeIME
Feel free to play around with the different gamepad emulation modes, and if you find a better configuration, please do share it on here!

[Guide] Getting and setting up initial control in RetroArch w/o config file

Until now I ran RetroPie on a Raspberry. Now I got a cheap TV box for basically free and was thinking why do I need 2 "boxes" sitting next to the TV? That is how I came across RetroArch. Installation on the TV box is straight forward - also starting. But that is where the fast track ended as I have a "Generic USB Controller". With a bit of luck and playing with the config file I was kind of able moving through the top menu but did not make it to any submenu. Also any USB/bluetooth keyboard that I have was not successful.
The trick is to know that RetroArch seems to be developed for touch screens. OK, give it a try and touch your TV I now have fingerprints on it but no reaction from RetroArch...
Step 1:
Grab any touch screen sensitive device you can get your hands on, e.g. smartphone, tablet, etc.
Download and install TeamViewer Remote Control
Step 2:
Fire up your Android TV box
Download and install TeamViewer Quick Support
IMPORTANT: Download and install the TeamViewer Quick Support Add-On
Step 3:
Start TeamViewer Quick Support on the TV box
Start TeamViewer Remote Control on your mobile/tablet/... and enter the ID from the quick support from your TV box
Agree to and approve to any questions
I could now control my TV box remotely via my 2nd device, started RetroArch and, in there, was able going through all menus and setup my "Generic USB Controller". After saving the setup/config (remotely), I could navigate through the menus as usual by only using the Generic USB Controller.
Note: This does not solve the problem with the controls in the games - in case you have them!
FAQ
Q: After entering the ID for the remote control I cannot connect to the TV box.
A: Install the Quick Support Add-On - that is needed to make the remote control work (at least it was for my case/setup).
Q: I cannot install the Quick Support Add-On.
A: If installation of the Add-On fails or is not possible directly from the app, either download the Add-On as seperate apk or give it a try via the full TeamViewer app.
Q: My controller is now working in RetroArch's menus but not in the games.
A: This is known challenge with RetroArch. My solution was just to get a foot in the door for controlling the menus in RetroArch in case that your controller/keyboard is not recognized by default.

Categories

Resources