HOW-TO:Install Kodi on Fire TV: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
Line 19: Line 19:
=== Setup ADB on Your Host ===
=== Setup ADB on Your Host ===
'''Note:''' Your host must be connected to the same network as your Fire TV.
'''Note:''' Your host must be connected to the same network as your Fire TV.
==== Windows ====
{{Collapse top}}
# Download and unzip the ADB Utility for Windows from http://www.androidfilehost.com/?fid=23610159112654916


# Find the extracted ''winadb'' folder containing adb.exe, and copy the complete folder path
{{ADB setup}}
# Add the copied path to your PATH environmental variable in Windows System Properties
# Follow the below instructions to complete the installation of XBMC
{{Collapse bottom}}
 
==== OS X ====
{{Collapse top}}
# Download and unzip the ADB Utility for OS X from http://www.androidfilehost.com/?fid=23610159112654915
# Open a Terminal prompt and navigate (CD) to the directory with the extracted ''adb'' file
# Run the following command to check your ''PATH'':
#:<code>>echo $PATH</code>
# Move the file ''adb'' to a directory in your path, using a command similar to the ones below:
#:Examples:
#:<code>>sudo mv adb /usr/bin/</code>
#:<code>>sudo mv adb /usr/local/bin/</code>
#:<code>>sudo mv adb /directory/in/your/path/</code>
# When done, typing <code>adb</code> at a Terminal prompt will execute the ADB program. If typing <code>adb</code> in the Terminal does nothing, check your ''PATH'' and also check the permissions of ''adb''. You can make sure ''adb'' is executable by typing the command <code>sudo chmod +x /path/to/file/adb</code>.
{{Collapse bottom}}
 
==== Linux ====
{{Collapse top}}
# Download and unzip the ADB Utility for Linux from http://www.androidfilehost.com/?fid=23610159112654911
 
# Open a Terminal prompt and navigate (CD) to the directory with the extracted ''adb'' file
# Run the following command to check your ''PATH'':
#:<code>>echo $PATH</code>
# Move the file ''adb'' to a directory in your path, using a command similar to the ones below:
#:Examples:
#:<code>>sudo mv adb /usr/bin/</code>
#:<code>>sudo mv adb /usr/local/bin/</code>
#:<code>>sudo mv adb /directory/in/your/path/</code>
# When done, typing <code>adb</code> at a Terminal prompt will execute the ADB program. If typing <code>adb</code> in the Terminal does nothing, check your ''PATH'' and also check the permissions of ''adb''. You can make sure ''adb'' is executable by typing the command <code>sudo chmod +x /path/to/file/adb</code>.
 
'''Note:''' Linux adb is a 32-bit dynamically linked program. In order to run under a 64-bit Linux, 32-bit support is required. You may need to install the ''lib6:i386'' (the 32-bit base library support package) depending on your Linux.
{{Collapse bottom}}
 
==== Android ====
{{Collapse top}}
The ADB utility is built into Android.  However, you will need to install a Terminal Emulator app.
# Open Google Play Store
# Install [https://play.google.com/store/apps/details?id=jackpal.androidterm Android Terminal Emulator]
# Follow the below instructions to complete the installation of XBMC
{{Collapse bottom}}


=== Enable USB Debugging on the Fire TV ===
=== Enable USB Debugging on the Fire TV ===

Revision as of 22:55, 18 January 2015

adbFire (Win/Mac/Linux)

adbFire is a companion program for FireTV and Android XBMC & forks. It allows you to sideload XBMC (and other apps) without the bother of downloading the Android SDK and other tools. Additionally, it allows you to copy files to and from XBMC, backup XBMC, root the FireTV, mount USB drives and more.

Download website link: http://jocala.com/adbfire.html

Amazon FireTV Utility App (Windows)

A Windows based GUI app to easily sideload your apks to the Amazon FTV. Most of the wiki has been automated into this app so anyone that doesn’t want to mess around with Shell commands will find this helpful.

Download website link: http://goo.gl/woVu0s Backup website link: http://goo.gl/lUNWaT

ADB command line

General Steps

  1. Setup the ADB Utility via OS-specific instructions below, or install the Android SDK for your platform: https://developer.android.com/sdk/index.html
  2. Follow these instructions to connect ADB to your Amazon Fire TV: https://developer.amazon.com/sdk/asb/connect-adb.html
  3. Follow these instructions to install the XBMC app onto the Fire TV (using the ADB tool): https://developer.amazon.com/sdk/asb/app-install.html

Setup ADB on Your Host

Note: Your host must be connected to the same network as your Fire TV.

Template:ADB setup

Enable USB Debugging on the Fire TV

  1. From the Fire TV Home screen, select Settings
  2. Go to System -> Developer Options
  3. Enable both the ADB Debugging and the Apps from Unknown Sources options.
  4. Go to System -> About -> Network, and take note of the Fire TV's IP address

Install Kodi to the Fire TV

Note: If your APK file name contains spaces, make sure you put quotes around it in the adb commands. On OS X and Linux, you may need to prepend ./ to the adb commands.

  1. On your host (PC or other Android device), download your desired Kodi APK
  2. Open a Command Prompt (Windows), Terminal (OS X/Linux), or Terminal Emulator app (Android)
  3. Navigate (CD) to the directory with your Kodi APK (In Terminal Emulator on Android you only need to run the adb commands)
  4. Run the following commands
    >adb kill-server
    >adb start-server
    >adb connect <ip-address-of-fire-tv>
  5. ADB is connected when it reports the message "connected to <ip-address-of-fire-tv>:<port>"
  6. Run the following command
    >adb install <apk-file-name>
  7. Installation is complete when it reports the message "success"

(Note: For Android you need to type in the full path. e.g. >adb install /sdcard/Download/apk-file-name.apk)

Launch Kodi on the Fire TV

  1. From the Fire TV Home screen, select Settings
  2. Select Applications
  3. Find and select your Kodi installation (it may be named "XBMC" or "SPMC")
  4. Select Launch Application

Note: Users have reported that you can autostart Kodi after boot using an Android automation apps such as Tasker, AutomateIt, or Llama. Alternately, you can use Autopilot to autoboot to Kodi.

Launching Kodi from Fire TV Homescreen: You can also have Llama (and probably others) launch Kodi when a native Fire TV app like Flixter is launched from the Fire TV homescreen. Some apps work better than others.

Upgrading Kodi

Kodi can be upgraded through ADB without losing your settings. To do this, you must use a newer version of the package already installed on the machine.

  1. Download the package to your machine
  2. Make sure ADB is connected to the Fire TV
  3. Run adb install -r <apk-file-name>
  4. Installation is complete when it reports the message "Success"

Kodi will still go through the "first run" screen the first time it is launched but your settings will remain intact.

Downgrading Kodi

If you wish to downgrade your version of Kodi (because you installed a test version that didn't work properly, for example) and keep your settings, the following commands will allow you to do so.

adb uninstall -k org.xbmc.xbmc
adb install <apk-file-name>

If you are downgrading using an Android device, you will need to use the "shell" command.

adb shell pm uninstall -k org.xbmc.xbmc