Saturday, September 18, 2010

Rooting Process Step 3: Setting up and rooting Samsung Fascinate

Rooting Process Step 3: Setting up and rooting Samsung Fascinate(Credits: mrdroid)

In order to use ADB commands and properly setup the drivers and utilize all the built in links we need to change/validate 3 settings on the Fascinate.

Go to the Home screen and hit the menu button.
Go to Settings
Go to Applications
Make sure 'Unkown sources' is checked.
Go to Development
Make sure 'USB debugging' is checked.
Make sure 'Allow mock locations' is checked.

You can exit back to the home screen once you've verified those 3 settings are checked.

-Driver issue
If you ran into an issue installing the drivers in the previous step, after you've checked the above 3 settings open a command window.

Go to Start > Run (XP) or Start > Search (W7) and type cmd.exe and hit enter.

At the prompt type:
Code:
adb devices
If you get
Code:
List of devices attached I500....    device
Then you're good to go.
If nothing is listed under "List of devices attached" you should be able to just unplug the Fascinate, wait about 10 seconds and then plug it back in. You should now get a message saying several drivers/features were installed successfully.

Re-run the "adb devices" and your device should now show up.

----------------------------

Now the fun part....
Ok. First lets gather our files and get organized.

On your Fascinate go to the Android Market and search for Terminal
Install the App named Android Terminal Emulator by Jack Palevich

Back on your PC
Download root.zip
Create a new folder on your C:\ drive named rootfiles
Extract the contents of the root.zip file into C:\rootfiles
Make sure there is no folder inside C:\rootfiles
Inside C:\rootfiles you should see:
Code:
busybox rageagainstthecage-arm5.bin su Superuser.apk
Rooting:

Section 1.
Reboot your phone and give it a couple minutes to load everything up.
Now open a command prompt.
Start > Run (XP) Start > Search (W7) and type cmd.exe
Validate your phone is still connected by typing
Code:
adb devices
You should see your device
Code:
C:\Users\Matt>adb devices List of devices attached I500x0xx000x    device
Change your current directory to C:\rootfiles
Code:
cd C:\rootfiles
If you are not currently on your C:\ drive then type
Code:
C:\ cd C:\rootfiles
Type the following commands exactly. If you want to copy and paste then copy each line one at a time and paste each in the command window by right-clicking and clicking paste. Ctrl-V will not work.

Section 2.
Code:
adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage-arm5.bin
You should get a response that looks like the following
Code:
146 KB/s (5392 bytes in 0.036s)
Next type
Code:
adb shell
You should now be at a prompt with a $
Now type
Code:
cd /data/local/tmp chmod 0755 rageagainstthecage-arm5.bin
Section 3.
This step is important. After you type the next command there will be a pause and you will have to wait until you are kicked out of adb shell. It is important you do not touch your phone or type anything in the command window. If you do don't worry, nothing bad will happen you will most likely have to pull your battery and try to run the command again. If your phone doesn't lock up you can probably unplug it and plug it back in and start back at "adb shell"
Code:
./rageagainstthecage-arm5.bin
After you execute that command you should see something like this:
Code:
$ ./rageagainstthecage-arm5.bin ./rageagainstthecage-arm5.bin[*] CVE-2010-EASY Android local root exploit (C) 2010 by 743C[*] checking NPROC limit ... [+] RLIMIT_NPROC={3712, 3712}[*] Searching for adb ... [+] Found adb as PID 2198[*] 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.
After several seconds the $ prompt will come back

After another 20 seconds or so you will be kicked back to the C:\rootfiles prompt.

Type
Code:
adb shell
You should now be at a # prompt
This mean you have obtained temporary root on the device.

Section 4.
Type
Code:
exit
You should now be at the C:\rootfiles prompt
Type the following commands:
Code:
adb push su /sdcard/su adb push busybox /sdcard/busybox adb shell mount -t rfs -o remount,rw /dev/block/stl9 /system cd /system/xbin cat /sdcard/su > ./su cat /sdcard/busybox > ./busybox chmod 4755 su chmod 4755 busybox exit
You should be back at the C:\rootfiles prompt

Section 5.
Type
Code:
adb install Superuser.apk
Reboot the device and you should now have permanent root.

I should add, on the last step to install Superuser.apk it seems to hang after the install
Code:
C:\rootfiles>adb install Superuser.apk 1305 KB/s (196521 bytes in 0.147s)         pkg: /data/local/tmp/Superuser.apk Success
After you see Success you do a Ctrl-C
and then reboot the device.

No comments:

Post a Comment