Jump to content


Photo

How to root gt540 2.1

- - - - -

  • Please log in to reply
30 replies to this topic

#1
smileeomar

smileeomar

    Newbie

  • Members
  • Pip
  • 10 posts
  • Devices:LG GT540
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


  • 0

#2
ijcy

ijcy

    Regular

  • Validating
  • PipPip
  • 110 posts
  • Devices:LG gt540

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

i read this but i dont understand any thing


Haha me and u both buddy.

  • 0

#3
dazsh

dazsh

    Newbie

  • Members
  • Pip
  • 35 posts
  • Location:uk
  • Devices:xda orbit(RIP) now LG GT540

Haha me and u both buddy.


id wait for a simpler way if u dont understand all the terminal parts etc. Im gonna wait itl come easy eventually

  • 0

#4
doubletakeit

doubletakeit

    Regular

  • Members
  • PipPip
  • 66 posts
  • Gender:Male
  • Devices:LG GT540
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...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...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
Posted Image
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.
Posted Image

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

Posted Image

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)

Posted Image
Posted Image

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

Now you can uninstall stock apps
Posted Image

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

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

Posted Image

This method will not bring uninstalled stock apps back.

Edited by doubletakeit, 02 October 2010 - 11:49 AM.

  • 0

#5
danger_mouse

danger_mouse

    Newbie

  • Members
  • Pip
  • 2 posts
  • Devices:LG GT540
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

  • 0

#6
doubletakeit

doubletakeit

    Regular

  • Members
  • PipPip
  • 66 posts
  • Gender:Male
  • Devices:LG GT540
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?

  • 0

#7
merrymenvn

merrymenvn

    Newbie

  • Members
  • Pip
  • 35 posts
  • Devices:GT540
I think it OK. I'd made file system writable when using 1.6, and it's fine :lol:.

  • 0

#8
doubletakeit

doubletakeit

    Regular

  • Members
  • PipPip
  • 66 posts
  • Gender:Male
  • Devices:LG GT540
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
$

  • 0

#9
borovaka

borovaka

    Newbie

  • Members
  • Pip
  • 33 posts
  • Location:Bulgaria
  • Devices:LG GT540 Optimus
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.

  • 0

#10
smileeomar

smileeomar

    Newbie

  • Members
  • Pip
  • 10 posts
  • Devices:LG GT540
thank you doubletakeit its works B) you are great :lol:

  • 0

#11
RottenFoxBreath

RottenFoxBreath

    Diehard

  • Members
  • PipPipPipPip
  • 323 posts

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, 02 October 2010 - 06:49 AM.

  • 0
Posted Image

#12
doubletakeit

doubletakeit

    Regular

  • Members
  • PipPip
  • 66 posts
  • Gender:Male
  • Devices:LG GT540
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.

  • 0

#13
doubletakeit

doubletakeit

    Regular

  • Members
  • PipPip
  • 66 posts
  • Gender:Male
  • Devices:LG GT540

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:

  • 0

#14
stbozhanov

stbozhanov

    Newbie

  • Members
  • Pip
  • 21 posts
  • Location:Bulgaria
  • Devices:LG Optimus GT540
It works for me, too :lol:) /Method 2/

Edited by stbozhanov, 02 October 2010 - 08:03 AM.

  • 0

#15
rice&fish

rice&fish

    Newbie

  • Members
  • Pip
  • 5 posts
: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?

  • 0

#16
doubletakeit

doubletakeit

    Regular

  • Members
  • PipPip
  • 66 posts
  • Gender:Male
  • Devices:LG GT540

: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?

  • 0

#17
joestone

joestone

    Enthusiast

  • Members
  • PipPipPip
  • 228 posts

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...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...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
Posted Image
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.
Posted Image

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

Posted Image

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)

Posted Image
Posted Image

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

Now you can uninstall stock apps
Posted Image

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

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.

  • 0

#18
rice&fish

rice&fish

    Newbie

  • Members
  • Pip
  • 5 posts

Is that error on your computer or on your phone?


on the phone.

  • 0

#19
doubletakeit

doubletakeit

    Regular

  • Members
  • PipPip
  • 66 posts
  • Gender:Male
  • Devices:LG GT540

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, 02 October 2010 - 11:32 AM.

  • 0

#20
joestone

joestone

    Enthusiast

  • Members
  • PipPipPip
  • 228 posts

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, 02 October 2010 - 12:00 PM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users