Sunday, January 15, 2012

Debug Kindle Fire Application


For Windows users

Follow the above instruction and the adb_usb.ini file is located here:

1. Use a text editor and open the file adb_usb.ini. It's located at c:\Users\[User-Name] \.android\adb_usb.ini.
2. Then add 0x1949 to the end of the file.
3. Next save the file.
4. Next you will need to edit the file android_winusb.inf file. Use a text editor and open up this file 
C:\Program File(x86)\Android\andorid-sdk\extras\google\usb_driver 
(note: if you install your android sdk somewhere else then go to that location). When you installed Android SDK, the USB Driver package will also be there, if not you will have to download it. Note: if you can't edit the file ensure you have write permission to do so.
5.  Under section [Google.NTx86] and [Google.NTamd64] add the following:

;Kindle Fire
%SingleAdbInterface% = USB_Install, USB\VID_1949&PID_0006
%CompositeAdbInterface% = USB_Install, USB\VID_1949&PID_0006&MI_01

6. Now save the and close the file.

When you connect the Kindle Fire to the PC, it will not recognize the device hardware so you will need to install the USB driver. Here's how:

1. Using the USB cable plugin the Kindle Fire to the computer.
2. Open Device Manager from My Computer.
3. Open Other devices on the right pane.
4. Right click Kindle > Update Driver Software.
5. The click on Browse my computer from driver software.
6. Next click on Browse button, and find the file android_winusb.inf at C:\Program Files 
(x86)\Android\andorid-sdk\extras\google\usb_driver. If you install the SDK somewhere else then go to that location. If you come across any driver errors, then download the drivers for Win7 from here. Unzip and point the setup to this directory home.
7. Now click Next.
8. Select Install this driver software anyways. 
9. Now check your Device Manager and see if you could see Android Phones > Android Composite ADB Interface.  
10. Now you can restart the ADB Server to get an update.
11. Go to the folder android-sdk\platform-tools\.
12. Run adb kill-server.
13. Run adb start-server.
14. Run adb devices.


For MAC User

1. From the Home screen tap on the Quick Settings  icon.
2. Next select More.
3. Select Device.
4. Switch on "Allow Installation of Application From Unknown Sources".
5. Next connect the Kindle Fire to the MAC.
6. Then use an editor to open the file ~/.android/adb_usb.ini.
7. Now you will need to add the Vendor ID text "0x1949" at the end of the file.
8. Save the adb_usb.ini file.
9. Then restart the adb server process with this command "adb kill-server" and "abd start-server". This will restart the process and read the new value from the file.
10. Now run "adb devices" to see your device appears.

You may need to have your computer restart to see the changes.

No comments: