Setting Up Your Kindle Fire Tablet for Testing

Introduction

After you've created your Kindle Fire app, you can use Android Debug Bridge (ADB) to connect your Kindle Fire tablet to a development computer for testing and debugging. For more information and instructions on using ADB, see Android Debug Bridge.


Prerequisites

Your development computer must have at least one package of Kindle Fire system images installed, because the package includes the vendor identification needed for ADB to recognize any of the physical Kindle Fire tablets. For information about setting up your development computer and installing the SDK packages, see Setting Up Your Development Environment.

Windows users who previously connected a Kindle Fire tablet without first enabling ADB: Take the following steps to remove the USB device driver and force re-installation of the driver.

  1. Connect your Kindle Fire tablet to the USB port on your development computer.
  2. On the development computer, from the Start menu, right-click Computer, and then click Manage.
  3. In the left pane, under Computer Management, expand System Tools, and then click Device Manager.
  4. In the right pane, expand Portable Devices.
  5. Right-click Kindle and then click Properties.
  6. In the Kindle Properties window, on the Driver tab, click Uninstall, and then Confirm.
  7. Unplug your Kindle Fire tablet from your computer.

Connecting Your Tablet

Enable ADB on your Kindle Fire tablet by doing the following.

Note: The following instructions do not apply to Kindle Fire (1st Generation), where ADB is enabled by default.

  1. On your Kindle Fire tablet, go to Settings.
  2. On a third-generation Kindle Fire tablet, tap Device.
    - or -
    On a second-generation Kindle Fire tablet, tap Security.
  3. Set Enable ADB to On, and then accept the pop-up warning message.
    Note: As a security precaution, you should set Enable ADB to Off when you are not trying to connect to the Kindle Fire tablet to your development computer.

Windows

Perform the following steps if your development computer runs Windows.

Important: Make sure that ADB is enabled on your Kindle Fire tablet. For the USB driver to install correctly, Windows must recognize the device as Android Composite ADB Interface during installation. If ADB is not enabled, Windows instead recognizes the device as Portable Devices.

Do the following to install the Kindle Fire USB driver:

  1. In your Android SDK directory, at \extras\amazon\kindle_fire_usb_driver, run KindleDrivers.exe, and then follow the instructions on the screen.
  2. Connect your Kindle Fire tablet to a USB port on your development computer.
  3. From Start, click Control Panel, and then select Device Manager.
  4. In Device Manager, under Kindle Fire, verify that the device appears as Android Composite ADB Interface.

Do the following to detect your Kindle Fire tablet through ADB:

  1. Open a command prompt window.
  2. Change directory to your Android SDK platform-tools directory.
  3. Run the following commands and confirm that the serial number for your Kindle Fire tablet appears in the list of devices.
    adb kill-server
    adb start-server
    adb devices
    

If the serial number does not appear after running adb devices, do the following:

  1. Change directory to your Android SDK tools directory.
  2. Run the following command:
    android update adb
    
  3. Change directory back to your Android SDK platform-tools directory.
  4. Run the following commands:
    adb kill-server
    adb start-server
    adb devices
    

OS X

Perform the following steps if your development computer runs OS X.

  1. Connect your Kindle Fire tablet to a USB port on your development computer.
  2. Open a terminal shell and navigate to your Android SDK tools directory.
  3. Run the following command to update ADB.

    ./android update adb
    
  4. In the terminal shell, navigate to your Android SDK platform-tools directory.
  5. Run the following commands and confirm that the serial number for your Kindle Fire tablet appears in the list of devices.
    ./adb kill-server
    ./adb start-server
    ./adb devices
    

Note: For either Windows or OS X, if your Kindle Fire tablet is still not detected, you may need to reboot your development computer or log out and back in for the changes to take effect.


Next Steps

Now that your Kindle Fire tablet is connected to your development computer, you can test an app on the tablet. For more information, see Testing Your App on a Kindle Fire Emulator or Tablet.


Return to Kindle Fire
Unavailable During Maintenance