[Tutorial] ADB on (X)ubuntu - Vega General

You have a problem with ADB on your (X)Ubuntu? "ADB not found", "No Device connected" even you set USB debugging?
I got the same problems when I started to play around with Xubuntu.
So I wrote a tutorial how to get ADB running properly under my Xubuntu installation.
Maybe it helps some people.
ADB on (X)ubuntu

I've enabled "USB debugging" under Settings-->Applications-->Development.
And when I directly connect the USB cable to my Ubuntu machine "lsusb" shows nothing.
I also get no USB icon in notification area on my tablet.
What am I doing wrong?!
Please help!

Worked beautifully
Thanks for the adb tutorial. I am running xubuntu on an old Dell Inspiron 1318.
Some tips I found help:
1. I used leafpad to create the 51_android... File
2. I added both "0x1949" and "1949" vendor IDs
3. As soon as I did this adb recognized my device in TWRP with a regular usb cable.
4. I had to execute each adb command with the "./" prefix, state such as "./adb devices"
5. I side loaded cm10 zip and rebooted in TWRP
6. Then I side loaded gapps zip and rebooted
Voila!
Thanks Hascode, PowerPoint 45, and others!

Related

adb devices not detecting MyTouch 3G

i'm trying to create a gold card for my MyTouch 3G and i'm following the instructions from www.theunlockr.com
i am running Windows 7 RC1 64-bit and have installed the 64 bit usb driver from "android-sdk-windows-1.5_r3"
i executed the following step:
Type the following into the command dos prompt on the computer (the black screen with white letters that just opened) while the phone is connected through USB, hitting enter at the end of the line:
cd\
cd androidsdk\tools\
fastboot devices
i verified that it worked as it showed my serial number XXXXXXXXXXXX fastboot
proceeding ahead, i got to the step where i had to execute the following command:
cd\
cd\AndroidSDK\tools\
adb devices
it simply states "List of devices attached" and nothing more. i have verified that i checked USB debugging.
has anybody had similar issues?
i fixed the issue. d'oh!
i downloaded USBDeview and ran it as administrator. i uninstalled all htc android related drivers and unplugged the phone from the PC. then i plugged the phone back in via USB cable and windows detected & installed the drivers automatically.
afterwards, i ran the adb devices command again and it showed my device was attached.
tuffCookie said:
i'm trying to create a gold card for my MyTouch 3G and i'm following the instructions from www.theunlockr.com
i am running Windows 7 RC1 64-bit and have installed the 64 bit usb driver from "android-sdk-windows-1.5_r3"
i executed the following step:
Type the following into the command dos prompt on the computer (the black screen with white letters that just opened) while the phone is connected through USB, hitting enter at the end of the line:
cd\
cd androidsdk\tools\
fastboot devices
i verified that it worked as it showed my serial number XXXXXXXXXXXX fastboot
proceeding ahead, i got to the step where i had to execute the following command:
cd\
cd\AndroidSDK\tools\
adb devices
it simply states "List of devices attached" and nothing more. i have verified that i checked USB debugging.
has anybody had similar issues?
Click to expand...
Click to collapse
i am having the same issue with my HTC Dream
tuffCookie said:
i fixed the issue. d'oh!
i downloaded USBDeview and ran it as administrator. i uninstalled all htc android related drivers and unplugged the phone from the PC. then i plugged the phone back in via USB cable and windows detected & installed the drivers automatically.
afterwards, i ran the adb devices command again and it showed my device was attached.
Click to expand...
Click to collapse
This worked for me ... interesting how you have to Uninstall HTC drivers for an HTC device to work!

[Q] ADB not showing device

Hi, my problem is this: my phone is recognized as an ADB device but I cannot see it under adb devices.
Currently running PA RC2 3.99
Fastboot and Recovery do recognize it but ADB does not.
I have the drivers from here installed them as described in the instructions with uninstalling + deleting the old ones and rebooting.
I also have the most updated version of ADB from Android SDK.
One weird thing is that if i uninstall + delete the current drivers and try to install the ones i got from the SDK and not from the thread I mentioned then it does not install them. So maybe that is where my problem...
Any advice??
Thanks in advance.
akrabi said:
Hi, my problem is this: my phone is recognized as an ADB device but I cannot see it under adb devices.
Currently running PA RC2 3.99
Fastboot and Recovery do recognize it but ADB does not.
I have the drivers from here installed them as described in the instructions with uninstalling + deleting the old ones and rebooting.
I also have the most updated version of ADB from Android SDK.
One weird thing is that if i uninstall + delete the current drivers and try to install the ones i got from the SDK and not from the thread I mentioned then it does not install them. So maybe that is where my problem...
Any advice??
Thanks in advance.
Click to expand...
Click to collapse
Did you enable usb debugging?
Also check that you have an option selected under Settings>Storage>USB Computer connection, not having either MTP or PTP selected there will also bork adb.
If you still can't get it to work, try Koush's universal drivers: Link
still not working...
1. Yes, usb debugging is on.......
2. Already tried toggling MTP/PTP/None - When on MTP driver installs successfully but I cannot see the device under adb devices. on the other two options (PTP/None) I am unable to install the driver (tried both the ones on XDA and the ones from MDK)
3. Tried Koush's universal driver - on PTP/None still not able to install drivers. On MTP didn't do much except for changing device name from Android ADB Device to Google Nexus ADB Interface
Thanks for all the quick replies,
Any other suggestions???
akrabi said:
1. Yes, usb debugging is on.......
2. Already tried toggling MTP/PTP/None - When on MTP driver installs successfully but I cannot see the device under adb devices. on the other two options (PTP/None) I am unable to install the driver (tried both the ones on XDA and the ones from MDK)
3. Tried Koush's universal driver - on PTP/None still not able to install drivers. On MTP didn't do much except for changing device name from Android ADB Device to Google Nexus ADB Interface
Thanks for all the quick replies,
Any other suggestions???
Click to expand...
Click to collapse
what does it say when you issue the "adb devices" command? Please write it out here so we can help you. Does it say "device offline"? If yes, then your device is not registered by digital fingerprint by Android SDK.
taodan said:
what does it say when you issue the "adb devices" command? Please write it out here so we can help you. Does it say "device offline"? If yes, then your device is not registered by digital fingerprint by Android SDK.
Click to expand...
Click to collapse
Ok, so I'm with my Nexus connected as an MTP device, with the driver from XDA installed (see attached image), USB Debugging enabled:
Code:
C:\>adb kill-server
C:\>adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
C:\>adb devices
List of devices attached
C:\>
Any advice???
Anyone has any advice??
I really have not idea what to do. Tried everything...
Thanks
Works on a different computer
I've connected the phone to my borther's PC and installed the drivers from the SDK. It worked without any problem.
I really can't figure out why it's not working on my laptop.
[Solved]
OK...
So as I said before I tried connecting when PTP is checked and when neither PTP nor MTP are checked and on both couldn't install the drivers properly (neither from xda nor from sdk).
What worked for me:
1. Uncheck both PTP & MTP
2. Device Manager -> Nexus 4 -> Update Driver Software -> Browse my computer for driver software
3. Now instead of browsing to the location I went to "Let me pick from a list..."
4. It should show a list of devices/manufacturers. Clicked "Show All Devices"
5. On the bottom right click "Have a disk"
6. Point to the android_winusb.inf file from Android SDK
7. Choose Android ADB Interface from the list
8. Let driver install
Click to expand...
Click to collapse
Hoped it will help someone.
Thanks to everyone that tried to help. :good:

Can't get RSA Fingerprint dialog to popup

Hi all,
I recently bought a OPT and wanted to root it, but I can't get the RSA Fingerprint dialog to appear.
What I've done:
Installed Android SDK and platform tools and all that stuff according to the guide in the general section
Installed Koush's universal drivers and also specifically installed the Oneplus drivers
Rebooted rebooted rebooted both my computer and phone multiple times
Revoked USB authorization multiple times (according to some this works, but not for me)
Tried both MTP and PTP
Switched off and on developer options and USB Debugging
Factory reset my phone
When I start a command prompt in the platform tools directory and execute "adb version", " Andoid Debug Bridge version 1.0.32 Revision eac51f2bb6a8-android" pops up, so I think my ADB is working properly. But when I execute "ADB devices" the ADB server starts up and then nothing is listed under connected devices.
I'm using Windows 10. Any help would be greatly appreciated. Thanks!
This might work
This didn't work for me, but give it a try.
http://forum.xda-developers.com/oneplus-2/general/guide-make-oneplus-2-adb-devices-t3218332

[Partialy Solved] G5 plus rooted, and now cannt use ADB.

Phone is rooted, TWRP installed, (almost) everything is OK.
What is not OK is that now I cannt ADB connect. The "Allow USB debugging" window with the RSA key does not open at all.
Another thing I've noted - the "Revoke USB debugging authorizations" option in the Developer options - does not exist.
Any ideas as to how to solve this ?
I'm using linux (Arch, 64 bit). Another phone (an older, stock Moto G2) connect with ADB without any problem - so this is not a problem on the computer side, nor a USB cable problem.
Thanks.
Ben
Solved (almost).
After more googling I've found a solution on stackoverflow (as a new user I cannt insert a link) :
Code:
Reboot your phone into recovery mode.
Connect it to your computer.
Open the terminal and type:
cd ~/.android
adb push adbkey.pub /data/misc/adb/adb_keys
All done! Just adb shell reboot and feel the power!
Now the G5+ is recognized as a "device" with adb.
It's a partial solution because the "Revoke USB debugging authorizations" option is still missing.
Hope this helps future generations
ben-moto said:
After more googling I've found a solution on stackoverflow (as a new user I cannt insert a link) :
Code:
Reboot your phone into recovery mode.
Connect it to your computer.
Open the terminal and type:
cd ~/.android
adb push adbkey.pub /data/misc/adb/adb_keys
All done! Just adb shell reboot and feel the power!
Now the G5+ is recognized as a "device" with adb.
It's a partial solution because the "Revoke USB debugging authorizations" option is still missing.
Hope this helps future generations
Click to expand...
Click to collapse
+1 to this solution. I have a very similar problem on my HTC One M8. No prompt, also missing the "Revoke USB debugging authorizations" option.
Between this thread, a few others, and that same stackoverflow answer, I was able to come up with a couple of solutions:
[SOLVED] ADB 'unauthorized', no RSA prompt, and no 'Revoke USB debugging' option
I'm experiencing this now, except I still have my "revoke USB auth" option under Dev Options.
I'll try the adb push method now...

OnePlus 5 fastboot won't recognize in Windows 10

Y cant i get fastboot drivers to read in Windows 10. I have updated the software to the latest update. Developer options are turned on. USB configuration is set to file transfer. In a regular state Windows 10 readds the phone and I can access the contents of the phone. I opened a power shell (regular and as admin) I typed "adb devices" it reads. (I have enabled advanced reboot.) I use the command "adb reboot-bootloader" in boots to fastboot. Now it loses connection. I Open the Run dialog box by pressing Windows Key+R. Type “devmgmt.msc” besides Android is a yellow triangle, then click Update Driver.A new window will pop up. Select the ‘Browse my computer for driver software’ option. I copied the drivers from the OnePlus 5 folder. Try to install but nothing. This is where in stuck. Please help. Thanks
trulane said:
Y cant i get fastboot drivers to read in Windows 10. I have updated the software to the latest update. Developer options are turned on. USB configuration is set to file transfer. In a regular state Windows 10 readds the phone and I can access the contents of the phone. I opened a power shell (regular and as admin) I typed "adb devices" it reads. (I have enabled advanced reboot.) I use the command "adb reboot-bootloader" in boots to fastboot. Now it loses connection. I Open the Run dialog box by pressing Windows Key+R. Type “devmgmt.msc” besides Android is a yellow triangle, then click Update Driver.A new window will pop up. Select the ‘Browse my computer for driver software’ option. I copied the drivers from the OnePlus 5 folder. Try to install but nothing. This is where in stuck. Please help. Thanks
Click to expand...
Click to collapse
Hello, please use the drivers provided here if not tried yet https://forum.xda-developers.com/on...k-bootloader-flash-twrp-t3624877/post72748916
Thanks that's the guide I used 2 flash, n install magisk. I jus used one of the options that was listed on the computer, I was a random Google drivers. Then it lit up. Thanks 4 the guide, it was very helpful
Done

Categories

Resources