[Q] Andriod 4.2.2 adb on linux - Nexus 4 Q&A, Help & Troubleshooting

Hi,
Need latest adb and fastboot under linux which works for andriod 4.2.2. Whenever i tried to connect it says. I solved on windows by downloading the latest adb from xda site.
List of devices attached
0062bdd0d056b091 offline
Regards,
Lokesh

lokeshv said:
Hi,
Need latest adb and fastboot under linux which works for andriod 4.2.2. Whenever i tried to connect it says. I solved on windows by downloading the latest adb from xda site.
List of devices attached
0062bdd0d056b091 offline
Regards,
Lokesh
Click to expand...
Click to collapse
Same issue, any help would be great... the sdk says up to date.

I've attached the adb and fastboot binaries from the latest Android SDK for Linux. Also make sure you check the phone for the popup to confirm adding the PC's signature to the device's whitelist.

I assume you're using Ubuntu in which case android-tools is in the Ubuntu Repository for 12.10.
Code:
sudo apt-get install android-tools-adb android-tools-fastboot
If you want a more update ADB and Fastboot use this ppa http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html
I have the one from Ubuntu repository installed on 13.04 and it works fine with my 4.2.2 devices.
Also, like tuxdude said, make sure you have your PC whitelisted so it is able to connect via adb. New security feature in 4.2.2

Try disabling and re-enabling usb debugging while plugged in. It's the only way i got the rsa verification on osx, which before i had the offline device output message.

I had a same problem, and I found the solution.
If the adb the newest, and RSA windows doesn't appear on phone, check the .android directory (in your Home directory) ownership and permission. Mine was wrong, root was the owner.

Related

ADB does not find device

Hi all,
I've searched the forums (honestly), but I can't find an answer to my problem.
I have a Vodafone branded 32B phone.
I installed the AndroidSDK as supposed to, added the path, made the phone root, booted into the recovery console using fastboot and flashed my phone with different operating systems... but during all this time I hever got ADB to work.
Whatever I do, adb never finds the phone. Fastboot works and finds it, when it's in fastboot mode, but ADB never. So, I can't permanently install the recovery console nor do any of the other funky stuff.
ADB doesn't work when the phone is in fastboot mode nor normally operating. I have USB Debugging turned on. The phone works normally and I can access the SDCard just fine.
Any help?
Suggestion.
Look into purchasing a G1 to be kept as a spare and used for development. That's what I've done with my G1. GParted is within most recovery images nowadays, therefore you can do most anything there, well...important functions that is. Keep that in mind.
You might need to uninstall the driver that recognizes your phone, then manually install the updated driver.
Reignzone said:
You might need to uninstall the driver that recognizes your phone, then manually install the updated driver.
Click to expand...
Click to collapse
that's what i had to do to get it to recognise my phone.
i'm pretty sure the driver came with SDK. either way i've attached the one i used.
go into device manager and update the driver it's currently using with the attached one.
Incorrect driver.
It should be the 1st driver listed in the Android SDK file.
As far as I know, you could also choose to push ADB to your system32 file folder under the C: drive in your computer. That is if you're using a Windows machine.
just a thought
Are you on windows or linux? If you're in ubuntu try sudo adb ... the default unprivilaged user doesnt automatically have access to the device.
If you're in Windows I would uninstall the Android Phone device in device manager and reboot with the phone disconnected. Then connect it and install the usb driver from the sdk when prompted. Might also pay to download the sdk again.
Install HTC Sync
Another known way to fix the issue is to download and install HTC Sync http://www.htc.com/au/SupportViewNews.aspx?dl_id=573&news_id=169
This seems to install the correct drivers
For more info check the Wiki:
http://wiki.xda-developers.com/index.php?pagename=HTC_Sapphire_Hacking#sec02
Hey Guys,
Forgot to mention I'm on Windows Vista 64 bits.
That last suggestion did the trick. I went to the site and downloaded the HTCDriverUpdate_Vista_64bits.exe, and within seconds I had an ADB connection.
Thanks for your help!

4.2.2 adb device offline

I have fresh installed N7 3g 4.2.2
adb devices show me "device offline" on Linux.
Do anybody help me solve?
AW: 4.2.2 adb device offline
It's a New security feature: in your device a popup with a hash key should be shown asking you whether you would allow the PC to connect to your device. After accepting that, the device can be accessed from the PC.
Sent from my Nexus 7 using xda app-developers app
AndDiSa said:
It's a New security feature: in your device a popup with a hash key should be shown asking you whether you would allow the PC to connect to your device. After accepting that, the device can be accessed from the PC.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Thank you for answer. But I don't see popup window.
I install TWRP. Then in recovery mode install root access.
Now I can use local shell via android terminal with su.
Code:
setprop ro.adb.secure 0
getprop ro.adb.secure
1
How to change this property?
seting in /system/build.prop didn't help
Solved. Latest adb installed. Popup fingerprint window appeared.
svs57 said:
Solved. Latest adb installed. Popup fingerprint window appeared.
Click to expand...
Click to collapse
sorry for noob question but how you update your adb?
Yeh how do you update adb, is it through sdk manager
Sent from my Nexus 7 using XDA Premium HD app
azfarmiera said:
sorry for noob question but how you update your adb?
Click to expand...
Click to collapse
Download the android adb fastboot files in this thread link and if usb debugging is enabled and you connect your phone to you computer you should get a pop-up on your phone. It worked for me
http://forum.xda-developers.com/showthread.php?t=2144709
Also I think I opened the fastboot.exe and adb.exe files too
I couldn't update through SDK manager, t just kept popping alert that I need dependant lib, so I just uninstalled whole SDK and installed again, worked like a charm.
azfarmiera said:
sorry for noob question but how you update your adb?
Click to expand...
Click to collapse
To update ADB use SDK Manager.
For some reason the SDK Manager does not automatically show the new release versions of Android SDK Tools and Android Platform-Tools, so if the versions of your Android SDK Tools and/or Android Platform-Tools are respectively older than 21.1 and 16.0.1, you will need to first delete them then reload the SDK Manager to get their new release versions to be displayed and available for installation.
Also, it appears that Android Support Libraries (under Extra) is also required for ADB to work, so you should install it as well.
Also, to get ADB-over-WiFi to work, first use ADB-over-USB to the same given PC/Laptop and grant access with "always" box checked.
digixmax said:
To update ADB use SDK Manager.
For some reason the SDK Manager does not automatically show the new release versions of Android SDK Tools and Android Platform-Tools, so if the versions of your Android SDK Tools and/or Android Platform-Tools are respectively older than 21.1 and 16.0.1, you will need to first delete them then reload the SDK Manager to get their new release versions to be displayed and available for installation.
Also, it appears that Android Support Libraries (under Extra) is also required for ADB to work, so you should install it as well.
Also, to get ADB-over-WiFi to work, first use ADB-over-USB to the same given PC/Laptop and grant access with "always" box checked.
Click to expand...
Click to collapse
So is version 21.1 and 16.0.1 the latest of their builds? And if I install those, I will not have a problem with the adb being offline?
Leonhan said:
So is version 21.1 and 16.0.1 the latest of their builds? And if I install those, I will not have a problem with the adb being offline?
Click to expand...
Click to collapse
I use Android Debug Bridge version 1.0.31.
http://developer.android.com/sdk/index.html
http://dl.google.com/android/adt/adt-bundle-linux-x86.zip
Leonhan said:
So is version 21.1 and 16.0.1 the latest of their builds? And if I install those, I will not have a problem with the adb being offline?
Click to expand...
Click to collapse
They are the latest version and solved the problem for me.
Sent from my Nexus 7 using XDA Premium HD app

[Q] Working with ADB & Fastboot

Has anyone gotten this to work? When I type ADB devices, I get:
Code:
????????? no permissions
I rebooted into fastboot with no luck either. Except now ADB doesn't even pick up any devices. And yes, I enabled USB debug mode and unauthorized sources.
Thanks!
feered said:
Has anyone gotten this to work? When I type ADB devices, I get:
Code:
????????? no permissions
I rebooted into fastboot with no luck either. Except now ADB doesn't even pick up any devices. And yes, I enabled USB debug mode and unauthorized sources.
Thanks!
Click to expand...
Click to collapse
I'd guess you are using an older version of the toolkit. Try downloading the latest SDK and using it to see if that helps (it'll also update to the latest drivers). Good luck.
feered said:
Has anyone gotten this to work? When I type ADB devices, I get:
Code:
????????? no permissions
I rebooted into fastboot with no luck either. Except now ADB doesn't even pick up any devices. And yes, I enabled USB debug mode and unauthorized sources.
Thanks!
Click to expand...
Click to collapse
Which OS are you using (Windows, Mac, Linux)?
Elrondolio said:
I'd guess you are using an older version of the toolkit. Try downloading the latest SDK and using it to see if that helps (it'll also update to the latest drivers). Good luck.
Click to expand...
Click to collapse
It's the latest SDK.
bsara said:
Which OS are you using (Windows, Mac, Linux)?
Click to expand...
Click to collapse
Linux - Ubuntu to be more specific.
So I figured out the issue. I rebooted into the bootloader (unplug NP, plug it back in, immediately hold the button located on the bottom of the player until the light flashes), typed fastboot devices and it finally recognized the device. ADB still however did not recognize the device while in the bootloader until I powered it back on. Very strange... Not sure if the order I did things made a difference but I'm able to connect to the interface now.
Hope this helps someone. Cheers!
feered said:
Linux - Ubuntu to be more specific.
So I figured out the issue. I rebooted into the bootloader (unplug NP, plug it back in, immediately hold the button located on the bottom of the player until the light flashes), typed fastboot devices and it finally recognized the device. ADB still however did not recognize the device while in the bootloader until I powered it back on. Very strange... Not sure if the order I did things made a difference but I'm able to connect to the interface now.
Click to expand...
Click to collapse
I had the same issue on Ubuntu. You need to run ADB with sudo...why? I have no idea...but I found a post suggesting it on StackOverflow and it worked...so I'm not questioning it.
Before doing anything below, have you installed adb via apt-get? If so, remove it and just put a link to your SDK manager adb and fastboot in a folder included in your PATH or add the directory to the path, then start a new shell before proceeding. The adb and fastboot provided by apt-get are old.
Do the following:
Have your device plugged in and fully booted and with USB debugging enabled
run this command: "sudo adb kill-server && adb start-server"
You should be prompted on the device to authorize the access of your computer via adb
run "adb devices" to make sure that it all worked correctly

[PSA/FIX] Newest adb doesn't work on WinXP + 5x USB drivers that work

I happen to update platform-tools in the Android SDK from version 23.1 to version 24 on an older PC.
The newest adb.exe included with v24 no longer works on WinXP.
You will get the following error upon startup:
adb.exe - Entry Point Not Found
The procedure entry point WSAPoll could not be located in the dynamic link library WS2_32.dll.
Click to expand...
Click to collapse
In case anyone is curious, I tracked the change down to this one:
https://android-review.googlesource.com/#/c/203387/
ADB
I've attached the v23.1 adb and fastboot to this post in case someone needs the previous version (which works fine with 5x up to at least MTC20F)
Just unzip and you can use adb/fastboot from the resulting platform-tools-v23.1 directory or copy them over to where your normal platform-tools directory is.
USB drivers for 5x
I also included USB drivers that work with 5x. These should work for 32/64-bit for winxp and vista. Win7 is maybe, haven't tested.
They WILL NOT work with win8 and above due to changes in driver enforcement. I am not sure about win8.x but on win10, there is a built-in driver that works with adb. To get bootloader/fastboot driver, just allow win10 to search for drivers. It will load Marshall London Bootloader Interface. This is for a different phone from music company Marshall, but it works fine since it is an Android-based device.
I could never find one official driver from google or lg that would work with adb inside android, adb inside twrp, adb sideload inside stock recovery, and fastboot.
I stopped worrying about why it works for other people and just fixed the problem myself.
Not sure if it matters to that many people these days, but it was confirmed the change in adb is not a bug and will persist going forward, so if you ever need to run adb on a WinXP box or emulator, you'll need to retrieve platform-tools-23.1 or earlier.
WinXP compatible platform-tools also could be downloaded from official repository:
http://dl-ssl.google.com/android/repository/platform-tools_r23.1.0-windows.zip
Thank you so much for this sfhub. This was driving me crazy getting bootloader access with Win 7. Updated to the driver you linked and worked great. I guess most people out there are using Win 8 or 10 now? Minblowing that so few use 7.
Greefus said:
Thank you so much for this sfhub. This was driving me crazy getting bootloader access with Win 7. Updated to the driver you linked and worked great. I guess most people out there are using Win 8 or 10 now? Minblowing that so few use 7.
Click to expand...
Click to collapse
Actually Windows 7 is still installed on nearly half of all desktop and laptop computers: https://www.netmarketshare.com/operating-system-market-share.aspx?qprid=10&qpcustomd=0. Did the most recent SDK drop support for it?
For anyone who wants to use adb on the latest version of Android Studio running on Windows XP use the adb .exe from version 23 and paste it into the platform tool folder. Keep a copy of the new adb.exe just in case you need it. No need to use the entire v23 platform tool folder.
The references in this thread have so far appear to refer to latest adb compatibility, particularly for Windows XP.
Does the latest fastboot still work fine with Windows XP? If not, what was the last known-good or thought to be last known-good version for Windows XP?
Hi
The adb from the v2.3.1 works fine with my win xp, thank you for the file.
Hello,
I am another WinXP user facing the error
"adb.exe - Entry Point Not Found. The procedure entry point WSAPoll could not be located in the dynamic link library WS2_32.dll."
@sfhub & @Sintetix
Thanks for the info and provide the latest version supported by XP ...
Are you aware of any important changes / additions in the future versions to be concerned of?
Regards
---------- Post added at 11:16 ---------- Previous post was at 10:47 ----------
Just to let you know,
C:\v23.1>adb devices
List of devices attached
adb server is out of date. killing...
error: protocol fault (couldn't read status): Invalid argument
error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037:
I am trying to connect an Asus Transformer tablet with "MTP file transfer" mode on WinXP Service Pack 3 laptop... cable is fine and the plan is to move from custom ROM (Android 6.0) to Stock (JellyBean) ... Something I already did few years ago having Win10 (I have the receipe used then)
I think I better get a fresh Win7 on my primary Win10 PC and start from there... I never liked W10 anyway ... and since I did mods to [finally &effectively] stop the [annoying, unwanted & plenty of bugs] Win10 updates ... I got funny errors when using dev stuff ... even DotNet ...
And I need to think a better O.S for the XP PC ...
Time to change. Regards
Before jumping to my major O.S actions,
I gave a chance to my Asus Transformer tablet with another cable under the W10 PC and the latest adb (r29.0.2-win) and this second time it worked fine ...
The first time and first cable did not work (reason that drove me to the WinXP PC thinking the cause was Win10)
fastboot devices
was literally returning
???????????? fastboot
But this second time with another cable
fastboot devices
returned
BLAxxIDxxSTRING fastboot
And I was finally able to perform the format and flash series of commands to return my tablet to the stock ROM ...
As I understand this thread is about WinXP, for testing purposes, I hooked my fresh flashed tablet to the WinXP PC with the successful spare cable, and
adb devices
got again
List of devices attached
adb server is out of date. killing...
error: protocol fault (couldn't read status): Invalid argument
error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037
Certainly I don't have the explanation of this, but I can tell you is not because a faulty cable or something related to the tablet.
And something scary to add: the first cable looks in good shape and is the one used every day to charge the tablet without any delays or issues ...
Hope someone find this useful and provide more insight. Regards

Samsung T-357T Stuck in boot loop device not found.

im trying to load into adb but it won't find the device, usb not reading. can anyone help?
the_rorshach said:
im trying to load into adb but it won't find the device, usb not reading. can anyone help?
Click to expand...
Click to collapse
You need the Samsung USB drivers installed first and the adb binaries on your PC.
Can you link me somehow to enable ADB? I keep having issues with that even though i have android studio and the SDK installed.
the_rorshach said:
Can you link me somehow to enable ADB? I keep having issues with that even though i have android studio and the SDK installed.
Click to expand...
Click to collapse
You can download the adb binaries as part of the Google platform tools package.
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
Open a command prompt from within the folder where the adb binaries are.
Gotcha, just got issues on win 7

Categories

Resources