Related
First thanks to everybody who made it possible to root our great devices.
THIS WILL WIPE YOUR DEVICE, BACKUP EVERYTHING BEFORE DOING THIS!
Polish translation by trzype
If you don't know how to use adb/fastboot don't do this. Use the search function and google and learn how to use them. If you know everything about them come back. I made a pretty nice tutorial, many people used it already with success. But I won't add anything like "go to startmenu and type..."
If your INFOCID is NOT one of these you need to make a goldcard to downgrade!
HTC__001
HTC__032
HTC__E11
HTC__203
HTC__Y13
HTC__102
HTC__405
HTC__304
HTC__A07
HTC__N34
HTC__J15
check with:
Code:
adb reboot bootloader
fastboot oem boot
Here is a great guide how to make a goldcard, follow the first part and come back here then.
Get theses 3 files:
https://github.com/tmzt/g2root-kmod/raw/scotty2/scotty2/psneuter/psneuter (right click > save as...)
https://rapidshare.com/files/1884723844/PC10IMG.zip
https://rapidshare.com/files/948281832/root.zip
Since this uses some security holes to gain root privileges on your phone some antivirus programs on your pc might warn you that this contains a virus. Thats not the case!
MikeChannon said:
It might be worth saying in the thread that android/Exploit.ragecage.A is the exploit being used to gain root and Users should not worry about the warning some software will give.
Click to expand...
Click to collapse
Extract misc_version_01.zip (only misc_version is needed)
Get the PC10IMG.zip from here or download the full RUU from here.
If you already downloaded the 1.34 RUU somewhere else you can skip this step.
Code:
adb push psneuter /data/local/tmp
adb push misc_version /data/local/tmp
adb shell chmod 777 /data/local/tmp/psneuter
adb shell chmod 777 /data/local/tmp/misc_version
adb shell /data/local/tmp/psneuter
adb shell
Check if you have the '#' sign instead of the '$'
If you see the '#' sign you got root!
Code:
/data/local/tmp/misc_version -s 1.33.405.5
exit
If you have downloaded the 1.34.405.5_PC10IMG.zip copy it to you SD-Card and rename it to PC10IMG.zip.
If you downloaded the full RUU or had it already execute the exe file (mine is called RUU_Vision_HTC_WWE_1.34.405.5_Radio_12.28b.60.140e_26.03.02.26_M_release_155556_signed.exe), start explorer and type %temp% in the adress bar.
Look in all the folders starting with a { sign and also in the sub directories if it also starts with a { sign, in one of the subdirectories there should be a rom.zip file with 298.442.206 bytes and the MD5 sum 2ff42897cd27e0db425a2cf36c8bd078.
Copy this rom.zip to your SD-Card on the phone and rename it to PC10IMG.zip
Code:
adb reboot bootloader
(or turn your phone of and on again while holding the trackbad).
Wait till the phone is in bootloader mode (white screen should look like this but with other infos http://www.brutzelstube.de/wp-content/uploads/2010/09/hboot.jpg)
Select bootloader (vol +/- buttons for navigation and power button for select).
Wait for the phone to scan the sdcard, once it's done it will ask you if you want to start the update. Confirm it and wait till it's done. Reboot with powerbutton when asked.
After the reboot check for version informations, it should show this:
Enable USB-Debugging on your phone
Extract root.zip
Code:
adb install AndroidTerm.apk
adb push busybox /data/local/tmp/
adb push gfree /data/local/tmp/
adb push rage /data/local/tmp
adb push root /data/local/tmp/
adb shell chmod 0755 /data/local/tmp/*
adb push su /sdcard/
adb push Superuser.apk /sdcard/
Start the Terminal app on your phone and type:
Code:
/data/local/tmp/rage
Wait until you see the message "Forked #### childs.", reset Terminal (menu > Reset Term). The Terminal app will close, launch it again. It will force close, launch it again.
You should see the magic '#' sign again.
Next type in the terminal
Code:
/data/local/tmp/gfree -f
, this will turn Security off (S-OFF), remove SIM Lock and set CID to 11111111.
Last step in terminal app on your phone is to execute these commands.
Code:
/data/local/tmp/root
sync
This will root your phone. It's possible that you get an error message "mkdir: /system/xbin already exists", don't worry everything should be ok.
After that restart your phone.
Now get ROM Manager and install the recovery image from there. If you are happy with the 1.34 software everything is done here, if not you can flash anything you want now.
Nice work! We allways need more people using the magic of root
Sent from my HTC Vision using XDA App
Thanks a lot for your effort!
Just bought a Desire Z and accidentally upgraded OTA.
Will try it now and report back.
I get the following Error when trying to run misc version
Code:
# /data/local/tmp/misc_version -s 1.33.405.5
/data/local/tmp/misc_version -s 1.33.405.5
--set_version set. VERSION will be changed to: 1.33.405.5
Patching and backing up partition 17...
Error opening backup file.
#
Any ideas mate?
Edit: Sorry, forgot to unmount phone from windows when i copied the img over.
VERY IMPORTANT
The OP made a small mistake in the instructions:
Code:
/data/local/tmp/misc[COLOR="Red"][B]-[/B][/COLOR]version -s 1.33.405.5
exit
the dash (-) should be an underline (_)
Code:
/data/local/tmp/misc[COLOR="Red"][B]_[/B][/COLOR]version -s 1.33.405.5
exit
Please update the first post
Darkyy said:
VERY IMPORTANT
The OP made a small mistake in the instructions:
Code:
/data/local/tmp/misc[COLOR="Red"][B]-[/B][/COLOR]version -s 1.33.405.5
exit
the dash (-) should be an underline (_)
Code:
/data/local/tmp/misc[COLOR="Red"][B]_[/B][/COLOR]version -s 1.33.405.5
exit
Please update the first post
Click to expand...
Click to collapse
Thanks, fixed it.
Question:
Should the psneuter -file be without a suffix?
Or should it be like psneuter.txt?
Gnurf said:
Question:
Should the psneuter -file be without a suffix?
Or should it be like psneuter.txt?
Click to expand...
Click to collapse
Without the extension... .txt is added by your browser presumably so you'll have to rename it
Another error:
When I reboot into the bootloader, the phone scans PC10IMG.ZIP and then says "CID incorrect! Update Fail! Press <POWER> to reboot."
paw3lk said:
Without the extension... .txt is added by your browser presumably so you'll have to rename it
Click to expand...
Click to collapse
Thats what I thought aswell, but seeing there has been a post about it previously... (in the other tread)
Thanks.
worked as described, big thx
waqypaqy said:
Another error:
When I reboot into the bootloader, the phone scans PC10IMG.ZIP and then says "CID incorrect! Update Fail! Press <POWER> to reboot."
Click to expand...
Click to collapse
What phone and software version do you have?
It seems like you use a wrong PC10IMG.zip for your phone. Did you download the zip from here or got it yourself from the full ruu?
Another error:
Step 15: Extract root.zip
and then do the commands:
Code:
adb chmod 0755 /data/local/tmp/*
should be
Code:
adb [B][COLOR="Red"]shell [/COLOR][/B]chmod 0755 /data/local/tmp/*
g4rb4g3 said:
What phone and software version do you have?
It seems like you use a wrong PC10IMG.zip for your phone. Did you download the zip from here or got it yourself from the full ruu?
Click to expand...
Click to collapse
I've got the Desire Z running 1.72. I first tried downloading the PC10IMG.zip from the 1st link in part 3 which didnt work. I then tried the RUU file, found the rom.zip in Temp, renamed it and copied it to SD card, which didnt work either
What am I doing wrong?
Software number: 1.72.161.1
Darkyy said:
Another error:
Step 15: Extract root.zip
and then do the commands:
Code:
adb chmod 0755 /data/local/tmp/*
should be
Code:
adb [B][COLOR="Red"]shell [/COLOR][/B]chmod 0755 /data/local/tmp/*
Click to expand...
Click to collapse
Thanks, fixed it.
Sent from my HTC Vision using XDA App
waqypaqy said:
I've got the Desire Z running 1.72. I first tried downloading the PC10IMG.zip from the 1st link in part 3 which didnt work. I then tried the RUU file, found the rom.zip in Temp, renamed it and copied it to SD card, which didnt work either
What am I doing wrong?
Software number: 1.72.161.1
Click to expand...
Click to collapse
Did you root your phone before the ota update?
Sent from my HTC Vision using XDA App
g4rb4g3 said:
Did you root your phone before the ota update?
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
Yes I had rooted it with Visionary before I updated it. Please tell me I still have some hope for getting root back
waqypaqy said:
Yes I had rooted it with Visionary before I updated it. Please tell me I still have some hope for getting root back
Click to expand...
Click to collapse
Did you set s-off too while rooting?
Sent from my HTC Vision using XDA App
g4rb4g3 said:
Did you set s-off too while rooting?
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
Nope Im screwed arent I?
waqypaqy said:
Nope Im screwed arent I?
Click to expand...
Click to collapse
adb reboot bootloader
fastboot oem boot
Post the result of the 2nd command (dont know if it works... but it wont harm anything)
Sent from my HTC Vision using XDA App
Ok, so I am trying to flash a new splash image onto my G2. The image is on the root of my SD card like this /sdcard/new_splash.img
I open the mobile terminal and get this:
$ su
# cd /sdcard
# flash_image splash1 new_splash.img
failed with error: -1
Any ideas??
Are you sure you have the flash_image script on your phone?
Sent from my HTC Vision
Yes, because I flashed CWM Recovery with flash_image.
Sent from my HTC Vision using XDA App
troby86 said:
Ok, so I am trying to flash a new splash image onto my G2. The image is on the root of my SD card like this /sdcard/new_splash.img
I open the mobile terminal and get this:
$ su
# cd /sdcard
# flash_image splash1 new_splash.img
failed with error: -1
Any ideas??
Click to expand...
Click to collapse
Try
$ su
# flash_image splash1 /sdcard/new_splash.img
This method still fails with error -1
Sent from my G2 using XDA App
Ops Dobbel post ..
Be very careful with this method and check that you typed everything correctly so you do not accidentally brick your phone
Code:
$ Su
# dd if=/mnt/sdcard/splash.img of=/dev/block/mmcblk0p19
(Copy and past it)
(Splash.img = the name of your splash.img )
Worked perfect! Thanks
Sent from my HTC Vision using XDA App
troby86 said:
Worked perfect! Thanks
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
No problem . Happy to help.
Will this work on the backflip?
stian230 said:
Be very careful with this method and check that you typed everything correctly so you do not accidentally brick your phone
Code:
$ Su
# dd if=/mnt/sdcard/splash.img of=/dev/block/mmcblk0p19
(Copy and past it)
(Splash.img = the name of your splash.img )
Click to expand...
Click to collapse
I want to be extra sure your method isn't device independent before I try it; especially since I'm not sure where it's pointing too...
To be a sharin, heres what I've tried and got so far...
I was able to pull the M splash screen and convert it to BMP on my backflip (s-on) with:
adb
su
cat /dev/mtd/mtd6 > /sdcard/splash.img
nbimg -h 480 -w 360 -F splash.nb
but now I can't get the new one back... any suggestions? Tried:
cat /sdcard/splash.img > /dev/mtd/mtd6
...and...
flash_image splash /sdcard/splash.img
to no effect.
can I...:
dd if=/sdcard/splash.img of=/dev/mtd/mtd6
? I'm fairly new to linux, I don't fully understand the mount process...
-----------------------------------------------------------------------------
I've been playing around, I don't have mmcblk0p19, I only have mmcblk0 and mmcblk0p1. My next task is to pull these off and see if I can't figure out what they are.
Hello everyone!
Not my phone, just helping a friend
We got problems downgrading from Gingerbread to earlier version of Android.
So, wanted to root, flash custom recovery, then MIUI.
Started with this tut, then understood, that Gingerbread isn't rootable and it needs to be downgraded.
So, tried [GUIDE] Downgrade G2 (2.3.X) & DZ (2.3.X) & mT4g (2.3.4) & DHD w/ S-ON to Stock Froyo and HTC Desire Z: Firmware Downgrade (Gingerbread).
So, installed JRE, JDK, SDK (ADB), drivers.
With phone plugged to PC (USB Debuggind ON), ADB & Device manager sees it.
So, moved files to C:\android-sdk\platform-tools and ran cmd (administrator privileges). Till "adb shell it's good". But, after that, when ran chmod, it says, that permissions denied.
Question:
What we're doing wrong and how to fix it?
We've read so many guides, but unsuccessfully so far..
Device HTC Desire Z
Android 2.3.3
Kernel version 2.6.35.10-g7b95729
Baseband 12.56.60.25U_26.10.04.03_M
Build 2.42.405.2 CL84109
Thanks about helping!
Is it permission denied when u try to change the version? If permission denied during change the version, run this command:
cd /data/local/tmp/misc_version
chmod 777 misc_version
./misc_version -s 1.00.000.0
sync
Sent from my HTC Vision using XDA App
Are you sure your temp root is working?
aDeQ666, no, it wont chmod when typing chmod 777 /data/local/tmp/fre3vo, so - no temp root for us. Tried visionary, z4root, SuperOneClick - nothing works
It was updated from Froyo to Gingerbread via OTA, i think that's the issue? What else we can do? Thanks!
Could you post a copy/pastebin of your cmd when running it? It'll be much easier to spot the error if we can see exactly what you did/are doing.
-Nipqer
I have one problem when i tried to root htc desire. i already done the downgrade and now i am want to root... i folllowed the instructions on the link you gave untill this
[chmod 755 /data/local/tmp/*
/data/local/tmp/psneuter
NOTE: You will drop out of the shell after this command. Restart the shell using:
adb shell
cd /data/local/tmp
./busybox md5sum /dev/block/mmcblk0p18]
well after command:
chmod 755 /data/local/tmp/*
/data/local/tmp/psneuter
i`m not dropping out of the shell and the next instruction results with a "cd: bad substitution" msg. what should i do?
sorry for my bad english
When do u received the error? Is it when u downgrading or try to root? Are u using the wiki guide?
What I've down a few times now (and this does work) is use the fre3vo guide (the one you linked) to downgrade then continue with the guide below from step 14 or 15 to gain perm root.
http://forum.xda-developers.com/showthread.php?t=905261
Hope that helps.
Edit: You're better off flashing 1.34.405.5 as the one on the CM wiki may not be working. Its worth a shot IMO.
aDeQ666 said:
Is it permission denied when u try to change the version? If permission denied during change the version, run this command:
cd /data/local/tmp/misc_version
chmod 777 misc_version
./misc_version -s 1.00.000.0
sync
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
Hi, i have been trying to change my misc version but it gives me permission denied and i have # (root) already. So i tried chmod after cd which didn't have a problem but now when i try harder./misc_version it says the file not found.
Please help
I used this guide. it worked fine for me =)
http://forum.xda-developers.com/showthread.php?t=905261
*faceslapps self* sorry. I was a tad too fast. I didn't see that someone allready posted that guide here.
This is the command that i use before this:
adb push misc_version /data/local/tmp/misc_version
cd /data/local/tmp/misc_version
chmod 777 misc_version
./misc_version -s 1.00.000.0
sync
Sent from my HTC Desire Z using XDA App
I used this guide when I had to go through the pain of downgrading my desire z http://forum.xda-developers.com/showthread.php?p=15851843 . It worked very easily, just follow the instructions nice and carefully, the problem is that you need ADB set up for you to use that guide though.
Once you downgrade though, I would use the guide here for rooting your phone http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision#Rooting_the_G2 .
I hope that helps, that's what I used for my phone.
To be more precise in regards to the problem though, i just realised that i had the same problem as you when i was trying to run the chmod command where i had temproot but i kept getting "permission denied". As it turned out, i had accidentally written "adb push fre3vo /data/local/tmp/" instead of "adb push fre3vo /data/local/tmp" when i was following that downgrading guide. Basically what my mistake did was, it pushed fre3vo into a new folder within /tmp instead of just placing fre3vo in /tmp. So what you can do to figure out where fre3vo is, navigate to the /tmp folder using CD (in adb shell) and once you get to /tmp, type "ls". This will then display all the contents of /tmp and then you will be able to see if you accidentally created a folder like i did. Then once you check that, when you go to run the chmod command, you have to run it like "chmod 777 /data/local/tmp/**possible accidental folder name**/fre3vo", see if that works now .
Use this guide should do the job for you www.desirez.strawmetal.com
aDeQ666 said:
This is the command that i use before this:
adb push misc_version /data/local/tmp/misc_version
cd /data/local/tmp/misc_version
chmod 777 misc_version
./misc_version -s 1.00.000.0
sync
Sent from my HTC Desire Z using XDA App
Click to expand...
Click to collapse
were you able to fix this problem?
I had the same problem with my Desire Z with OTA 2.3.3.
Finally I've unlocked bootloader as show at htcdev.com.
Then I used this guide http://forum.xda-developers.com/showthread.php?t=1453066 (great thx for it), and CM 7.1 works like a charm.
All best.
allendon said:
were you able to fix this problem?
Click to expand...
Click to collapse
For my case, yes.
Sent from my HTC Vision using XDA App
Hi,
I had to return to stock rom for warranty and now i am trying to root it again. i have completed root and s-off operations but i can't enter recovery. when i select recovery from bootloader menu, i only see exclamation mark with black screen...
i entered these commands but second command gave me "gfree -y: unknown operation". how can i solve this?
Code:
4.a.2. gfree, install hboot and clockworkmod recovery
In the root shell (indicated by the #) that you got in the Temporary root section execute the following commands:
# cd /data/local/tmp
[B][U]# ./gfree -f -b hboot-eng.img -y recovery.img[/U][/B]
# ./root_psn
# sync
Means you are running an older version of gfree.
Only gfree 0.7 supports the -y arg.
You can find it here
(to find out what version of gfree you have, use ./gfree -v )
-Nipqer
Nipqer said:
Means you are running an older version of gfree.
Only gfree 0.7 supports the -y arg.
You can find it here
(to find out what version of gfree you have, use ./gfree -v )
-Nipqer
Click to expand...
Click to collapse
Thank you for your help but now the same command is giving me "./gfree: permission denied". why should it be?
Did you use the chmod command? Check the wiki, but it will probably be something like "chmod 755 /path/to/gfree"
chmod 755 /data/local/tmp/*
Also the command might have to be:
/data/local/tmp/gfree -v
to run gfree, unless you cd to /data/local/tmp (or wherever you pushed gfree to), in which case the '.' in './gfree' means 'this directory'
-Nipqer
Thank you all for help. Everyday i had another error. For example today i got psneuter error but i finally installed recovery...
Sent from my HTC Vision using xda premium
1) Unlock device
2) root device with means of your choice
3) adb shell
4) su
5) echo -ne "22222222" | dd of=/dev/block/mmcblk0p5 bs=1 seek=20
6) reboot bootloader
7) fastboot oem readcid
confirm change of cid
This is interesting! Hopefully we will get s-off too still much needed a custom recovery thanks for this
I also thought super Cid consists of "1111111" least it did for the sensation and other phone
ilostchild said:
This is interesting! Hopefully we will get s-off too still much needed a custom recovery thanks for this
I also thought super Cid consists of "1111111" least it did for the sensation and other phone
Click to expand...
Click to collapse
check the OG dev. its posted and I posted picture.
ilostchild said:
This is interesting! Hopefully we will get s-off too still much needed a custom recovery thanks for this
I also thought super Cid consists of "1111111" least it did for the sensation and other phone
Click to expand...
Click to collapse
supercid can be 11111111 or 22222222 and probably 333333333 etc
I posted the supercid guide so i could post the s-off here http://forum.xda-developers.com/showthread.php?p=38346549, i wanted them separate as not everyone may want both.
jcase said:
supercid can be 11111111 or 22222222 and probably 333333333 etc
I posted the supercid guide so i could post the s-off here http://forum.xda-developers.com/showthread.php?p=38346549, i wanted them separate as not everyone may want both.
Click to expand...
Click to collapse
yea just found this out when i went back to main forum page thanks for this, this should push more deving for this phone too!
I just recently switched to HTC. What exactly does superCID do?
Sent from my HTC One VX using Tapatalk 2
puts your phone in a region free form, so you can and will be able to flash other roms from different region(debrand)
normall the output would be ATT_01 for USA or something along the lines thats letting the phone now to only accept roms that have region of Att_01
it worked for me too
thanks .. now to s off
Oh okay does that completely unlock the phone to use on other carriers as well?
Sent from my HTC One VX using Tapatalk 2
No this is only the cid. The cid is what region the phone is for. It is also what the ruu checks for compatibility
Sent from my HTC One X+ using xda premium
sorry for this question but how do i exactly use this command?
echo -ne "22222222" | dd of=/dev/block/mmcblk0p5 bs=1 seek=20
i have changed cid on other phones but never like this
TD4 said:
sorry for this question but how do i exactly use this command?
echo -ne "22222222" | dd of=/dev/block/mmcblk0p5 bs=1 seek=20
i have changed cid on other phones but never like this
Click to expand...
Click to collapse
Code:
1) Unlock device
2) root device with means of your choice
3) adb shell
4) su
says it right there bud... htc dev unlock device
then root your device once rooted go to cmd prompt (windows) or Terminal (mac/linux)
type adb shell
hit enter
type su
enter
then type the following command
echo -ne "22222222" | dd of=/dev/block/mmcblk0p5 bs=1 seek=20
enter
got it thanks!
i was asking because some phones require to be on fastboot mode, just wanted to make sure before doing anything
ilostchild said:
Code:
1) Unlock device
2) root device with means of your choice
3) adb shell
4) su
says it right there bud... htc dev unlock device
then root your device once rooted go to cmd prompt (windows) or Terminal (mac/linux)
type adb shell
hit enter
type su
enter
then type the following command
echo -ne "22222222" | dd of=/dev/block/mmcblk0p5 bs=1 seek=20
enter
Click to expand...
Click to collapse
When I do that it says the comands are not valid none of them. Maybe I do something wrong. I am htc unlocked and rooted. Maybe I need to do different then plug the phone and open comand prompt? Thanks
Sent from my HTC One VX using xda app-developers app
grigoriisi said:
When I do that it says the comands are not valid none of them. Maybe I do something wrong. I am htc unlocked and rooted. Maybe I need to do different then plug the phone and open comand prompt? Thanks
Sent from my HTC One VX using xda app-developers app
Click to expand...
Click to collapse
download this http://developer.android.com/sdk/index.html then go to cmd and cd to C:\Users\(user)\(where you downloaded it to)\adt-bundle-windows-x86_64\sdk\platform-tools the commands should now work :victory:
did that
deleted
---------- Post added at 05:31 PM ---------- Previous post was at 05:20 PM ----------
nathanleagan said:
download this http://developer.android.com/sdk/index.html then go to cmd and cd to C:\Users\(user)\(where you downloaded it to)\adt-bundle-windows-x86_64\sdk\platform-tools the commands should now work :victory:
Click to expand...
Click to collapse
can u please tell me step by step how am i suppose to do it? i do it and when i get to adb shell command it says its not a valid comand nor su or anything else.
grigoriisi said:
deleted
---------- Post added at 05:31 PM ---------- Previous post was at 05:20 PM ----------
can u please tell me step by step how am i suppose to do it? i do it and when i get to adb shell command it says its not a valid comand nor su or anything else.
Click to expand...
Click to collapse
when you did adb shell did it connect or did it say wrong command?
it said not recognised command
nathanleagan said:
when you did adb shell did it connect or did it say wrong command?
Click to expand...
Click to collapse
it said not recognised command
grigoriisi said:
it said not recognised command
Click to expand...
Click to collapse
look inside the folder i said to cd to is there a file called adb?
yes it is and works with only adb command not adb shell
nathanleagan said:
look inside the folder i said to cd to is there a file called adb?
Click to expand...
Click to collapse
yes it is and works with only adb command not adb shell