[Android Software Development] New_Guy777:
ADB in Linux

Help!

I'm trying to help a friend with his borked Kindle Fire. We tried to handle this in Windows, but it turns out that my friend's Fire has a difference hardware ID than most, and the drivers didn't work. The developer who was helping me out suggested I try Ubuntu, and I went through the method from a few posts back. I am in Recovery (TWRP, not CWM, however, TWRP has ADB commands). Here is a log showing my progress.

ubuntu@ubuntu:~$ cd android-sdk-linux/platform-tools
ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ /.adb devices
bash: /.adb: No such file or directory
ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached

ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb kill-server
ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached

ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ isusb
No command 'isusb' found, did you mean:
Command 'lsusb' from package 'usbutils' (main)
isusb: command not found
ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 058f:6331 Alcor Micro Corp. SD/MMC/MS Card Reader
ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ cd
ubuntu@ubuntu:~$ sudo gedit /etc/udev/rules.d/99-android.rules

(gedit:7508): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.R9I0AW': No such file or directory

(gedit:7508): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(gedit:7508): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.5H8NAW': No such file or directory

(gedit:7508): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(gedit:7508): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.TJZ1AW': No such file or directory

(gedit:7508): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
ubuntu@ubuntu:~$ sudo service udev restart
udev start/running, process 7530
ubuntu@ubuntu:~$ cd android-sdk-linux/platform-tools
ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices
List of devices attached

ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ cd
ubuntu@ubuntu:~$ sudo gedit /etc/udev/rules.d/99-android.rules

(gedit:7533): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.UQ5JAW': No such file or directory

(gedit:7533): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(gedit:7533): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.OV6PAW': No such file or directory

(gedit:7533): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
ubuntu@ubuntu:~$ sudo service udev restart
udev start/running, process 7545
ubuntu@ubuntu:~$ cd android-sdk-linux/platform-tools
ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices
List of devices attached

ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb kill-server
ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ cd
ubuntu@ubuntu:~$ cd android-sdk-linux/platform-tools
ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices
List of devices attached

ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ cd
ubuntu@ubuntu:~$ sudo gedit /etc/udev/rules.d/99-android.rules

(gedit:7582): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.10PJAW': No such file or directory

(gedit:7582): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(gedit:7582): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.XI3QAW': No such file or directory

(gedit:7582): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
ubuntu@ubuntu:~$ sudo service udev restart
udev start/running, process 7594
ubuntu@ubuntu:~$ cd android-sdk-linux/platform-tools
ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb kill-server
ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached

ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices
List of devices attached

ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb kill-server
ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached

ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb kill-server
ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached

ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices
List of devices attached
3833CA96041E00EC	device

ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices
List of devices attached

ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb kill-server
ubuntu@ubuntu:~/android-sdk-linux/platform-tools$ ./adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached

ubuntu@ubuntu:~/android-sdk-linux/platform-tools$

I went through the Android Rules twice because the lsusb shows two devices under the Kindle Fire heading:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Please note, I plugged my phone in to test ADB, and that worked. So, ignore the ADB Devices with actual text under it. The others were all the Kindle Fire Table, and all were blank. Any help/pointers of where I went wrong would be greatly appreciated!

EDIT: I think now that maybe those two Linux Foundation lines were from the SD Card in the reader, as I am booting Ubuntu through the USB Drive (SD Card Reader). So, if I'm reading this correctly, the lsusb doesn't show the Kindle Fire as plugged in at all. If correct, any suggestions? If I'm wrong, please let me know, and if possible, how I can go right! Thanks!