Regain Double Tap to Wake Functionality on the Nexus 6

A few months ago, Google announced its newest flagship device, the Nexus 6, alongside … more

Clean Your Recent Apps – XDA Xposed Tuesday

In this day and age, you have quite a few apps installed and running on your Android … more

Android Studio Reaches Release Candidate Status

Android app developers have a few options when comes to Android IDEs. One of the most … more

Connect ALL THE THINGS with Xender

Smartphones, with all of their all connectivity options courtesy of OEMs, can easily connect themselves … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q]RUU Error 170

OP enduu

31st July 2014, 09:46 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
12 posts
Join Date:Joined: Feb 2012
Hi guys,

I have an HTC One with S-OFF and GPE ROM, I'm trying to get pretty much everything back to stock now. I've identified my CID and downloaded the appropriate RUU exe, the drivers are installed properly and the device is recognized when I run adb devices. However, when I try the RUU it gives me error 170, and on the last step it shows this which is pretty weird "abd dfksfsafjsdfkklsj". Any ideas? Thanks.

Edit: It seems to give that error even when I don't have the phone plugged in at all:

"1. Connect the Smartphone to the USB cable
abd dfksfsafjsdfkklsj"
Last edited by enduu; 31st July 2014 at 10:17 PM.
31st July 2014, 11:00 PM   |  #2  
alray's Avatar
Senior Member
Flag Montreal, Quebec
Thanks Meter: 1,282
 
3,303 posts
Join Date:Joined: May 2012
Donate to Me
More
Quote:
Originally Posted by enduu

Hi guys,

I have an HTC One with S-OFF and GPE ROM, I'm trying to get pretty much everything back to stock now. I've identified my CID and downloaded the appropriate RUU exe, the drivers are installed properly and the device is recognized when I run adb devices. However, when I try the RUU it gives me error 170, and on the last step it shows this which is pretty weird "abd dfksfsafjsdfkklsj". Any ideas? Thanks.

Edit: It seems to give that error even when I don't have the phone plugged in at all:

"1. Connect the Smartphone to the USB cable
abd dfksfsafjsdfkklsj"

Error 170 = usb connection error either because a bad cable, drivers installed incorrectly etc. etc... Try a different cable, re-install drivers correctly and use usb 2.0 ports only.
31st July 2014, 11:03 PM   |  #3  
OP Junior Member
Thanks Meter: 0
 
12 posts
Join Date:Joined: Feb 2012
Ok so after digging through the error logs I found something really weird:

The reason it fails is that when the RUU runs adb devices from C:\Program Files\HTC\HTC Sync 3.0\ it outputs the device number + offline. I know this is true since I tested it in a prompt. However, when I run the command from a mini-sdk I have placed somewhere else, it recognizes the device properly ( device number + "device").

Does anyone have an idea what's going on? I've installed HTC Sync but I tried HTC Sync Manager as well earlier, same problem.
31st July 2014, 11:08 PM   |  #4  
OP Junior Member
Thanks Meter: 0
 
12 posts
Join Date:Joined: Feb 2012
Quote:
Originally Posted by alray

Error 170 = usb connection error either because a bad cable, drivers installed incorrectly etc. etc... Try a different cable, re-install drivers correctly and use usb 2.0 ports only.

This is the second cable I'm trying, different port, I have no idea how many times I've reinstalled the drivers today lol. I'm using the latest HTC Sync & Driver version
31st July 2014, 11:12 PM   |  #5  
alray's Avatar
Senior Member
Flag Montreal, Quebec
Thanks Meter: 1,282
 
3,303 posts
Join Date:Joined: May 2012
Donate to Me
More
Quote:
Originally Posted by enduu

This is the second cable I'm trying, different port, I have no idea how many times I've reinstalled the drivers today lol. I'm using the latest HTC Sync & Driver version

Try another computer, another ruu. Make sure the usb cables you are using are not only charging cables. Maybe a defective usb port on the phone.

error 170 is usb connection error, so troubleshoot everything related to this:
  1. usb ports
  2. usb cables
  3. usb drivers
  4. phones drivers
  5. RUU
  6. computer
  7. phone usb port
Last edited by alray; 31st July 2014 at 11:15 PM.
31st July 2014, 11:17 PM   |  #6  
OP Junior Member
Thanks Meter: 0
 
12 posts
Join Date:Joined: Feb 2012
Quote:
Originally Posted by alray

Try another computer, another ruu. Make sure the usb cables you are using are not only charging cables. Maybe a defective usb port on the phone.

Well this is the only computer I have access to for the next couple of days, and the only ruu I could find. I am not sure what you mean with the cables though.

Here's the thing, if I replace the adb file from htc sync ( 159kb ) with the one from the mini-sdk ( 800kb) it recognizes the device, and I'm thinking it will probably run the RUU as well. Do I risk messing up something if I do this? This is in regards to http://forum.xda-developers.com/show...00&postcount=3 . Thanks.
Last edited by enduu; 31st July 2014 at 11:22 PM.
31st July 2014, 11:27 PM   |  #7  
alray's Avatar
Senior Member
Flag Montreal, Quebec
Thanks Meter: 1,282
 
3,303 posts
Join Date:Joined: May 2012
Donate to Me
More
Quote:
Originally Posted by enduu

Well this is the only computer I have access to for the next couple of days, and the only ruu I could find. I am not sure what you mean with the cables though.

Some usb cable only have +5v and ground to provide power and charge devices. Data usb cable have 4 connections: +5V, Ground, Data +, Data -.

Quote:

Here's the thing, if I replace the adb file from htc sync ( 159kb ) with the one from the mini-sdk ( 800kb) it recognizes the device, and I'm thinking it will probably run the RUU as well. Do I risk messing up something if I do this? This is in regards to http://forum.xda-developers.com/show...00&postcount=3 . Thanks.

Never keep htc sync installed when you flash things on your phone, only install it for the drivers, then uninstall the program (drivers will not be removed). HTC sync might be the problem here.
The Following User Says Thank You to alray For This Useful Post: [ View ]
31st July 2014, 11:51 PM   |  #8  
OP Junior Member
Thanks Meter: 0
 
12 posts
Join Date:Joined: Feb 2012
Quote:
Originally Posted by alray

Some usb cable only have +5v and ground to provide power and charge devices. Data usb cable have 4 connections: +5V, Ground, Data +, Data -.



Never keep htc sync installed when you flash things on your phone, only install it for the drivers, then uninstall the program (drivers will not be removed). HTC sync might be the problem here.

Well I did remove htc sync but after checking the logs I noticed the problem was still the same. For some reason, every time the device failed to be recognized with the adb devices command, what fixed it for me was putting the it in fastboot, weird.
Last edited by enduu; 31st July 2014 at 11:55 PM.
1st August 2014, 08:53 AM   |  #9  
Seanie280672's Avatar
Senior Member
Flag Halesowen
Thanks Meter: 346
 
1,169 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Quote:
Originally Posted by enduu

Well I did remove htc sync but after checking the logs I noticed the problem was still the same. For some reason, every time the device failed to be recognized with the adb devices command, what fixed it for me was putting the it in fastboot, weird.

device offline when booted into a rom error is either drivers, out of date adb / fastboot, but normally it will tell you if its out of date or finally you don't have usb debugging enabled properly, this also applies to the 170 error, easy way to test if its the usb cable or ports etc is to try fastboot getvar all, if you get a result, then its not cables or ports.

adb commands don't work in the bootloader, only fastboot commands.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes