Related
Hello everyone, i'm a new (but technical inclined) italian android user
I've just bought a Desire Z that I like a lot!
I've read for weeks many guide in the development section of this forum and i'm pretty sure what i'm going to do rooting my device.
But, being this phone my first android, I have few questions:
After doing the rooting process explained here, gfree script should create a backup of a partition (can you tell me what partition is). Using that guide i'm having a permanent-root + S-OFF . My question is: How can I come back with a device un-rooted and s-on?
I saw there are some ROMs that requires and Engineering HBOOT. If I install that HBOOT (after a Nandroid Backup) i'll be able to restore my DZ to the original HBOOT?
This question is about custom recovery. If i install the Clockwork recovery, how can i restore the original Recovery?
Please be patient with me and my plain english. Can you answer me explaining step by step what should i do?
Thank You very much in advance
No One? Did i requested too much?
After doing the rooting process explained here, gfree script should create a backup of a partition (can you tell me what partition is). Using that guide i'm having a permanent-root + S-OFF . My question is: How can I come back with a device un-rooted and s-on?
Click to expand...
Click to collapse
The Vision, like other Android phones, has an internal storage memory card (the built-in phone memory, not referring to the plug-in SD card here). That is divided into separate "partitions", which to Android look like individual devices on their own. So this "partition" is one sub-section of the built-in internal storage memory.
gfree can now un-do what it has done, without requiring you to use that backup of the partition. But it's handy to keep it anyway, just in case. If necessary you can run a simple one-line command (using "dd") to copy back the partition backup (dd copies from one file/device to another).
The exact steps to un-root and S-ON depend on exactly which ROM you're on and trying to go back to, and how you got the root/S-OFF, but it's pretty straightforward and it's no problem to revert.
I saw there are some ROMs that requires and Engineering HBOOT. If I install that HBOOT (after a Nandroid Backup) i'll be able to restore my DZ to the original HBOOT?
Click to expand...
Click to collapse
The eng hboot is useful because it gives you additional flashing options, like fastboot. It also allows you to upgrade your radio.
Yes, you can easily restore the stock hboot either by flashing a complete stock ROM, or just flashing the hboot on its own.
This question is about custom recovery. If i install the Clockwork recovery, how can i restore the original Recovery?
Click to expand...
Click to collapse
You can flash a new recovery image (e.g. a stock one) from fastboot if you have the eng hboot installed, through "fastboot flash recovery recovery.img". This will need you to have adb setup on your phone, fastboot comes along with adb.
First of all thankyou for replying
I think I got it but i might need some explainations..
steviewevie said:
The Vision, like other Android phones, has an internal storage memory card (the built-in phone memory, not referring to the plug-in SD card here). That is divided into separate "partitions", which to Android look like individual devices on their own. So this "partition" is one sub-section of the built-in internal storage memory.
gfree can now un-do what it has done, without requiring you to use that backup of the partition. But it's handy to keep it anyway, just in case. If necessary you can run a simple one-line command (using "dd") to copy back the partition backup (dd copies from one file/device to another).
The exact steps to un-root and S-ON depend on exactly which ROM you're on and trying to go back to, and how you got the root/S-OFF, but it's pretty straightforward and it's no problem to revert.
Click to expand...
Click to collapse
Ok.. so, for example, if I'm running the stock ROM with Sense and froyo (rooted and S-OFF) and i want to go back to a stock ROM un-rooted and S-ON will I have to dd the partition backup or I just need to type in a Terminal Emulator on the device
Code:
./gfree -s on
and reboot the phone? (loosing in this way Temp-Root)?
The eng hboot is useful because it gives you additional flashing options, like fastboot. It also allows you to upgrade your radio.
Yes, you can easily restore the stock hboot either by flashing a complete stock ROM, or just flashing the hboot on its own.
Click to expand...
Click to collapse
Ok this part is totally clear!
You can flash a new recovery image (e.g. a stock one) from fastboot if you have the eng hboot installed, through "fastboot flash recovery recovery.img". This will need you to have adb setup on your phone, fastboot comes along with adb.
Click to expand...
Click to collapse
The recovery.img you're talking about is the img file that I have on the SD card after doing a Nandroid Backup?
What i can't understand (cause i've never tried) is if I do a complete backup with Clockwork will I have a backup of the stock rom (with ALL parts of it) or something else.
Thanks a lot for your patience
I'm only replying for the last question:
To restore your stock recovery image, you have to flash it from either fastboot or a rooted ROM (with the help of the flash_image command). You can get the stock recovery from the official RUU your phone came with. I'm guessing yours came with the clean WWE 1.34.405.5, right? Then you download the RUU, start it and find rom.zip in the temp folder of your computer. Copy the rom.zip to another place and close the RUU. Inside rom.zip you'll find all the stock images, including system, boot and recovery.
I think the steps would be (should you have an ENG SPL):
1. gfree s-on
2. reboot to fastboot and flash all the stock partitions, one by one - fastboot flash <partition name (system, boot, recovery, radio, userdata)> <partition name>.img
3. flash the SHIP SPL to go back to full S-OFF - for example, fastboot flash hboot hboot_7230_Vision_HEP_0.85.0005_101011.nb0
4. reboot or power down your phone, then go back to fastboot to check if everything's okay - fastboot reboot bootloader or fastboot oem powerdown (if I remember correctly)
Hope this answers your question
keinengel said:
I'm only replying for the last question:
To restore your stock recovery image, you have to flash it from either fastboot or a rooted ROM (with the help of the flash_image command). You can get the stock recovery from the official RUU your phone came with. I'm guessing yours came with the clean WWE 1.34.405.5, right? Then you download the RUU, start it and find rom.zip in the temp folder of your computer. Copy the rom.zip to another place and close the RUU. Inside rom.zip you'll find all the stock images, including system, boot and recovery.
I think the steps would be (should you have an ENG SPL):
1. gfree s-on
2. reboot to fastboot and flash all the stock partitions, one by one - fastboot flash <partition name (system, boot, recovery, radio, userdata)> <partition name>.img
3. flash the SHIP SPL to go back to full S-OFF - for example, fastboot flash hboot hboot_7230_Vision_HEP_0.85.0005_101011.nb0
4. reboot or power down your phone, then go back to fastboot to check if everything's okay - fastboot reboot bootloader or fastboot oem powerdown (if I remember correctly)
Hope this answers your question
Click to expand...
Click to collapse
Ok.. You were very clear. Only a question.. what's SHIP SPL, where can I get it and, expecially, why should I come back to full S-OFF
There are two kinds of SPLs:
1. ENG - engineering, which gives you one kind of S-OFF - the kind which lets you flash your phone.
2. SHIP - shipped, the one which the end-user is supposed to have. This is the one you'll find inside RUUs.
To make thing even MORE complicated, there are two kinds of S-OFF:
a) Radio S-OFF - turns the security (S) flag off, removing write protection from the system partitions AND keeping it off even if you reflash everything.
b) ENG SPL S-OFF - also called "label S-OFF" in this forum, removes write protection AND lets you flash from fastboot. However, if you reflash the SPL to stock and don't also have Radio S-OFF, your security flag is set back to ON.
What I mean by "full S-OFF" was having both kinds - Radio and SPL.
In the steps I wrote before I assumed you had an ENG SPL in adition to the radio S-OFF (done by gfree), so that you could flash your system from fastboot. Which means that, to gain S-ON, you need to set radio security back to ON (gfree -s on) and then flash the SHIP SPL from fastboot
Now, if you don't have an ENG SPL but there is a RUU available for the version your phone came with (and you didn't install a ROM with a main version newer than the RUUs), you're in luck! Just use gfree to go back to radio S-ON and then use the RUU to flash your phone back to stock.
keinengel said:
There are two kinds of SPLs:
1. ENG - engineering, which gives you one kind of S-OFF - the kind which lets you flash your phone.
2. SHIP - shipped, the one which the end-user is supposed to have. This is the one you'll find inside RUUs.
To make thing even MORE complicated, there are two kinds of S-OFF:
a) Radio S-OFF - turns the security (S) flag off, removing write protection from the system partitions AND keeping it off even if you reflash everything.
b) ENG SPL S-OFF - also called "label S-OFF" in this forum, removes write protection AND lets you flash from fastboot. However, if you reflash the SPL to stock and don't also have Radio S-OFF, your security flag is set back to ON.
What I mean by "full S-OFF" was having both kinds - Radio and SPL.
In the steps I wrote before I assumed you had an ENG SPL in adition to the radio S-OFF (done by gfree), so that you could flash your system from fastboot. Which means that, to gain S-ON, you need to set radio security back to ON (gfree -s on) and then flash the SHIP SPL from fastboot
Now, if you don't have an ENG SPL but there is a RUU available for the version your phone came with (and you didn't install a ROM with a main version newer than the RUUs), you're in luck! Just use gfree to go back to radio S-ON and then use the RUU to flash your phone back to stock.
Click to expand...
Click to collapse
Thank You a lot! Very Kind
I understood what I have to know. I do like this forum for what people are there. Thanks to steviewevie too for first replying.
I'm ready to root my phone without worries for my warranty
I'll put [SOLVED] in the title.
Greetings
Lippol94
Has anyone got a got a guide on how to change to CM7 boot?
Also, do you need to be s-off to do it?
Go to --> Alpharev
Code:
1) Nandroid backup in recovery.
2) Verify the MD5SUM of the file you downloaded against the one in the table.
3) Flash HBOOT with your phone in fastboot mode (Back+POWER) -> 'fastboot flash hboot bravo_alphaspl.img' (change into the correct filename for the HBOOT you downloaded)
4) 'fastboot reboot-bootloader'
5) 'fastboot erase cache'
6) Boot recovery, wipe everything and restore.
And: Yes, you need S-Off
Thanks, is it possible to s-off without using a cd?
You don't need to be s-off to flash CW recovery, only rooted. Although Alpharev will do this. (kills 2 birds with one stone). I rooted, z4root, installed CW along with Rom Manager. Flashed ROM.
The only advantage to s-off, is that you can change the "splash image" (not boot animation) Boot animation can be changed without s-off.
You don't need to run from cd.
But.... You have to have drivers installed.
Sure, you can either create a bootable usb-stick or start the image as a virtual system with virtual box. Please use the forum search, there is a really good tut including a step by step guide for each method.
Sent from my HTC Desire using XDA Premium App
Moscow Desire said:
You don't need to be s-off to flash CW recovery, only rooted. Although Alpharev will do this. (kills 2 birds with one stone). I rooted, z4root, installed CW along with Rom Manager. Flashed ROM.
The only advantage to s-off, is that you can change the "splash image" (not boot animation) Boot animation can be changed without s-off.
You don't need to run from cd.
But.... You have to have drivers installed.
Click to expand...
Click to collapse
Except that he is talking about a custom hboot and not of cwm recovery.
For flashing hboot you need s-off!
Sent from my HTC Desire using XDA Premium App
Tillus said:
Sure, you can either create a bootable usb-stick or start the image as a virtual system with virtual box. Please use the forum search, there is a really good tut including a step by step guide for each method.
Sent from my HTC Desire using XDA Premium App
Click to expand...
Click to collapse
Bootable usb would be perfect, ill search the forum to how to do this.
325i. said:
Bootable usb would be perfect, ill search the forum to how to do this.
Click to expand...
Click to collapse
Just download the CD iso image and use this tool (or similar) to make a bootable USB from it:
http://unetbootin.sourceforge.net/
Moscow Desire said:
The only advantage to s-off, is that you can change the "splash image" (not boot animation) Boot animation can be changed without s-off.
Click to expand...
Click to collapse
Not true,there are many many more advantages of having s-off your Desire,and one of them is becoming more useful and needed these days,and that one is precisely what OP of this topic is trying to do: flash CM7 Hboot to have csutom partition sizes,and have more space on /data partition for app or dalvik cache (if using Data++ ROMs). And that can not be done if S-on.
Thats the thread I was talking about.
Tillus said:
Thats the thread I was talking about.
Click to expand...
Click to collapse
thxs for that i am now s-off used boot cd. so if i wonted to flash say Rom ([ROM][17/04][Sense2.1 GingerBread]InsertCoin CM7/A2SD+ v01 |Cam working|TV animations)
it says i need CM7 HBOOT how would i install this i cant seem to find this out, i am new to android and have used lee droids and a few other Roms but would like to use the rom i said about but dont know how
tvr84 said:
thxs for that i am now s-off used boot cd. so if i wonted to flash say Rom ([ROM][17/04][Sense2.1 GingerBread]InsertCoin CM7/A2SD+ v01 |Cam working|TV animations)
it says i need CM7 HBOOT how would i install this i cant seem to find this out, i am new to android and have used lee droids and a few other Roms but would like to use the rom i said about but dont know how
Click to expand...
Click to collapse
You need the android sdk to get abd and fastboot running. You can download this here:
http://developer.android.com/sdk/index.html
then open Programfolder/tools in commandline, boot your phone in fastboot-mode (swich off, then switch on while hitting back-key (back!, not vol-down).
Then in commandline type in "fastboot devices" to check if your phone is connected properly (it should show you, if a phone is connected). If yes, use the steps I posted earlier and are described on alpharev.nl
Personally..
I used the CD, followed the prompt to s-off.
Then once s-off and custom bootloader was install, I then used the PB99IMG.zip from AlphaRev to change my partitions to CM7 hboot
http://alpharev.nl/PB99IMG_bravo_cm7.zip
Easy as.
reply
Tillus said:
You need the android sdk to get abd and fastboot running. You can download this here:
http://developer.android.com/sdk/index.html
then open Programfolder/tools in commandline, boot your phone in fastboot-mode (swich off, then switch on while hitting back-key (back!, not vol-down).
Then in commandline type in "fastboot devices" to check if your phone is connected properly (it should show you, if a phone is connected). If yes, use the steps I posted earlier and are described on alpharev.nl
Click to expand...
Click to collapse
You don't need to use fastboot to change partition sizes, just use the PB99IMG.zips, even easier.
But having the adb/fastboot stuff sorted, is always a plus.
garpunkal said:
You don't need to use fastboot to change partition sizes, just use the PB99IMG.zips, even easier.
But having the adb/fastboot stuff sorted, is always a plus.
Click to expand...
Click to collapse
Hi, I've got fastboot setup etc. But can't seem to find a guide on how to change all the partition.
So all you're saying is that if I put the PB99IMG.zips into my sd card and boot into Bootloader, it'll install automatically AS WELL as do the partitions for me? And one more thing if I may (just for clarity) do I put the PB99IMG.zips onto the root of my sdcard or into one of the subfolders and if so which one?
Thanks and sorry for the bombardment of questions!
You will have costom MTD partitions CM7 for exempl: h-boot 130M sistem, 5M Chace, 302M data.
If you mean the EXT partitions? You must still make a ext partition wit cwm or gparted orrommanager.
Put the PB img on your SDcard, the map doesnt matters, because the phone will recognize it enywhere.
usefull GUI app for flashing boot:
FastbootCommanderV.1.1
http://forum.xda-developers.com/showthread.php?t=823315
tvr84 said:
thxs for that i am now s-off used boot cd. so if i wonted to flash say Rom ([ROM][17/04][Sense2.1 GingerBread]InsertCoin CM7/A2SD+ v01 |Cam working|TV animations)
it says i need CM7 HBOOT how would i install this i cant seem to find this out, i am new to android and have used lee droids and a few other Roms but would like to use the rom i said about but dont know how
Click to expand...
Click to collapse
Hi,
about CM7 and the rom you want to try, you can have a look to this thread:
http://forum.xda-developers.com/showpost.php?p=13084241&postcount=17
I try to resume my experience...
Hope it will help you.
Hi, I have a problem with this method.
http://forum.xda-developers.com/showthread.php?t=928160
I did all the steps, and when I rebooted my phone the screen shows me a white screen with the logo HTC (Desire Z), and it does not continue.
I have installed the hboot, eng boot, and it works, but I do not know how to use it or copy it in the sd as an image of a rom. Can I install the rom from hboot?, Can I install a recovery from hboot?.
Greetings and thank you very much.
There always used to be a post about "Do not ever use Visionary to root your device" as it has a high chance of bricking your phone. Indeed, in the article you posted, it states to use a different method. The best and safest method I understand is in the Wiki.
Recovery will depend on whether you can get into the recovery. Try press the trackpad while powering on. If you get into that, you have a chance of recovering your phone.
Craig
1. you shouldn´t have used visionary
2. if you really got a eng hboot do the following: download a recovery.img (here a link):
http://forum.xda-developers.com/wik...sion#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD
...then start a cmd.exe and type: fastboot flash recovery recovery.img
afterwards you should have a custom recovery, enter it mount usb storage put a rom (.zip) on your sdcard unmount and flash it.
So i tried to get stock rom back on my htc one m8 which is locked to ee and is a uk phone. I cant seem to get past the bootloader page the white fastboot screen.
Please help me.
You'll need to give a little more information rather than "tried to get stock ROM".
What did you do, what did you flash, are you S-On or S-Off? Have you somehow wiped the /system partition? Do you have a custom recovery installed currently?
Have you even unlocked the bootloader?
EDIT: I have to go now. I'm not sure what situation you're in. I don't normally suggest people use Toolkits and the like, but if you are in difficulties, in the first instance do a search (I doubt if you are the first person to have been in whatever position you are in). If you can't sort yourself out from the results, then have a look at this thread.
nobnut said:
You'll need to give a little more information rather than "tried to get stock ROM".
What did you do, what did you flash, are you S-On or S-Off? Have you somehow wiped the /system partition? Do you have a custom recovery installed currently?
Have you even unlocked the bootloader?
Click to expand...
Click to collapse
S-ON i think the system partion is whiped because i cant do anything other than fastboot the bootloader is locked so i cant get into a custom recovery. I was following a youtube video on how to get back to stock after rooting the the guy had me do a oem command in fastboot.
OK. But I'm not sure that you have actually wiped your /system partition.
Before you do anything, in fastboot mode (the white screen with the mutli coloured writing on it), type the following in a command prompt from the fastboot folder/directory on your PC, then press enter:
Code:
fastboot erase cache
and if that does nothing
Code:
fastboot wipe cache
Then try to reboot by typing
Code:
fastboot reboot
and hit enter.
If that doesn't work, grab the toolkit I linked to and you'll want to
1. Unlock bootloader
2. Flash custom recovery (choose TWRP)
3. Sideload ROM from recovery and follow the relevant instructions in recovery (You'll need to download a ROM to your PC and place it in the relevant directory)
My Problem Is Solved!!!!!!
Here's a step for people who might have the same questions about flashing recovery.
If you are S-OFF but locked, try to update your hboot. You can download the file through HTCDEV website, just simple create an account and choose to unlock bootloader for DHD, and you will be directed to the hboot download page.
For my case, my DHD can't be recognized by pc. If you meet the same situation, you can run the hboot ruu, find the adb.exe in task manager, right-click to open where it is, scroll down in the folder and find the rom.zip. That's it! Just rename it to PD98IMG.zip and put it in your sdcard root, reboot DHD to bootloader and choose the hboot, follow the instructions to flash it.
After refreshing the hboot, you will notice that your bootloader page has the LOCKED flag but it doesn't matter because you are still S-OFF.
You can flash this file, with the same steps as flashing hboot:
30,4,14[Ace] CWM 6.0.4.8 Advanced Edition / PhilZ Touch 6.29.8 (libtouch_gui 1.90)
Main thread + features + install instructions + dev support http://forum.xda-developers.com/showthread.php?t=2201860 CWM Touch for Ace was a bit old and outdated compared with others recoveries. Now it seems one of the most functional. PhilZ...
forum.xda-developers.com
The PD98IMG.zip file is on the top. if you want to use other recoveries like TWRP Official or repartitioned one, just download the IMG file, and replace it with the one in PD98IMG.zip. Notice, if you using WinRAR to do this, make sure you choose the storage option for compression.
That's it! Reply if you still have problems. I'd like to help. DHD 4eva!
Hi there,
I'm here to ask if anyone can help me to flash the recovery. I bought a used DHD and even though it's s-off, I can't flash any custom recovery into it.
Here are the methods I tried:
1. Fastboot flash (fastboot flash recovery recovery. img) - the command line shows it was succeeded, but when I tried to boot to recovery, the stock recovery is still there.
2. ADB flash (flash_image recovery /sdcard/recovery.img) - can't find this command which I tried on HTC Hero and worked.
3. ADB dd command (dd if=/sdcard/recovery.img of=/dev/mmcblkop21) command succeeded, but it doesn't work too.
4. PD98IMG.zip - DHD can't recognize the zip file at all.
If you have any idea about this, please reply. Thank you.