26

What do I need to do to use my Kindle Fire for android development? (Specifically for testing my apps on the device.)

Josh Metcalfe
  • 2,175
  • 2
  • 24
  • 34
  • In addition to the below, for me it was necessary to reboot my computer to get it to recognize the new USB settings. I resisted doing this for quite awhile as it should ideally be sufficient to restart the particular service(s). If all else fails, try that. – MarkHu Jan 09 '13 at 18:20

6 Answers6

45

You can find the instructions for connecting Kindle Fire to the ADB in a PDF of instructions provided by Amazon.

Paraphrased from the document:

  1. Edit the adb_usb.ini file (located in ~/.android/)

  2. Add the lines:

    0x1949
    0x0006
    
  3. Save the file.

  4. Run these commands to restart adb:

    adb kill-server
    adb start-server 
    adb devices  
    

NOTE: For Windows 7 users you need to download an additional driver.

CodesInChaos
  • 106,488
  • 23
  • 218
  • 262
Josh Metcalfe
  • 2,175
  • 2
  • 24
  • 34
  • 1
    It's perfectly ok and encouraged to answer your own questions to document things *(just for anyone who doesn't know)*. I won't upvote this though since [answers which only contain a link are bad](http://meta.stackexchange.com/questions/8231/are-answers-that-just-contain-links-elsewhere-really-good-answers). This answer gets useless when the link goes down. Which is probably the time people start searching for docs how to actually do that on alternative sources. –  Nov 16 '11 at 12:22
  • @alextsc Thanks for the comment. I've updated the answer to include the necessary changes attempting to cut out the verbosity from the linked document. – Josh Metcalfe Nov 16 '11 at 15:38
16

Linux uses a different way to set up the device. According to Using Hardware Devices, you need to set up your Linux system as follows:

  1. Edit /etc/udev/rules.d/51-android.rules as root, and add the following line (create this file if it does not exist):

    SUBSYSTEM=="usb", ATTR{idVendor}=="1949", MODE="0666"
    
  2. Change the permission of this file by executing the following command as root:

    chmod a+r /etc/udev/rules.d/51-android.rules
    
  3. Reload the rules by executing the following command as root:

    udevadm control --reload-rules
    
  4. Run these commands to restart adb:

    adb kill-server
    adb devices
    

If everything is ok, you will see your Kindle Fire listed as a device.

dwerner
  • 6,462
  • 4
  • 30
  • 44
Yang Tang
  • 344
  • 1
  • 6
  • This ain't working... I did exactly what you said. My KindleFire is still not showing up in the list of attached devices. – Sudarshan Bhat Feb 23 '12 at 06:42
  • just used also adb start-server before adb devices and everything worked fine on ubuntu. thanks! – CoPLaS Jan 19 '13 at 20:55
5

I was also looking forward how to connect Kindle on the ADB, so what I had to do is:

Go to Settings->Security and Enable ADB.

ViliusK
  • 11,345
  • 4
  • 67
  • 71
0

I use a Mac, this probably works similarly from a Windows box.

First I configured the Kindle Fire to allow sideloaded apps. This isn't the default behavior, you have to click a checkbox in the settings.

From the Fire, I went to the app store and downloaded a DropBox app (free.)

From my dev machine, I registered on the DropBox website (also free.)

This gives you a dropbox folder on your dev box that will be synced automagically to your dropbox folder on the web.

Then, to develop, I compile the app to make a new apk, drag it to the dropbox folder, and use the DropBox app on the Fire fetch the apk file. It loads with the click of a button. It takes about 15 seconds tops to get the apk to the Fire. I don't need any extra cables, etc.

Tony Ennis
  • 12,000
  • 7
  • 52
  • 73
0

You must add a user defined site in Android SDK Manager:

Launch Android SDK Manager >> Tools >> Manager Add-on Site >> User defined>> add http://kindle-sdk.s3.amazonaws.com/addon.xml

Then download the Amazon Kindle drivers from Android SDK Manager

Then then enable ADB from kindle settings.

Settings >> Device >> Enable ADB

And run \extras\amazon\kindle_fire_usb_driver, run KindleDrivers.exe

More info

124697
  • 22,097
  • 68
  • 188
  • 315
0

Follow the PDF

In eclipse go to android SDK manager, select Tools -> Manage Add-on Sites -> select User Defined sites.

Select New and add the url as http://kindle-sdk.s3.amazonaws.com/addon.xml.

After adding that go to packages->Extras

Download Kindle Fire USB Driver.

Go to android SDK folder->amazon->install the drivers.

Last step: You can see the device at In Device Manager, under Kindle Fire, verify that the device appears as Android Composite ADB Interface.

Satheesh Guduri
  • 353
  • 4
  • 8