yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z General] King-J_80s:
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell cat /dev/msm

_rotator

adb server is out of date. killing...

* daemon started successfully *

/dev/msm_rotator: invalid length

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb push fre3vo /data/

local/tmp

613 KB/s (9796 bytes in 0.015s)

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell

$ chmod 777 /data/local/tmp/fre3vo

chmod 777 /data/local/tmp/fre3vo

$ /data/local/tmp/fre3vo -debug -start FAA90000 -end FFFFFFFF

/data/local/tmp/fre3vo -debug -start FAA90000 -end FFFFFFFF

fre3vo by #teamwin

Please wait...

Attempting to modify ro.secure property...

fb_fix_screeninfo:

id: msmfb

smem_start: 802160640

smem_len: 3145728

type: 0

type_aux: 0

visual: 2

xpanstep: 0

ypanstep: 1

line_length: 1920

mmio_start: 0

accel: 0

fb_var_screeninfo:

xres: 480

yres: 800

xres_virtual: 480

yres_virtual: 1600

xoffset: 0

yoffset: 800

bits_per_pixel: 32

activate: 16

height: 80

width: 48

rotate: 0

grayscale: 0

nonstd: 0

accel_flags: 0

pixclock: 0

left_margin: 0

right_margin: 0

upper_margin: 0

lower_margin: 0

hsync_len: 0

vsync_len: 0

sync: 0

vmode: 0

Buffer offset: 00000000

Buffer size: 8192

Scanning region faa90000...

Scanning region fab80000...

Scanning region fac70000...

Scanning region fad60000...

Scanning region fae50000...

Scanning region faf40000...

Scanning region fb030000...

Scanning region fb120000...

Scanning region fb210000...

Scanning region fb300000...

Scanning region fb3f0000...

Scanning region fb4e0000...

Scanning region fb5d0000...

Scanning region fb6c0000...

Scanning region fb7b0000...

Scanning region fb8a0000...

Scanning region fb990000...

Scanning region fba80000...

Potential exploit area found at address fbb68800:800.

Exploiting device...

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell

adb server is out of date. killing...

ADB server didn't ACK

* failed to start daemon *

error: protocol fault (no status)

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb devices

adb server is out of date. killing...

* daemon started successfully *

List of devices attached

SH0CJR203511 device

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell

adb server is out of date. killing...

* daemon started successfully *

# exit

exit

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb push misc_version

/data/local/tmp/misc_version

adb server is out of date. killing...

* daemon started successfully *

991 KB/s (15837 bytes in 0.015s)

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb push flashgc /data

/local/tmp/flashgc

1538 KB/s (712688 bytes in 0.452s)

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell chmod 777 /d

ata/local/tmp/*

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell

# cd /data/local/tmp

cd /data/local/tmp

# ./misc_version -s 1.00.000.0

./misc_version -s 1.00.000.0

./misc_version: permission denied

# ./flashgc

./flashgc

./flashgc: permission denied

#
[G2 and Desire Z General] Setherio:
Try running

> adb shell ls -l /data/local/tmp

and paste back what it returns. I somewhere permissions are wrong but can't quite tell where. Whether it's a folder pushed instead of a file or for some reason the chmod command didn't work.

You could also go to webchat.freenode.net and join channel #g2root and visit us there, we can help you in real time if you'd prefer.
[G2 and Desire Z General] King-J_80s:
is this what u need

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb devices

List of devices attached

SH0CJR203511 device

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell ls -l /data/

local/tmp

drwxrwxrwx root root 2012-05-09 21:30 misc_version

-rwxrwxrwx shell shell 1372660 2012-04-19 15:19 busybox

-rwxrwxrwx root root 82840 2012-05-08 03:58 sh

-rwxrwxrwx root root 31 2012-04-20 14:50 output

-rwxrwxrwx shell shell 716548 2011-06-16 20:18 gfree

-rwxrwxrwx shell shell 23056 2012-05-08 03:58 boomsh

-rwxrwxrwx shell shell 1048576 2012-05-09 14:27 hboot-eng.img

-rwxrwxrwx shell shell 23056 2012-04-14 18:13 zergRush

-rwxrwxrwx shell shell 9796 2012-04-14 00:43 fre3vo

-rwxrwxrwx shell shell 3739648 2012-05-09 14:20 recovery.img

-rwxrwxrwx shell shell 439 2012-01-04 17:30 makespace

-rwxrwxrwx root root 24120 2012-04-14 18:13 sqlite3

-rwxrwxrwx shell shell 12995 2012-05-08 03:44 GingerBreak_original_v1.c

drwxrwxrwx root root 2012-05-01 23:55 misc_version_01

-rwxrwxrwx shell shell 14580 2012-05-08 03:44 GingerBreak.c

-rwxrwxrwx shell shell 81920 2012-04-30 18:43 GingerBreak

drwxrwxrwx shell shell 2012-05-09 15:39 __MACOSX

drwxrwxrwx root root 2012-05-09 21:30 flashgc

drwxrwxrwx shell shell 2012-05-01 04:00 *

-rwxrwxrwx shell shell 557962 2011-01-11 00:01 psneuter

-rwxrwxrwx shell shell 3992 2011-01-11 00:01 psneuter.c

-rwxrwxrwx root root 4434 2012-04-14 00:43 misc_version.c

-rwxrwxrwx shell shell 564 2011-04-01 16:28 root_psn

-rwxrwxrwx shell shell 12961 2012-05-08 03:44 GingerBreak_original_v2.c

C:\Program Files (x86)\Android\android-sdk\platform-tools>
[G2 and Desire Z General] Nipqer:
As I suspected, you pushed the misc_version and flashgc folders, not the files.

So you can either repush, or just do these commands:

adb shell
cd /data/local/tmp
cd misc_version
chmod 755 *
./misc_version -s 1.00.000.0
cd ..
cd flashgc
chmod 755 *
./flashgc
cd ..

That should sort it, if not, come to the irc channel

-Nipqer
[G2 and Desire Z General] strawmetal:
Thankyou

This downgrade is what made it possible for me to stay on XDA for this long. Thankyou Setherio(leon) for helping us.

Cheers.
[G2 and Desire Z General] SonicSoul95:
Nice, thanks :)
[G2 and Desire Z General] King-J_80s:
when should i run these commands if i may ask
[G2 and Desire Z General] Setherio:
After successfully running fre3vo
[G2 and Desire Z General] King-J_80s:
thanks it worked

nice downgrade successful thank you and setherio for all your help:D:D:D:D:D:D:D:D
[G2 and Desire Z General] utx:
I just followed the rooting manual. I am now rooted, unlocked and S-Off.

But the howto contains two problematic parts:

The whole section "Temp-Rooting to Backup" does not work. On my stock WWE Desire Z, /system is hardware locked to ro. Attempts to remount rw succeeds, even write "succeeds" (kernel thinks that data were written), but nothing is actually written (except write to Linux RAM cache). You can only try to backup whole partitions by cat utility in the temp-root shell, and then restore them in the bootloader or recovery. (I did not try it.)

After rooting completion, radio, rcdata and dzdata will remain downgraded to the old version for possibly different region. It would be better to recommend to re-upgrade them to the previous version or later. If you have an original shipped ROM image, then it is easy.
[G2 and Desire Z General] Nipqer:
The 'Temp-Rooting to Backup' is made for Gingerbread stock roms, in most cases (>90%) it works fine.

I really don't think it would be 'better' to upgrade radio, rcdata and dzdata.

It would be adding more steps to the process, which are completely unneccesary.

These phones have been out for over(?) 18 months now. There have been countless devices rooted with the current methods, there is no need to change anything

Do you have any proof that it improves anything? The way I see it, it makes it more of a pain in the long run, as if you want to undo gfree, you'd have to re-downgrade to an exploitable radio.

-Nipqer
[G2 and Desire Z General] Jayster06:
I have been trying to follow the guide and strawmetals pdf but whenever i get the step 5 to push the fre3vo, this is what it says

"C:\Users\Jason>adb push fre3vo /data/local/tmp

cannot stat 'fre3vo': No such file or directory."

I know i probably did small thing wrong but programming has never been my forte.

Any help would be appericated
[G2 and Desire Z General] Setherio:
Where did you place fre3vo? Looks like you may of placed it in a different folder than where you are in Command Prompt. One solution would be to copy/move fre3vo to your home folder - C:\Users\Jason
[G2 and Desire Z General] utx:
Not for my phone (purchased with WWE GingerBread last September, it was reset to factory state in the authorized service in April during the camera replacement). However kernel assumed that the write succeeded, nothing was really written to mmcblk0p25. Everything looked just like a silent write blocking in the hardware. (If you are interested, I have a complete temp-root mmcblk0 dump before my phone went to the service, after first repair (firmware upgrade and factory reset) and after second repair (camera replacement, firmware upgrade and factory reset)). I can to byte compare of all sections that may be relevant to partition locking, but differences are only in partitions 13, 14, 26, 27, 28.

I have no proof for it. I just guess that the vendor developers had a good reason, why they provided radio upgrade, and why they release region specific radios. (They do not release ChangeLogs, so I can only guess.)

Is mmcblk0p7 still locked on S-Off systems? If not, you do not need to power cycle eMMC to write. Or gfree does not continue with new radio? (I did not test it yet.)

Well, I have a rough idea, how to backup to not loose data, even if you cannot use Titanium Backup in the temp root. But I do not plan to try it, as I discovered this way after re-importing all needed data manually from my mmcblk0p26 backup (done from the temp-root).

When you have temp-root: cat /dev/block/mmcblk0p26 >/sdcard/systemdata.img

Copy to Linux system and run on Linux box (or in Android if you push e2fsck there).

e2fsck systemdata.img # (The image was created while mounted, it is a bit corrupted for sure.)

Then continue with downgrade and unlocking exactly as manual says, but when you are done, go to bootloader.

Unpack your stock gingerbread RUU to an empty directory, delete hboot* and recovery*, add your custom systemdata.img and create new custom PC10IMG.zip.

Flash that ZIP (e. g. from bootloader).

Then you can apply the latest OTA, either from Android menu (will overwrite recovery, and you would need to flash it again), or (better) flash modified OTA from recovery.

Flash Superuser-3.0.7-efghi-signed.zip from recovery.

Now you should be at the latest stock Gingerbread, latest stock radio for your region, rooted, S-Off, with unlocked bootloader, custom recovery and all data you had there before.
[G2 and Desire Z General] Nipqer:
Even when S-OFF, every partition below 7 (inclusive) is still locked, and a few other partitions too I think. There is only one phone where the emmc is not protected at all.

So if you ever need to go back to S-On, you need will need to re-downgrade your radio (and get a compatible kernel) to run gfree.

With the whole different radio versions, you only need to look at a few of the threads in the general and Q&A section to see that there is no perfect radio. Some people will swear by a radio version, while others will avoid it like the plague. So upgrade if it tickles your fancy, but chances are, it won't improve anything.

that method of backing up your data should work. Though I might try work on a temp-root version for people where the current version doesn't work, which dupes the htcdev method, without sending off void warranty info to htc.

-Nipqer
[G2 and Desire Z General] Jayster06:
I got it working thanks a bunch, its always 1 small minor issue with programming that always gets me.
[G2 and Desire Z General] Nipqer:
Try the fastboot downgrade method as per the first post in this thread.

-Nipqer
[G2 and Desire Z General] EclipseX:
what i'm trying to say...that method doesn't work with me...I got error or freeze

Got Error

Got freeze

Got freeze

Got Freeze

Got Error

NOTHING...scanning and don't found nothing
[G2 and Desire Z General] EclipseX:
help?! Help?!
[G2 and Desire Z General] :
Did you reboot in between tries?
[G2 and Desire Z General] EclipseX:
yes I did many times "adb reboot" :S and all the steps several times
[G2 and Desire Z General] EclipseX:
more patetic off this I have clockrecovery installed :S....here I can thind zip file for this with old android
[G2 and Desire Z General] asharma5290:
is it possible for you to make a youtube video of this and put it up for the mytouch 4g because i have NO CLUE on how to reverse it
[G2 and Desire Z General] sevensaints:
i cant manage to push misc_version ...

adb push version_misc_01 /data/local/tmp/version_misc

came out :

failed to copy 'version_misc/version.misc.c' to '/data/local/tmp/version_misc.c' : not a directory

wonder what i did wrong ?
[G2 and Desire Z General] sevensaints:
then reboot..

img not FOund
[G2 and Desire Z General] Setherio:
try

adb shell rm -r /data/local/tmp/misc_ver*

then

adb push version_misc_01/misc_version /data/local/tmp/misc_version
[G2 and Desire Z General] Setherio:
Can you make sure the image is placed in the root directory of your sdcard, and is named "PC10IMG.zip" and not "PC10IMG" or "PC10IMG.zip.zip"?
[G2 and Desire Z General] :
What are you reversing?

Go to here: http://therootofallevo.com/forums/viewtopic.php?f=6&t=120

Follow the directions carefully and see if you get temp root.

If you get temp root you can show your devs and they should help you to downgrade.
[G2 and Desire Z General] mmafighter121:
everything checks out perfectly until it comes to downgrading step 2:

I get:

adb: not found

I tried removing adb and just typing push and it says

push: not found

same when I tried the reverse method and pulling it I get

pull: not found

So I thought I'd check my available commands and typed help and got

help: not found

What am I doing wrong? thank you!

Edit: Also when I have the command prompt I still have # not $
[G2 and Desire Z General] Setherio:
Okay, I should of specified better. I'm using a *nix machine so instead of "C:\android-sdk>" I have $. If you have # I'm assuming you are using adb shell. Exit out of that by typing "exit" and hitting enter - or - pressing CTRL+C.

Then try the adb push command.
[G2 and Desire Z General] asharma5290:
okay what im trying to do is downgrade mytouch 4g running the gingerbread 2.3.4 and i got S on back i want to go back to froyo and root so i can run custom rom but im a COMPLETE NOOB to this i was a iphone user previously so i know it sounds dumb but i have absolutely NO idea on even how to do step one or anything lol like adb stuff like that i have no clue what that is the only way i rooted my phone before was following a step by step video thats why i was asking if someone who downgraded a mytouch 4g runnin 2.3.4 can load up a video it would be the greatest help EVER!
[G2 and Desire Z General] Setherio:
Okay, I haven't written in my guide how to use adb, which I probably should of. I've helped a few people downgrade their mT4g's, if you would like to message me on AIM, MSN, or G-Talk, I can walk you through the process from scratch. My contact info is at the bottom of the guide.
[G2 and Desire Z General] sevensaints:
the name is Correct.

PC10IMG.zip - but during bootloader it did mention not found or recognised.

could it be corrupted ?

it is in the root of SD.
[G2 and Desire Z General] sevensaints:
you should have downloaded all the necessary software FIRST.

its pretty simple actually , since most of the Guides are on a step by step basis.

Difficult to go Wrong.
[G2 and Desire Z General] Setherio:
It is either corrupt then, or if it is not even recognized, then it might be misnamed "PC10IMG.zip.zip" Sometimes on Windows or OS X it hides the extension and people will add it thinking it doesn't already have it when it really does. Double check and make sure it is named correctly?
[G2 and Desire Z General] asharma5290:
the best help i can ever get THANKS SOO MUCH!!!!!!!!!!!!!!!! walked me step by step for a couple of hours and learned alot about android tonights thanks man def will come to u for any android help again
[G2 and Desire Z General] petarpLab:
Setherio, this tutorial is getting better and better. you are taking good care of it.

I think it's time to enrich it with an alternative way to flash the stock roms - fastboot.

What is good about fastboot is that in case of a failed flash, you can repeat without rebooting. Also, it woks in cases, when the rom from the sd does not flash, no matter everything is ok. Fastboot has more usable output too.

so here it is:

the fastboot executable should be downloaded from here:

http://goo.gl/9HR8Z for windows

http://goo.gl/NHd6L for linux

and placed in the platform-tools dir. The appropriate rom should be in the same folder (or alternatively the full path to it should be written in the fastboot command)

after misc_version, reboot to bootloader: "adb reboot bootloader"

check if the device is recognized: "fastboot devices"

if it is, boot in RUU mode: "fastboot oem rebootRUU" - the device should go to a black screen with a gray HTC logo on it.

then, flash the zip: "fastboot flash zip <zipname>.zip" where <zipname>.zip is PC10IMG.zip or PD15IMG.zip according to the device (the exact name does not matter in this case, it can be 'mydowngraderom.zip' or whatever).

the fastboot will send the zip to the device, check its signature and start flashing it, in which case a green progress bar should appear on the screen. After it finishes, the user should wait 2-3 minutes (just in case) and type "fastboot reboot" - the latter command is obvious.

In rare cases the flash stops and the user gets a warning to repeat the flash immediately - no panic, just run the " fastboot flash zip <zipname>.zip" (only this command, not the rebootRUU one) again and it will work.
[G2 and Desire Z General] NewCenturyAuto:
LOL Funny u say that!! I was just rushing back here to say that I tried that the fast boot method and it worked flawlessly! :=)

But any idea why the other way didn't work??!
[G2 and Desire Z General] Nipqer:
For some unknown reason, hboot occasionally refuses to find a PC10IMG on the sdcard.

Seeing as fastboot always works, there's no need to really bother trying to work out what the issue is with hboot not always working.

-Nipqer
[G2 and Desire Z General] NewCenturyAuto:
Agreed! Everything worked out! Rooted and new ROM flashed.. Love it! :)
[G2 and Desire Z General] strawmetal:
You could download the pdf again. I've added the fasboot downgrade method as well as rooting guide from xda wiki
[G2 and Desire Z General] sam.assad:
I just downgrade 2 phones with 2.3.4 to 2.2.1 and i have no problem at all ...just follow the steps and u will be fine ...thanks a lot for all ppl who put this together
[G2 and Desire Z General] ckien6:
need help bad. i tried everything step by step and its stuck at the white HTC logo with white triangles on each corner of the screen. am I in the ****s? please help asap. its my wife's cell. need to fix before she wakes up in 4 hours.
[G2 and Desire Z General] Nipqer:
Thats what has been dubbed 'Weird RUU Mode'

You have to run 'fastboot oem boot' when its in that mode to get it to boot, then you have to run misc_version 0.4

Push it and chmod same way as misc_version 0.2 in this guide, but use " -r off " instead of the "-s 1.00.000.0" switch.

Then it should boot normally

-Nipqer
[G2 and Desire Z General] ckien6:
got it to boot but touchscreen doesn't work so i can't get debugging to work. wife is already pissed off and not talking to me. first time i've ever had problem rooting or hacking an android device. been doing it since G1. any other suggestions is greatly appreciated.
[G2 and Desire Z General] Nipqer:
try rebooting it, the few times I had touchscreen issues, rebooting it got it to work. Otherwise, if its a g2/dz, use the trackpad?

or you could try fastboot flashing a PC10IMG when its in that weird RUU mode

-Nipqer
[G2 and Desire Z General] ckien6:
so touchscreen is dead. i can't even slide to unlock. i reloaded and restore to stock several times using hboot and the touchscreen is non responsive. i really don't know what else to do. i've restarted it several times. any help would be appreciated. thanks in advance.
[G2 and Desire Z General] Nipqer:
Its possibly a hardware issue then

-Nipqer
[G2 and Desire Z General] lilizblack:
I managed to do a script that does all this process with few click. I was wondering if anyone is interest in it. I'm just starting to learn scripts to execute android commands. Its very handy for noobs.
[G2 and Desire Z General] Lakeshow423:
I'm getting this error when trying to fast boot flash StockRom on my MT4G. It's on 2.3.4 and I need to get back to 2.2.1 to get s-off.

C:\androidsdk\tools>fastboot flash zip StockRom.zip

sending 'zip' (319593 KB)... OKAY

writing 'zip'... INFOadopting the signature contained in this image...

INFOsignature checking...

INFOzip header checking...

INFOzip info parsing...

INFOchecking model ID...

INFOchecking custom ID...

INFOchecking main version...

FAILED (remote: 43 main version check fail)

Any help would be appreciated. Thanks
[G2 and Desire Z General] brcakba:
every thing goes good till i get to here im on mytouch 4g

# ./misc_version -s 1.00.000.0

./misc_version -s 1.00.000.0

./misc_version: permission denied
[G2 and Desire Z General] utx:
You probably forgot to set permissions. Follow the guide:

adb shell chmod 777 /data/local/tmp/*
[G2 and Desire Z General] brcakba:
i dont know what im doing wrong :confused:
[G2 and Desire Z General] utx:
You are pushing directory with name misc_version, which contains misc_version source code. But you should push file named misc_version.

You can either delete the directory from the mobile phone

adb shell rm -r /data/local/tmp/misc_version

and your work directory on your computer, place file there instead of the whole directory, and repeat this step again, or do this step differently:

adb shell
chmod 777 /data/local/tmp/misc_version/misc_version
cd /data/local/tmp
misc_version/misc_version -s 1.00.000.0

and then continue with the guide.
[G2 and Desire Z General] ipaq3115:
Hey guys, what do I do if my device is not recognized by fastboot? The manual downgrade isn't working for me.

When I run "fastboot devices" it just returns me with a command prompt, didn't show that it discovered any devices.

Windows does say that I have a "unrecognized device" when I'm in fastboot mode, do I need some sort of fastboot drivers? I am in fastboot mode while trying to run the command. I got my drivers to get adb working from here.
[G2 and Desire Z General] brcakba:
I just had that same problem and I mange to get it fixed what I did is download usb view

http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-android-devices/

And I also download the new drivers from htc but before you do that uninstall old drivers with usbview (I think its called) and also when you connect your cell to your pc you have to be in charging mode

And then

Try to run cmd
[G2 and Desire Z General] ipaq3115:
Turned out that it was the USB cable, apparently what works for ADB doesn't necessarily work in fastboot...
[G2 and Desire Z General] joeh2184:
hey im trying to download extract this for my brother to root, and when i extract it it asks for a password....what is it? i dont see it in the guide anywhere...thanks
[G2 and Desire Z General] Nipqer:
Are you trying to extract a platform-tools.7z? Cause that's from strawmetal's guide, not this one. the password should be 'strawmetal'

-Nipqer
[G2 and Desire Z General] joeh2184:
I got it, i got it in another thread..i tried that and it did not work..but the other one opened with no issues. Thanks
[G2 and Desire Z General] The Android Manual:
It Worked:D

Greetings! Thankyou! :D
[G2 and Desire Z General] machhho:
Please help !!!!

while I'm doing the Manual Downgrade to my touch 4G ( 2.3.4 ) I get the following message

Main version is older

Update Fail!

press <POWER> to reboot

Thanks in advance
[G2 and Desire Z General] Nipqer:
misc_version failed to run properly.

You should really look at the output of each command to see if/where it fails.

-Nipqer