Advertisement
Guest User

HTC One M7 Wiped/Android OS Deleted How To Fix ADB/TWRP

a guest
Apr 5th, 2015
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.05 KB | None | 0 0
  1. [18:29] == XT3015 [490bd5f9@gateway/web/freenode/ip.73.11.213.249] has joined #reddit-htcone
  2. [18:29] <@ihatemath> this is not normal
  3. [18:29] <@ihatemath> do you still haev your unlock token from htcdev?
  4. [18:30] <XT3015> yes
  5. [18:30] <@ihatemath> can you unlock and reflash twrp?
  6. [18:30] <XT3015> im looking for the tutorial to do it but it shouldn't be a problem
  7. [18:30] <@ihatemath> get the phone up and running on 4.4.2 with sense 6.0 at the very least, then we can figure out why it's failing
  8. [18:31] <@ihatemath> http://forum.xda-developers.com/showthread.php?t=1415615
  9. [18:31] <@ihatemath> instructions for unlocking using your token
  10. [18:31] <@ihatemath> in case you don't remember
  11. [18:33] <@ihatemath> fastboot flash unlocktoken Unlock_code.bin
  12. [18:33] <@ihatemath> is the actual command if you have unlock_code.bin from your email
  13. [18:35] <XT3015> i keep getting "fastboot is not a recognized command"
  14. [18:35] <@ihatemath> uh
  15. [18:35] <@ihatemath> do you still have the command prompt open?
  16. [18:35] <XT3015> yeah
  17. [18:35] <@ihatemath> drop the unlock_code.bin into that folder
  18. [18:35] <XT3015> which folder
  19. [18:36] <@ihatemath> the one containing htc_fastboot and rom.zip
  20. [18:36] <@ihatemath> htc_fastboot.exe flash unlocktoken Unlock_code.bin
  21. [18:36] <XT3015> ok gimme a sec
  22. [18:42] <XT3015> ok managed to unlock boot and install twrp. on the TWRP recovery page right now
  23. [18:42] <@ihatemath> good
  24. [18:42] <@ihatemath> if you plug it into your computer, does windows see it as a drive?
  25. [18:43] <XT3015> yeah internal storage and everything
  26. [18:43] <@ihatemath> https://www.androidfilehost.com/?fid=23501681358543596
  27. [18:43] <@ihatemath> download this
  28. [18:43] <@ihatemath> this is 4.4.2 with sense 6.0, instead of what you had which was 4.4.2 with sense 5.5
  29. [18:44] <XT3015> ok im downloading it ~8 minutes
  30. [18:45] <@ihatemath> on your phone, go into twrp and make a backup of just boot.img
  31. [18:45] <@ihatemath> that way you're recreating the TWRP directory structure
  32. [18:46] <@ihatemath> for the files that you're downloading now
  33. [18:47] <@ihatemath> on your computer you should see a directory structure of TWRP/Backups/your-serial-number/
  34. [18:49] <XT3015> ok just did that
  35. [18:50] <@ihatemath> when the download is finished, open the archive, you should see .win and .md5 files
  36. [18:50] <@ihatemath> drag them all into the folder with the date
  37. [18:51] <@ihatemath> TWRP/Backups/your-serial-number/today's-date/
  38. [19:02] <@ihatemath> still there?
  39. [19:03] <XT3015> yeah just had to do something sorry
  40. [19:04] <XT3015> but I just finished doing what you said
  41. [19:04] <@ihatemath> ok, restore the twrp backup
  42. [19:04] <XT3015> and i can't copy the contents of the Stock rom into the TWRP backup
  43. [19:04] <XT3015> http://i.imgur.com/IIa22qT.png
  44. [19:05] <@ihatemath> can you extract those files to the desktop first?
  45. [19:05] <@ihatemath> then copy over
  46. [19:10] <@ihatemath> ?
  47. [19:11] <XT3015> ok just did that
  48. [19:12] <@ihatemath> now restore it
  49. [19:19] <XT3015> ok it finshed! it now works. thanks.
  50. [19:19] <@ihatemath> so you can boot into android now?
  51. [19:20] <XT3015> yeah i can now unlock my lockscreen and everything
  52. [19:20] <@ihatemath> do you want to try to upgrade to 5.0.2?
  53. [19:20] <XT3015> yeah id like to
  54. [19:21] <@ihatemath> https://www.androidfilehost.com/?fid=23501681358543599
  55. [19:21] <@ihatemath> download this, drop it in the folder with htc_fastboot.exe and flash it like you did twrp
  56. [19:21] <@ihatemath> htc_fastboot.exe flash recovery 5.12.502.2.recovery.img
  57. [19:22] <@ihatemath> i suspect the ruu failed earlier because of firmware issues
  58. [19:27] <XT3015> do i do this while my device is in bootloader, recovery or just on the homescreen?
  59. [19:27] <@ihatemath> bootloader
  60. [19:27] <@ihatemath> everything is done in bootloader with the htc_fastboot.exe tool
  61. [19:28] <@ihatemath> normally you would install the android sdk to get the regular fastboot.exe tool
  62. [19:28] <@ihatemath> but you don't have it installed, so this is easier/faster
  63. [19:28] <@ihatemath> since it takes forever to setup the android sdk
  64. [19:29] <XT3015> i have android studio installed. is that needed for anything or do i just uninstll
  65. [19:29] <@ihatemath> just leave it
  66. [19:29] <XT3015> ok
  67. [19:29] <XT3015> i just executed the command
  68. [19:29] <@ihatemath> flash this stock htc recovery file
  69. [19:30] <@ihatemath> did it work?
  70. [19:30] <@ihatemath> or did it say fail
  71. [19:31] <XT3015> everything resulted in "Okay"
  72. [19:31] <XT3015> ends in "execution time 3s"
  73. [19:31] <@ihatemath> reboot into android and see if you can check for update
  74. [19:36] <@ihatemath> nothing?
  75. [19:37] <XT3015> so there's no keyboard installed, so i can;t check for an update if i can't type in a password for my wifi
  76. [19:38] <@ihatemath> there's no keyboard?
  77. [19:39] <XT3015> nvm it just wouldn't open for some reason
  78. [19:39] <XT3015> says no update available
  79. [19:40] <@ihatemath> do you want to try the ruu again?
  80. [19:40] <@ihatemath> the .exe version where it does everything for you
  81. [19:40] <@ihatemath> not manually doing it
  82. [19:41] <@ihatemath> not sure why it says no update available, it should let you download the 5.0.2 ota at this point
  83. [19:41] <XT3015> yes i will try it
  84. [19:41] <@ihatemath> go back into the bootloader
  85. [19:41] <@ihatemath> htc_fastboot.exe oem lock
  86. [19:42] <@ihatemath> then boot back into android and retry the ruu
  87. [19:42] <@ihatemath> ruu doesn't work on S-ON devices unless you relock the bootloader
  88. [19:45] <XT3015> ok so after the bootloader lock, I go back into the homescreen or stay in bootloader?
  89. [19:45] <@ihatemath> reboot the bootloader
  90. [19:46] <@ihatemath> then try the RUU
  91. [19:46] <@ihatemath> unless you have HTC Sync Manager installed and the drivers
  92. [19:46] <@ihatemath> if you have HSM installed, reboot into android and do it from there
  93. [19:46] <@ihatemath> that's the "proper" procedure
  94. [19:47] <XT3015> i have HTC sync manager
  95. [19:47] <@ihatemath> then you should have the drivers for the phone installed
  96. [19:47] <@ihatemath> reboot into android and try the 5.0 ruu again
  97. [19:47] <XT3015> so i relock the bootloader and reboot the ph
  98. [19:48] <@ihatemath> yes
  99. [19:48] <@ihatemath> at least at this point you have a working OS
  100. [19:52] <XT3015> so i relocked and booted to android, loaded the RUU, but ended up in this error
  101. [19:52] <XT3015> http://i.imgur.com/G7NChl1.png
  102. [19:53] <@ihatemath> 170 usually means driver error
  103. [19:53] <@ihatemath> exit out, reboot the phone into the bootloader, then try the ruu again
  104. [19:53] <XT3015> what should i do
  105. [19:54] <@ihatemath> also, don't use usb 3.0 ports
  106. [19:54] <XT3015> forgot to scroll down and didn't see what you said. ill try that
  107. [19:54] <@ihatemath> reboot into bootloader, retry ruu
  108. [19:54] <@ihatemath> shouldn't be getting error 170 if you have HSM installed, but whatever
  109. [19:55] <XT3015> i have installed a bunch of other small programs from XDA that either unlock bootloaders for me, or start adb command. could something like that affect adb drivers?
  110. [19:56] <@ihatemath> likely
  111. [19:56] <@ihatemath> this is why i don't use toolklits, or don't like it when people use toolkits
  112. [19:57] <@ihatemath> only tools you need are fastboot.exe and adb.exe
  113. [19:59] <XT3015> now I'm getting an error 155: unknown error
  114. [20:00] <@ihatemath> again?
  115. [20:00] <@ihatemath> can you reboot the phone?
  116. [20:00] <@ihatemath> as in, can you reboot into android?
  117. [20:01] <@ihatemath> or is it stuck on a screen
  118. [20:01] <XT3015> i also got a htc_fastboot.exe has stopped working warning
  119. [20:01] <XT3015> lemme check
  120. [20:02] <@ihatemath> the only conclusion i can come up with is that there's something wrong with how your computer is configured if the ruu still fails while in bootloader mode
  121. [20:02] <XT3015> i should add that on the phone, it's in bootloader and it's showing "RUU: Loading zip info fail! Update fail!"
  122. [20:03] <@ihatemath> reboot the bootloader if you can
  123. [20:03] <@ihatemath> if the menu is available
  124. [20:03] <XT3015> rebooting into android works
  125. [20:03] <@ihatemath> well
  126. [20:03] <@ihatemath> you have a working device now at least
  127. [20:04] <XT3015> at this point, i think i might have to try and RUU on another computer
  128. [20:04] <@ihatemath> i don't know what to tell you, you shouldn't be getting error 155 after everything i said
  129. [20:04] <@ihatemath> that might be good
  130. [20:04] <@ihatemath> if you can
  131. [20:04] <@ihatemath> never encountered this problem with other people, ever
  132. [20:04] <XT3015> no worries thanks for the help
  133. [20:05] <XT3015> yeah i was scared of that i couldn't find anything regarding my problem
  134. [20:05] <@ihatemath> everyone else, either the ruu worked or flashing using fastboot with the zip worked
  135. [20:05] <@ihatemath> if you figure it out, let me know so i can let others know if i encounter this in the future?
  136. [20:05] <@ihatemath> if it works on another computer
  137. [20:05] <XT3015> yeah, i'll definitely do that
  138. [20:05] <@ihatemath> preferably with no tools from xda installed
  139. [20:05] <XT3015> ill message you on reddit
  140. [20:06] <@ihatemath> ruu .exe only
  141. [20:06] <@ihatemath> ok
  142. [20:06] <@ihatemath> good luck
  143. [20:06] <XT3015> ok thx
  144. [20:06] == ihatemath [ad31430f@gateway/web/freenode/ip.173.49.67.15] has quit [Quit: Page closed]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement