Getting a "device offline" when connecting device in Ubuntu - Android Q&A, Help & Troubleshooting

I'm trying to patchrom using Ubuntu and when I try to run a command I'm getting a device offline error. It recognizes my phone when I type the lsusb command. I've read various things on this. I've updated my SDK. Before the update I did get errors about adb not being installed when I did install SDK, don't get that anymore so I know its installed. I'm using 64bit and I also ran the command to install the 32bit adb because there is none for 64bit. Did get a error running that command but it replaced it with another lib and it still was offline. Used a different USB port that didn't recognize it either. Even switched the option of camera to SD card once it mounted and it's still giving that error. I also know about the RSA and the security that came with 4.2.2. Did the changes with that and still the same. Does anyone know what else is there to do.

Related

Newbie needs help with adb

Hi.
I'm trying to make some custom native software for android but I need some help getting started.
What I have done so far is getting a HTC Hero, GSM version.
Flashed a custom rooted ROM. update-hero-generic-2.73.405.38-rooted-signed.zip
Installed the sdk and ndk on Windows.
Downloaded and built the open source android project in a VMWare ubuntu image.
What I'm trying to do now is to get ADB talking to my Hero.
I have USB debugging on in the applications->development menu on in the Hero.
When I attach the phone to my XP PC it detects it and asks for drivers, I point it to drivers in android-sdk-windows\usb_driver, windows won't load them because they do not match the hardware.
I can install the driver manually but eventhough the device manager lists it as working (android phone with android composite ADB interface) adb cant find it.
adb devices just give me an empty list.
I tried this on a Windows 7 box and it seemed to work there, is there something special I need to do to get it working on XP?
Installing HTC Sync (drivers included) should resolve.
Thanks!
I actualy tried that before posting but it did not seem to work.
I now tried it again and this time I manually installed the driver in the HTC directory and now it works.

[Q] Mount Photon as USB Mass Storage in Linux.

Hey all-
Trying to push a few files to my photon and can't seem to get it to mount as USB Mass Storage in Linux. When I click the Mass Storage Option from the Manage USB dialog it doesn't do anything at all. I have checked 'lsusb' and the device is there listed as 'Motorola PCS'. This is a new install(less than a week old) of LUbuntu 11.10, I also made sure libusb was installed (had to of been for lsusb to work I think). Tried 2 different cables as well. The Android SDK is downloading now to see if I can access over ADB, I will report back later with those results.
Any advice here on getting this running? Anyone have success in mounting it in Linux? Surely to god someone has, a ton of people her use linux.
Photon is stock with the latest .7 OTA, haven't even attempted root or unlock yet. Not sure I will until we get CM7.
Thanks in advanced.
ADB Doesn't seem to be getting anything either, I get '??????? no permissions'.
Disregard finally was able to get it going...not sure how but it works now.
Thanks for your time.
for adb to work for me whenever I power up the cpu I need to sudo and
Code:
./adb start-server
before adb works properly.

[Q] All basic Aria Drivers

Hi all,
I have an Aria running CM 7.2
I have a PC with Win XP SP3 where I am not able to connect my Aria because of lack of drivers.
I don't want to download and install HTC sync (pay-per-use plan).
Is there a standalone driver pack for Aria which I can use for:
ADB: VID_0BB4&PID_0C92&MI_01
Android Phone: VID_0BB4&PID_0C92&MI_00
Also there are other hardware IDs which I don't have right now, like fastboot etc.
I searched the internet and could not find any helpful drivers.
Can anyone help regarding this?
You can get the drivers here:
http://downloads.unrevoked.com/HTCDriver3.0.0.007.exe
File size: 13.1 MB
Thanks for the above. I installed it.
But I still get error messages saying hardware not recognized.
The (new!) hardware IDs are:
Without ADB
Android Phone : VID_0BB4&PID_0FF9
With ADB
Mass Storage : VID_0BB4&PID_0C92&MI_00
and still cannot connect the phone.
I tried specifying the path to the actual drivers in the HTC program folder, but no help.
Any solutions?
plade said:
Thanks for the above. I installed it.
But I still get error messages saying hardware not recognized.
The (new!) hardware IDs are:
Without ADB
Android Phone : VID_0BB4&PID_0FF9
With ADB
Mass Storage : VID_0BB4&PID_0C92&MI_00
and still cannot connect the phone.
I tried specifying the path to the actual drivers in the HTC program folder, but no help.
Any solutions?
Click to expand...
Click to collapse
I tested my Aria with an old PC and it worked. Try installing the latest version of HTC Sync: http://dl3.htc.com/application/sync/htc_sync_3.0.5617_us.exe.
Can you explain how you are attempting to connect the phone? Are you just trying to use the RUU? Are you trying to use adb?
The drivers I linked to should allow you to do both.
Here's what I did.
I tried to connect the phone (normal working condition running CM7) without any drivers installed.
The missing hardware IDs were the ones in the first post.
Then I tried to install the drivers from the link.
The installer did not work, some trouble with the MSI Package.
I went to temp folder and ran the MSI package by itself. This time it ran.
Then when I tried to connect the phone (running, with ADB on), it detected drivers like Android Phone, USB Composite Device, ADB.
But got stuck when Mass Storage was to be installed. Threw a 'new hardware found' window at me.
I disconnected and connected without ADB this time.
This time it got stuck on Android Phone.
Can you verify the file's MD5 sum? It should be:
HTCDriver3.0.0.007.exe
f60771a86c4ad69c8c9c1d158e60e850
I'm not sure what else could be the issue unless some old drivers are interfering or something.
drumist said:
Can you verify the file's MD5 sum? It should be:
HTCDriver3.0.0.007.exe
f60771a86c4ad69c8c9c1d158e60e850
I'm not sure what else could be the issue unless some old drivers are interfering or something.
Click to expand...
Click to collapse
Well the MD5 is all good. Probably the machine is messed up.
Other USB devices do work though, without a problem.
Anyway, this is only a spare machine. Just was wondering why it would not work here. I might try installing HTC Sync later, but I highly doubt it will work.
Thanks a lot for the help.

ADB Troubles

I have been trying for a few days not to get my NT to connect to ADB in CWM. I am having no luck.
I am able to connect and browse the 1 gb partition and the sd card in windows but cannot connect to adb even when the tablet is running.
It has been a while since i have messes with my NT but i currently running nightly CM and have CWM 6.0.0.0 installed as well.
I am sure i am just missing someting simple to accomplish this task but my searches are leading me know where.
I have also tried both in linux and windows to connect to ADB.
I feel one of my problems may be that i do not have debugging turned on in my ROM but i cant seem to find that either.
Any guidance or a link would be greatly apreciated.
Thanks in advance.
"ADB Debug" setting is under Settings->Developer's Options.
If you're trying to use ADB over USB, see also http://forum.xda-developers.com/showthread.php?p=35971559#post35971559.

ADB not working on win7, win10 or OSX

hey there,
I am currently trying to do a factory reset / wipe my data from my Sony Xperia Z3.
The screen is unresponsive and blacked out after I dropped the device, the phone itself however is still working.
windows:
I had managed to copy data from my SD card a few weeks ago on win7 - however after I updated my PC to win10, the device does not show up any more for some reason. On my girlfriends PC (running win7), the device is shown, but does not contain any file structure (no files & folders displayed). When I run "adb devices", I get the "attached is a list of devices" like response, but without my phone being shown.
OSX:
I am now trying to do the factory reset via ADB on my macbook (since I could not get it to work on win7/win10).
I have installed Android SDK including ADB. However, when I type "adb devices" in the terminal, I get the response "-bash: adb: command not found". I should get something like "attached is a list of devices" though.
I am a novice to OSX, so maybe I am doing something wrong, but I don't know what. I included a screenshot of my installation.
If someone could help me getting access to my device through ADB, that would be great.
Thanks a lot!

Categories

Resources