Jump to content

How to root gt540 2.1


Guest smileeomar

Recommended Posts

Guest smileeomar

please i want to know how i can root my gt540 v20b

i read this but i dont understand any thing

adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage

adb push su /data/local/tmp/

adb push busybox /data/local/tmp/

adb shell

$chmod 4755 /data/local/tmp/rageagainstthecage

$chmod 4755 /data/local/tmp/busybox

$ cd /data/local/tmp

$ ./rageagainstthecage

adb shell

# mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 / (maybe this not neccesseary)

# cd /data/local/tmp

# ./busybox cp su /system/bin

# ./busybox cp busybox /system/bin

# cd /system/bin

#chmod 4755 su

#chmod 4755 busybox

#su

#id

the id should be 0 and gid should be 0

#busybox --install /system/bin

#cd /system/xbin

#ln -s /system/bin/su su

#cd /system/bin

#cat sh > su

#reboot

after the phone reboot

adb shell

$su

#

Now you should be able to install any app that require root.

I left out to push the Superuser.apk to /system/app beacuse the app2sd script or the vnc server install does not opened it but they works

Link to comment
Share on other sites

Guest doubletakeit

Big thanks to joestone for figuring out how to root 2.1. B)

Sorry if my English is not good. :lol:

First, you need to install USB drivers to connect via ADB.

http://www.mediafire.com/download.php?yda4dtfc64n3gcb (run all the .exe files)

Active USB Debugging Mode on your phone.

Settings \ Applications \ Development \ USB Debugging

Use USB cable to connect your phone to your computer.

Download and extract this.

http://www.mediafire.com/?kttu0932adgmtgd

Copy C:\Windows\System32\cmd.exe to the folder that you extract the .zip file. (the path to cmd.exe may be different depend on your Windows Version)

Run cmd.exe

Test if you installed USB drivers successfully.

Type adb shell

91324458.png

If it says "error device not found", try to restart your computer, reinstall the USB drivers.

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

Method 1

Type:

adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage

adb shell chmod 4755 /data/local/tmp/rageagainstthecage

adb shell /data/local/tmp/rageagainstthecage

Wait untill ADB connection is reset.

25673593.png

Then type:

adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

adb push su /system/xbin/su

adb shell chmod 4755 /system/xbin/su

adb push su /system/bin/su

adb shell chmod 4755 /system/bin/su

adb shell rm /data/local/tmp/rageagainstthecage

47057790.png

Go to market and install Superuser, or you can just download it here and install. I recommend you to download the lastest version from market.

Now you can reboot your phone. Type

adb shell reboot

Method 2

I also make root.bat in case you don't want to type those commands.

Run root.bat

Go to market and install Superuser, or you can just download it here and install. I recommend you to download the lastest version from market.

Reboot your phone.

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

Test if Superuser worked or not:

adb shell

$ su

Now Superuser Request will appear on your phone, chose Allow.

#id

uid=0(root) gid=0(root)

su1.png

87333967.png

To make Titanium work, press Promblem? button and let it download busybox (about 1MB)

titan.png

Now you can uninstall stock apps

titan2.png

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

If you want to unroot your phone, just reflash it with 2.1 ROM.

Installed apps, contacts, SMS, settings... will NOT be lost.

It just removes su from /system/bin and /system/xbin. All stock apps will be back too.

If you are failed to reflash in Normal Mode, try to do it in Download Mode.

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

In case you want to unroot without reflashing, type:

su

mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

rm /system/bin/su

rm /system/xbin/su

reboot

90167964.png

This method will not bring uninstalled stock apps back.

Edited by doubletakeit
Link to comment
Share on other sites

Guest danger_mouse

I found I had to restart the adb server after running rageagainstthecage as it suggested.

adb kill-server

then

adb shell mount... etc etc

do you need to mount the file system back to read only once done?

ie

adb shell mount -o remount,ro -t yaffs2 /dev/block/mtdblock4 /system

Link to comment
Share on other sites

Guest doubletakeit

It just auto reset ADB connection for me, I don't have to restart adb server.

I also don't mount file system back ro mode. Is it OK if leave file system in rw mode?

Link to comment
Share on other sites

Guest doubletakeit

I think file system is mounted back to ro after rebooting. It doesn't allow me to edit file system.

adb shell

$ rm /system/bin/su

rm /system/bin/su

rm failed for /system/bin/su, Read-only file system

$

Link to comment
Share on other sites

Guest borovaka

doubletakeit Be careful with this commands dude :lol: If you want to see how your phone mount partitions use busybox, just type busybox mount and this will show you the information who you need.

Btw it's true really partitions are mount r/o when you reboot the phone.

Link to comment
Share on other sites

Guest RottenFoxBreath
Now you can uninstall stock apps

Seeing as they changed the camera performance, I upped the original camera app from 1.6 here!.

Wondering if replacing the new one with this one will re-enable .mp4 recording?

I'm at work, so won't be rooting till later, if someone want's to try

Edited by RottenFoxBreath
Link to comment
Share on other sites

Guest doubletakeit

If you want to unroot your phone, just reflash it with 2.1 ROM.

Installed apps, contacts, SMS, settings... will NOT be lost.

It just remove su from /system/bin and /system/xbin. All stock apps will be back too.

If you are failed to reflash in Normal Mode, try to do it in Download Mode.

Link to comment
Share on other sites

Guest doubletakeit
Seeing as they changed the camera performance, I upped the original camera app from 1.6 here!.

Wondering if replacing the new one with this one will re-enable .mp4 recording?

I'm at work, so won't be rooting till later, if someone want's to try

It doesn't work for me. It was forceclosed. :lol:

Link to comment
Share on other sites

Guest rice&fish

:lol: I rooted my phone successfully using doubletakeit method, however once in a while it would pop up an error saying

"There was an error processing your request. Try again later."

Anyone else having the same problem?

Link to comment
Share on other sites

Guest doubletakeit
:lol: I rooted my phone successfully using doubletakeit method, however once in a while it would pop up an error saying

"There was an error processing your request. Try again later."

Anyone else having the same problem?

Is that error on your computer or on your phone?

Link to comment
Share on other sites

Guest joestone
Big thanks to joestone for figuring out how to root 2.1. B)

Sorry if my English is not good. :lol:

First, you need to install USB drivers to connect via ADB.

http://www.mediafire.com/download.php?yda4dtfc64n3gcb (run all the .exe files)

Active USB Debugging Mode on your phone.

Settings \ Applications \ Development \ USB Debugging

Use USB cable to connect your phone to your computer.

Download and extract this.

http://www.mediafire.com/?32okt277fofgckd

Copy C:\Windows\System32\cmd.exe to the folder that you extract the .zip file. (the path to cmd.exe may be different depend on your Windows Version)

Run cmd.exe

Test if you install USB drivers successfully.

Type adb shell

91324458.png

If it says "error device not found", try to restart your computer, reinstall the USB drivers.

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

Method 1

Type

adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage

adb shell chmod 4755 /data/local/tmp/rageagainstthecage

adb shell /data/local/tmp/rageagainstthecage

Wait untill ADB connection is reset.

25673593.png

Then type

adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

adb push su /system/xbin/su

adb shell chmod 4755 /system/xbin/su

adb push su /system/bin/su

adb shell chmod 4755 /system/bin/su

47057790.png

Go to market and install Superuser, or you can just download it here and install. I recommend you to download the lastest version from market.

Now you can reboot your phone. Type

adb shell reboot

Method 2

I also make root1.bat and root2.bat in case you don't want to type those commands.

Run root1.bat and wait untill ADB connection is reset.

Run root2.bat.

Go to market and install Superuser, or you can just download it here and install. I recommend you to download the lastest version from market.

Reboot your phone.

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

Test if Superuser works or not:

adb shell

$ su

Now Superuser Request will appear on your phone, chose Allow.

#id

uid=0(root) gid=0(root)

su1.png

87333967.png

To make Titanium work, press Promblem? button and let it download busybox (about 1MB)

titan.png

Now you can uninstall stock apps

titan2.png

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

If you want to unroot your phone, just reflash it with 2.1 ROM.

Installed apps, contacts, SMS, settings... will NOT be lost.

It just remove su from /system/bin and /system/xbin. All stock apps will be back too.

If you are failed to reflash in Normal Mode, try to do it in Download Mode.

You can make 1 script from 2. Just push adb wait-for-device after rageagainstthecage and you can follow with the content of the second script . This case you need to push the Superuser.apk and chmod it from the script according to original process.

You can make an unroot script (bat) with the following :

create an sh script with the following:

su

mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

rm /system/su

rm /system/xbin/su

rm /system/app/Superuser.apk

then copy it to the /data/local/tmp with adb push

run this sh script with adb shell

then remove the sh with adb shell rm /data/local/tmp/unroot.sh

after then reboot

adb shell reboot

Flashing is always a dangerous process . Failure in flashing can brick the phone . I prefer the unroot method.

Link to comment
Share on other sites

Guest doubletakeit
You can make 1 script from 2. Just push adb wait-for-device after rageagainstthecage and you can follow with the content of the second script . This case you need to push the Superuser.apk and chmod it from the script according to original process.

You can make an unroot script (bat) with the following :

create an sh script with the following:

su

mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

rm /system/su

rm /system/xbin/su

rm /system/app/Superuser.apk

then copy it to the /data/local/tmp with adb push

run this sh script with adb shell

then remove the sh with adb shell rm /data/local/tmp/unroot.sh

after then reboot

adb shell reboot

Flashing is always a dangerous process . Failure in flashing can brick the phone . I prefer the unroot method.

Thanks for the tip.

What is the different between pushing superuser.apk to /system/app and installing it from market?

Edited by doubletakeit
Link to comment
Share on other sites

Guest joestone
Thanks for the tip.

What is the different between pushing superuser.apk to /system/app and installing it from market?

I think when you install from market it will not installed to the system/app folder and after a factory reset there is no superuser app. (I didn't try , my theory is working after factory reset)

In my idea the rooting is done in 1 click (type). For example the user extract the zip to c:\

cd to the folder and type root and pressing enter.Or simply put the phone to usb debug mode double click to root.bat and the phone is rooted and the same if unroot . The script is doing everything including the superuser app. This works if there is no net on the phone.

This is the idea behind the unroot , the user type unroot and the phone unrooting itself and after restart there is no superuser app , no su .The phone is on the factory rom again without modifications.

According to the 1 click method manual is simple because there is a DOS screen where the user starts the script , there is a screen , where the phone opens the superuser app and that's all . Your manual is great , I thought my manual in the other topic (screenshot from dos window) is enuogh for everybody, but ...

Will you do the script ?

Edited by joestone
Link to comment
Share on other sites

Guest doubletakeit
I think when you install from market it will not installed to the system/app folder and after a factory reset there is no superuser app. (I didn't try , my theory is working after factory reset)

In my idea the rooting is done in 1 click (type). For example the user extract the zip to c:\

cd to the folder and type root and pressing enter.Or simply put the phone to usb debug mode double click to root.bat and the phone is rooted and the same if unroot . The script is doing everything including the superuser app. This works if there is no net on the phone.

This is the idea behind the unroot , the user type unroot and the phone unrooting itself and after restart there is no superuser app , no su .The phone is on the factory rom again without modifications.

According to the 1 click method manual is simple because there is a DOS screen where the user starts the script , there is a screen , where the phone opens the superuser app and that's all . Your manual is great , I thought my manual in the other topic (screenshot from dos window) is enuogh for everybody, but ...

Will you do the script ?

I can't make unroot.sh run

90073211.png

unroot.bat

adb push unroot.sh /data/local/tmp/unroot.sh

adb shell chmod 4755 /data/local/tmp/unroot.sh

adb shell /data/local/tmp/unroot.sh

adb shell rm /data/local/tmp/unroot.sh
unroot.sh
su

mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

rm /system/bin/su

rm /system/xbin/su

rm /system/app/Superuser.apk

Edited by doubletakeit
Link to comment
Share on other sites

Guest doubletakeit

How about using rageagainstthecage to remove the su and superuser.apk?

unroot.bat

adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage

adb shell chmod 4755 /data/local/tmp/rageagainstthecage

adb shell /data/local/tmp/rageagainstthecage

adb wait-for-device

adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

adb shell rm /system/bin/su

adb shell rm /system/xbin/su

adb shell rm /system/app/Superuser.apk

adb shell rm /data/local/tmp/rageagainstthecage

adb shell reboot
and here's the root.bat
adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage

adb shell chmod 4755 /data/local/tmp/rageagainstthecage

adb shell /data/local/tmp/rageagainstthecage

adb wait-for-device

adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

adb push Superuser.apk /system/app

adb shell chmod 755 /system/app/Superuser.apk

adb push su /system/xbin/su

adb shell chmod 4755 /system/xbin/su

adb push su /system/bin/su

adb shell chmod 4755 /system/bin/su

adb shell rm /data/local/tmp/rageagainstthecage

adb shell reboot

Edited by doubletakeit
Link to comment
Share on other sites

Guest joestone
How about using rageagainstthecage to remove the su and superuser.apk?

unroot.bat

adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage

adb shell chmod 4755 /data/local/tmp/rageagainstthecage

adb shell /data/local/tmp/rageagainstthecage

adb wait-for-device

adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

adb shell rm /system/bin/su

adb shell rm /system/xbin/su

adb shell rm /system/app/Superuser.apk

adb shell rm /data/local/tmp/rageagainstthecage

adb shell reboot
and here's the root.bat
adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage

adb shell chmod 4755 /data/local/tmp/rageagainstthecage

adb shell /data/local/tmp/rageagainstthecage

adb wait-for-device

adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system

adb push Superuser.apk /system/app

adb shell chmod 755 /system/app/Superuser.apk

adb push su /system/xbin/su

adb shell chmod 4755 /system/xbin/su

adb push su /system/bin/su

adb shell chmod 4755 /system/bin/su

adb shell rm /data/local/tmp/rageagainstthecage

adb shell reboot

Greaat JOB !

Thanks.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.