• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root root,s-off,simunlock,superCID htc merge

well,the good news is that i was able to duplicate your situation. i ran zergrush twice,and it started rebooting like crazy :eek: pulled the battery and it powered on normally. tried to run zergrush again,and got the same error thats been hindering you.

ran the above commands,then just ran /data/local/zergRush and it worked. found a froyo!sending zerglings,blah blah,lol.

the first command may fail(it did for me) so dont let that discourage you. run the second,then run zergrush again.

ive also got a verizon stock RUU and custom ruu now from backing up my system image,and i found a couple small errors in the guide(that i fixed) ill get the ruus uploaded,and copies of my sessions up soon. for now,im tired. :eek:

Code:
c:\miniadb_merge>[COLOR="Red"]adb push zergRush /data/local/[/COLOR]
735 KB/s (23052 bytes in 0.030s)

c:\miniadb_merge>[COLOR="red"]adb shell[/COLOR]
$ [COLOR="red"]chmod 755 /data/local/zergRush[/COLOR]
chmod 755 /data/local/zergRush
$ [COLOR="red"]/data/local/zergRush[/COLOR]
/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.

[-] Cannot copy boomsh.: Permission denied
$ [COLOR="red"]rm /data/local/tmp/booms[/COLOR]
rm /data/local/tmp/booms
rm failed for /data/local/tmp/booms, No such file or directory
$ [COLOR="red"]rm /data/local/tmp/sh[/COLOR]
rm /data/local/tmp/sh
$ [COLOR="red"]/data/local/zergRush[/COLOR]
/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 Froyo ! 0x00015108
[*] Scooting ...
[*] Sending 149 zerglings ...
[+] Zerglings found a way to enter ! 0x10
[+] Overseer found a path ! 0x00015108
[*] Sending 149 zerglings ...
[+] Zerglings caused crash (good news): 0x401219e4 0x006c
[*] Researching Metabolic Boost ...
[+] Speedlings on the go ! 0xafd1598f 0xafd1adb3
[*] Sending 149 zerglings ...

[+] Rush did it ! It's a GG, man !
[+] Killing ADB and restarting as root... enjoy!

c:\miniadb_merge>adb shell
# exit
exit
 
Upvote 0
Scotty,

I'm sure you might already know this, but 1-click root apps like Z4root which uses the rageagainstthecage exploit work best when right after a fresh boot.

I haven't followed or heard that this is also true of root apps that use the GingerBreak exploit (I've looked at the code for that...makes your head-spin), but I wonder if it would be more successful when run after a fresh boot, too.

Just my two-cents ;).

You're doing great stuff, by the way...I love reading your threads and seeing how helpful and informative you are!

Thanks and cheers!
 
  • Like
Reactions: scotty85
Upvote 0
I'm gettin' so close here! I'm literally on the last step. It's the /data/local/psneuter line where I get the error "Failed to set prot mask (Inappropriate ioctl for device). And then I get the permission denied error when I try to do the adb shell.

I also have 3 screen shots attached of my file setups (hoping I have everything right). I replaced the system file from that rom download and put it into the PD42IMG.zip folder that is on the root directory. Yes, I know I have a couple of PD42IMG folders in there, but I wasn't sure where to put them exactly, so I figure why not name both places that and see if I get lucky, heh.


Here is my code:

Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Brian>cd c:\miniadb_merge

c:\Miniadb_merge>adb shell
$ rm /data/local/tmp/booms
rm /data/local/tmp/booms
rm failed for /data/local/tmp/booms, No such file or directory
$ rm /data/local/tmp /sh
rm /data/local/tmp /sh
rm failed for /data/local/tmp, Is a directory
$ exit
exit

c:\Miniadb_merge>adb devices
List of devices attached
SERIAL NUMBER HERE device

c:\Miniadb_merge>adb push zergRush /data/local/
1407 KB/s (23060 bytes in 0.016s)

c:\Miniadb_merge>adb shell
$ chmod 755 /data/local/zergRush
chmod 755 /data/local/zergRush
$ /data/local/zergRush
/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.

[-] Cannot copy boomsh.: Permission denied
$ cd c:\miniadb_merge
cd c:\miniadb_merge
cd: can't cd to c:miniadb_merge
$ adb shell
adb shell
adb: permission denied
$ rm /data/local/tmp/booms
rm /data/local/tmp/booms
rm failed for /data/local/tmp/booms, No such file or directory
$ rm /data/local/tmp/sh
rm /data/local/tmp/sh
$ exit
exit

c:\Miniadb_merge>cd c:\miniadb_merge

c:\Miniadb_merge>adb devices
List of devices attached
HT15NM800494    device


c:\Miniadb_merge>adb push zergRush /data/local/
1876 KB/s (23060 bytes in 0.012s)

c:\Miniadb_merge>adb shell
$ chmod 755 /data/local/zergRush
chmod 755 /data/local/zergRush
$ /data/local/zergRush
/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 ! 0x00000118
[*] Scooting ...
[*] Sending 149 zerglings ...
[+] Zerglings found a way to enter ! 0x10
[+] Overseer found a path ! 0x000161e0
[*] Sending 149 zerglings ...
[+] Zerglings caused crash (good news): 0x401219c4 0x0054
[*] Researching Metabolic Boost ...
[+] Speedlings on the go ! 0xafd1997b 0xafd39a97
[*] Popping 24 more zerglings
[*] Sending 173 zerglings ...

[+] Rush did it ! It's a GG, man !
[+] Killing ADB and restarting as root... enjoy!

c:\Miniadb_merge>adb push busybox /data/local
2051 KB/s (1062992 bytes in 0.506s)

c:\Miniadb_merge>adb shell
# chmod 0755 /data/local/busybox
chmod 0755 /data/local/busybox
# dd if=/dev/block/mmcblk0p17 of=/sdcard/misc-stock.img bs=4096
dd if=/dev/block/mmcblk0p17 of=/sdcard/misc-stock.img bs=4096
64+0 records in
64+0 records out
262144 bytes transferred in 0.024 secs (10922666 bytes/sec)
# /data/local/busybox md5sum /sdcard/misc-stock.img
/data/local/busybox md5sum /sdcard/misc-stock.img
f5c3a6a3d3a2644748e6d3004fd3bf12  /sdcard/misc-stock.img
# /data/local/busybox md5sum /dev/block/mmcblk0p17
/data/local/busybox md5sum /dev/block/mmcblk0p17
f5c3a6a3d3a2644748e6d3004fd3bf12  /dev/block/mmcblk0p17
# exit
exit

c:\Miniadb_merge>adb push misc-downgrade.img /sdcard/
2151 KB/s (262144 bytes in 0.119s)

c:\Miniadb_merge>adb shell
# dd if=/sdcard/misc-downgrade.img of=/dev/block/mmcblk0p17
dd if=/sdcard/misc-downgrade.img of=/dev/block/mmcblk0p17
512+0 records in
512+0 records out
262144 bytes transferred in 0.176 secs (1489454 bytes/sec)
# sync
sync
# adb reboot bootloader
adb reboot bootloader
adb: not found
# adb reboot bootloader
adb reboot bootloader
adb: not found
# sync
sync
#
c:\Miniadb_merge>adb reboot bootloader

c:\Miniadb_merge>adb push psneuter /data/local/
2042 KB/s (585731 bytes in 0.280s)

c:\Miniadb_merge>adb push busybox /data/local/
2080 KB/s (1062992 bytes in 0.499s)

c:\Miniadb_merge>adb push wpthis /data/local/
1986 KB/s (679475 bytes in 0.334s)

c:\Miniadb_merge>adb push gfree /data/local/
1526 KB/s (134401 bytes in 0.086s)

c:\Miniadb_merge>adb shell
$ chmod 0755 /data/local/psneuter
chmod 0755 /data/local/psneuter
$ chmod 0755 /data/local/wpthis
chmod 0755 /data/local/wpthis
$ chmod 0755 /data/local/gfree
chmod 0755 /data/local/gfree
$ /data/local/psneuter
/data/local/psneuter
Failed to set prot mask (Inappropriate ioctl for device)
$ adb shell
adb shell
adb: permission denied
 

Attachments

  • 3.jpg
    3.jpg
    126.2 KB · Views: 123
  • 4.jpg
    4.jpg
    186.6 KB · Views: 109
  • 5.jpg
    5.jpg
    176.3 KB · Views: 139
Upvote 0
ok... you are doing a great job with the adb commands,you just have a little confusion about what were doing. it may help if i give a more detailed explanation of what the process is actually doing.

we are using an exploit called "gfree" to turn the secure flagin the radio from "on" to "off",unlocking the sim card,and setting the carrier ID to "superCID" of 111111. the supercid will let you flash vzw,usc,or alltell firmware without the use of a gold card,unlocking the sim will let you use it on gsm networks(it has gsm and cdma radios,being a world phone).

setting the secure flag off changes the s-on to s-off in your hboot screen,and is what were after as far as rooting the phone. this means the phone is not doing any security checks,and we can now flash a custom recovery(or a custom ruu containing a custom recovery) that we can use to flash the files to have root access.

unfortunately,gfree does not work on the current carrier firmwares. we have to downgrade to an old firmware in order to use the gfree exploit. this is what step "5)downgrade with adb" is doing. we rewrite part of the software that prevents us from going backwards in firmware versions,so we can flash the old vzw firmware. since youre on usc,its also important here that your gold card is working,as it will allow you to flash the vzw firmware that isnt designed for your usc branded phone ;)

at the end of step 5,youll boot to fastboot,push power to select bootloader,and hopefully it will flash the old vzw firmware,wich is this in the files you downloaded: VZW leak 1.23.605.1 ruu.zip

youll let the phone flash this firmware,then boot it back up. once its booted,youll do the adb commands in step "6) gain simunlock,s-off,and superCID". when the gfree command is entered correctly,all these things will happen and you can cheer,pass out cigars,and open a bottle of wine :D the one little commnad /data/local/gfree -f does it,everything to that point is in preparation. but,everything up to that had to work.

step "7)upgrade and root" is simply flashing your previous firmware back to the phone,just this time with a custom recovery that you can use to flash the "merge_su_eng_toolkit",wich will give you root access.

verizon folks needed to copy and mess with their system image because there is not a publically available ruu for me to modify for them to use.

you,on usc have the luxury of not messing with that. :) i assume you chose usc gingerbread for your upgrade ruu- you dont have to mess with it at all.

hopefully that helps clear things up a lil for you. :)
 
  • Like
Reactions: B Rich
Upvote 0
I'm gettin' so close here! I'm literally on the last step. It's the /data/local/psneuter line where I get the error "Failed to set prot mask (Inappropriate ioctl for device). And then I get the permission denied error when I try to do the adb shell.

I also have 3 screen shots attached of my file setups (hoping I have everything right). I replaced the system file from that rom download and put it into the PD42IMG.zip folder that is on the root directory. Yes, I know I have a couple of PD42IMG folders in there, but I wasn't sure where to put them exactly, so I figure why not name both places that and see if I get lucky, heh.


Here is my code:

Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Brian>cd c:\miniadb_merge

c:\Miniadb_merge>adb shell
$ rm /data/local/tmp/booms
rm /data/local/tmp/booms
rm failed for /data/local/tmp/booms, No such file or directory
$ rm /data/local/tmp /sh
rm /data/local/tmp /sh
rm failed for /data/local/tmp, Is a directory
$ exit
exit

c:\Miniadb_merge>adb devices
List of devices attached
SERIAL NUMBER HERE device

c:\Miniadb_merge>adb push zergRush /data/local/
1407 KB/s (23060 bytes in 0.016s)

c:\Miniadb_merge>adb shell
$ chmod 755 /data/local/zergRush
chmod 755 /data/local/zergRush
$ /data/local/zergRush
/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.

[-] Cannot copy boomsh.: Permission denied
$ cd c:\miniadb_merge
cd c:\miniadb_merge
cd: can't cd to c:miniadb_merge
$ adb shell
adb shell
adb: permission denied
$ rm /data/local/tmp/booms
rm /data/local/tmp/booms
rm failed for /data/local/tmp/booms, No such file or directory
$ rm /data/local/tmp/sh
rm /data/local/tmp/sh
$ exit
exit

c:\Miniadb_merge>cd c:\miniadb_merge

c:\Miniadb_merge>adb devices
List of devices attached
HT15NM800494    device


c:\Miniadb_merge>adb push zergRush /data/local/
1876 KB/s (23060 bytes in 0.012s)

c:\Miniadb_merge>adb shell
$ chmod 755 /data/local/zergRush
chmod 755 /data/local/zergRush
$ /data/local/zergRush
/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 ! 0x00000118
[*] Scooting ...
[*] Sending 149 zerglings ...
[+] Zerglings found a way to enter ! 0x10
[+] Overseer found a path ! 0x000161e0
[*] Sending 149 zerglings ...
[+] Zerglings caused crash (good news): 0x401219c4 0x0054
[*] Researching Metabolic Boost ...
[+] Speedlings on the go ! 0xafd1997b 0xafd39a97
[*] Popping 24 more zerglings
[*] Sending 173 zerglings ...

[+] Rush did it ! It's a GG, man !
[+] Killing ADB and restarting as root... enjoy!

c:\Miniadb_merge>adb push busybox /data/local
2051 KB/s (1062992 bytes in 0.506s)

c:\Miniadb_merge>adb shell
# chmod 0755 /data/local/busybox
chmod 0755 /data/local/busybox
# dd if=/dev/block/mmcblk0p17 of=/sdcard/misc-stock.img bs=4096
dd if=/dev/block/mmcblk0p17 of=/sdcard/misc-stock.img bs=4096
64+0 records in
64+0 records out
262144 bytes transferred in 0.024 secs (10922666 bytes/sec)
# /data/local/busybox md5sum /sdcard/misc-stock.img
/data/local/busybox md5sum /sdcard/misc-stock.img
f5c3a6a3d3a2644748e6d3004fd3bf12  /sdcard/misc-stock.img
# /data/local/busybox md5sum /dev/block/mmcblk0p17
/data/local/busybox md5sum /dev/block/mmcblk0p17
f5c3a6a3d3a2644748e6d3004fd3bf12  /dev/block/mmcblk0p17
# exit
exit

c:\Miniadb_merge>adb push misc-downgrade.img /sdcard/
2151 KB/s (262144 bytes in 0.119s)

c:\Miniadb_merge>adb shell
# dd if=/sdcard/misc-downgrade.img of=/dev/block/mmcblk0p17
dd if=/sdcard/misc-downgrade.img of=/dev/block/mmcblk0p17
512+0 records in
512+0 records out
262144 bytes transferred in 0.176 secs (1489454 bytes/sec)
# sync
sync
# adb reboot bootloader
adb reboot bootloader
adb: not found
# adb reboot bootloader
adb reboot bootloader
adb: not found
# sync
sync
#
c:\Miniadb_merge>adb reboot bootloader

c:\Miniadb_merge>adb push psneuter /data/local/
2042 KB/s (585731 bytes in 0.280s)

c:\Miniadb_merge>adb push busybox /data/local/
2080 KB/s (1062992 bytes in 0.499s)

c:\Miniadb_merge>adb push wpthis /data/local/
1986 KB/s (679475 bytes in 0.334s)

c:\Miniadb_merge>adb push gfree /data/local/
1526 KB/s (134401 bytes in 0.086s)

c:\Miniadb_merge>adb shell
$ chmod 0755 /data/local/psneuter
chmod 0755 /data/local/psneuter
$ chmod 0755 /data/local/wpthis
chmod 0755 /data/local/wpthis
$ chmod 0755 /data/local/gfree
chmod 0755 /data/local/gfree
$ /data/local/psneuter
/data/local/psneuter
Failed to set prot mask (Inappropriate ioctl for device)
$ adb shell
adb shell
adb: permission denied

from what i can gather,you have not booted into the downgrade firmware(vzw 1.23.605.1). psneuter no longer works on gingerbread to gain root access,so thats why youre getting the failed error.

all you need to do is basically un-do everything you did with the system images,lol.

prior to doing step 5,you needed to have taken the "VZW leak 1.23.605.1 ruu.zip",put it on your GOLD CARD,and renamed it PD42IMG. put the gold card in your phone,if its not allready in there. your phone needs to see "PD42IMG.zip",may want to check it with astro file manager,or scary aliens AFV(wich you can also use to verify its md5 sum :D) and make sure thats how it is.

windows likes to add,and hide,file extentsions,so if youre using windows, simply naming the file "PD42IMG" should result in the phone seeing it as "PD42IMG.zip"

youll also want to make sure your gold card is formatted FAT32. if its FAT,or anything else,the file is basically invisible to the phone :eek:

so these 3 things are all needed to downgrade:
1) VZW leak 1.23.605.1 ruu.zip renamed "PD42IMG.zip" on your gold card
2) gold card formatted FAT32
3) gold card made correctly

unfortunately,you cant really test #3,that i know of. just hope that it works when you get to that step. #1 and #2,however,you may save yourself alot of headache by verifying them now,before starting the adb process again.

so if youre a little confused after reading all that,heres what you need to do:
1)undo all the system image moves you made. if you cant really remember what you moved where,just delete VZW leak 1.23.605.1 ruu.zip and your upgrade ruu and redownload them both

2)basically start over at the 2nd part of step 4,making sure to do the checks i described above,so the downgrade will flash.

3)just ignore the part of backing up your system image. i.e.,omit this line: dd if=/dev/block/mmcblk0p25 of=/sdcard/system.img bs=4096 now that i have a vzw system image,ill be removing it and tweaking the guide a lil.

hang in there,youll get it :)

got some thanksgiving family shenanigans to attend,later this evening ill try and get the guide reworked to be easier for the vzw folks,and get some copies of my sessions put up so folks can see what should happen when the commands are entered.
 
  • Like
Reactions: B Rich
Upvote 0
guide tweaked a lil,no longer needed for vzw folks to back up their system image and create their own custom RUUs.

added copies of my sessions,hopefully seeing the outputs helps.

updated miniadb_merge to now include the updated zergRush. tested on 2.2 and 2.3.4

vzw custom and stock RUUs are uploading... will add links when finished :)

edit: verizon links added :)
 
  • Like
Reactions: B Rich
Upvote 0
Okay first off this was my first ever attempt to root a phone. Probably why a made such a rookie mistake like this. Any who, I managed to get perm root with the VZW custom ruu only to realize that it caused me to lose service with Bluegrass Wirless who is my carrier. Then I restarted to try another one of the custom ruu and reformated my gold card, losing my stock misc image and all my stock back-up. Can anyone please help? How do I get service back on my phone.
 
Upvote 0
Not 100% on this but I think its cdma. Bluegrass is a small company in south central Kentucky, that uses Verizon towers while roaming and in return Verizon uses Bluegrass's towers within there small coverage area which is why I thought the Verizon ruu would work. Btw the guide was great though and really easy to follow. Even for a nub muffin like me.
 
Upvote 0
this process does not change the meid,min,esn,or any other essential part of the phone,so there isnt really any reason that it shouldnt still work. is there a sim card in the phone?

my first instincts are that the service is dependent on the sim card,and that maybe doing the process with it in,damaged the sim.

if you do find a sim card,you can stick it in the other phone and see if your service works on it. that would tell us definatively that something happened during the process.

failing that,i can definately give you some directions to copy the system and boot images so you can restore the firmware that was on the phone,but again,i dont *think* it matters. ive run all the ruus on my vzw merge and its worked just fine.

are you near a wifi source to see if wifi works?

if you could,please tell me the software version number,the baseband number,and the hboot number of your sisters working phone. that may help tell what ruu youd need to use. :)
 
Upvote 0
That actually makes a lot of since because I have heard that Bluegrass is dependent on their sim cards and I did use the one in my phone to make my gold card. I really appreciate the help, I will post the info from my sisters phone as soon as I can. We live in the same town but not with one another so it may be a few days.
 
Upvote 0
I also found this post Bluegrass Cellular doesn't use a SIM (subscriber information module) card. It uses CDMA technology which does not require a SIM card. Your phone may have a slot for a SIM card if it is a worldphone so that if it was used outside of the US, a SIM card would be put into it. However, if you want to get a new phone, you will need to get one directly from Bluegrass. Another carrier's phone won't work with your wireless number. The unlocked phones are GSM phones and they won't work with Bluegrass service. Just get a new phone from your carrier. That's really your only choice. If someone tried to sell you a phone that was flashed to Bluegrass, that may work, but you run the risk of it not working fully or not being able to access the internet, for example. I hope this helps.
 
Upvote 0
it does tell us that bluegrass isnt using GSM networks,they are using CDMA.

again,while the process did, flash vzw firmware,we havent change any part of your phone that makes it a bluegrass device(mainly the ESN,MIN,or MEID),so it should still work just fine. if you look in settings/about phone is your phone number still listed?

you also might double check in settings/wireless + networks/mobile networks/prefered network and make sure its set to CDMA. if it accidentally got set to GSM or global,that would make it not connect to the towers.

if you have a number to program/activate devices,go ahead and call that(for example,verizon is *228)
 
Upvote 0
Nope my number is missing but it is set to CDMA.

oh wow... i cant imagine what happened. :thinking: you are not bothering me,and i must apologize to you,since we had no idea something like this could happen. :eek:

i will give you some commands to run on your sisters phone. youll have to run zergrush to get temp root,then run a couple commands to back up her system,boot,and recovery images.

then,if you could upload them to multiupload(Multiupload.com - upload your files to multiple file hosting sites!) ill download them and put you together an ruu,then upload it for you to download. i can tell you how to modify it,but it may help other folks in the future for me to have it as well. plus id feel better flashing it on my phone before giving it to you,just in case ;)

before we can do that,however,i do still need to know the info above,so we can back up other partitions if needed and not mix-n match too much.

im pretty sure you could call right now and have them re-activate it,but they may ask you for a firmware number(wich will be wrong since youre on vzw firmware),and possibly to do a factory reset(wich youll have to do manually in recovery since youre not running the stock recovery now). if you want to deal with that,and see what happens you can... but if you want well get you back to 100% stock before doing it to minimize hassle and alerting them to possible warranty voiding ;)
 
Upvote 0
Oh wow so if I get you that info you can make a custom rom that will work with bluegrass and root my phone. Will it fix the missing number problem as well? Or do I still need to restore it to factory and restart? I called my sister and got the info you need: software version number - 2.05.557.3, the baseband number - 12.39w.80.14u_1.08.00.0320, and the hboot number - 0.88.0000
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones