yashsingh1/xdaforums huggingface dataset:
[Samsung Infuse 4G] lost1:
The mount error is because you are not getting into root mode. Basically, this is the critical part of Rage Against the Cage.

Windows\adb.exe push rageagainstthecage-arm5.bin /data/local

Windows\adb.exe shell chmod 0755 /data/local/rageagainstthecage-arm5.bin

Windows\adb.exe shell

$ /data/local/rageagainstthecage-arm5.bin

-- wait until it kicks you off the phone...​

Windows\adb.exe kill-server

--- wait 5 seconds...

Windows\adb.exe shell​

Keep repeating until the prompt you see is a "#" instead of "$". The former indicates that you are now superuser.

Everything after the "kill-server" line in the bat file depends on being in superuser mode. That's why its failing.
[Samsung Infuse 4G] kosherdill34:
Mac rooting

Okay, I have check and read as much as I can, but I am not able to root my Infuse.

I have a mac and I have tried everything. I downloaded Mono but i could not get it to work, I tried the root.unlock and could not get it setup.

Can someone please give me a walk through.. I am an old iphone user and I have switched over.... My iphone was Jailbroken....

Help me out XDA
[Samsung Infuse 4G] raywright1:
infuse unlock success

i executed line-by-line with a longer wait after running ratc, and it worked this time.

there was no visual indication that i was kicked off the phone. i just knew i had to wait longer than 60 seconds (otherwise the original batch file probably would have worked) and proceeded after i thought i waited long enough. i suspect a "sleep 120" in the original batch file might have done the trick.

i verified with a foreign SIM and am all set for my vacation. thank you very much!​
[Samsung Infuse 4G] holyhacker:
how long are your unlock codes guys? mine is huge with at least 30 digits and a few #'s in there as well. do i have to punch that entire code into the phone?
[Samsung Infuse 4G] lost1:
The unlock is 8 digits. If you've done a "strings" on nv_data.bin, it will be the next line after your 30 digit one.
[Samsung Infuse 4G] holyhacker:
I just ran the root+unlock script as is in terminal and it gave me "unlock code: (whole bunch of numbers and #'s)" I don't remember seeing an 8 digit number one line below. could you clarify what a "strings" is? thanks
[Samsung Infuse 4G] raywright1:
BusyBox strings

i have not worked with linux/unix since before many of you were born, but my best guess at that line in the batch file is as follows:

-scan for all printable strings from the file nv_data.bin

-do a pattern match for precisely 8 digits at the beginning of a line and ending in carriage return and line feed

-ignore the particular string consisting of 8 zeros

-in the event that there are more that one such strings, only consider the last one

i don't see how it would grab a string of 30ish characters from that file.
[Samsung Infuse 4G] lost1:
That's exactly right. But you can run strings on the nv_data.bin and look for the line following that ~30 digit string. The next string should be your unlock code.
[Samsung Infuse 4G] holyhacker:
thanks for your help guys, i'm not seeing the nv_data.bin file do i have to navigate to a directory on my phone once i have root? i'm attaching a screen shot of what i got. i greyed out most of the digits but they are a whole bunch of random numbers after the initial 010101010101# are you saying my unlock code is in this mess of a string or is there another line i am not seeing that has the code. thanks again
[Samsung Infuse 4G] lost1:
Once you have root (which doesn't seem to be a problem for you). Do the following:

Darwin/adb shell

% busybox strings /efs/root/afs/settings/nv_data.bin
​

This will dump all the strings. Your unlock should be the line following the line you mentioned.
[Samsung Infuse 4G] holyhacker:
Thanks so much lost. I see my 30 digit long number sandwiched between two 8 digit numbers (i'll assume the bottom one is the unlock code since it is one line below the 30 digit mess)
[Samsung Infuse 4G] turbodolphin:
I'm in the same boat, have this long number not sure what is my unlock code. I tried the method you mentioned to dump strings(but on Linux instead) i get a permission denied when i put Linux/adb shell

busybox strings /efs/root/afs/settings/nv_data.bin

can you tell what i'm doing wrong and where i should be looking for the last 8-digit code?
[Samsung Infuse 4G] holyhacker:
you need to have root access for this command to work. try typing "su" to get root access. you may need to install terminal emulator on your phone and run it from there that's what I ended up doing.
[Samsung Infuse 4G] turbodolphin:
i tried su+passwd, also sudo, still didnt work for me=/ i think i'm doing something else wrong. It worked for you with terminal emulator? i'll give that a try, my phone has root just need the network unlock.
[Samsung Infuse 4G] holyhacker:
Yeah i was in the same boat as you and just ended up using terminal emulator. once you type "su" it'll ask you to grant superuser permissions and just hit yes and enter the command that lost posted before and it should give you that long 30 digit mess and an 8 digit unlock code one line under
[Samsung Infuse 4G] bugilt:
I've been on an Iphone 3g for the past 4 years and after eyeing the android phones for a while decided to hop on the infuse.

I followed the instructions on the first post for rooting, but I'm not sure as to what the next step is for me. I'd like to run gingerbread if possible.
[Samsung Infuse 4G] slappyjoker:
Chika Da China Da Chinese Chicken?

We have a ways to go before Gingerbread. Once we (infuser's) have a kernel dev, we will be on track.

Right now we all would like to have a custom 2.2 kernel so we can swap roms, lagfix if wanted, etc. It's going to be easier and quicker to make 2.2 happen first considering it's the current release.
[Samsung Infuse 4G] bugilt:
is this what you are looking for?

SGH-I997_OpenSource.zip
[Samsung Infuse 4G] slappyjoker:
Chika Da China Da Chinese Chicken?

Yeah, we have that. But we need a kernel dev who knows what changes need to be made to a Gingerbread/Froyo already cooked and customized kernel.

Tweaks, batt consumption fix, speed, etc. All the things that improve upon the stock kernel.
[Samsung Infuse 4G] DrGreenLeaf:
Worked like a charm first time, thanks. Rooted and unlocked. Ran from windows 7 starter on my little dell mini.
[Samsung Infuse 4G] Papi4baby:
You zip was flag as having a virus.

I downloaded anyways and it got taken by microsoft security essentials...WTF.
[Samsung Infuse 4G] malikin:
no virus were found, change your antivirus to best one
[Samsung Infuse 4G] JimJep:
SIM Card

Newbie question

Where do I go to get a SIM card to swap?

jj
[Samsung Infuse 4G] lost1:
There is no virus. The zips were generated on linux. I don't know what's getting flagged but there are definitely no viruses.

Look at it this way, there have only been 1000+ downloads of the various versions of this zip. Is your anti-virus the only one which is working?

Also, an anti-virus scans for imprints and specific code fragments. It is possible for something to be misflagged. I don't believe this is the case, but you never know.

Finally, maybe your system was already infected.
[Samsung Infuse 4G] thddragon85:
rage is marked as a virus by most AVs, so just disable the antivirus, antispam, firewall, security anything etc that you have when you download the zip.

for those of you having issues with no device detected etc, i got around that by extracting to the c drive and running it from there. I DID NOT run as administrator.

Windows 7 ultimate x64
[Samsung Infuse 4G] Papi4baby:
I believe this was the problem.

I did everything you said lost1.

I got my phone unlocked, that's all i wanted. Just make sure you have usb debugging enable. I was getting device not found till i check that off in the options.

Thank you very much.
[Samsung Infuse 4G] esprit1st:
Thanks

Ok, I never did something like that before. This is my first Android phone.

Just wanted to say thank you! This worked like a charm although I had to do the root first. It didn't come with the unlock code. Then I did the unlock and it showed me the unlock code.

Thank you guys! Keep up the good work!!
[Samsung Infuse 4G] VladP916:
I keep getting Error: Device not found.....

Debug is checked

Win 7 ...extracted to C: Run as Admin and not.....

EDIT: Never mind....I'm an idiot....tried doing it without the SIM card installed....
[Samsung Infuse 4G] yodafone:
Urgent - can someone help on this detail?

Hi all,

From what the post above me says, it's apparently not possible to do the unlock unless I have the AT&T SIM inserted. Is that right? Do I need to have the SIM?

I'm thinking of getting a locked Infuse 4G off of eBay, but I don't live in the US and if the locked phone can't be unlocked without an AT&T SIM or some other special juju, I'm better off paying him to do the unlock.

The seller has made me a counteroffer which I have about 45 hours to respond to :D, so I appreciate any help I can get.

TIA and especially thanks to lost1 for coming up with this. :)

Edit: Made my question clearer.
[Samsung Infuse 4G] thddragon85:
Sorry, already unlocked mine or I would try it.
[Samsung Infuse 4G] zakiva21:
Don't have to use att sim card. I done it with Singapore sim card.
[Samsung Infuse 4G] X-Kenshin-X:
hi, i have a samsung infuse i just got today, i just successfully rooted it, but i'm not sure if it's network unlocked.

i need to unlock it in order to put a new sim card on it, otherwise i'd have to pay like $30 at some shady store where they say they can unlock it, but i'm really good with computers so i don't want to waste my money.

so anyways, i rooted it with the superoneclickv1.9.1 root method, real easy.

now i followed the guide here:

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

to try and unlock, but i am not sure if it worked since i don't have a sim card. i saw someone used a hex editor to edit some files in the root, but i didn't find any info on the location of the files or the fields to edit.

so can anyone help please?
[Samsung Infuse 4G] yodafone:
Thanks bro. So you don't need to insert the ATT SIM to access the menus, etc., before doing the unlock right?
[Samsung Infuse 4G] zakiva21:
Nope. don't have to. So you bought your infuse? can't seem to pm you.
[Samsung Infuse 4G] X-Kenshin-X:
yeah just bought it yesterday, rooted and unlocked it yesterday. i didn't have a SIM card, that was the problem, but it was easy to do.

now the problem is making my phone able to access the 4G and 3G network from simple mobile...

since it's so new, and from ATT, it's not on simple mobile's 4G and 3G compatability list, so right now i'm on EDGE... >_<

i've done this before to my CDMA phones, i used qpst tools to change the epst settings for the phones and the APN's. but i don't know what all else goes into GSM phones, since i thought all the info was on the SIM card, didn't think there was a config needed...

any help or resources?
[Samsung Infuse 4G] slider2828:
Did you try the APNs?

https://www.wirelessmonk.com/documents/simple data.pdf
[Samsung Infuse 4G] X-Kenshin-X:
yup tried those, they look the same as the ones on the Simple Mobile Website.

also i called simple mobile support to see if they could help me out since the phone is so new...

but they said that basically all ATT phones will never have 3G or 4G since they aren't compatible with the 1700 Hz freq that T-mobile uses.

Well on a sidenote, i called the guy i bought the phone from yesterday to exchange it for a G2x, but he said he could also flash my infuse to work with 3G and 4G, which i didin't think was possible. so i'm not sure what is going on, but i'll ask him to show me what he did exactly, since i like to use custom roms...

EDIT:

if anyone knows how to flash phones to simple mobile, please let me know
[Samsung Infuse 4G] thddragon85:
the g2x is nice, i liked it a lot, everything from GPS to call quality was excellent. I got pissed off at T-Mobile for lying about the UTMS bands(3g and 4g) though, so i switched to AT&T.
[Samsung Infuse 4G] nyproud:
Hey, guys...just got back stateside from the Mediterranean (N. Africa), and bought my new Infuse. Haven't done squat to it yet, like I have to my Captivate. Question: Will all apps, ROMS, etc on my Captivate work on my Infuse??? Any ideas???

Thanks all...Chuck
[Samsung Infuse 4G] rjan22:
I will post video of the Unlock without rooting but 1st help me lol

Hi I just got my Infuse, can anyone tell me how to unlock without rooting on Windows 7 64bit.

Step by step please so I can make a good video, I dont want to root to make sure I get the OTA update, just a unlock :p:D
[Samsung Infuse 4G] DrGreenLeaf:
No captivate stuff wont work....most of it any way. Read all topics, its been talked about.

My everchanging Cappy!!!!
[Samsung Infuse 4G] The Jack of Clubs:
this successfully rooted and unlocked my samsung infuse with this one download. thanks! this thread should really be stickyed.

i would also like to say how nice it is that someone would offer free unlocking. i know its no longer a big deal to get att to give unlock codes but knowing we some people here still help each other out without first seeking a profit really does make me feel good.
[Samsung Infuse 4G] JimJep:
Do have to "use" a sim card after it is unlocked?

I unlocked my phone I think?

I used a T-Moble SIM card entered the unlock code.

Do I put the ATT card back in?

No SIM

Not sure.

tnx,

jj
[Samsung Infuse 4G] The Jack of Clubs:
well if you put the tmobile sim card in and put in the unlock code and it worked, you are unlocked and dont need to put the att sim card back in unless you want to use it on att. it wont ask you to unlock again, its unlocked for life now.
[Samsung Infuse 4G] rjan22:
I tried this procedure and did it without rooting. I didn't use kies driver, I use samsung mobile phone driver I got from www.junefabrics.com/android/ and just used the unrooting.bat
[Samsung Infuse 4G] azn_boix2:
hey guys... i juz tried this method and got a code but tried the code in my phone but it seems to be incorrect one....

any idea?
[Samsung Infuse 4G] rjan22:
Don't try it over and over our you lock the phone permanently
[Samsung Infuse 4G] azn_boix2:
i know that part...but how can i make this unlock thing to work for me?
[Samsung Infuse 4G] Heuser1:
Sorry for the noob question, but what USB mode should i select before starting the process? I have read over everything and it seems that most people have been succesful without any issues. Going to go ahead and give this a short. So USB mode? Kies (Firmware update), Media Player, or Mass Storage? Thanks!

EDIT: I went with Mass Storage, but now when i double-click on the root.sh file i get an error saying "Windows cannot open this file." ANyone know why this might be happening? Thanks!
[Samsung Infuse 4G] darkjz:
Neither... Before connecting the phone to the Computer you have to enable Debugging Mode

Go to:

Settings -> Applications -> Development -> USB debugging (Put a Checkmark on it)

Afterwards connect your phone to the pc, do not select anything on the phone, just run the rooting app of your choice~
[Samsung Infuse 4G] The Jack of Clubs:
you dont select a mode. when you enable usb debugging, samsungs software that gives that menu doesnt come up.
[Samsung Infuse 4G] Heuser1:
I realize that my post wasnt that clear. I did select the debugging option, but it must have been once I plugged it in. ill be sure to do it properly when I get home. which file do I open on my computer, root.sh or just root? because the root.sh wouldnt open for me, or is that also related to the debugging mixup? do I also need to dismount the sd card first? thanks for everything!
[Samsung Infuse 4G] The Jack of Clubs:
root.sh is for unix-like machines such as linux or mac. root.bat is for windows.
[Samsung Infuse 4G] Heuser1:
Unlock worked! Also assuming the root worked because the superuser icon is there, but how do i verify? Now working on changing my apn setting so that it will work with my service provider...
[Samsung Infuse 4G] hoofadoo:
Root checker from the market does a nice job of checking root access.
[Samsung Infuse 4G] The Jack of Clubs:
well, superuser being in the app drawer is root. thats the app that allows other apps to move out the app user.
[Samsung Infuse 4G] andre.marino:
Unlocked - Claro Brasil

Hi,

Worked fine, unlocked... using claro Brasil SIM card now...

Root did not worked, but the unlock version was ok !
[Samsung Infuse 4G] pika2000:
Awesome!

Awesome! So easy, and it worked! My Infuse is now unlocked! Thank you!
[Samsung Infuse 4G] malikin:
i cant to unlock my INFUSE without ATT sim card (but rooted successfully),please help
[Samsung Infuse 4G] celtichazard:
please help me i cant unlock i dounloaded the zip and then where i need to put the fiiles becauce when i run the root.bat the file cant find the pat
[Samsung Infuse 4G] Frooty:
When I try this it keeps failing because it doesn't have permission. This is what I get when I manually try running the first line in the shell script:

zak InfuseRootUnlock $ $adb push rageagainstthecage-arm5.bin /data/local
error: insufficient permissions for device
zak InfuseRootUnlock $

I have my Infuse set to usb debugging mode. What would be causing this?
[Samsung Infuse 4G] LinuxBozo:
Try unplugging the cable from the device for a couple seconds then plug it back in and then try again. Usually helps.
[Samsung Infuse 4G] Frooty:
I just had the cord completely unplugged from both the phone and my computer for a couple of minutes and I got the same error when I tried again.

I don't have to do anything special before I do this do I? I got my phone yesterday and it's pretty much completely stock and I haven't done much to it at all. Right now basically all I did was set it to debugging mode, plug it in, and try to run the script.

If it matters I'm running Arch Linux 64bit.
[Samsung Infuse 4G] LinuxBozo:
What happens when you do:

adb devices

Does your device show up like so?

$ adb devices
List of devices attached
I997acdc96a2	device
[Samsung Infuse 4G] Frooty:
Well there's my problem. It can't see my phone at all

List of devices attached
???????????? no permissions

Do I need to install anything for this? It sounded like the adb binaries that were included in the zip were all that I needed so thats the only thing I have.

Sorry if I'm being nooby right now. This is my first android phone and I only got it yesterday.
[Samsung Infuse 4G] LinuxBozo:
Actually, try running via su. If you don't have the USB devices setup in udev, it may need root to access it. Otherwise, you can try this: http://bzed.de/posts/2009/05/howto_set_android_developer_device_permissions_with_udev/ and try again.
[Samsung Infuse 4G] Frooty:
Thanks, I had to change my udev rules to see the phone. So I did that and was able to see the phone with adb devices, so I tried running the script and this is what I got from it:

23:43 zak InfuseRootUnlock $ ./root.sh
which: no adb in (/usr/share/perl5/vendor_perl/auto/share/dist/Cope:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/kde/bin:/opt/mpich2/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/qt/bin:/home/zak/bin)
Raging Against The Cage...
58 KB/s (5392 bytes in 0.090s)
[*] CVE-2010-EASY Android local root exploit (C) 2010 by 743C

[*] checking NPROC limit ...
[+] RLIMIT_NPROC={3407, 3407}
[*] Searching for adb ...
[+] Found adb as PID 4358
[*] Spawning children. Dont type anything and wait for reset!
[*]
[*] If you like what we are doing you can send us PayPal money to
[*] 7-4-3-C@web.de so we can compensate time, effort and HW costs.
[*] If you are a company and feel like you profit from our work,
[*] we also accept donations > 1000 USD!
[*]
[*] adb connection will be reset. restart adb server on desktop and re-login.
Resarting ADB server
Pushing Superuser utils...
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
error: insufficient permissions for device
error: insufficient permissions for device
error: insufficient permissions for device
error: insufficient permissions for device
error: insufficient permissions for device
Acquiring Network Unlock Codes...
error: insufficient permissions for device

-- Unlock Code:

WARNING: If the code does not work the first or second time
do not keep trying over and over!
WARNING: You can lock your phone if you do this.

Script Complete...
Please type the following at the prompt:
Linux/adb reboot
23:43 zak InfuseRootUnlock $

It looked like it was good up until it pushed the Superuser utils. Why would the beginning part work and not that?
[Samsung Infuse 4G] LinuxBozo:
Odd.. looks like between running rage and after restarting adb, it somehow lost connection to the device.. Ok, try this:

$ adb kill-server

Then try running the script again.
[Samsung Infuse 4G] Frooty:
Well I tried that and it didn't work, same error. However to get it working in the first place I installed the android sdk and it put a adb daemon in my system and I needed to start that before I could do anything. I restarted that and it was able to see my phone again, so I tried to manually run the lines in the script from where it left off, and on this line:

$adb shell mount -o rw,remount /dev/block/stl9 /system

I get this error:

mount: Operation not permitted

EDIT: I ran the script again, and it failed at the same spot. So i restarted the daemon and then was able to manually finish running the part after it fails. I got to the part where I needed to reboot the phone(I think, that's what adb reboot does, right?) and then after a minute or so my a box came up on my phone saying it wasn't responding or something and I clicked force quit. Now the terminal is still waiting at when I typed reboot earlier, and I'm not sure what my phone is doing. Is this normal?
[Samsung Infuse 4G] LinuxBozo:
Ah, give this a go:

$adb shell busybox mount -o rw,remount /dev/block/stl9 /system

[EDIT]

err, wait, just looked at the script again, and busybox hasn't been pushed at that point..

running rage, and the killing of adb in the script effectively gives you a "rooted" adb process. That needs to happen before you'll be able to remount system. I would try moving your installed adb out of your path and have the script use the included one.
[Samsung Infuse 4G] Frooty:
Thanks for your help! I'm not exactly sure what I just did. I think I ran the script again and restarted the adb server then manually finished running the part after it kept failing.

But anyways, I got it rooted so everything is all good! Thanks again greatly for your help!
[Samsung Infuse 4G] LinuxBozo:
Glad it worked out for you.
[Samsung Infuse 4G] malikin:
\windows\adb.exe reboot
[Samsung Infuse 4G] sholat:
I notice after i zip the file and ran either root or unlock it seems it doesnt find the device. Eventhough, the usb setting is done and i can test it by direct connect using adb shell.

Any ideas?

Thanks
[Samsung Infuse 4G] rodny23:
For those with this problem, I find a solution. The problem is that the device driver is not properly installed. The solution is:

1-Go to device manager on your computer

2-Look for your android phone list under device manager

3-Select it and open the pull down menu

4-Right click over Android ADB Interface and uninstall

5-After your computer finish the unistalling, unplug your phone

6-Wait a few seconds and plug back your phone ( make sure that you have USB debugging selected under settings-application-development)

7-Wait until your computer finish the driver installation

8-Run again root.bat

Hope this help all of you with this problem....

Rodny23
[Samsung Infuse 4G] Heuser1:
Last week I ran the root and unlock. The unlock worked and i thought the Root did as well as I had the superuser icon on my device. Yesterday I tried running root checker because a tethering app i was trying to use was saying that i was not rooted. The root checker confirmed this for me. Not quite sure where i went wrong in the process... Any ideas? seemed like all had gone just fine...