How do I connect to Kindle Fire for development?

柔情痞子 提交于 2019-11-28 17:31:56
Josh Metcalfe

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.

Yang Tang

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.

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.

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.

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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!