yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] stridger:
Well, for me it was able to flash system, but not boot. My guess would be hboot wouldn't work either. [Obviously it won't return an error... It will think it had written, when in fact it hadn't.]

As for the post before that, the fact that stock recovery can flash images says nothing about other recoveries being able to do the same. Stock recovery could disable wp for example.

In any case it would be nice to have permanent write-access...
[G2 and Desire Z Android Development] fastludeh22:
Dont take this as arguement, cause as ive said i dont have a z, just going by what ive thought to be right. With that being said, the fact that wp is off in stock recovery does say something. The bootloader is what sets wp on/off so if the bootloader is loading the recovery(which it thinks is stock) wp SHOULD be off. i guess a good way to test would be after a nandroid, flash a zip thats only a boot.img and see if it takes.

Heres another question then, what about using the g2 eng recovery?
[G2 and Desire Z Android Development] g1junky:
i tried the G2 method for obtaining clockwork and it didn't work it says it flashed from the app but when i try to backup rom im still on the stock recovery.. would u recommend i try the D-Z method?
[G2 and Desire Z Android Development] Sphaerophoria:
wp is definately off in recovery but the problem is probably "your update-binary or updater-script (don't use update-script)" in koush's own words. Anyways i hope we find a way around this soon ;)
[G2 and Desire Z Android Development] stridger:
FYI: Method updated to reflect the fact that we now have an ENG hboot.
[G2 and Desire Z Android Development] steviewevie:
Good work.

Just a suggestion, but I think it would be a lot clearer if, instead of two lots of "follow this except don't do this bit", you were to copy out the whole procedure and change those two bits appropriately ?

Just trying to help minimise the chances of bricks.
[G2 and Desire Z Android Development] stridger:
Yes, I agree and would like to do that, but wanted to ask unforgiven512 first to integrate it into his guide, as it seems to much overhead to maintain two guides of essentially the same procedure...

Now both devices have a fully working eng bootloader, we really need to merge these two forums into an "HTC VISION" one!
[G2 and Desire Z Android Development] steviewevie:
Agreed, that would be a lot better - one single guide, with G2-specific and DZ-specific steps, where necessary. Easier to maintain etc.
[G2 and Desire Z Android Development] kingmook:
Nicely done mate.

I have successfully perma-rooted my device and have been able to get to recovery. And overclocking is still working great.

Again, well done.
[G2 and Desire Z Android Development] :
Possible Brick;(

Guys i think i may have bricked my Z

I did the following

I flashed the wpthis-Z.ko file

then i flashed the wpthis.PreOTA file

then i flashed the hboot, which worked fine.

But now i get lots and lots of force closes when sense boots,

Can anyone help please?

JD
[G2 and Desire Z Android Development] schriss:
The first time I did insmod wpthis-Z.ko, I had suddenly many errors too. I had to uninstall many apps and reinstall them, then all was back to normal. Didn't have problem with sense rebooting.

Maybe try hard reset to get back to factory defaults? You will loose some data probably because of that.

Sent from Desire Z
[G2 and Desire Z Android Development] vro25:
Worked after

Okay, I got S-OFF.

These are my steps:

Step 1 - run Visionary R12 to get perm root.

Step 2 - Push the files from page 1 to phone via adb

./adb push [path to file]/wpthis-Z.ko /data/local/wpthis-Z.ko

./adb push [path to file]/hboot_7230_0.84.2000_100908.nb0 /data/local/hboot-eng.img

(as you can see above, I renamed the HBOOT file on the phone just to be consistent)

note: I'm not sure if you HAVE to put them in /data/local of if you can just run this from /sdcard - but I didn't want to experiment :-)

Run the commands below as root via adb shell or from a terminal on your phone.

Step 3 -

insmod /data/local/wpthis-Z.ko

Step 4 -

dd if=/data/local/hboot-eng.img of=/dev/block/mmcblk0p18

Step 5 -

sync

Step 6 -

Wait two minutes and power off phone. Then boot holding volume down+power to confirm.

Good luck!
[G2 and Desire Z Android Development] vro25:
Can't you boot holding Volume Down + Power and restore your original firmware?
[G2 and Desire Z Android Development] :
A hard reset solved the problem;)

Phone is ok now thanks;)

Gave me a little scare;)))

lol

JD
[G2 and Desire Z Android Development] zappoo:
Very confusing. I am trying to overclock - i have perm root, but SetCPU won't show above 806.

What have I msised? so many posts here it's confusing.
[G2 and Desire Z Android Development] dvice19:
Did you use the overclocked kernel?
[G2 and Desire Z Android Development] dvice19:
I still can't get s-off. WTF??
[G2 and Desire Z Android Development] foxfire235:
Can someone clarify this? In the guide, it says that if you have used Visionary Permaroot, you only need to do steps 5 and 7. Why did you go all the steps? Is that still necessary?

Thanks.
[G2 and Desire Z Android Development] dvice19:
YES, I had to follow these exact steps to get my S-OFF. Otherwise it would not work for me...
[G2 and Desire Z Android Development] BriEE:
Still can't get recovery flashed for some reason...

S-OFF is working though
[G2 and Desire Z Android Development] awsrasool:
am sorry if this is a noob question, I know that the desire z and G2 are basically the same phone (vision), but wts the difference between the kernels on each phone? are they the same, is it better to wait for an overclocked kernel made for the desire z or the one for the G2 is basically it.

thanks
[G2 and Desire Z Android Development] foxfire235:
Woot! Just flashed Paul's latest ROM and it rocks. Thanks for the tips!
[G2 and Desire Z Android Development] stridger:
I have just updated the guide to be more user-friendly. I have also put in that since I haven't used Visionary myself, I cannot confirm that Steps 5 and 7 are the only ones that are needed. If your bootloader doesn't say S-OFF after Step 5, then try following Steps 1-5 again and see if it sticks. Would be nice to know what you find out.
[G2 and Desire Z Android Development] schriss:
I had perm root and visionary uninstalled.

Then, to get S-OFF you need these steps:

Step 2 - Push the files from page 1 to phone via adb

./adb push [path to file]/wpthis-Z.ko /data/local/wpthis-Z.ko

./adb push [path to file]/hboot_7230_0.84.2000_100908.nb0 /data/local/hboot-eng.img

(as you can see above, I renamed the HBOOT file on the phone just to be consistent)

Run the commands below as root via adb shell or from a terminal on your phone.

Step 3 -

insmod /data/local/wpthis-Z.ko

Step 4 -

dd if=/data/local/hboot-eng.img of=/dev/block/mmcblk0p18

Step 5 -

sync

Step 6 -

Wait two minutes and power off phone. Then boot holding volume down+power to confirm.

Even if you have perm root, you still need all these steps to be able to flash hboot, because having perm root doesn't give S-OFF, so without step 3 it would not work (it would not be able to write to partition).
[G2 and Desire Z Android Development] schriss:
Hi can you shed more light on the above? All I have is ClockWork installed through ROM Manager. Is there anything else that can be installed as next step?

Also, maybe include step how to make stock ROM Backup with ClockWork? Might be handy to have one before you try those different ROMs that start popping out...
[G2 and Desire Z Android Development] vro25:
You're mixing up the Step 6 from the Perma-Root guide.

It should be changed to:

Step 6

Note: This step is not required if you have used VISIONary r12 to perma-root.

Close your terminal. If you are in adb shell, disregard

Run VISIONary again, this will lock in root. You now might want to run

Step 7

Code:

# sync

to make absolutely sure everything will be saved.

Now reboot your phone gracefully and check that everything sticks.
[G2 and Desire Z Android Development] stridger:
The only thing that I have installed is an overclocked kernel. But now ROMs are starting to emerge, with CM6 (hopefully!) coming out tonight, this is bound to change.

I think this is beyond the scope of this tutorial. Once clockwork is installed, there are many other guides out there that tell you how to drive it.
[G2 and Desire Z Android Development] stridger:
I don't think the sync step is crucial, as Linux should sync automatically when you gracefully unmount filesystems (which happens on a graceful reboot). If somebody can confirm that sync is crucial, I will modify it accordingly, but I certainly haven't done it on my phone.
[G2 and Desire Z Android Development] :
Stridger can you release a method of return to stock, unrooted, and s-on mate?

JD
[G2 and Desire Z Android Development] stridger:
I haven't done this before, but isn't that just a matter of using the stock RUU thats further down in this forum (or the ZIP that is inside)? That would flash everything hboot/recovery/android so you should get back to stock... (but why would you want to? ;) )
[G2 and Desire Z Android Development] :
I want to get back to stock because pauls sense rom does not have locations... How do i extract the rom from the ruu mate?

JD
[G2 and Desire Z Android Development] vro25:
Suggested Guide Updates

I've just had to update my phone again as I lost S-OFF when I put the stock HTC Desire Z EU image on. I was successful only by following the exact steps I took before. Actually this time I put the files on the root of my SD card, but I don't think we should document that as people *will* forget to turn of USB disk mode and it's just more trouble than it's worth.

Anyway, with this last update fresh in my mind, I think you should adjust your guide to be more direct in order for people to have more success.

To that end I suggest three changes:

1. Requiring VISIONary R12 permaroot:

Step 1 - run Visionary R12 to get perm root.

-Leave everything uncheck and click "temp root" now.

-Once that's done click "Attempt Permroot Now!"

-You're now have permaroot.

2. Mention that in step 4, the su command will prompt a root request on the phone:

Note: make sure your screen is on before doing this as it will raise a root request on your phone (if you haven't previously granted it) - click ok on your phone to grant root.

3. Remove the following from Step 6:

Note: This step is not required if you have used VISIONary r12 to perma-root.

Close your terminal. If you are in adb shell, disregard

Run VISIONary again, this will lock in root. You now might want to run

I think the above changes eliminate some guess work and will result in more success for people.
[G2 and Desire Z Android Development] vro25:
My first suggestion would be to pull stock ROM as per the instructions in STEP 2 from here:

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

...but rename the rom "stockimg.zip" and try installing it from recovery.

If that doesn't work, follow the full instructions and you should be good to go.
[G2 and Desire Z Android Development] stridger:
Thanks very much for this! Yes I agree and have updated it accordingly. I still disagree about the necessity of the sync step, but have left it in just in case.
[G2 and Desire Z Android Development] stridger:
Yes, also to add, if you are using Clockwork recovery, you don't need a goldcard etc... Just get the ZIP file, put it on SD, and apply it from recovery. Much quicker than what is in that manual, that is only needed if you have an S-ON hboot and no write access.
[G2 and Desire Z Android Development] TimD123:
Every time I try to flash this in fastboot it doesn't work. Phone will load to the HTC screen then stop. Tried getting a logcat but all it says is "waiting for device". Anyone had success overclocking this way with a Bell Desire Z? I have mine s-off and perma-rooted with Visionary r12.
[G2 and Desire Z Android Development] stridger:
Have you selected "FASTBOOT" in hboot? It has to say FASTBOOT USB in red somewhere in order for you able to do this.

HOWEVER! I have just noticed that the overclocked G2 kernel breaks FM radio... So not recommended atm... I'll have a look how to fix this later.
[G2 and Desire Z Android Development] TimD123:
Yes, I boot into fastboot, select fastboot, see that I have "fastboot usb" in red. Then switch to a terminal and run "fastboot flash zimage vision_oc_kernel_2.zip" which returns "OKAY"s on 2 lines. Then I reboot and get stuck on the HTC screen. I've tried this twice now :confused:
[G2 and Desire Z Android Development] glaciuz:
This thread got me to run CM 6.1 on my HTC DesireZ ! THANKS!
[G2 and Desire Z Android Development] TimD123:
Got a link? I'd love to give CM6.1 a go
[G2 and Desire Z Android Development] glaciuz:
1) it will be out soon, ciwrl is working on a release.

2) I can't post links here since I'm a new member, I would have posted the youtube video I made otherwise.
[G2 and Desire Z Android Development] stridger:
you need to follow the guide. You cannot flash a zip file. Please extract the zImage first. As I mentioned this will break your FM radio.
[G2 and Desire Z Android Development] codf4ther:
I tried this last night but I could not flash the rom.zip file from Clockwork. It kept saying invalid image. eVIL's rom flashed fine from CW.
[G2 and Desire Z Android Development] TimD123:
Thank you - didn't quite grasp that the first (or second) time around. I don't listen to the radio on my phone anyways so that doesn't matter so much to me.
[G2 and Desire Z Android Development] lambstone:
I'm considering getting a Desire Z (Asia version) (upgrade from my ancient hero) so I'm looking through the rooting procedures etc etc.

So am I to understand that Step 1 gives you perma-root

Steps 2-6 gives you S-off (which is full security off?)

Step 7 Installs Clockwork Recovery (which i understand is the recovery menu for doing NAND backups, flashing custom roms etc)

Step 8 Installs overclock kernel?

So can I just perma-root, and then install clockwork recovery? (i.e. just do step 1 and 6 only) Because I just need root access for apps and the ability to flash custom roms and make backups.s
[G2 and Desire Z Android Development] sickens:
Successfully rooted & S-OFF'ed my Bell HTC Desire Z following the instructions here. I used the ADB shell commands, simply copied/pasted as per instructions. Clockworkmod Recovery boots up aok.

Still new to Android, but I guess now the fun begins eh?
[G2 and Desire Z Android Development] nfoman:
issues

For some reason I just cant get VIOSIONary to work properly. I have reset the phone to factory settings already, and do not have any ROM's installed. It's stock from Bell. When I try to unroot, in hope's to reset the phone again, the phone doesnt reboot. When I go into terminal, type su or a privileged command, an error is thrown back: must be suid to work properly

Any ideas at to what I can do?

Thanks
[G2 and Desire Z Android Development] stridger:
I have now compiled the overclocked kernel for the Desire Z (including FM Radio support). Guide in the first post has been updated.
[G2 and Desire Z Android Development] gtrab:
amazing job stridger, congrats and a hat tip for you !!

[EDIT]

thank for sharing the links / souces too
[G2 and Desire Z Android Development] stridger:
What exactly do you want to know? There are guides out there how to cross compile an android kernel, which you can follow. The biggest difficulty was figuring out a working kernel config, because the DZ device kernel version differs from the one HTC released on their website. But other than that it was just a matter of downloading the kernel, patching the files that coolbho3000 has released, finding a config which will work and then compiling.

EDIT: Whoops, you modified your post :) I'll leave this in just for reference, if anyone is interested.
[G2 and Desire Z Android Development] gtrab:
yes I just realized that and edited

you answered while I was editing !! HAHAHA fast fingers...
[G2 and Desire Z Android Development] eXase:
Ughh,

instead of function not implemented when I try to insmod wpthis-Z.ko

I get

"insmod: init_module 'wpthis-Z.ko' failed (Exec format error)"

Any solution?
[G2 and Desire Z Android Development] ScottRTL:
You can also flash the CM nightly build and it comes with a kernel that is overclockable to 1497 MHz. Super easy...Just have to:

Backup

Wipe

Flash CM

Flash GAPPS

works great, just seems to have an issue with 3d app drawer on Launcher Pro for me... other then that, stable.
[G2 and Desire Z Android Development] stridger:
No FM Radio on CM on the G2/DZ unfortunately, which is a showstopper for me ATM.
[G2 and Desire Z Android Development] CTCNetwork:
Hi,

Have installed VISIONary r12 and when I attempt to "Temproot now" I get the "rooting device please wait" screen flashing a few times and returning to - seemingly - VISIONary.

However, the phone has opened a second instance of VISIONary and pressing "Attempt Permroot Now" tell me I need to Temroot my device before running Permroot!

Running Unroot says I have not rooted my phone.

Doing a restart and the same happens again. I get no root request and I see that VISIONary is in the list in superuser so has SU rights..

Anywhere I am going wrong? Using on an HTC Desire Z

Des. . . ;)
[G2 and Desire Z Android Development] Stealth1985:
What is the easiest and safest way to permanently overclock th DZ? Right now everytime I reboot I have to run the vision_oc.ko file but would like to have a permanent OC.
[G2 and Desire Z Android Development] CTCNetwork:
Hi,

Right. Following the above issue I have now successfully resolved the issues.

I ended up un-installing the software and rebooting. Re-installed the software and rebooted again.

Hey presto, it worked. This now allowed me to temproot and then once properly completed permroot which, as described in the initial post, rebooted the phone.

I was then able to open term as root and run the command line.

Yes, me too. I believe, having read a few more posts, that you can load an over-clocked kernel.

However, you should also be able to add the terminal command to a file which is first-run when the phone boots. But I'll be damned if I can find the name of that file now I want it!!!

Will post this when I find it again.. :)

I suppose a reasonable question to ask would be whether there is an advantage to either this method to overclock or whether a kernel is better.

Des. . . ;)
[G2 and Desire Z Android Development] Stealth1985:
Yeah, I believe there is a kernel but alot of information is being crossed between the G2 and DZ forums and I am not experienced enough to weed through everything and find the correct method. Hoping that someone has or knows how to permnantely run the overclock setting without too much hassle.
[G2 and Desire Z Android Development] HAK Devil:
Great guide first of all but I am having a little trouble getting clockwork recovery to work. I have gotten perm root and S-OFF to work but when I try to reboot into clockwork recovery through rom manager after flashing I end up with a little phone icon and a red triangular stop sign thing.
[G2 and Desire Z Android Development] gtrab:
try:

enter bootloader, check you're really S-OFF'ed, select "Recovery" and check if it redirects you to clockwork

or:

re-flash clockwork from within ROM Manager
[G2 and Desire Z Android Development] maus010:
I had the same problem when rebooting into recovery.

It showed a red triangular stop sign and the phone went dead.

I restarted my Z, fired up the rommanager and re-flashed the recovery.

Now it works pretty fine!! :)
[G2 and Desire Z Android Development] JCreations:
I've followed the OP and used the OC'ed kernel, but now the wifi mac is bugged, like in the G2 topic.

Is there any fixes for this for the DZ?
[G2 and Desire Z Android Development] imagoX86:
hmm I'm getting this error every time when i'm trying to install this module

insmod: init_module 'wpthis-Z.ko' failed (Exec format error)

Does anyone know a solution for it??
[G2 and Desire Z Android Development] D3LTA9:
OC working fine but have also got the wifi mac bug but doesnt seem to have affected connectability. My bluetooth seems to have done something funny though - the other day my bluetooth headphones were working fine but now bluetooth scan wont pick anything up. May be a random coincidence but I dont think so, will reflash the kernel and try again to double check otherwise might have to use my nandbackup.
[G2 and Desire Z Android Development] Kev-Lo:
Exactly the same case here.

I had tried to boot into bootloader (vol (-) and power button) with S-OFF and choose recovery but it stuck in the screen of red triangle and do nothing.

Retried to reflash CWM with ROM manager of but still the problem remains...
[G2 and Desire Z Android Development] vro25:
That means the installation of the recovery image failed.

Follow the instructions below:
[G2 and Desire Z Android Development] steviewevie:
Wouldn't it reduce the chances of error, if someone is typing all this in, to change step 2 from :

./adb push [path to file]/wpthis-Z.ko /data/local/wpthis-Z.ko

./adb push [path to file]/hboot_7230_0.84.2000_100908.nb0 /data/local/hboot_7230_0.84.2000_100908.nb0

to this ? :

Step 2 - Push the files from page 1 to phone via adb

./adb push [path to file]/wpthis-Z.ko /data/local

./adb push [path to file]/hboot_7230_0.84.2000_100908.nb0 /data/local
[G2 and Desire Z Android Development] vro25:
I don't know, will it? They can also just manually copy the files to /SDCARD but then they have to make sure they mount/dismount...

If they copy and paste they will be fine.
[G2 and Desire Z Android Development] D3LTA9:
can someone just check if there bluetooth still works as per normal after flashing the new kernel on desire z (ie not G2)?
[G2 and Desire Z Android Development] gtrab:
@stridger:

After 5 days I finally accomplishedthe auto-loading overclock for the stock kernel:

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

Now it will "stick".

Thanks for your great work mate.
[G2 and Desire Z Android Development] jubilleum:
Any idea how high can i go in overclocking without any damage?

I use a different method for overlocking, and i has question: what that "val=70" mean?

THX!
[G2 and Desire Z Android Development] AnyDone:
Hey people!

Anyone tried the eng-hboot on scandinavian DZ?

Also, why do u flash the hboot BEFORE nandroid backup?

Would it be possible to:

1. Temp root.

2. Insert the wpthis-Z.ko kernel module and mount the system r/w.

3. Flash clockwork recovery.

reboot

4. Make nandroid backup.

reboot

5. Flash hboot?

OR

1. Temp root.

2. Insert the wpthis-Z.ko kernel module and mount the system r/w.

3. Flash clockwork recovery.

reboot

4. Make nandroid backup.

5. Insert the wpthis-Z.ko kernel module and mount the system r/w.

6. Flash what ever **** u want?
[G2 and Desire Z Android Development] gtrab:
A NANDroid will not help with a screwed up mmcblk0p18 :(

Phone won't even turn on

My APK knowledge is minimal, it would be wonderful if all this hboot shizz could be automatically done by an APK or GSCRIPT
[G2 and Desire Z Android Development] AnyDone:
Ok, so hboot is something which lies DEEP in the phone. And nandroid backup would not recovery it. So i take it: if it really lies that deep, it is not big and shall not be updated, at least not really often.

So Scandinavian Desire-Z probably wouldn't have any problem with engineering hboot?

So we can safely assume that bricks are not caused by incompatible hboot? So what causes them? ****ed up command and all other user mistakes?

Or is it due to kernel module insertion kicking the eMMC so hard that file system corrupts?

And still do we really need to write the hboot if we would just insert Scottys kernel module (wpthis.ko) and mount with r/w every time we wanted to flash new rom?