How to Unlock Bootloader and Install TWRP - Lenovo Z5 Pro (No GT) Q&A, Guides, Development

--------------------------------> DISCLAIMER: <------------------------------------​
Guide for pure educational purpose. If you are going to use it, you do it to *your risk and danger, I will not be held responsible if your phone will not work anymore.
Depending on the phone manufacturer, root and unlock the bootloader could invalidate the warranty of the phone​
-------------------------------> PRE-REQUIREMENTS <---------------------------------​
ADB means Android Debug Bridge, and it is software that you should always do have installed on your PC.
Pre-Requisite 1
Make sure that you have the drivers for your phone installed on your PC.
If not, you can download and install them from here https://devsjournal.com/usb-drivers-for-all-android-devices.html or from attachment:
Pre-Requisite 2
You must also install: Minimal ADB & Fastboot, you can download the software
from here https://devsjournal.com/download-minimal-adb-fastboot-tool.html or from attachment:
Scrolling through the page you will have 2 options: Download or Portable
(choose the one that you prefer)
Pre-Requisite 3
Make sure you have enabled 'USB Debugging' and OEM Unlocking on your device (read all tutorial before do it, because it will be wiped all data from the phone)
Settings -> Applications -> Developer Options
Settings -> Applications -> Development
PAY ATTENTION: If you do not see the Developer Options menu you need to do this:
Settings -> Device Info -> tap 6 or 7 times on the 'Build version' entry
A pop-up should appear, telling you 'now you are a developer'
In case of disaster follow this tutorial:​Restore Stock Image and Lock the Bootloader (for Warranty)​
-------------------------------> UNLOCK BOOTLOADER <---------------------------------​
IMPORTANT NOTE: Before doing this, know that this operation completely reset your device and after rebooting, you will find the phone as if he had just left out of the box. So you'll need to configure your phone again and reinstall all apps.
To unlock bootloader tap on:
Settings -> Applications -> Developer Options
(If you don't see the delevopers option you need to un-hide. To activate developer option click 7 times on ZUI version under settings -> system -> about. Once you did that you get developer options in settings -> system)
Now Click on it (Developers option) and activate the options OEM unlocking and USB debugging
If you have a Pin or Password, it will ask you to re-enter it.
You will see a popup where you will be asked to confirm this operation.
Now start the phone in boolader by doing this:
1) Connect the phone to the PC
2) Start the Minimal ADB & Fastboot program from the PC
3) On the PC screen, type: adb reboot bootloader​
(A request may appear on the phone screen with permission of USB debugging, accept it)
The phone will now restart in Booloader mode.
4) Now that you are in bootloader mode, from the PC, from the screen
Minimal ADB and Fastboot type:
fastboot -i 0x2b4c oem unlock-go​
The response will look like this:
...
OKAY [ 0.031s]
finished. total time: 0.031s
C:\adb>​Type:
fastboot reboot​
Now, during the reboot phase, the phone will proceed with a factory reset and will restart normally (it could take a couple of minutes)​
Done, now your phone has the bootloader unlocked.
-------------------------------> HOW TO INSTALL TWRP <---------------------------------​
Download the TWRP from here or mirror
1) Open the folder where your TWRP Recovery .img file is saved.
2)Then open a CMD window inside that folder. To do that, Shift + Right click on any empty white space inside the folder and then select Open command window here.
3) Connect your Android device to the PC. Type the following into the command window to boot your device into bootloader/fastboot mode:
adb reboot bootloader​ If your asks for permission to “Allow USB debugging”, tap OK.
4) Once your device boots into bootloader mode, type this into the command line.
fastboot flash recovery recovery-TWRP-3.2.3-0110-LENOVO_Z5PRO-CN-wzsx150​
5) Once TWRP is successfully flashed on your device, type this final command to reboot your device.
fastboot reboot​
Well, now you have installed the TWRP Recovery.
If you are interested to know how to root your phone: Follow this TUTORIAL

HOW TO INSTALL TWRP no.2
I can't find cmd.
I can only see the power shell

hohoim said:
HOW TO INSTALL TWRP no.2
I can't find cmd.
I can only see the power shell
Click to expand...
Click to collapse
because you are using win 10, inside the option there is "use powershell instead cmd" of something about that, uncheck it!

Can you push it with original rom like Xiaomi Mi flash?
BadCluster said:
because you are using win 10, inside the option there is "use powershell instead cmd" of something about that, uncheck it!
Click to expand...
Click to collapse
thank you

BadCluster said:
because you are using win 10, inside the option there is "use powershell instead cmd" of something about that, uncheck it!
Click to expand...
Click to collapse
i need help, i cant unlock bootloader a have 10.0.355 version firmware

nerak11111 said:
i need help, i cant unlock bootloader a have 10.0.355 version firmware
Click to expand...
Click to collapse
im on the same firmware, I'm able to input the adb reboot bootloader command and the phone loads in to the bootloader mode but after my pc doesnt recognise the phone, and when i input the fastboot -i 0x2b4c oem unlock-go, nothing happens and it displays waiting for any device,
i think the problem is that after the phone load in to the bootloader mode, the doesnt recognize it anymore so i cant send any commands to it,
can you help please,

i found a way to lock the bootloader after you installed the original rom!
this will solve the < waiting for devices > error when phone is connected to pc
follow this tutorial to install the propper driver if your PC does not recognize the phone in fastboot: tutorial
how do i know if i need this?
to know if the proper drivers are installed open adb and type "adb devices" to see if your device is connected
if your device is connected and seen by adb, proceed to type "fastboot devices". if your device is recognized, you are good to go, if not, please follow the youtube tutorial as it helped me solve this problem.
when your device is read as a adb fastboot device, reboot into bootloader using "adb reboot bootloader"
after this, type "fastboot flashing lock" to relock your device. you will get a message on the device to ask for permission.
BE AWARE! THIS WILL WIPE YOUR PHONE TO FACTORY RESET!
this steps will probably also help to unlock the bootloader in version355, but i have not tried that. please leave your findings below if you tried this!

does it work with lenovo z5 pro gt?

Thanks man i will try this as soon as they deliver my phone still waiting on it.

[/COLOR]
anonOmattie said:
i found a way to lock the bootloader after you installed the original rom!
this will solve the < waiting for devices > error when phone is connected to pc
follow this tutorial to install the propper driver if your PC does not recognize the phone in fastboot:
how do i know if i need this?
to know if the proper drivers are installed open adb and type "adb devices" to see if your device is connected
if your device is connected and seen by adb, proceed to type "fastboot devices". if your device is recognized, you are good to go, if not, please follow the youtube tutorial as it helped me solve this problem.
when your device is read as a adb fastboot device, reboot into bootloader using "adb reboot bootloader"
after this, type "fastboot flashing lock" to relock your device. you will get a message on the device to ask for permission.
BE AWARE! THIS WILL WIPE YOUR PHONE TO FACTORY RESET!
this steps will probably also help to unlock the bootloader in version355, but i have not tried that. please leave your findings below if you tried this!
Click to expand...
Click to collapse
I tried, But I can't.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ver: 355
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully
c4aec27a device
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices
C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flashing lock
...
FAILED (remote: Device already : locked!)
finished. total time: 0.012s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flashing lock
...
FAILED (remote: Device already : locked!)
finished. total time: 0.059s

SrCDA said:
does it work with lenovo z5 pro gt?
Click to expand...
Click to collapse
i am not sure, but except for cpu the phones are similar. you can try the steps i provided and see if it will lock. no chance of bricking your phone if following shown commands.
please reply if this work!
vinashiny said:
[/COLOR]
I tried, But I can't.
ver: 355
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully
c4aec27a device
[B]------------phone is seen by adb as device[/B]
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices
[B]-------------phone is not seen as fastboot device, so follow tutorial provided[/B]
C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flashing lock
...
[B]FAILED (remote: Device already : locked!)[/B]
[B]------------why try to lock a already locked phone??[/B]
finished. total time: 0.012s
[/QUOTE]
Click to expand...
Click to collapse

How do I update the OS once i've unlocked the bootloader and rooted?
Do i just simply install the zip update via TWRP? Or do i need to flash it with the qualcomm flashing tool?

I have activate the oem , but in th bootloader it still show that the oem is failed ,it means it haven't turn on the button i don't know why i can't unlock the oem

maxihinz said:
How do I update the OS once i've unlocked the bootloader and rooted?
Do i just simply install the zip update via TWRP? Or do i need to flash it with the qualcomm flashing tool?
Click to expand...
Click to collapse
you should wait for the rom to be updated, and flash it with qfil flasher. there are currently nop twrp roms available...
Blade_zheng said:
I have activate the oem , but in th bootloader it still show that the oem is failed ,it means it haven't turn on the button i don't know why i can't unlock the oem
Click to expand...
Click to collapse
so you want to open or close bootloader?

anonOmattie said:
you should wait for the rom to be updated, and flash it with qfil flasher. there are currently nop twrp roms available...
so you want to open or close bootloader?
Click to expand...
Click to collapse
I will be wait.i want to open the bootloader

doesnt work for me, it only shows :
< waiting for any device >
Click to expand...
Click to collapse
and nothing happens, did i miss a step ? should i do something on the bootloader menu ?

anonOmattie said:
i found a way to lock the bootloader after you installed the original rom!
this will solve the < waiting for devices > error when phone is connected to pc
follow this tutorial to install the propper driver if your PC does not recognize the phone in fastboot:
Click to expand...
Click to collapse
i did this
still gives me the dreadful waiting for any device message

Does NOT work on Win 10!!
It can Reboot to the Bootloader but cant Unlock it always is Say < waiting for any device > and nothing happen....

I have a Lenovo Z5 Pro, firmware 10.0.355, bootloader unlocked and TWRP (no root).
Can I flash the OTA update (I received the 10.5.153 - Android 9.0 OTA update) with the TWRP or I must flash again the original recovery?
If I need the original recovery, anyone knows where I can download the original one (10.0.355).
Thank you.

what about TWRP for Z5 Pro GT 855 version ??

Related

[Q] Bricked HTC One?

Hey guys, I'm seriously stuck. I think I bricked my phone...
I rooted my phone per the instructions in this forum, I installed SuperSU. Now I went to install CM from a nightly build and that failed - but since I had already wiped the local system now I'm stuck without an OS! I tried to use the sideload feature but it just stays stuck on "Starting ADB sideload feature"
Now what? Is this now a brick phone?! Pleas help!
rx8volution said:
Hey guys, I'm seriously stuck. I think I bricked my phone...
I rooted my phone per the instructions in this forum, I installed SuperSU. Now I went to install CM from a nightly build and that failed - but since I had already wiped the local system now I'm stuck without an OS! I tried to use the sideload feature but it just stays stuck on "Starting ADB sideload feature"
Now what? Is this now a brick phone?! Pleas help!
Click to expand...
Click to collapse
Here try this procedure:
Originally posted by @alrayHTC ONE M7_U/M7_UL - ADB PUSH & FLASH A ROM - DETAILED INSTRUCTIONS
Prerequisites:
You need ADB and FASTBOOT on your computer,
either by installing the Android SDK or Minimal ADB and FASTBOOT
You need to know how to start a fastboot/adb command prompt:
To open a command window prompt, in Windows go to Start Menu --> ''Run'' then type cmd. Change the directory to the ADB folder on your machine:
If using the default install location for the SDK:
Code:
cd C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools
If using the default install location of Minimal ADB and FASTBOOT:
Code:
cd C:\Program Files (x86)\Minimal ADB and Fastboot
Or hold left shift + right click a blank space inside the folder where adb and fastboot are located and select ''Open command window here'' from the contextual menu.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You need TWRP recovery on your device.
We still recommend to use version 2.6.3.3 for all roms
except if another version is specified in the rom OP.
Use 2.7.1.1+ for roms that require "block:by-name" support (CM11)
Unlock bootloader if not already unlocked:
Thanks to Electroz for the video tutorial
Flash TWRP Recovery:
Make sure the recovery.img file is in the same folder where adb and fastboot are located
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
reboot phone in bootloader mode
Flash the recovery:
Code:
fastboot flash recovery name_of_recovery.img
fastboot erase cache
fastboot reboot-bootloader
You need your HTC drivers correctly installed on your PC:
If not, follow this guide (thanks to nkk71):
originally from @nkk71: [GUIDE] [02-MAR-2014] nkk71's SuperGUIDE to returning 100% back to stock
follow the below instructions to fix
Open "Device Manager" -> select the unknown "One" -> right-click -> "Update Driver Software ..." -> "Browse my computer" -> "Let me pick" -> "Android USB Devices" -> select "My HTC ..." -> install that
just in case, HTC Drivers can be found here: [Drivers] HTC Drivers for Windows - Several Versions (credits to @mdmower)
though you should already have them since you have been using your phone anyways
for those who like a visual guide:
okay so I did a fastboot boot command, and as you can see it didnt install correct driver
Open "Device Manager"
there's the culprit
right click and Update Driver Software
select Browse my computer for driver software
select Let me pick from a list of device drivers on my computer
select Android USB Devices
select My HTC ... (if you have more than one version, choose the latest)
warning, select Yes
successful installation
now it looks better
and can confirm:
Code:
C:\ADB3>[B]adb devices[/B]
List of devices attached
HTxxxxxxxxxx recovery
Click to expand...
Click to collapse
​
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Procedure:
Make sure the ROM you want to flash is in the same folder where ADB and FASTBOOT are.
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
Here is a list of the HTC M7 roms. Some other roms can be found here.
Connect your phone to computer using usb cable
(if not using the official HTC USB calble, make sure
you are using a USB data cable and not only a charging
cable. Data cables have 4 contacts: 5V, GND, DATA+, DATA-.
Charging cable only have 5V and GND contact and will not work)
Reboot phone in recovery mode (TWRP):
If phone is booted in OS:
Code:
adb reboot recovery
if not booted or bootlooping, hold power button + volume down until phone boot in bootloader mode
then select BOOTLOADER then RECOVERY using volume up/down to navigate and power button to select.
Make sure your phone is booted in TWRP main menu:
transfer the rom to your /sdcard folder:
Code:
adb push name_of_rom.zip /sdcard/
Wait for the zip file to transfer, this can take several minutes (5-15) and there is no progress bar, the command prompt will be unresponsive for that duration. When the command prompt is responsive again and display how much bytes transferred in X seconds, the transfer is completed:
In TWRP main menu, select ''INSTALL''
Browse the installation menu and select your rom zip file inside /sdcard folder:
Swipe to confirm you want to flash the rom
Reboot phone
Click to expand...
Click to collapse
Click to expand...
Click to collapse
majmoz said:
Here try this procedure:
​
Click to expand...
Click to collapse
Appreciate the help - BUT - the issue was that my PC wasn't "seeing" the device. "adb devices" was showing nothing even with cable connected and booted as described. Furthermore, it was getting 'stuck' on starting the sideload feature. What I ended up doing it connecting it to my Mac (by mounting /system and turning on MTP (in TWRP) and my Mac saw it. Then I used Android transfer app to move over an older nightly build of Cyanogenmod and tried the an install again - and everything is great.
Thanks

[Q] Phone stuck on a loop

My phone is stuck on a loop after I tried fixing it. I tried installing Viper 6.2 on my m7 and it didn't work with an error of 7 or something and since I was coming from a different Rom I chose to wipe the data and start over. So now I have no Rom on my phone, no problem. I rebooted and tried to get into recovery again but then something weird happened where it would show the CW recovery logo and than skip to the Google logo like it was trying to boot up (no letters at top of screen). I tried installing a different recovery image but same thing it would show Teamwin logo and than cycle to the Google logo without letters at the top like it was trying to boot up and will go in a loop until I turn it off or go into the white bootloader menu. Also tried a factory reset from the white menu which did nothing. Please Help!
aznspdrmn said:
My phone is stuck on a loop after I tried fixing it. I tried installing Viper 6.2 on my m7 and it didn't work with an error of 7 or something and since I was coming from a different Rom I chose to wipe the data and start over. So now I have no Rom on my phone, no problem. I rebooted and tried to get into recovery again but then something weird happened where it would show the CW recovery logo and than skip to the Google logo like it was trying to boot up (no letters at top of screen). I tried installing a different recovery image but same thing it would show Teamwin logo and than cycle to the Google logo without letters at the top like it was trying to boot up and will go in a loop until I turn it off or go into the white bootloader menu. Also tried a factory reset from the white menu which did nothing. Please Help!
Click to expand...
Click to collapse
Try this procedure from alray:
Originally posted by @alrayHTC ONE M7_U/M7_UL - ADB PUSH & FLASH A ROM - DETAILED INSTRUCTIONS
Prerequisites:
You need ADB and FASTBOOT on your computer,
either by installing the Android SDK or Minimal ADB and FASTBOOT
You need to know how to start a fastboot/adb command prompt:
To open a command window prompt, in Windows go to Start Menu --> ''Run'' then type cmd. Change the directory to the ADB folder on your machine:
If using the default install location for the SDK:
Code:
cd C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools
If using the default install location of Minimal ADB and FASTBOOT:
Code:
cd C:\Program Files (x86)\Minimal ADB and Fastboot
Or hold left shift + right click a blank space inside the folder where adb and fastboot are located and select ''Open command window here'' from the contextual menu.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You need TWRP recovery on your device.
We still recommend to use version 2.6.3.3 for all roms
except if another version is specified in the rom OP.
Use 2.7.1.1+ for roms that require "block:by-name" support (CM11)
Unlock bootloader if not already unlocked:
Thanks to Electroz for the video tutorial
Flash TWRP Recovery:
Make sure the recovery.img file is in the same folder where adb and fastboot are located
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
reboot phone in bootloader mode
Flash the recovery:
Code:
fastboot flash recovery name_of_recovery.img
fastboot erase cache
fastboot reboot-bootloader
You need your HTC drivers correctly installed on your PC:
If not, follow this guide (thanks to nkk71):
originally from @nkk71: [GUIDE] [02-MAR-2014] nkk71's SuperGUIDE to returning 100% back to stock
follow the below instructions to fix
Open "Device Manager" -> select the unknown "One" -> right-click -> "Update Driver Software ..." -> "Browse my computer" -> "Let me pick" -> "Android USB Devices" -> select "My HTC ..." -> install that
just in case, HTC Drivers can be found here: [Drivers] HTC Drivers for Windows - Several Versions (credits to @mdmower)
though you should already have them since you have been using your phone anyways
for those who like a visual guide:
okay so I did a fastboot boot command, and as you can see it didnt install correct driver
Open "Device Manager"
there's the culprit
right click and Update Driver Software
select Browse my computer for driver software
select Let me pick from a list of device drivers on my computer
select Android USB Devices
select My HTC ... (if you have more than one version, choose the latest)
warning, select Yes
successful installation
now it looks better
and can confirm:
Code:
C:\ADB3>[B]adb devices[/B]
List of devices attached
HTxxxxxxxxxx recovery
Click to expand...
Click to collapse
​
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Procedure:
Make sure the ROM you want to flash is in the same folder where ADB and FASTBOOT are.
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
Here is a list of the HTC M7 roms. Some other roms can be found here.
Connect your phone to computer using usb cable
(if not using the official HTC USB calble, make sure
you are using a USB data cable and not only a charging
cable. Data cables have 4 contacts: 5V, GND, DATA+, DATA-.
Charging cable only have 5V and GND contact and will not work)
Reboot phone in recovery mode (TWRP):
If phone is booted in OS:
Code:
adb reboot recovery
if not booted or bootlooping, hold power button + volume down until phone boot in bootloader mode
then select BOOTLOADER then RECOVERY using volume up/down to navigate and power button to select.
Make sure your phone is booted in TWRP main menu:
transfer the rom to your /sdcard folder:
Code:
adb push name_of_rom.zip /sdcard/
Wait for the zip file to transfer, this can take several minutes (5-15) and there is no progress bar, the command prompt will be unresponsive for that duration. When the command prompt is responsive again and display how much bytes transferred in X seconds, the transfer is completed:
In TWRP main menu, select ''INSTALL''
Browse the installation menu and select your rom zip file inside /sdcard folder:
Swipe to confirm you want to flash the rom
Reboot phone
Click to expand...
Click to collapse
Click to expand...
Click to collapse
majmoz said:
Try this procedure from alray:
​
Click to expand...
Click to collapse
Yeah but the problem is I can't get to the recovery image anymore. the command says device not found and when trying to get to the recovery image it doesn't work.
aznspdrmn said:
Yeah but the problem is I can't get to the recovery image anymore. the command says device not found and when trying to get to the recovery image it doesn't work.
Click to expand...
Click to collapse
After you re-install the adb & fastboot disconnect your phone from the computer. Then reboot the computer and open the command window. Type: adb kill-server then when it is finished type: adb start-server. Now connect your phone to the PC. Type: adb devices
majmoz said:
After you re-install the adb & fastboot disconnect your phone from the computer. Then reboot the computer and open the command window. Type: adb kill-server then when it is finished type: adb start-server. Now connect your phone to the PC. Type: adb devices
Click to expand...
Click to collapse
ok when I do that it does nothing. The only menu I can get to on my phone is the bootloader one. If I choose recovery it'll get stuck in a loop and if I choose factory reset from the bootloader menu it'll get stuck in a loop. I think I need a way to factory reset the phone to any rom to get out of the loop. Right now I think the phone has a full recovery image on it but not a rom and that is somehow messing it up?
aznspdrmn said:
ok when I do that it does nothing. The only menu I can get to on my phone is the bootloader one. If I choose recovery it'll get stuck in a loop and if I choose factory reset from the bootloader menu it'll get stuck in a loop. I think I need a way to factory reset the phone to any rom to get out of the loop. Right now I think the phone has a full recovery image on it but not a rom and that is somehow messing it up?
Click to expand...
Click to collapse
If in setting USB Debugging is not enabled and there is an OS ADB will not work. It will work in Recovery.
If you have the stock firmware, you could flash it (if you are s-on, then you will need to relock your bootloader)
Then you would need to unlock your bootloader and flash a new recovery
ADB Push or sideload you rom while in recovery
Or
Flash a new recovery
ADB push or sideload your rom while in recovery
majmoz said:
If in setting USB Debugging is not enabled and there is an OS ADB will not work. It will work in Recovery.
If you have the stock firmware, you could flash it (if you are s-on, then you will need to relock your bootloader)
Then you would need to unlock your bootloader and flash a new recovery
ADB Push or sideload you rom while in recovery
Or
Flash a new recovery
ADB push or sideload your rom while in recovery
Click to expand...
Click to collapse
I've tried flashing a new recovery even changing the versions and types of recovery images. It still loops
Link to video of loop https://www.youtube.com/watch?v=efoXC-w45TA&list=UUXhWO2R4Ll4NrhM7M91T2sw
Fixed the issue by installing a RUU zip and then installing a custom rom.
aznspdrmn said:
I've tried flashing a new recovery even changing the versions and types of recovery images. It still loops
Link to video of loop https://www.youtube.com/watch?v=efoXC-w45TA&list=UUXhWO2R4Ll4NrhM7M91T2sw
Click to expand...
Click to collapse
It looks like your have an OS 3.09.401.1. I found a stock, non-rooted odex version.zip. This may wipe all of your personal data off of the phone. If fastboot is working, you should be able to flash it in FASTBOOT USB.
Code:
fastboot oem rebootRUU
fastboot flash zip name_of_rom.zip
fastboot flash zip name_of_rom.zip
fastboot reboot
You have to run the flash command twice, the first time prepares the firmware/rom to accept the changes.

HTC One Help

Hello,
So i got my phone as a trade for an old i phone. I have an htc one on ATT. It is rooted and S-off with TWRP 2.8.02. I attempted to flash Dirty unicorns 4.4.4 and accidentally wiped the whole phone. Now i do not have an OS on the phone or a back up to go to. The issue im having is getting ADB to work. Ive installed the SDK and just cannot get the ADB shell to work so i can push the rom to the phone for flashing. Im able to access recovery and the bootloader. When i get to the ADB shell portion i get "error; closed" . any help would be appreciated from anyone. I really dont have a phone other than this so i hope i can get this resolved quickly. If there is any additional info you might need to help me please ask and ill provide anything you need.
Thank you
adamdl97vo said:
Hello,
So i got my phone as a trade for an old i phone. I have an htc one on ATT. It is rooted and S-off with TWRP 2.8.02. I attempted to flash Dirty unicorns 4.4.4 and accidentally wiped the whole phone. Now i do not have an OS on the phone or a back up to go to. The issue im having is getting ADB to work. Ive installed the SDK and just cannot get the ADB shell to work so i can push the rom to the phone for flashing. Im able to access recovery and the bootloader. When i get to the ADB shell portion i get "error; closed" . any help would be appreciated from anyone. I really dont have a phone other than this so i hope i can get this resolved quickly. If there is any additional info you might need to help me please ask and ill provide anything you need.
Thank you
Click to expand...
Click to collapse
ADB works in OS/Android when USB Debugging is installed, since you wiped your OS no USB Debugging. ADB also works in custom recovery when the phone is in Recovery mode. Follow this guide to push Dirty Unicorns to your phone.
Originally posted by @alrayHTC ONE M7_U/M7_UL - ADB PUSH & FLASH A ROM - DETAILED INSTRUCTIONS
Prerequisites:
You need ADB and FASTBOOT on your computer,
either by installing the Android SDK or Minimal ADB and FASTBOOT
You need to know how to start a fastboot/adb command prompt:
To open a command window prompt, in Windows go to Start Menu --> ''Run'' then type cmd. Change the directory to the ADB folder on your machine:
If using the default install location for the SDK:
Code:
cd C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools
If using the default install location of Minimal ADB and FASTBOOT:
Code:
cd C:\Program Files (x86)\Minimal ADB and Fastboot
Or hold left shift + right click a blank space inside the folder where adb and fastboot are located and select ''Open command window here'' from the contextual menu.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You need TWRP recovery on your device.
We still recommend to use version 2.6.3.3 for all roms
except if another version is specified in the rom OP.
Use 2.7.1.1+ for roms that require "block:by-name" support (CM11)
Unlock bootloader if not already unlocked:
Thanks to Electroz for the video tutorial
Flash TWRP Recovery:
Make sure the recovery.img file is in the same folder where adb and fastboot are located
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
reboot phone in bootloader mode
Flash the recovery:
Code:
fastboot flash recovery name_of_recovery.img
fastboot erase cache
fastboot reboot-bootloader
You need your HTC drivers correctly installed on your PC:
If not, follow this guide (thanks to nkk71):
originally from @nkk71: [GUIDE] [02-MAR-2014] nkk71's SuperGUIDE to returning 100% back to stock
follow the below instructions to fix
Open "Device Manager" -> select the unknown "One" -> right-click -> "Update Driver Software ..." -> "Browse my computer" -> "Let me pick" -> "Android USB Devices" -> select "My HTC ..." -> install that
just in case, HTC Drivers can be found here: [Drivers] HTC Drivers for Windows - Several Versions (credits to @mdmower)
though you should already have them since you have been using your phone anyways
for those who like a visual guide:
okay so I did a fastboot boot command, and as you can see it didnt install correct driver
Open "Device Manager"
there's the culprit
right click and Update Driver Software
select Browse my computer for driver software
select Let me pick from a list of device drivers on my computer
select Android USB Devices
select My HTC ... (if you have more than one version, choose the latest)
warning, select Yes
successful installation
now it looks better
and can confirm:
Code:
C:\ADB3>[B]adb devices[/B]
List of devices attached
HTxxxxxxxxxx recovery
Click to expand...
Click to collapse
​
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Procedure:
Make sure the ROM you want to flash is in the same folder where ADB and FASTBOOT are.
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
Here is a list of the HTC M7 roms. Some other roms can be found here.
Connect your phone to computer using usb cable
(if not using the official HTC USB calble, make sure
you are using a USB data cable and not only a charging
cable. Data cables have 4 contacts: 5V, GND, DATA+, DATA-.
Charging cable only have 5V and GND contact and will not work)
Reboot phone in recovery mode (TWRP):
If phone is booted in OS:
Code:
adb reboot recovery
if not booted or bootlooping, hold power button + volume down until phone boot in bootloader mode
then select BOOTLOADER then RECOVERY using volume up/down to navigate and power button to select.
Make sure your phone is booted in TWRP main menu:
transfer the rom to your /sdcard folder:
Code:
adb push name_of_rom.zip /sdcard/
Wait for the zip file to transfer, this can take several minutes (5-15) and there is no progress bar, the command prompt will be unresponsive for that duration. When the command prompt is responsive again and display how much bytes transferred in X seconds, the transfer is completed:
In TWRP main menu, select ''INSTALL''
Browse the installation menu and select your rom zip file inside /sdcard folder:
Swipe to confirm you want to flash the rom
Reboot phone
Click to expand...
Click to collapse
Click to expand...
Click to collapse

[one m7] [factory reset] [accidentally wiped system]

Hi guys,
I had some bugs on my rom and wanted to reset the phone with factory reset. I'm using TWRP 2.3.6 and tried to factory reset on recovery but I accidentally wiped my system data, too. I noticed that when my phone reboot and the HTC logo didn't skip. I can enter fastboot and recovery but I wiped all data and I have no backup on phone now. I have backup on my pc but I cant access the phone storage, its looks like an unavailable disc and no access but htc sync manager and Usb recognize my phone as an android phone. I have android sdk and htc sync manager but my phone storage is unavaliable.
So how can I see the phone storage on my pc and copy my backup files in storage?
Or should I flash a rom with cmd commands? ( and how? )
Thanks for all help, I am waiting for the solve :crying:
burhannde said:
Hi guys,
I had some bugs on my rom and wanted to reset the phone with factory reset. I'm using TWRP 2.3.6 and tried to factory reset on recovery but I accidentally wiped my system data, too. I noticed that when my phone reboot and the HTC logo didn't skip. I can enter fastboot and recovery but I wiped all data and I have no backup on phone now. I have backup on my pc but I cant access the phone storage, its looks like an unavailable disc and no access but htc sync manager and Usb recognize my phone as an android phone. I have android sdk and htc sync manager but my phone storage is unavaliable.
So how can I see the phone storage on my pc and copy my backup files in storage?
Or should I flash a rom with cmd commands? ( and how? )
Thanks for all help, I am waiting for the solve :crying:
Click to expand...
Click to collapse
use adb to push your backup or a rom back to your phone
btw not sure if it was a typo but use twrp 2.6.3.3 not 2.3.6
boot in recovery mode (twrp)
Code:
adb push name_of_rom.zip /sdcard
The command prompt will be unresponsive for a few minutes
then in recovery, select install, select your rom and swipe to flash.
if you want to use your backup:
Code:
adb push your_backup_folder /sdcard/TWRP/BACKUPS/YOUR_SERIAL_NUMBER/DATE_OF_BACKUP/YOUR_BACKUP_FOLDER
the command prompt will be unresponsive for a few minutes.
then in twrp select restore and choose your backup, swipe to restore,
uh it was my mistake, its 2.6.3.3
but i dont know what actually adb is and how to use it :/ do i just need to enter the command prompt and type the code you gave ?
sorry,I need a description how to push my back up on my storage
burhannde said:
uh it was my mistake, its 2.6.3.3
but i dont know what actually adb is and how to use it :/ do i just need to enter the command prompt and type the code you gave ?
sorry,I need a description how to push my back up on my storage
Click to expand...
Click to collapse
follow this:
Originally posted by @alrayHTC ONE M7_U/M7_UL - ADB PUSH & FLASH A ROM - DETAILED INSTRUCTIONS
Prerequisites:
You need ADB and FASTBOOT on your computer,
either by installing the Android SDK or Minimal ADB and FASTBOOT
You need to know how to start a fastboot/adb command prompt:
To open a command window prompt, in Windows go to Start Menu --> ''Run'' then type cmd. Change the directory to the ADB folder on your machine:
If using the default install location for the SDK:
Code:
cd C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools
If using the default install location of Minimal ADB and FASTBOOT:
Code:
cd C:\Program Files (x86)\Minimal ADB and Fastboot
Or hold left shift + right click a blank space inside the folder where adb and fastboot are located and select ''Open command window here'' from the contextual menu.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You need TWRP recovery on your device.
We still recommend to use version 2.6.3.3 for all roms
except if another version is specified in the rom OP.
Use 2.7.1.1+ for roms that require "block:by-name" support (CM11)
Unlock bootloader if not already unlocked:
Thanks to Electroz for the video tutorial
Flash TWRP Recovery:
Make sure the recovery.img file is in the same folder where adb and fastboot are located
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
reboot phone in bootloader mode
Flash the recovery:
Code:
fastboot flash recovery name_of_recovery.img
fastboot erase cache
fastboot reboot-bootloader
You need your HTC drivers correctly installed on your PC:
If not, follow this guide (thanks to nkk71):
originally from @nkk71: [GUIDE] [02-MAR-2014] nkk71's SuperGUIDE to returning 100% back to stock
follow the below instructions to fix
Open "Device Manager" -> select the unknown "One" -> right-click -> "Update Driver Software ..." -> "Browse my computer" -> "Let me pick" -> "Android USB Devices" -> select "My HTC ..." -> install that
just in case, HTC Drivers can be found here: [Drivers] HTC Drivers for Windows - Several Versions (credits to @mdmower)
though you should already have them since you have been using your phone anyways
for those who like a visual guide:
okay so I did a fastboot boot command, and as you can see it didnt install correct driver
Open "Device Manager"
there's the culprit
right click and Update Driver Software
select Browse my computer for driver software
select Let me pick from a list of device drivers on my computer
select Android USB Devices
select My HTC ... (if you have more than one version, choose the latest)
warning, select Yes
successful installation
now it looks better
and can confirm:
Code:
C:\ADB3>[B]adb devices[/B]
List of devices attached
HTxxxxxxxxxx recovery
Click to expand...
Click to collapse
​
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Procedure:
Make sure the ROM you want to flash is in the same folder where ADB and FASTBOOT are.
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
Here is a list of the HTC M7 roms. Some other roms can be found here.
Connect your phone to computer using usb cable
(if not using the official HTC USB calble, make sure
you are using a USB data cable and not only a charging
cable. Data cables have 4 contacts: 5V, GND, DATA+, DATA-.
Charging cable only have 5V and GND contact and will not work)
Reboot phone in recovery mode (TWRP):
If phone is booted in OS:
Code:
adb reboot recovery
if not booted or bootlooping, hold power button + volume down until phone boot in bootloader mode
then select BOOTLOADER then RECOVERY using volume up/down to navigate and power button to select.
Make sure your phone is booted in TWRP main menu:
transfer the rom to your /sdcard folder:
Code:
adb push name_of_rom.zip /sdcard/
Wait for the zip file to transfer, this can take several minutes (5-15) and there is no progress bar, the command prompt will be unresponsive for that duration. When the command prompt is responsive again and display how much bytes transferred in X seconds, the transfer is completed:
In TWRP main menu, select ''INSTALL''
Browse the installation menu and select your rom zip file inside /sdcard folder:
Swipe to confirm you want to flash the rom
Reboot phone
Click to expand...
Click to collapse
Click to expand...
Click to collapse
does not work for me.
Hi i have tried this so many times and have failed. is there another way. I am loosing hope for my m7.
really hope someone can help.
howelldog said:
Hi i have tried this so many times and have failed. is there another way. I am loosing hope for my m7.
really hope someone can help.
Click to expand...
Click to collapse
Post the output of "fastboot getvar all" (not your imei/sn)
Failed where? Be more precise
once i swipe to install the rom zip file from twrp it switches off then starts back up only to go into the white screen with green HTC in the middle and powered by android at the bottom with no progress just stays on this screen.
howelldog said:
once i swipe to install the rom zip file from twrp it switches off then starts back up only to go into the white screen with green HTC in the middle and powered by android at the bottom with no progress just stays on this screen.
Click to expand...
Click to collapse
I asked you 2 questions, you answered 1. Can't help if you don't answer. Additionally, I need to know what was done to the phone before (wha tled to this situation), What twrp version you are using and what rom you are trying to flash.
Edit:
Oh I see, you are posting in 3 different threads...
http://forum.xda-developers.com/htc-one/help/tried-everything-site-restore-htc-one-m7-t3254343
http://forum.xda-developers.com/htc-one/help/please-help-t3257635
How are we supposed to help you if you crate new threads every time you have additional info to post? Much easier for both you and us if you keep posting in the same thread.
So now that you have provided your "fastboot getvar all" in one of these thread, please keep posting there only.

Bricked HTC One - unable to use adb push or flash anything at alll

Hi all,
I really need some help, i've found so many guides with instructions but this still wont work for me - the adb command just says 'error:closed' but shows my phone fine when doing 'adb devices' it even shows as being in sideload mode.
im using TWRP v. 2.6.3.3
I really need to get a ROM flashed back to this phone, PLEASE help! My phone is also recognised using fastboot as I was able to flash the recovery.
cloudzero2006 said:
Hi all,
I really need some help, i've found so many guides with instructions but this still wont work for me - the adb command just says 'error:closed' but shows my phone fine when doing 'adb devices' it even shows as being in sideload mode.
im using TWRP v. 2.6.3.3
I really need to get a ROM flashed back to this phone, PLEASE help! My phone is also recognised using fastboot as I was able to flash the recovery.
Click to expand...
Click to collapse
Try this method:
Originally posted by @alrayHTC ONE M7_U/M7_UL - ADB PUSH & FLASH A ROM - DETAILED INSTRUCTIONS
Prerequisites:
You need ADB and FASTBOOT on your computer,
either by installing the Android SDK or Minimal ADB and FASTBOOT
You need to know how to start a fastboot/adb command prompt:
To open a command window prompt, in Windows go to Start Menu --> ''Run'' then type cmd. Change the directory to the ADB folder on your machine:
If using the default install location for the SDK:
Code:
cd C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools
If using the default install location of Minimal ADB and FASTBOOT:
Code:
cd C:\Program Files (x86)\Minimal ADB and Fastboot
Or hold left shift + right click a blank space inside the folder where adb and fastboot are located and select ''Open command window here'' from the contextual menu.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You need TWRP recovery on your device.
We still recommend to use version 2.6.3.3 for all roms
except if another version is specified in the rom OP.
Use 2.7.1.1+ for roms that require "block:by-name" support (CM11)
Unlock bootloader if not already unlocked:
Thanks to Electroz for the video tutorial
Flash TWRP Recovery:
Make sure the recovery.img file is in the same folder where adb and fastboot are located
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
reboot phone in bootloader mode
Flash the recovery:
Code:
fastboot flash recovery name_of_recovery.img
fastboot erase cache
fastboot reboot-bootloader
You need your HTC drivers correctly installed on your PC:
If not, follow this guide (thanks to nkk71):
originally from @nkk71: [GUIDE] [02-MAR-2014] nkk71's SuperGUIDE to returning 100% back to stock
follow the below instructions to fix
Open "Device Manager" -> select the unknown "One" -> right-click -> "Update Driver Software ..." -> "Browse my computer" -> "Let me pick" -> "Android USB Devices" -> select "My HTC ..." -> install that
just in case, HTC Drivers can be found here: [Drivers] HTC Drivers for Windows - Several Versions (credits to @mdmower)
though you should already have them since you have been using your phone any ways
for those who like a visual guide:
okay so I did a fastboot boot command, and as you can see it didn't install correct driver
Open "Device Manager"
there's the culprit
right click and Update Driver Software
select Browse my computer for driver software
select Let me pick from a list of device drivers on my computer
select Android USB Devices
select My HTC ... (if you have more than one version, choose the latest)
warning, select Yes
successful installation
now it looks better
and can confirm:
Code:
C:\ADB3>[B]adb devices[/B]
List of devices attached
HTxxxxxxxxxx recovery
Click to expand...
Click to collapse
​
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Procedure:
Make sure the ROM you want to flash is in the same folder where ADB and FASTBOOT are.
(C:\adt-bundle-windows-x86_64-<DATE>\sdk\platform-tools or C:\Program Files (x86)\Minimal ADB and Fastboot)
Here is a list of the HTC M7 roms. Some other roms can be found here.
Connect your phone to computer using usb cable
(if not using the official HTC USB calble, make sure
you are using a USB data cable and not only a charging
cable. Data cables have 4 contacts: 5V, GND, DATA+, DATA-.
Charging cable only have 5V and GND contact and will not work)
Reboot phone in recovery mode (TWRP):
If phone is booted in OS:
Code:
adb reboot recovery
if not booted or bootlooping, hold power button + volume down until phone boot in bootloader mode
then select BOOTLOADER then RECOVERY using volume up/down to navigate and power button to select.
Make sure your phone is booted in TWRP main menu:
transfer the rom to your /sdcard folder:
Code:
adb push name_of_rom.zip /sdcard/
Wait for the zip file to transfer, this can take several minutes (5-15) and there is no progress bar, the command prompt will be unresponsive for that duration. When the command prompt is responsive again and display how much bytes transferred in X seconds, the transfer is completed:
In TWRP main menu, select ''INSTALL''
Browse the installation menu and select your rom zip file inside /sdcard folder:
Swipe to confirm you want to flash the rom
Reboot phone
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Thanks for this, but I already came across this. I get to the point where I do adb push name_of_rom.zip /sdcard/ but this is where I get the 'error:closed'
What else can I try?
cloudzero2006 said:
Thanks for this, but I already came across this. I get to the point where I do adb push name_of_rom.zip /sdcard/ but this is where I get the 'error:closed'
What else can I try?
Click to expand...
Click to collapse
Run adb devices prior to running the adb push command. If it comes back to anything but your serial number and "recovery" then the push command will not work. If it comes back "sideload" then use the following command:
Code:
adb sideload name_of_zip.zip
Ahh man, I thought I was getting somewhere when it started sending!
C:\Users\Jason\AppData\Local\Android\android-sdk\platform-tools>adb sideload And
roid_Revolution_HD-One_83.1.zip
loading: 'Android_Revolution_HD-One_83.1.zip'
* failed to write data 'protocol fault (no status)' *
C:\Users\Jason\AppData\Local\Android\android-sdk\platform-tools>
any ideas? I appreciate your help by the way
So i've managed to flash the stock ARHD ROM! Its weird because all the guides say when doing the adb push to add the /sdcard/0 but on the end but in your reply you said to end at the .zip and this actually works
Thanks so much man!!! You the best!

Categories

Resources