yashsingh1/xdaforums huggingface dataset:
[HTC Amaze 4G] zarish:
Temproot changes being temporary is not quite true in all cases. Example I was preferring temp root to perm root due to being able to continue with OTA upgrades (and thus keeping all my settings/apps/contacts/etc in place and easy radio/etc upgrades without all this flash, unflash, reflash stuff for which doesn't seem clear to me still after reading quite a few posts) but still being able to change and tweak a few minor things.

One example of an item that required at least temp root was the ability to modify the HTC Weather/Time database. I was able to completely replace /data/data/com.htc.provider.weather/files/WP_0409WWE.db with one that actually had data for cities in many US states that HTC for some reason chose to completely ignore or feels those states have no towns/cities at all. Not only did that survive the loss of root, multiple complete power cycles (including battery removals), but it also survived the recent OTA upgrade which seems to have stopped the ability to get temp root.

As such I kind of wish Temp Root still worked. C'est la vie though.
[HTC Amaze 4G] PURESKILLZZZ:
No you do not my friend ...
[HTC Amaze 4G] lainemac:
Yeah it didn't work.
[HTC Amaze 4G] Binary100100:
Data is not effected by the revert. With temp root any changes to system is.
[HTC Amaze 4G] zarish:
Unfortunately a lot of the data files need root access to change them and as such temp root was nice to have for that alone.

I think I need a dummies guide to going from one ROM to another while preserving things like contacts/app settings/configurations/installed apps(with settings). That way when an upgrade comes out I don't end up spending so much time redoing things on the phone.

As far as I understand it, unlocking the bootloader will cause it to essentially wipe everything I've done thus far with the phone. Then flash ClockWorkMod so that I can flash custom ROMs. It is the whole process of after using the phone for a while on a particular custom ROM, then needing to upgrade that gets me fuzzy. Plus that annoying issue of dealing with the radio flashes (which 1.43.513.3 really improved my Home reception). I suppose though this part of such a discussion best for the general forum.

Either way, thanks to everyone here for their work on all of this.
[HTC Amaze 4G] Binary100100:
Well it's up to you if you want to unlock your bootloader or not. Having a custom recovery is the best way to restore your data though. And once you have a custom recovery, rooting is a breeze! It's as simple as installing drivers on your computer, downloading the custom recovery.img file and typing a single command: fastboot flash recovery recovery.img and your done. From there on you can flash custom roms. The only downfall is that if another OTA is released you have to revert back to the stock recovery to install such things as radios, hboot and others. But you really won't have to go through the process of having to unlock the bootloader again.
[HTC Amaze 4G] yanyu:
it does not work on mine.

everything runs smooth, and I pressed "any key" exit the dos window

but nothing happened to my phone,

My bootloader and service provider is locked to Mobilicity, can't be unlocked.
[HTC Amaze 4G] chicolocopr25:
Im having the same problem when I press any key the window close, Im runing android 2.3.4 software 1.43.531.3 please help

C:\Zerg rush root>adb wait-for-device

C:\Zerg rush root>adb push zergRush /data/local/

1328 KB/s (21215 bytes in 0.015s)

C:\Zerg rush root>adb shell chmod 777 /data/local/zergRush

C:\Zerg rush root>adb shell rm /data/local/tmp/*sh

C:\Zerg rush root>adb shell /data/local/zergRush

[**] Zerg rush - Android 2.2/2.3 local root

[**] (C) 2011 Revolutionary. All rights reserved.

[**] Parts of code from Gingerbreak, (C) 2010-2011 The Android Exploid Crew.

[+] Found a GingerBread ! 0x00017118

[*] Scooting ...

[*] Sending 149 zerglings ...

[*] Sending 189 zerglings ...

[-] Hellions with BLUE flames !

C:\Zerg rush root>adb wait-for-device

C:\Zerg rush root>adb shell sleep 1

C:\Zerg rush root>adb remount

remount failed: Operation not permitted

C:\Zerg rush root>adb shell mount -o rw,remount rootfs /

mount: Operation not permitted

C:\Zerg rush root>adb shell mount -o remount,suid /dev/block/mmcblk0p29 /system

mount: Operation not permitted

C:\Zerg rush root>adb shell chmod 4755 /system/bin/sh

Unable to chmod /system/bin/sh: Read-only file system

C:\Zerg rush root>adb push ./su /system/bin

failed to copy './su' to '/system/bin/su': Read-only file system

C:\Zerg rush root>adb push ./su /system/bin

failed to copy './su' to '/system/bin/su': Read-only file system

C:\Zerg rush root>adb push ./busybox /system/bin

failed to copy './busybox' to '/system/bin/busybox': Read-only file system

C:\Zerg rush root>adb shell chmod 4755 /system/bin

Unable to chmod /system/bin: Read-only file system

C:\Zerg rush root>adb shell chmod 4755 /system/bin/su

Unable to chmod /system/bin/su: No such file or directory

C:\Zerg rush root>adb shell chmod 4755 /system/bin/su

Unable to chmod /system/bin/su: No such file or directory

C:\Zerg rush root>adb push ./Superuser.apk /system/app

failed to copy './Superuser.apk' to '/system/app/Superuser.apk': Read-only file

system

C:\Zerg rush root>adb install ./androidterm.apk

1936 KB/s (92780 bytes in 0.046s)

pkg: /data/local/tmp/androidterm.apk

Failure [INSTALL_FAILED_ALREADY_EXISTS]

C:\Zerg rush root>adb wait-for-device

C:\Zerg rush root>adb shell sync

C:\Zerg rush root>pause

Press any key to continue . . .
[HTC Amaze 4G] Jetta2_MTL:
im having same failed message when i try to root my amaze 4g from videotron.. :mad:
[HTC Amaze 4G] jimczyz:
Have all of you unlocked your bootloaders from the hct dev site?
[HTC Amaze 4G] Vadimus_ca:
Why does it matter? It should give us locked bootloader owners at least temp root, but zerg rush clearly don't work on our newer phones.
[HTC Amaze 4G] CharlyDigital:
This may help unlock bootloader without HTC

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

Cheers
[HTC Amaze 4G] Binary100100:
This post said that it didn't work.

http://xdaforums.com/showpost.php?p=20616107&postcount=569
[HTC Amaze 4G] garveygibbs:
same here with same phone

Hey Xboarder and Binary is there a way to edit these here http://xdaforums.com/showthread.php?t=1335703 so the cid match our phone so we can have features like the tmobile amaze 4g camera ?
[HTC Amaze 4G] Binary100100:
No because those files are signed. Any changes to the RUU's will cause it to fail to install.
[HTC Amaze 4G] garveygibbs:
Hey X, can you look at the errors I've posted and see what can be done... Am so depressed that I can't do anything with my phone now...

Much appreciated
[HTC Amaze 4G] Binary100100:
What errors?
[HTC Amaze 4G] garveygibbs:
Errors telus mobilicity and wind mobile 4G amaze users have

C:\Zerg rush root>adb wait-for-device

C:\Zerg rush root>adb push zergRush /data/local/

1328 KB/s (21215 bytes in 0.015s)

C:\Zerg rush root>adb shell chmod 777 /data/local/zergRush

C:\Zerg rush root>adb shell rm /data/local/tmp/*sh

C:\Zerg rush root>adb shell /data/local/zergRush

[**] Zerg rush - Android 2.2/2.3 local root

[**] (C) 2011 Revolutionary. All rights reserved.

[**] Parts of code from Gingerbreak, (C) 2010-2011 The Android Exploid Crew.

[+] Found a GingerBread ! 0x00017118

[*] Scooting ...

[*] Sending 149 zerglings ...

[*] Sending 189 zerglings ...

[-] Hellions with BLUE flames !

C:\Zerg rush root>adb wait-for-device

C:\Zerg rush root>adb shell sleep 1

C:\Zerg rush root>adb remount

remount failed: Operation not permitted

C:\Zerg rush root>adb shell mount -o rw,remount rootfs /

mount: Operation not permitted

C:\Zerg rush root>adb shell mount -o remount,suid /dev/block/mmcblk0p29 /system

mount: Operation not permitted

C:\Zerg rush root>adb shell chmod 4755 /system/bin/sh

Unable to chmod /system/bin/sh: Read-only file system

C:\Zerg rush root>adb push ./su /system/bin

failed to copy './su' to '/system/bin/su': Read-only file system

C:\Zerg rush root>adb push ./su /system/bin

failed to copy './su' to '/system/bin/su': Read-only file system

C:\Zerg rush root>adb push ./busybox /system/bin

failed to copy './busybox' to '/system/bin/busybox': Read-only file system

C:\Zerg rush root>adb shell chmod 4755 /system/bin

Unable to chmod /system/bin: Read-only file system

C:\Zerg rush root>adb shell chmod 4755 /system/bin/su

Unable to chmod /system/bin/su: No such file or directory

C:\Zerg rush root>adb shell chmod 4755 /system/bin/su

Unable to chmod /system/bin/su: No such file or directory

C:\Zerg rush root>adb push ./Superuser.apk /system/app

failed to copy './Superuser.apk' to '/system/app/Superuser.apk': Read-only file

system

C:\Zerg rush root>adb install ./androidterm.apk

1936 KB/s (92780 bytes in 0.046s)

pkg: /data/local/tmp/androidterm.apk

Failure [INSTALL_FAILED_ALREADY_EXISTS]

C:\Zerg rush root>adb wait-for-device

C:\Zerg rush root>adb shell sync

C:\Zerg rush root>pause

Press any key to continue
[HTC Amaze 4G] Binary100100:
You're not able to mount the system as RW so thats why you can't push the SuperUser apk to /system/app, su or busybox binary files to /system/bin directory. Once you figure out how to mount as RW it should work flawlessly. If I'm not mistaken, HTC has already patched this exploit in their 1.42+ firmware. You haven't unlocked your bootloader either, have you?
[HTC Amaze 4G] garveygibbs:
I got my phone last week
[HTC Amaze 4G] Binary100100:
That told me absolutely nothing.

I got my phone on day of release and had it rooted within a couple of days.
[HTC Amaze 4G] garveygibbs:
Well got it from Canada from mobilicity and guess they want us to keep our bootloader locked
[HTC Amaze 4G] Binary100100:
I just noticed this post of yours. You cannot get perm root until you unlock your bootloader.
[HTC Amaze 4G] garveygibbs:
Well htc won't help mobilicity telus go suck wind... So we have to figure it out
[HTC Amaze 4G] Binary100100:
Well you do that. But there isn't a way unless you get your own .bin file.

Bottom line you have two options:

Get your own unlock_code.bin file

Get S-OFF (which is not available for this device unless it came with it)
[HTC Amaze 4G] papeshfoo:
So how do I know if this worked?
[HTC Amaze 4G] Binary100100:
Use command prompt from Windows or Terminal from Linux.

Type

adb shell

if you see # then your rooted.

If you see $ then

Type

su

if you see # then your rooted.

If you don't then your not.

You can also use a terminal emulator program from the Market.
[HTC Amaze 4G] oisact:
I'm trying to root an HTC Merge running Android 2.3.4. The tool acts like it succeeds, however nothing on the device itself behaves as if it has root access. In terminal on the device I get a $ prompt. su fails with "permission denied". Apps like Titanium Backup do not have root. Superuser force closes.

However if I launch a shell from my PC with adb shell then I do get a # prompt. I can kill processes from adb shell that I can't kill from terminal. If I restart the device then I no longer have root access from an adb shell.

So in other words, and maybe I'm a total idiot and this is how it's supposed to work, but I seem to only have root access through adb, but not on the phone itself. Is this the correct behavior?

Also, the device does not restart on its own, should it? If I restart it manually then it still is not rooted (my device is not unlocked, but the instructions make it sound like it should be reset once for root to work), and adb shell no longer has root access. Also, the Superuser app is magically deleted each time I restart my device. Seems that some HTC app is actively removing that app on startup every time.

If I can gain root access from adb shell to do what I need to do (which is purge out a lot of bloatware) then I guess I'll be content with that.

Thanks for all the hard work by all involved in this project.
[HTC Amaze 4G] Binary100100:
I'm sorry... the HTC what? This is the Amaze section. What is the HTC Merge?
[HTC Amaze 4G] xboarder56:
thunderbolt i think
[HTC Amaze 4G] oisact:
Sorry, indeed I'm in the wrong device forum. I came across this thread from google and thought it was a generic Android root tool. It does work on the HTC Merge as I described (it's a slider offered by just a couple smaller carriers and Verizon) but only from adb, which was good enough to disable the bloatware I wanted to get rid of.
[HTC Amaze 4G] brokenwatch:
I am failing at "adb remount", I get a permission denied for it and all the following commands. My phone is unlocked and I have installed CWM 5.0.2.7. I have SW 1.43.531.3 and flashed the correct version of recovery for it from that thread.

This is what it looks like when I boot holding the down arrow and power button:

*** UNLOCKED ***

RUBY PVT SHIP S-ON RL

HBOOT-1.90.0008

eMMC-boot

Nov 1 2011,16:50:47

This is the output of zergrush

$ chmod 777 /data/local/tmp/zergRush

chmod 777 /data/local/tmp/zergRush

$ /data/local/tmp/zergRush

/data/local/tmp/zergRush

[**] Zerg rush - Android 2.2/2.3 local root

[**] (C) 2011 Revolutionary. All rights reserved.

[**] Parts of code from Gingerbreak, (C) 2010-2011 The Android Exploid Crew.

[+] Found a GingerBread ! 0x00017118

[*] Scooting ...

[*] Sending 149 zerglings ...

[*] Sending 189 zerglings ...

[-] Hellions with BLUE flames !

$ exit

exit

But I'm not root as far as I can tell...

$ /data/local/tmp/su -c remount

/data/local/tmp/su -c remount

remount: permission denied

adb remount

remount failed: Operation not permitted
[HTC Amaze 4G] brokenwatch:
I was able to get root by flashing su from CWM as described in another thread.
[HTC Amaze 4G] Binary100100:
Why are you doing this if you already have a custom recovery?

Just download and flash the SuperUser from recovery.

It's also seen in step three of this thread: http://xdaforums.com/showthread.php?t=1324177
[HTC Amaze 4G] brokenwatch:
To get permroot? I did end up flashing su and that seems to have worked as I posted above.
[HTC Amaze 4G] jjlean:
This work after the update? The other one click tool was stated as not working after the update....
[HTC Amaze 4G] Binary100100:
Here's the

best

method people.

Unlock your bootloader.

Fastboot flash the recovery -OR- use the updated PH85IMG.zip for your rom version. The fastboot flash method is universal and thus preferred but requires a PC. The PH85IMG.zip does not require a PC but requires an external sdcard.

Reboot to recovery from hboot by selecting recovery.

Flash the zip file from recovery that I have attached to this post.

Welcome to permaroot.

That simple.
[HTC Amaze 4G] PAulyhoffman:
You can use this link to the latest superuser binary and apk

Flash from recovery (3.0.7-efghi)
[HTC Amaze 4G] tennandcoz1:
please how do I get clockwork on this phone without unlocking bootloader.then I can just flash a rooted ROM.this is the wifes phone.I never had a HTC phone.samsung for me.is there not a superoneclick or Odin type of way.thanks.

From a glaxay better than yours.
[HTC Amaze 4G] seansk:
you cannot, read the READ ME FIRST section under general, you have to unlock to flash custom recovery. Its the first thing you will see on that page that is stickied there.

Please I urge everyone to read before posting questions.
[HTC Amaze 4G] Binary100100:
currently right now you cant.sorry.wait until we get s-off.if we ever get it.
[HTC Amaze 4G] seansk:
get a samsung if you really want to root and custom recovery without unlocking bootloader!!!
[HTC Amaze 4G] shikki1985:
Thank you so much. I do not why the one click Root did not work for me, but with this I have my phone 100% rooted. Thank you again
[HTC Amaze 4G] Binary100100:
Updated Post

I took the honors to update post #1 with

Moderator note: This will not work on 1.43 firmware! This is for 1.36 or earlier!

Because I had someone (not naming names) send me a pm wondering how to root his phone and why this wasn't working.

Somehow he missed the [HOW TO] ROOT HTC RUBY / AMAZE 4G in development and the [HOW TO] ROOT HTC RUBY / AMAZE 4G in General.

This may sound cruel but if you can't root this device even after those very simple and easy to understand guides then ask yourself these questions:

"Do I really need root?"

"What am I going to need root for?"

"What will happen if I ask a question that has already been answered in the forums?"

"What will happen if I spam the moderator with 8+ HELP ME e-mails?"
[HTC Amaze 4G] rmanasse:
How do you root with 1.43?

---------- Post added at 09:20 PM ---------- Previous post was at 09:07 PM ----------

nevermind i got it! Thanks!!
[HTC Amaze 4G] ThaPirato:
Man xboarder idk how you & Binary keep repeating yourself,people are just idiots(or just lazy) it seems & cannot do a little research or look a few pages back to see that the very question they are asking has been answered many times & i mean MANY TIMES!I understand you needing a break,take a nice break & enjoy yourself,you to Binary ;) you should have answers copied so you can just paste them for these people lol.THERE IS NO S-OFF AT THE MOMENT,HOPEFULLY THERE WILL BE 1 SOON but don't count on it people.Again before asking the same questions read at least 10 pages back,I'm sure you'll find your answer & give the OP & mods a break!

That is all,carry on with your shiny Devices :P
[HTC Amaze 4G] Binary100100:
You don't even need to read the last ten. Just read the first POST. I always update the OP because I know that there are a of lazy people. I don't get it though. Most questions aren't that original and can be found by searching. Instead they would rather post to have someone search for them. That's why I love lmgtfy.com :D
[HTC Amaze 4G] mznatnat:
Xboarder56 is to the Android community.... what Chuck Norris is to the world......

Is there anything Xboarder56 can't do?!?!?!?!
[HTC Amaze 4G] Binary100100:
He can't get us s-off.

He can't find the Holy Grail or Lost Ark.

He can't graduate high school yet.

He can't run for president (not until 35 anyway).

He can't give birth (for obvious reasons).

He can't breathe under water (not for long anyway).

I can go on... but yeah I'm pretty sure there are some things this 16 year old mortal Earthling can't do. :D
[HTC Amaze 4G] mznatnat:
Lmfaooooooooooooooooooooooooooooooooooooooooooo!!!! Good one!!!
[HTC Amaze 4G] exc4lib3r:
i don't think we have a dump for that firmware.. should post it up here on the forums :) and xboarder will work his magic
[HTC Amaze 4G] xboarder56:
i have a system dump of 1.0.1 test build thats what the guy above me has now i help him install it :D
[HTC Amaze 4G] xboarder56:
ok got recovery working :D well almost perfect :D

working in progress i got it booting clockworkmod 5.0.2.0

got to fix the mounts but then its good :D
[HTC Amaze 4G] cmenard:
Way to go!! That's what I was working on today as well....
[HTC Amaze 4G] Enzopreme:
Xboarder and I are making it happen its a work in progress.
[HTC Amaze 4G] morganpants:
jesus, i love you man! if u lived near me i'd let my woman do some crazy stuff to u lol
[HTC Amaze 4G] Willieumm:
Thanks for all your hard work xboarder. :)
[HTC Amaze 4G] xboarder56:
we are working on it maybe by the end of the week we have working recovery :D
[HTC Amaze 4G] da9b16:
I see some familiar things there.
[HTC Amaze 4G] xboarder56:
will work on it more when i get back from school :( i hate 11th grade but should have recovery by end of the week
[HTC Amaze 4G] 338lm:
Thank you x100!
[HTC Amaze 4G] Binary100100:
So to be clear, we need to unlock the bootloader for anything root to stick?
[HTC Amaze 4G] ScottC:
Thanks so much for your hard work on this!

Mine ran once correctly, but now it just throws errors when I try to re-run, any idea? After rebooting, I lost superuser, and running it now just FC's.

C:\Zerg rush root>adb wait-for-device

C:\Zerg rush root>adb push zergRush /data/local/
2071 KB/s (21215 bytes in 0.010s)

C:\Zerg rush root>adb shell chmod 777 /data/local/z

C:\Zerg rush root>adb shell /data/local/zergRush

[**] Zerg rush - Android 2.2/2.3 local root
[**] (C) 2011 Revolutionary. All rights reserved.

[**] Parts of code from Gingerbreak, (C) 2010-2011

[-] Cannot copy boomsh.: Permission denied

C:\Zerg rush root>adb wait-for-device

C:\Zerg rush root>adb shell sleep 1

C:\Zerg rush root>adb remount
remount failed: Operation not permitted

C:\Zerg rush root>adb shell mount -o rw,remount roo
mount: Operation not permitted

C:\Zerg rush root>adb shell mount -o remount,suid /

mount: Operation not permitted

C:\Zerg rush root>adb shell chmod 4755 /system/bin/
Unable to chmod /system/bin/sh: Read-only file syst

C:\Zerg rush root>adb push ./su /system/bin
failed to copy './su' to '/system/bin/su': Read-onl

C:\Zerg rush root>adb push ./su /system/bin
failed to copy './su' to '/system/bin/su': Read-onl

C:\Zerg rush root>adb push ./busybox /system/bin
failed to copy './busybox' to '/system/bin/busybox'

C:\Zerg rush root>adb shell chmod 4755 /system/bin
Unable to chmod /system/bin: Read-only file system

C:\Zerg rush root>adb shell chmod 4755 /system/bin/
Unable to chmod /system/bin/su: No such file or dir

C:\Zerg rush root>adb shell chmod 4755 /system/bin/
Unable to chmod /system/bin/su: No such file or dir

C:\Zerg rush root>adb push ./Superuser.apk /system/
failed to copy './Superuser.apk' to '/system/app/Su
system

C:\Zerg rush root>adb install ./androidterm.apk
2448 KB/s (92780 bytes in 0.037s)
pkg: /data/local/tmp/androidterm.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]

C:\Zerg rush root>adb wait-for-device

C:\Zerg rush root>adb shell sync

C:\Zerg rush root>pause
Press any key to continue . . .
[HTC Amaze 4G] Binary100100:
adb shell rm /data/local/tmp/*sh
[HTC Amaze 4G] Willieumm:
Yes.

/10char
[HTC Amaze 4G] ScottC:
@Binary100100 : You = awesome.
[HTC Amaze 4G] xboarder56:
yes you need to unlock bootloader to make it stick

and anyone having trouble try this one attached to this post

enzo: did it flash the rom?

can someone check this new version should be fixed
[HTC Amaze 4G] psjames:
I do not have the boot loader unlocked. I have had to do a factory reset and then ran the script an I had root, but the SD card disappears. So I can not install my apps from titanium.

I then rebooted and tried to run the script and it just gives error after error.

What am I doing wrong.

Paul
[HTC Amaze 4G] xboarder56:
becuase its all ready rooted man

permroot stays through wipe
[HTC Amaze 4G] xboarder56:
can someone that has rooted run these comands i need a system.img of 1.36.531.5

cd c:\adb

adb shell

dd if=/dev/block/mmcblk0p29 of=/sdcard/system.img

then just mount usb and copy if off and place in zip folder upload to multiupload and share link thanks guys
[HTC Amaze 4G] gaww:
He said he did not have boot loader unlocked - thought it had to be to have root stay through reboot ?
[HTC Amaze 4G] xboarder56:
yes it does need to be unlocked
[HTC Amaze 4G] psjames:
So when it was rooted but I don't have access to the sd card. when I reboot how do I get root access back. I tried running the script and it errors, when I try and use titanium it can't find root access.

How do I get root access back once I reboot?
[HTC Amaze 4G] xboarder56:
do a data wipe and redo man
[HTC Amaze 4G] Binary100100:
We need to have an unlocked bootloader first.

Afterwards clean up the tmp file in your data.

To do that try this:

adb shell rm /data/local/tmp/*sh

then try the one click root again.
[HTC Amaze 4G] xboarder56:
hey binary can you see if my posted one a few post back fixes it?
[HTC Amaze 4G] Binary100100:
The requirement for the unlocked bootloader or the remnants of previous rooting attempts? I'll look at the script to be sure.
[HTC Amaze 4G] xboarder56:
the script i added your command in there
[HTC Amaze 4G] macheteZen:
Seems to work for me, ran earlier version of one click and then rebooted and ran new version and it was perfect :) (well except that it is still temp haha)

Edit: Seems this is common but I just wanted to add that SD is not mounted.
[HTC Amaze 4G] Binary100100:
It looks like it should work.

I was in the process of unlocking my bootloader but I'll hold off to try to reproduce the error and try the script again.

I'll get back to you.
[HTC Amaze 4G] xboarder56:
link updated with fixed perm root tool :D
[HTC Amaze 4G] Binary100100:
Confirmed the new scripts works.