yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] gtrab:
When you run the RUU you will notice it takes some time to start

That's because it is expanding all the internal files it contains, including what you want: the "rom.zip" file it will flash (or at least it will try to flash it, but it will later check your phone is a different version andwon't flash)

When the RUU opens a windows asking to connect and blah blah blah,

all its internal files files have been expanded or unzipped into a temporary folder,

so now is when you can go and grab (copy) the rom.zip file you need !!!

That rom.zip file IS PC10IMG.zip = the new firmware you want to flash

YOU DON'T NEED TO "CREATE" the rom.zip file, the RUU WILL CREATE IT FOR YOU

(well, it is already contained inside the RUU, it wll just expand it to a temporary directory)

If you can find the rom.zip file, copy it to your SD card, it ddoesn't matter if the card i inside your phone and you conect the phone to the PC to copy it or if you remove the SD from the phone, use a USB car reader, and then reinsert it into your phone. The important thing is you must copy that firmware file rom.zip to your phone.

The rest of the process can be done with thephone itself, the PC is not required anymore since you already copied rom.zip to your phone's sd card
[G2 and Desire Z Android Development] nion:
Everythig goes!

Guys you're rock
[G2 and Desire Z Android Development] David Dee:
With the Rom from the installer, I got the same error as using your ROM.

I am now downloading the Bell ROM, will do the switch and let you know.
[G2 and Desire Z Android Development] lambstone:
Alright, thank you for the clarification. Time to get myself a desire z :D
[G2 and Desire Z Android Development] David Dee:
The sharing site will not work for me to download the Bell ROM. Tells me not available at this time. Anyone have a mirror copy?
[G2 and Desire Z Android Development] Swich007:
All working big THX
[G2 and Desire Z Android Development] martincm:
Is it possible to revert back to stock DZ rom the same way I've flashed let's say a CM nightly ?? And secondly; Is the process s-on/s-off reversible to lock it again? why I'm asking is because on for example my Nexus One the option was always s-on and I'm still able to flash custom recovery while it says in the tut that s-off is mandatory before flashing Clockwork for example.

And last, anyone has any news of a possible Apps2EXT method available for the Z, or does the rockstable DarkTremor one work fine at the Z?
[G2 and Desire Z Android Development] gtrab:
I can only answer your first Q:

Yes you can revert to stock, grab the RUU form this forum and flash the official ROM

(and, if you do so, you'd also get S-on again)
[G2 and Desire Z Android Development] ExTREmE99:
So I turned s-off but now I'm having a problem with native apps. Everytime I bootup the phone, some apps fail at launch or some doesn't even work and shows a android logo and doesn't open when tapped on.

Any solution to fix this? In recovery it says S-Off, do I need to install clockwork?
[G2 and Desire Z Android Development] martincm:
Great, in that case I'm flashing this evening. Great tutorial btw, more than very clear. Gonna test if implementation of the DT Apps2EXT method will work on the CM Nightly for the Z, 'cause I gonna need that one for setting back titanium apps backup.
[G2 and Desire Z Android Development] gtrab:
[EDIT] Duplicated post

Mod please delete
[G2 and Desire Z Android Development] gtrab:
Your problem sounds cache-related, has nothing to do with clockwork, which is just a recovery screen at boot.

I think it is related to your cache.

Please let me know how it goes.

That would be cool

Please report back
[G2 and Desire Z Android Development] kingpinda:
Hi there,

Great tut. One thing though, does Resetting to factory settings undo the perm root??

I have perm rooted my Desire Z. I checked by removing battery more than 30 seconds and after boot the superuser is present in my apps list.

Afterwards I have resetted to factory settings. Super user is gone from list and i cannot install adfree. It states it needs perm root. I will try again without resetting to factory settings.

Just curious if resettings to fact is the problem or mayhaps i have done something wrong..

edit: hmm weird i tried the tut again and now when i try to temproot, it states that it is already rooted. attempt permroot results in nothing. not an message not anthing.

Ok.. Now temproot will state: device already rooted. attempt permroot now: nothing. no message no action nothing. Unroot now!: same as permroot... So i'm stuck evidently..

Any tips?
[G2 and Desire Z Android Development] reycat:
I'm afraid I did the "you could brick your phone forever" thing. Oops. :(

It seems the hboot_7230_0.84.2000_100908.nb0 file I downloaded was not complete.

I typed dd if=/sdcard/hbooteng.img of=/dev/block/mmcblk0p1, rebooted and... and now I have a very expensive and very new brick.

Dummies are much, much smarter than me.

I guess there's nothing I can do but throwing my Desire Z to the bin, is there?

By the way, thank you for your guide, gtrab (no irony), if I hadn't been so careless it would have worked flawlessly.
[G2 and Desire Z Android Development] zammo25:
Do you have insurance for it? Maybe through your bank or household or something?? If you have accidental damage, take a brick to it and say you dropped it. I've done that before when I've wanted a new phone.

Excellent guide BTW OP....think I'll give it a try soon.
[G2 and Desire Z Android Development] andrewilley:
But possibly best not to advertise what you've done in writing in a public forum... LOL

Andre
[G2 and Desire Z Android Development] ExTREmE99:
How would i go abouts fixing the cache? Should i just format and restart with downloading all my apps again?
[G2 and Desire Z Android Development] reycat:
Thanks for the advice :)

I think I'd feel guilty 'cause I'm the only one to blame here. But my friend's iPhone fell the other day and broke its glass, I think I'll tell him :)

That's what nicknames are about, isn't it? :) :)

Thank you for you advice.

Do you think the Desire Z will have any value in eBay, even if it's only for spare parts?
[G2 and Desire Z Android Development] gtrab:
you typed "mmcblk0p1" instead of "mmcblk0p18"

huh...

You can try to:

Flash it through the official RUU

Open an ADB console and try to flash with fastboot

[EDIT] I´m checking the G2 forums, you are not the first one, there should be a solution, if theres a solution we will find it
[G2 and Desire Z Android Development] gtrab:
from Clockwork, "try wipe cache", or even better

resetting to factory won't change embedded changes, but you can try

if it doesn't work, then try flashing the whole firmware again with the official HTC RUU (check this forum to find your phone's firmware RUU)
[G2 and Desire Z Android Development] reycat:
Thank you very much. I'm heading to the G2 forums then :)

I'm downloading right now HTC Sync to try and flash the official RUU, but since the phone seems completely dead (no response to any button press, no LED indicating it's charging, nothing) I'm not too hopeful.

Anyway, thanks for the info, I'll try and let you know the results.
[G2 and Desire Z Android Development] CWolfCW:
I haven't found this in the FAQ but does "Factory Reset" remove perma-root and S-Off?

Also, what would happen if you did a factory reset with Cyanogen (or other 3rd party ROM) installed?

Is there anything to be careful of when doing a factory reset after 'hacking' the phone?

Edit: In the future, if there are newer versions of the engineering bootloader (hboot), would it be recommended/necessary to do updates to such? Same with wpthis-Z.ko? Sorry if that's a stupid question as I'm still not entirely sure how they work.
[G2 and Desire Z Android Development] reycat:
Nah, no luck. It seems people over the G2 forums say "bricked" when it reboots continuously or is stuck in the HTC logo. My Z is a real brick. Won't turn on, won't blink a LED, won't answer to any button press...

HTC Sync and the RUU ROM both say "What phone are you talking about? There's no phone there!".

Thank you anyway. I'm going to tell the wife what happened. If I don't come back, call the cops :)
[G2 and Desire Z Android Development] gtrab:
1.- Yes factory reset will delete perma-root and s-off

I have created a ROM Update zip to avoid this (it will embed root and S-OFF into the boot.img, so if you factory reset your phone, root and S-OFF will stay :D)

http://xdaforums.com/showthread.php?t=840372

2.-Problems with factory reset ?? Nah, just be sure to backup your info ;)

3.- wpthis-Z.ko is just temporary, to disable the write protection and push the new engineered hBoot. You can even delete wpthis-Z.ko from your phone if you wish.

hBoot is the real deal.

I hardly think it will be ever updated, but if so, If there are newer versions, you will be advised here. You bet. :)
[G2 and Desire Z Android Development] David Dee:
I am still trying to download the Bell RUU to try and debrand(by inserting Euro zip file). Outside of this, has anyone had any luck de-branding the latest bell nam version without a Goldcard? Looks like I may have to go out and buy another micro sd.
[G2 and Desire Z Android Development] gtrab:
IDEA

This could work, and would be indeed a very easy way to debrand

[EDIT] BUT I HAVE NOT TESTED THIS AND I AM NOT SURE IF IT IS SAFE

The hamster in my head has been rolling, thinking of this...

You can flash my EZDZ ROM Update.zip and then try:

1.- debranding with the official RUU

or

2.- flashing the EURO rom.zip from that RUU (aka PC10img.zip) straight from clockwork

My ROM Update zip is here:

http://xdaforums.com/showthread.php?t=840372

I already extracted the pc10img.zip (aka "rom.img") from the EURO RUU, you can download it here:

http://www.megaupload.com/?d=9S7WNB0C

And to get the full RUU go here:

http://xdaforums.com/showthread.php?t=822908

EDIT BEWARE I HAVE NOT TESTED THIS
[G2 and Desire Z Android Development] kingpinda:
Ok.. i just read here that reset to fact settings removes perm root.. How come then (i reset 3 times due to stupid htc sense syncing problems) when i have a reset to factory device that whenever i try to start over with the rooting, with temp root it says my device is already rooted.

And that permroot and unroot do absolutely nothing. When i try to install adfree it states that it needs a rooted device.
[G2 and Desire Z Android Development] David Dee:
Thanks again for you help gtrab! A few quick questions:

1. Update.zip: On your forum, it appears your update only works on the European D Z. Would it be ok to flash on my Bell NAM?

2. Your RUU & PC10img files, are they the same ones you provided and I downloaded on Saturday afternoon?

3, On clockwork, when my phone is off and I plug it in, it boots to recovery mode. Is there a fix to this problem you know about?
[G2 and Desire Z Android Development] David Dee:
Based on the warning I have killed this project.

I now have the Bell RUU and will replace the ROM.ZIP file the European one during installation (as you suggested on Saturday). Please confirm this method is safe. Thanks!!
[G2 and Desire Z Android Development] gtrab:
BEWARE I just edited the post you quoted, I've been reading about this, I can not be sure if this is safe by now, please edit your post too and delete the quoted text !!

Regarding your Qs:

1.- The EZDZ Update.zip should be OK on the BELL_NAM firmware because they share the same kernel. G2 uses a different kernel.

2.- Yes those files have not changed

3.- Reading the G2 forums, seems a common problem.

More than a problem I think is a life saving possibility:

if you ever brick your phone and it doesn't turn on, you know what to do :D

I insisit: please delete the quote form your post, I edited my post BEFORE you posted, but your post got a different timestamp (what's wrong with xda ?? the posting hours are messing up), whatsmore, it appeared in the previous page too !! will have to go edit there, what's going on ??

xda server problem ??
[G2 and Desire Z Android Development] nooge9:
I just got s-off but now my phone only boots if there is no SD card in it

If there is an SD card in, I'll see the "Preparing SD Card" on the status bar, then it just reboots.

Are the files hboot.img and wpthis-Z.ko affecting this? Do I need to them off my card? (Can't find my micro-SD adapter anywhere...grrrr)

Also, WiFi isn't working now. When I turn it on, it says "Unable to scan for networks". And YES I know there is a WiFi network available (using it right now on my laptop :p)
[G2 and Desire Z Android Development] gtrab:
this is unique, but you don't give us enough information

what method/methods you used ??

in what sequence ??

your phone is Bell or Euro ??

have you tested inserting another SD card ??

Chance: go to bootloader and do a FACTORY RESET (backup your stuff, of course), then it should be good
[G2 and Desire Z Android Development] David Dee:
QUOTE HAS BEEN DELETED AS REQUESTED

Let me know your thoughts on installing the RUU for Bell with the European rom.zip file? I have the Bell RUU ....666.5 version vs. the ....666.1 version RUU available here. Also, is there a way to turn off screen when in Clockwork Recovery (If I am going to leave it on all night when charging, would like to give screen a break).
[G2 and Desire Z Android Development] nooge9:
I followed your HOW TO ROOT guide first, however I used R13. This was yesterday, since then I've installed a few apps (Titanium Backup, and Android Mate).

Today I followed your HOW TO S-OFF guide. It boots fine, up until it reads the SD card, and it just keeps looping over the "HTC quitely brilliant" splash screen.

This is a Bell phone.

I don't have another SD card right now, I think I have to wait till later on in the week to get one. I'll have to back up my stuff tonight before I try a factory reboot, I'll keep you posted!

Thanks for the guide btw :D

EDIT: Did factory reset and went through ROOT guide and S-OFF guide again. Everything is perfect! Thanks again :)
[G2 and Desire Z Android Development] David Dee:
gtrab ; Just finished trying. It started flashing, thought i was there and suddenly got a wrong device error. Exited and every thing was still there including root. Looks like gold card is only option. Bell bloatwear and no HTC Locations until I buy another SD card :(
[G2 and Desire Z Android Development] jzhyok:
Check this http://android.modaco.com/content-page/320350/10-nov-r12-test-visionary-one-click-root/page/120/

The newly released Visionary r13 solved the problem
[G2 and Desire Z Android Development] kingpinda:
Thanks!

I managed to solve it just now though by means of reinstalling super user from the market.

Someone on a different forum gave me that tip. I mistakenly believed that Visionary just made available a hidden/developers tool (called superuser) that was already on the device. I did not know that Visionary installed the super user app and that it could be redownloaded from the market.

I now installed adfree on my phone and it works :)

Thanks! :)
[G2 and Desire Z Android Development] TheRomMistress:
@gtrab and David Dee

Has this been fixed? If there is anything I need to do, please let me know.
[G2 and Desire Z Android Development] gtrab:
yes, Sir

editing the quote solved

we are still working on an easy debranding method

(great PM comm with DavidDee)

thank you, Sir :)
[G2 and Desire Z Android Development] TheRomMistress:
haha, that is Ma'am to you buddy ;)
[G2 and Desire Z Android Development] buzmay:
Just 2 doubts is it possible to unroot the desire Z with the visionary app? I mean it says it does but is it confirmed?

Coudl you be abel to put in the sdcard the PC10IMG.zip and then enter into bootloader to read the zip file to unroot and restore to original stock?

Thanks
[G2 and Desire Z Android Development] buzmay:
Do you need S-Off to install clockwork recovery?? I mean in the Desire you do not need to be S-Off to have clockword recovery, ??

Thanks again
[G2 and Desire Z Android Development] angelotseb:
Hello,

thanks for your the tutorial!! very helpfull.

I'am an ex-nexus one user!

My goal is to put the stock android version on my new HTC desire Z...

I only read about the euro/asian HTC version....

Where can i get the ROM for Froyo?

Did someone try it before?

thanks!
[G2 and Desire Z Android Development] David Dee:
Agreed. gtrab has been incredibly helpful. I am still holding off on the $20 investment for a new SD card hoping a non-gold card solution will be found for debranding the Bell NAM!

gtrab: You may want to consider editing your first post on debranding by flashing the stock HTC DZ rom. It does not appear to work for Bell NAM v1.34.666.5 which is installed on devices when sold (I bought mine day 1 of the launch).
[G2 and Desire Z Android Development] gtrab:
Can you please point me to what to edit ??

I'll do so.

I'm working on another alternative, BRB...

@buzmay:

Your answers are already written in the FAQ, post 2 of this same thread, please check ;)
[G2 and Desire Z Android Development] nfoman:
Hope someone can help me with this...

I have a HTC Desire Z from Bell, ROM version 1.34.666.5. I was able to temp root the phone when I got it, that worked no problem. Then when visionary r12 came out, I can't get it to work.

Tapping Temroot Now says "You deivce is already rooted"

Then i Tap on "Attempt Permroot Now", nothing, no reboot noda

Tap "Unroot Now", noda, no reboot either

Then I go to Applications > Manage Applications > tap VISIONary + > Clear data and tap OK, great that works. Then I open a terminal, type su and get "permission denied". Ok, so unroot worked? wait a min...

Go back and open up Visionary r12, tap "Attempt Permroot Now", says "Please Temoroot your device before attemting permroot". umm, ok i click on temproot and it STILL says "You device is already rooted" and proceed to click on "Attempt Permroot Now" and again, phone doesnt reboot. Going back into terminal and typing su, I now get "must be suid to work properly". Typing, busybox su returns "unknown user root".

What I am missing????????????? Oh yea, I have already reset to factory settings more then 5 times through the recovery menu

Thank you
[G2 and Desire Z Android Development] gtrab:
This has happened to some users who downloaded previous versions of visionary.

I don't have an answer, but you are not the only one, this has been posted many times and maybe there's a solution.

You can check here:

http://xdaforums.com/showthread.php?t=808514

And here:

http://android.modaco.com/content/t...350/10-nov-r12-test-visionary-one-click-root/

Please report back
[G2 and Desire Z Android Development] nfoman:
Think I might have done worse.. when I reboot now, I am able to get into the factory reset options but when the phone reboots, all I see is the white screen with "htc". The phone is s-off now too... i know its not bricked yet but yet again im stuck lol

Edit - I have tried several RUU's and they all fail, usb error :(

I have also tried to flash from recovery mode but get the message "Can't open /cache/recovery/command‎ " "-- invalid operation --"
[G2 and Desire Z Android Development] gtrab:
but if you can get into the bootloader then you can select "factoy reset" from there

did you check the threads I recommended ??
[G2 and Desire Z Android Development] nfoman:
Yes i did, read it over twice. I have already tried factory reset around 5 times now :confused:
[G2 and Desire Z Android Development] gtrab:
and what are other users with your same problem saying ??

have you tested visionary r13 ??
[G2 and Desire Z Android Development] David Dee:
Nice to meet you "Ma'am" :). Just want to let you know you are running an excellent forum here. Thanks!
[G2 and Desire Z Android Development] andrewilley:
Perm-rooted and S-Off'd my SIM-free Desire Z with no major issues.

One oddity: I copied and ran Visionary (used r13) as instructed, and selected "Temp Root" but it stayed waiting for ages, and then the phone rebooted itself (some sort of a soft reboot which didn't take as long as a normal full reboot should have done considering the FastBoot option was off). It came back up to the main screen alright, but for about 4 minutes every action ran very slugishly, as if something was hogging CPU cycles in the background.

Anyway, once it had settled down I ran Visionary again and found I still didn't have Temp Root, so I tried again. This time it worked fine (almost instantly) and then I ran Perm Root and that went fine too.

Thanks everyone for the great software and clear guide!

Now to start playing!

Andre
[G2 and Desire Z Android Development] kingpinda:
I used r12 and after fact reset couldnt do anything either. device stated it was already rooted (and apparently it was although unroot didnt work) and both other options werent functioning. Couldnt get root permissions to install said programs.

I rectified this by reinstalling super user from the market which had vanished after hard reset. Havent tried out r13. Didnt need it because now i have root.
[G2 and Desire Z Android Development] gtrab:
good to hear you solved it

can we concude that your problem was caused by that ??

only because Superuser was uninstalled when "unrooted" ??

thanks for sharing your experience, we will be able to help others in the future
[G2 and Desire Z Android Development] steviewevie:
Sorry if I've overlooked it, but it would be really handy if we had a guide on how to return to stock. Unrooting is mentioned above, and there's also a reference to flashing the original ROM, but we need to help to try and avoid the big problems you can get that are described at http://xdaforums.com/showthread.php?t=838484

Edit - perhaps we can use this as the base for a DZ guide ? http://xdaforums.com/showthread.php?t=835971
[G2 and Desire Z Android Development] gtrab:
yes, fastludeh22's link was added yesterday to "Resurces".

I will add the other recov tut link today.

Thanks
[G2 and Desire Z Android Development] CoyotinX:
Guys, sorry if i haven't read all 15 pages.... but can someone tell me if this is all for G2-tmobile as well or not? I just got it and don't want to brick it. if this is not it, please link me to it... I'm a noob on android...
[G2 and Desire Z Android Development] steviewevie:
Right now, the G2 and the Desire Z have separate forums. So if you've got a G2 with the stock ROM etc on it, then go to the G2 forums, where you'll find a similar sort of thread - http://xdaforums.com/forumdisplay.php?f=758
[G2 and Desire Z Android Development] kingpinda:
To elaborate: My device was succesfully rooted the first time over. BUT because super user dissapeared after fact reset it couldnt give permissions. Evidently visionary needs permissions by means of super user to perm root AND to unroot.

I simply grabbed super user from the market and all was well. I had to exchange my device today because of a dead pixel and i successfully unrooted my device without any other modifications. simply make sure super user is present.
[G2 and Desire Z Android Development] kuzu92:
hmm...I tried to install clockworkmod recovery.But after tap "Reboot into Recovery",my desire Z show ! mark...

Can anyone tell me how to solve this problem?

PS

Sorry,adter I tried one more time,it had been installed.
[G2 and Desire Z Android Development] steviewevie:
Can we get an MD5 checksum for this in the posting please, given that this is so critical ? e.g. corrupted hboot = permanent brick ?

Edit - sorry, just noticed the MD5 is in stridger's guide. I wonder if it would help to put in a specific step to check this value when the file is downloaded ? e.g. if some people don't understand what MD5 means ?
[G2 and Desire Z Android Development] TheRomMistress:
Oh, thank you very much :)...it is always nice to hear that.
[G2 and Desire Z Android Development] ribe10:
Is there also a way to put the s-off back on? I might have to send back my mobile because of dead pixels on the screen and i fear that i might lose my warranty when it has s-off:(