Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,397 Members 45,855 Now Online
XDA Developers Android and Mobile Development Forum

[Q]RUU Error 170

Tip us?
 
enduu
Old
(Last edited by enduu; 31st July 2014 at 09:17 PM.)
#1  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Feb 2012
Default [Q]RUU Error 170

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"
 
alray
Old
#2  
alray's Avatar
Senior Member
Thanks Meter 1,098
Posts: 2,841
Join Date: May 2012
Location: Montreal

 
DONATE TO ME
Quote:
Originally Posted by enduu View Post
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.
If I've helped you, please hit the ''tanks'' button
If you want a reply, quote or mention me using @alray

Useful links for the HTC One:
nkk71's SuperGUIDE to returning 100% back to stock
Flashing requirements chart by nkk71
HTC1Guru.com by crushalot
 
enduu
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: 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.
 
enduu
Old
#4  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Feb 2012
Quote:
Originally Posted by alray View Post
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
 
alray
Old
(Last edited by alray; 31st July 2014 at 10:15 PM.)
#5  
alray's Avatar
Senior Member
Thanks Meter 1,098
Posts: 2,841
Join Date: May 2012
Location: Montreal

 
DONATE TO ME
Quote:
Originally Posted by enduu View Post
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
If I've helped you, please hit the ''tanks'' button
If you want a reply, quote or mention me using @alray

Useful links for the HTC One:
nkk71's SuperGUIDE to returning 100% back to stock
Flashing requirements chart by nkk71
HTC1Guru.com by crushalot
 
enduu
Old
(Last edited by enduu; 31st July 2014 at 10:22 PM.)
#6  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Feb 2012
Quote:
Originally Posted by alray View Post
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.
 
alray
Old
#7  
alray's Avatar
Senior Member
Thanks Meter 1,098
Posts: 2,841
Join Date: May 2012
Location: Montreal

 
DONATE TO ME
Quote:
Originally Posted by enduu View Post
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.
If I've helped you, please hit the ''tanks'' button
If you want a reply, quote or mention me using @alray

Useful links for the HTC One:
nkk71's SuperGUIDE to returning 100% back to stock
Flashing requirements chart by nkk71
HTC1Guru.com by crushalot
The Following User Says Thank You to alray For This Useful Post: [ Click to Expand ]
 
enduu
Old
(Last edited by enduu; 31st July 2014 at 10:55 PM.)
#8  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Feb 2012
Quote:
Originally Posted by alray View Post
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.
 
Seanie280672
Old
#9  
Seanie280672's Avatar
Senior Member
Thanks Meter 343
Posts: 1,162
Join Date: Feb 2012
Location: Halesowen

 
DONATE TO ME
Quote:
Originally Posted by enduu View Post
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.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Play Music on Android Wear with Stellio Music Player

Android Wear smartwatchesare growing inpopularity every day. Some devices have already … more

Schedule is up for xda:devcon ’14

With xda:devcon ’14 just around the corner, and the venue close to selling out, there is a lot … more

aLogcat Returns Thanks to XDA Love

The developers of Android, that is Google, gave users several great debugging tools that can be used in … more

And the Winners in the XDA Pebble Development Challenge Are…

Almost two months ago, we set out with Pebble to findthree amazing … more