yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] Palingenesis:
No root permission after MIUI install :s

My old G2 broke, so I got a new one today. I used this method to root my phone. Everything seemed to work good. I went into recovery, flashed MIUI etc etc. Booted into MIUI everything was good. I ran Titanium backup, it said, "root permission which is disabled by default to ensure system security. if you need to enable it, please go to settings in superuser." Now I get this error everytime my phone tries to gain root access. I'm unable to reboot into recovery now aswell. It just hangs on the HTC screen. I can remove the battery and boot back into MIUI but I don't have root access it says. What can I do?

As of now, I've powered off the phone and went into HBOOT and selected the factory reset option which took me into recovery. I just wiped data/factory reset, wiped cache and dalvik. I'm going to try to install a different rom and see what happens. Any other suggestions?
[G2 and Desire Z Android Development] Ditamae:
I'm assuming you downgraded to 2.2 first?
[G2 and Desire Z Android Development] Palingenesis:
It had 2.2 on it when I got it. I never did the 2.3.3 OTA update.
[G2 and Desire Z Android Development] Ditamae:
Oh, okay. Had any lucky yet? Maybe you should post in the Q&A, as this thread is pretty quiet. Wish I could help more.
[G2 and Desire Z Android Development] Palingenesis:
I posted there with little help. But I managed to fix it. Thanks anyway! :)
[G2 and Desire Z Android Development] xperiaforme:
Did everybody with Desire Z have problem using this method? Or was it just on rare occassions? I'm too dumb to use adb lol.
[G2 and Desire Z Android Development] brian314g:
I know this is a pain in the a## noob question, but any chance someone can direct me to unrooting directions?

Tanks in advance!
[G2 and Desire Z Android Development] Crey23:
This is a little off topic....

I had switched to the Unity Vision ROM which required me to flash the Z HBoot file for the European version of the phone providing about 300MB to system side memory, leaving the App side with 1.0 GB available space. I want to revert back to the original space (1.3GB), but I have not been able since I no longer have the G2 HBoot image file.

I was wondering if could just flash the G2 image file in this zip? Any input n doing this?

Thanks!
[G2 and Desire Z Android Development] Ditamae:
You should check out this thread on returning to stock hboot by hispeedworm.
[G2 and Desire Z Android Development] HunnyBearLewis:
Hey so I did this and everything went swimmingly...

Then I went into ROM Manager, downloaded a Nightly. Still good.

The problem was when I tried to reboot into Recovery - a mostly black screen with a picture of the G2 and a bold, red triangle in front of it.

Any idea why? I can't flash anything through recovery, nor can I fix permissions.
[G2 and Desire Z Android Development] Ditamae:
You haven't flashed a Recovery yet. You can flash ClockworkMod thru ROM Manager. Look for version 3.0.2.4 in the option to use an older version. Don't use 5.X. Or check out 4EXT Recovery in my signature.
[G2 and Desire Z Android Development] HunnyBearLewis:
Thank you for responding so quickly.

The first thing I downloaded was 4EXT (already purchased on my last G2) and it wasn't working (and I know it's awesome, so the problem is on my end).

I opened Rom Man after 4EXT wouldn't work and I tried to fix permissions and that wouldn't start either :( It said my latest Recovery was the 3.0.2.4 one (I had been rooted and on CM before my phone broke and I got a replacement G2 from Tmobile). Do you think it just said that because of something on my SD card leftover from before? 'Cause I definitely did not flash the recovery before it told me it was there.
[G2 and Desire Z Android Development] Ditamae:
Hey... sorry, just got home. Hmm... 4EXT wouldn't flash for you? I know that madmaxx82, creator of 4EXT, is super helpful. You might want to post on his thread and he might be able to help.

So, did you actually flash CWM Recovery on your replacement phone? Sorry, I just want to be clear... in my case, even though I have flashed the 4EXT Recovery, replacing CWM, Rom Manager still says that I have CWM 3.0.2.4 on my phone... but I don't.

Have you tried to re flash CWM Recovery?
[G2 and Desire Z Android Development] fajardoju90:
Damn i thought i was a goner and had lost all hope.THANKS MAN! this method sure helped alot since i just got my replacement(g2) phone today.i had accidentally updated it.once i managed to downgrade again i tried about 10 different methods with no luck.now thanks to this AWESOME :D post im rooted again.its nice and simple even for noobs like me. THANKS again. Keep up the good work!
[G2 and Desire Z Android Development] Wicked68:
Ok, Im trying to root my sister's G2, and I wanted to use this method. I used this method to root my G2 over a year ago and had no problems. But my sister's G2 is on Android 2.3.4, so, do I have to downgrade it back to Froyo, in order to root? And if so, do you HAVE to use ADB to downgrade? There's no way to downgrade using terminal emulator on the phone, with the required files on the sd card? Like many, I don't really know how to use ADB, never really tried to learn.

Can somebody let me know, in this thread or in a PM? Thanks.

Zapped from G2, running meXdroid Atomic
[G2 and Desire Z Android Development] masterismos:
you must downgrade and you can only via adb. when i bought my desire z i update it to 2.3.4 and then i learn about the adb and then i return it to froyo and root it. just learn carefully this guide and learn at the introduction place the how to and the guidethreads about ADB.
[G2 and Desire Z Android Development] redspeed:
So visionary temp root method wont work either on 2.3.4? The only way to do anything would be to downgrade?
[G2 and Desire Z Android Development] Nipqer:
Correct. You have to use adb to downgrade

-Nipqer
[G2 and Desire Z Android Development] someone755:
I have a problem here with rooting my Desire...

I downloaded the .zip file, extracted it to my microSD card and left it be...

(extracted as sdcard\root_files - could this be the problem? should it be extracted as sdcard\root_files\root_files ?)

so, installed the VISIONary+ app, tapped 'Temproot now' and the app started glitching... Weird... So, I started my Terminal emulator, typed 'su', but the feedback was: 'can't find 'su''

that means the phone isn't rooted, right? so i restarted the phone and again, let the VISIONary+ app glitch away... Only this time, I didn't go to Terminal Emu. I tapped 'Unroot now' and the feedback, once again, 'Your device does not appear to be rooted'...

Please guys, help me!

I'm not a novice at these things, but I also don't know very much about HTC rooting...

So, what is causing this problem? Maybe the fact how this was extracted (if that's even important?) or maybe the fact I tried to root the Desire with the Unrevoked method (but failed miserably, because the damn program said my FW is too new...)?

EDIT: Oh, I just saw where this was posted... Maybe you can't temproot a HTC Desire (Bravo)? Well, at least I can't, but I read somewhere how other people succeded...
[G2 and Desire Z Android Development] Ditamae:
You're in the wrong forum. This is the G2/Desire Z. And the method is quite dated. ;)
[G2 and Desire Z Android Development] someone755:
Oh, well, I thought so... But anyways, this is what G-Searcg came up with when I googled 'temporary root htc desire'...

I guess I should go back to google then... :P

EDIT: But just one more question before I leave this forum section:

Is it possible to root HTC Desire (that is, Bravo) with temporary root (of any kind)?
[G2 and Desire Z Android Development] WarBird87:
You can just change the kernal and you would be ok... check out cyanogen mods bacon bits... which is just an over clocked cyanogen kernal and a couple other things... but it runs on top of the stock rom... which I believe is what your looking for...
[G2 and Desire Z Android Development] ianmcquinn:
No, when you run the perm_root script, it'll copy over flash_hboot for you and set the permissions for it.
[G2 and Desire Z Android Development] misterykid89:
OMG WarBird87!!! Thanks man! That's exactly what I wanted to do!! Thanks!!!!
[G2 and Desire Z Android Development] ianmcquinn:
Yeah, take a look through the dev forum for all of the kernels out there. I know a bunch of the ones that came out early on were for stock (including BaconBits). Just flash the one you want in recovery and use something like SetCPU or CPU Tuner to choose what max clock speed you want.
[G2 and Desire Z Android Development] ianmcquinn:
Yeah, the only modifications that Visionary does when temp rooting is install Superuser to your phone. Everything else is done in a ramdisk that is cleared on reboot/power-off (so no definitely more dangerous than using rage to temp root). It's the permanent root in Visionary that people have reported bricking their phones with (though I don't really know much about what was going on with that).

And gfree by itself does not require ADB. It just requires temp root (hence this guide).
[G2 and Desire Z Android Development] konotori:
Worked Perfect...Thanks
[G2 and Desire Z Android Development] RobertsDF:
Worked great on my tmobile g2, thanks!
[G2 and Desire Z Android Development] Becksman:
Wow, thanks a lot for this neat little tutorial. I guess this is what many people have been waiting for. Has anyone tried it on a Desire Z yet?

Regards,

Becksman
[G2 and Desire Z Android Development] CoyotinX:
i have a G2 with OTA update. i have tried to perm root with visionary without success and i want to try this out. do i have to downgrade my G2 as well before trying this or just the desire users? i also can't find any 1.72 number on the information tab in my G2, how can i check that?
[G2 and Desire Z Android Development] Omarpr:
In this point, How I install Clockwork Recovery?

I want to install CM7, I can do it using only this?
[G2 and Desire Z Android Development] Becksman:
This shouldn't be the problem. Confer: http://xdaforums.com/wiki/index.php?title=HTC_Vision#November_2010_G2_OTA_1.22_Update
[G2 and Desire Z Android Development] ianmcquinn:
Before you can flash any custom recovery, you need to be rooted (so yes, you will need to follow this guide or one of the other permanent root guides).

After rooting, normally you can just download ROM Manager from the market and install the recovery from that app. This recovery will only work with Froyo-based ROMs though.

For CM7, you should follow one of the guides on flashing ClockworkMod Recovery 3+ (there are quite a few out there). Then you can flash CM7.
[G2 and Desire Z Android Development] Tokinjedi:
when i try to type the commands into the terminal emulator, i get permission denied. i ran the visionary app first and it seemed to work. titanium also reports that it can not get root permission. i am assuming visionary is not doing what it is supposed to be doing. any ideas?
[G2 and Desire Z Android Development] DeoreDX:
Add one to the ole thanks meter. Got my G2 yesterday and went to root it. I have ADB installed and know how to use it but this made what looked like a pretty easy process and made it even easier. Took 2 minutes instead of 10 minutes :D
[G2 and Desire Z Android Development] ianmcquinn:
What happens after you hit temproot now in Visionary? Are you saying that typing su in terminal says permission denied?
[G2 and Desire Z Android Development] Tokinjedi:
exactly what happens. when i hit temp root on visionary it says rooting and the screen flashes black a few times. takes bout 2 minutes for it to run through the process. when it is done it just goes back to the visionary app. then i type su into the terminal and gives me the permission denied.
[G2 and Desire Z Android Development] ianmcquinn:
Yeah, this sounds like Visionary is not doing the temp root then. Not sure what is going on. What kind of phone are you running?

You might want to try uninstalling Visionary, rebooting, and then reinstalling it.
[G2 and Desire Z Android Development] Tokinjedi:
its a U.S. Tmobile G2 completely stock. Got it during their free give away about a week ago. forgot to add last time, i did use visionary to get permroot but it didnt work and uninstalled it. this is the first time since using it, so this could be because of that.

uninstalled and reinstalled after reboot and same thing.
[G2 and Desire Z Android Development] TheRomMistress:
Added in Sticky Rollup:)
[G2 and Desire Z Android Development] ianmcquinn:
So it was probably something that happened with the Visionary permroot process (I don't know exactly what it does). If you still want to get permanent root, you still have some options though.

Since you are stock G2 (no OTA), you can do a complete restore by flashing the shipping ROM. Grab the file from this thread, rename it PC10IMG.zip, and place it on the root of your SD card. Hold volume down while powering the phone to enter the bootloader. It'll find the zip file and ask if you want to flash. After the flash is complete, your phone will be exactly as when you first got it (so anything Visionary might have done will be gone). At that point, you can start the root guide fresh. Note, if you had applied the T-Mobile OTA though, there is an additional step to make the PC10IMG work. Let me know if that is the case and I'll try to find the right thread (or you can search for it).
[G2 and Desire Z Android Development] kbeezie:
Any light on this?

WARNING - Do not use Visionary to permanent root your G2/DZ - high brick risk!
[G2 and Desire Z Android Development] popimp315:
Will this work on the mytouch 4g

Sent from planet Vegeta.
[G2 and Desire Z Android Development] demkantor:
mt4g g2 dz, yes

desire no

but even for the yes you will easily brick

stay away from visionary - use the wiki if you want root, any other method is just asking for trouble including the htc official unlocked bootloader

only follow xda wiki, cyanogen wiki or the few other guides made by some xda members (strawmetal, nipqer, etc)
[G2 and Desire Z Android Development] Cobra281:
exactly. why is this thread even here? there are much safer methods, this method is outdated and dangerous
[G2 and Desire Z Android Development] frozenfyre:
Can't figure this out at all >.<

This thread is pissing me off...

Here's why:

I don't understand what "Extract contents of zip file to SD card" pertains to from the wiki. Nowhere is there an explanation of what file I am supposed to be downloading.

So after some guess work, I was thinking that maybe Visionary APK or the Gfree file are what OP was referring to... However, the APK file isn't a zip file, although you can extract it anyway. The Gfree file is a ZIP file, but it doesn't automatically extract to root_files on the SD Card... it extracts to SD_CARD\File 1, 2, 3, 4 etc. which were the zipped files. Same happens for the Visionary APK. No idea if this is because I am using WinRar to extract or not... Anyway so I did what I thought would be the next best thing, created a new folder on my SD Card called root_files. I put all the extracted contents from Gfree and Visionary APK inside the folder, then installed Visionary, then attempted to use the terminal interface to perform the commands...

But lo and behold I am always stuck at the same error: cannot stat '/sdcard/root_files/perm_root': No such file or directory.

I understand from the recent posts that this method is outdated, However I just received a brand new G2 off of Cowboom and its still running android 2.2.

Why is it that installation of CM9 was a million times easier on my Mytouch4G slide? That's all I am trying to do, yet it seems impossibly complex and definitely not newb friendly like the other forums.

Thanks
[G2 and Desire Z Android Development] Ditamae:
First, yes, this method is way outdated. But, because you're still running 2.2 on a G2 it should work for you. I followed this OP a year and a half ago and everything worked flawelssly...

Extract the root_files.zip from the OP and place the folder root_files on the root of your SD. Directly within this folder should be the following:

busybox

com.modaco.visionaryplus.r14.apk

flash_hboot

flash_hboot_z

gfree

gfree_verify

hboot-eng.img

hboot-eng-z.img

perm_root

su

Superuser.apk

...be sure you don't have two folders called root_files on your SD. (e.g. sdcard/root_files/root_files...).

Edit: I attached the root_file.zip from the OP to this post in case you missed it. This is what you need to download.
[G2 and Desire Z Android Development] frozenfyre:
OHHHHH LOL I would have seen that if I scrolled down all the way.. but I never did -_- Anyway I followed the directions for dummies in the wiki which was like a million step process. I think it worked. Couldn't tell by "verifying" because everytime I did the RIL daemon start, nothing happens... but I have cyanogenmod9 installed, wifi package as well and everything is working ok...

So i THINK its ok.
[G2 and Desire Z Android Development] kbeezie:
I went ahead and reported this thread, referencing the sticky in general warning about Visionary, hopefully they'll at least lock this thread, and maybe edit the first post with a link to the warning (if they don't just remove it completely).

Anyone else late to the game and wondering, this is the sticky I'm referring to: WARNING - Do not use Visionary to permanent root your G2/DZ - high brick risk!

I guess normally it wouldn't matter if it wasn't for the necro-bump.

---------- Post added at 04:53 PM ---------- Previous post was at 04:51 PM ----------

Million step? Well if you need something easier there's always the CyanogenMod guide (which is also written by the same person/group that wrote the XDA wiki) here http://wiki.cyanogenmod.com/index.php?title=HTC_Vision
[G2 and Desire Z Android Development] Ditamae:
That's good. This method only uses Visionary to temp root, which is fine, but as we've both pointed out it's completed dated. Very unlikely there are G2's out there with Froyo anymore.
[G2 and Desire Z Android Development] kbeezie:
The report was closed because as the mod said, there is already a warning in the original post.
[G2 and Desire Z Android Development] snoopy1e11:
So that method is for Froyo I downgraded my wife's g2 to Froyo to use that method
[G2 and Desire Z Android Development] kbeezie:
Shouldn't have to downgrade it if you were already on Gingerbread, i.e.: http://wiki.cyanogenmod.com/wiki/HTC_Desire_Z:_Firmware_Downgrade_(Gingerbread) would have been the newer more preferred method.
[G2 and Desire Z Android Development] TheRomMistress:
Rooted and ready to go. Thanks for the easy to follow guide! :)
[G2 and Desire Z Android Development] Erikbronx:
Thank you! This is the way to go... worked for me. The other info gave me issues. Thanks.:D
[G2 and Desire Z Android Development] CoyotinX:
Man, you have the same exact problem i had 4 hours ago when i tried to root my G2 which i had messed up with visionary before. I was getting permission denied after typing su on the terminal. What i did was a master reset on the phone, downloaded oi file manager and terminal emulator from the market, installed visionary (the version which comes on this post). when i typed su on the terminal, it worked and now i have a root G2...

try it out.

Thanks for this guide.
[G2 and Desire Z Android Development] Tokinjedi:
I did the same actually. I went into hboot and did a factory reset since I could not reinstall the original ship rom. I think my g2 came with the ota on it. Anyway, did that and still no su. Did you reset the same way I did? Could not find posts on how to tell what version I have. Least I do not have The time to look right now as I am at work =P

edit: found what version i have and it is the OTA version. had to be factory installed as i never updated or even got a ota notification. sucks as adb refuses to install on my pc because the jdk will not install. >_<
[G2 and Desire Z Android Development] ianmcquinn:
I don't think any of them are shipping with the OTA, but maybe that's started now. Since you're stock, check the build number in Settings->About phone. If it's something like 1.19.531, that is pre-OTA. If it is something like 1.22.531, you have the OTA.

If you try to flash the shipping ROM when you already have the OTA, it'll say something about you having a newer version and fail. To get around this, you have to flash a new misc.img to your phone first (that has been edited with the older build number). Then the PC10IMG.zip will work. The instructions for doing this are here: http://xdaforums.com/showthread.php?t=831398.

If you want, you can download a pre-modified image here: http://www.4shared.com/file/pUPfrGi-/mmcblk0p17.html.

Stick it on your SD card and then flash it to your phone with the following command in Terminal:

dd if=/sdcard/mmcblk0p17.img of=/dev/block/mmcblk0p17

After this, you can follow the PC10IMG.zip procedure. After that, you should be able to root. Sorry, I don't really know much about what the permanent root function in Visionary does (I had never used the program until I decided to write this guide). There might be an easier way than going back to the shipping ROM, but I'm not sure...
[G2 and Desire Z Android Development] Tokinjedi:
ai, it did ship with the ota as i have the later version you mentioned. i will let you know if the fix you posted works.
[G2 and Desire Z Android Development] d3mon_fx:
You the man!!!

Sir you are the efing man. It worked flawlessly, this is the way to go, since i didnt want to brick my phone cuz im a lousy typer.

Thank you
[G2 and Desire Z Android Development] Tokinjedi:
the fix does not work, i get a write permission denied in terminal. if only the jdk would install correctly this would not be a problem. i read the directions on the link you gave and i can not do those as android sdk does not want to install on my pc.
[G2 and Desire Z Android Development] funkadesi:
THANK YOU THANK YOU THANK YOU!!!

You are a savior for noobs like me! This worked like a charm....!

Also, it would be helpful if you included links for the next steps.... like recovery and flashing roms.... for peeps like me who wanna get into rom flashing business.
[G2 and Desire Z Android Development] ianmcquinn:
Oh yeah, the command I gave needs su access. Completely slipped my mind. You should be able to use ADB without needing the JDK installed (I think). I think there are copies of ADB by itself out there (with the necessary DLLs) that you can just unzip and start using (after installing the drivers for the G2 anyway). I'll see if I can find some. I know they exist for Windows anyway...

Link to ADB files: http://www.megaupload.com/?d=RTEY0Q97

Oh, turns out there's actually a guide on it: http://xdaforums.com/showthread.php?t=926521.

Maybe you can get ADB working this way?
[G2 and Desire Z Android Development] guntcent:
Hey guys how do you unroot for warrenty issue because my G2 hinge is like sooo loose. thanks
[G2 and Desire Z Android Development] Herrera91:
Follow the instructions on this here thread: http://xdaforums.com/showthread.php?t=835971
[G2 and Desire Z Android Development] Tokinjedi:
Will try when i get home. Hopefully i wont be too tired after a 12 hour shift. Thanks for all the help btw, greatly appreciated. +1 to your thanks meter.
[G2 and Desire Z Android Development] GHOST99K:
i just rooted my friend's G2 following this guide.worked like a charm.only problem is i wanna flash the CM7 nightly but it requires Clockwork mod recovery 3.0.i have downloaded the CW 3.0 image file and try to push the .img using android emulator but it keep saying cant find file.currently running CM 6.1.any other option to flashing the cw 3.0 image file to the device?