Jump to content

How to root your LG GT540


Guest PaulOBrien

Recommended Posts

Hi,

LG has patched the root method in the OP during some of the firmware updates. Right now, if you can't find "Enable Root Permission" or am having trouble installing the superuser app, you should give Universal Androot a try.

Universal Androot don't work on 2.1 ROM :lol: Searching any working methods for this ROM...

Link to comment
Share on other sites

Universal Androot don't work on 2.1 ROM :lol: Searching any working methods for this ROM...

That post was made before 2.1 came out. But yeah, someone find a method for 2.1!

Link to comment
Share on other sites

Guest DonPanda
Hi,

LG has patched the root method in the OP during some of the firmware updates. Right now, if you can't find "Enable Root Permission" or am having trouble installing the superuser app, you should give Universal Androot a try. It roots your phone as well as install the superuser app.

A Superuser app grants apps permission to access the phone's root. Apps that have been granted permission are said to be in the whitelist, I think.

You don't really need to have to use AndroidSDK, if you just want to root your GT540 phone.

If you can't connect your phone to the computer, you most likely don't have the drivers installed. Get LG PC Suite IV from somewhere since the Official Site doesn't really give you a download link, you'll have to google it.

Hey,

thanks for the answer.

i got all ready the LG software, and i can connect to my pc too. thats not the problem :lol:

in the first post at this thread, paul says we would see the root status via ADB. i read at wikipedia whats "ADB" could be ( B) ), and wiki says i need the SDK base for ADB. well, however.

i will try the software u wrote and give u feedback.

second: the root status should be enabled. after i type the password i have permission to change the user and root status. after i check "Enable Root Permission", i'll get the "ok" message for password accepted, but when i reboot my phone...well... its easily gone.

thanks and best regards

Link to comment
Share on other sites

Guest wwenigma

i stucked on "waiting 4 device" with ADB... win7 x64... :/

mod: solved, start phone in fastboot mode, start image uploading with fastboot.exe THEN connect phone to pc. :lol:

Edited by wwenigma
Link to comment
Share on other sites

Guest joestone

I have successfully managed to root the GT540 , and seems superuser does not need to install apps that require root access (maybe this is security bug of this method , but does not need to modify the original rom like russian guys did). I only tried vnc server which works fine .

I will do a guide how to root the phone and create a zip which contains the neccesseary files (adb,rageagainstthecage, busybox,su).

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 .

rootgt540v20b.zip

Link to comment
Share on other sites

Guest RAT-BoyZ

any body knows how to fastboot on LG Optimus GT540 ?

i already test on the booting phone Press both Volume up + HOME + SEARCH buttons for 5 secs.

but fastboot logo cant load.

may be this trick only for V10 ?

thanks

Link to comment
Share on other sites

Guest RAT-BoyZ
I have successfully managed to root the GT540 , and seems superuser does not need to install apps that require root access (maybe this is security bug of this method , but does not need to modify the original rom like russian guys did). I only tried vnc server which works fine .

I will do a guide how to root the phone and create a zip which contains the neccesseary files (adb,rageagainstthecage, busybox,su).

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 .

# ./busybox cp su /system/bin

./busybox cp su /system/bin

cp: can't create '/system/bin/su': Permission denied

# ./busybox cp su /system/bin

./busybox cp su /system/bin

cp: can't create '/system/bin/su': Permission denied

#

why ?

Link to comment
Share on other sites

Guest joestone

OK !

I have made a modified version according to the suggestions from forum members . The busybox left out , and now it is using the superuser app .You need the uploaded zip file from the original post .

C:\rootgt540v20b>adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagains

tthecage

5 KB/s (5392 bytes in 1.000s)

C:\rootgt540v20b>adb shell

$ chmod 4755 /data/local/tmp/rageagainstthecage

chmod 4755 /data/local/tmp/rageagainstthecage

$ ./data/local/tmp/rageagainstthecage

./data/local/tmp/rageagainstthecage

[*] CVE-2010-EASY Android local root exploit © 2010 by 743C

[*] checking NPROC limit ...

[+] RLIMIT_NPROC={1712, 1712}

[*] Searching for adb ...

[+] Found adb as PID 1239

[*] Spawning children. Dont type anything and wait for reset!

[*]

[*] If you like what we are doing you can send us PayPal money to

[*] [email protected] 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.

$

C:\rootgt540v20b>adb shell

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

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

# exit

exit

C:\rootgt540v20b>adb push Superuser.apk /system/app

2456 KB/s (196521 bytes in 0.078s)

C:\rootgt540v20b>adb shell

# chmod 755 /system/app/Superuser.apk

chmod 755 /system/app/Superuser.apk

# exit

exit

C:\rootgt540v20b>adb push su /system/bin

1641 KB/s (26264 bytes in 0.015s)

C:\rootgt540v20b>adb shell

# chmod 4755 /system/bin/su

chmod 4755 /system/bin/su

# su

su

# id

id

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

# cd /system/xbin

cd /system/xbin

# ln -s /system/bin/su su

ln -s /system/bin/su su

# reboot

reboot

You should wait for this part until the phone fully up , because when you type su the superuser app should be come up on phone's screen and you need to allow it .

C:\rootgt540v20b>adb shell

$ su

su

# id

id

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

#

Thanks for the cooperation to everybody !

Edited by joestone
Link to comment
Share on other sites

Guest bloodlust8

Do I just have to put my phone on debug mode then connect it on my pc then type the commands posted above on command prompt? What do I need aside from rootgt540v20b.zip?

Link to comment
Share on other sites

Guest joestone
Do I just have to put my phone on debug mode then connect it on my pc then type the commands posted above on command prompt? What do I need aside from rootgt540v20b.zip?

Yes the debug mode must be on access the phone via adb .

The zip contains all you need , not needed to install the sdk.

It contains the adb , the superuser application and the su .

Link to comment
Share on other sites

Guest bloodlust8

thanks.. will try this later..

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

Access is denied.

Any way to correct this? Using Windows 7 Ultimate 64 bit.

Edited by bloodlust8
Link to comment
Share on other sites

Guest DUM4S5
thanks.. will try this later..

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

Access is denied.

Any way to correct this? Using Windows 7 Ultimate 64 bit.

is that at the end? I got access denied on the last bit but it turned out it had worked when i tried some root apps

Link to comment
Share on other sites

Guest bloodlust8
is that at the end? I got access denied on the last bit but it turned out it had worked when i tried some root apps

nevermind.. already on the last part.. permission denied..

Edited by bloodlust8
Link to comment
Share on other sites

Guest joestone
at the very beginning..

You should run the command prompt in administrator mode .Right click to it and selet run as administrator.

I do this process on win7 pro 32bit.

Link to comment
Share on other sites

Guest bloodlust8

Im already on this part:

C:\rootgt540v20b>adb shell

$ su

su (after this part it says Permission denied)

# id

id

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

#

Link to comment
Share on other sites

Guest joestone
Im already on this part:

C:\rootgt540v20b>adb shell

$ su

su (after this part it says Permission denied)

# id

id

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

#

You should wait for this part until the phone fully up , because when you type su the superuser app should be come up on phone's screen and you need to allow it .

Link to comment
Share on other sites

Guest bloodlust8

done.. thanks a lot.. will test Titanium Backup..

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

Titanium Backup works even the Chuck Norris Mode..

backing up messages works but restoring it does not, can somebody confirm this? I guess I have to mail the developer..

Edited by bloodlust8
Link to comment
Share on other sites

You got this message after reboot or when ? Try to restart the phone and start from the begining.

i got this on the first step.. do i have to put the phone to a 'special' mode,like recovery or debug... and how can i do that?

Link to comment
Share on other sites

Guest joestone
i got this on the first step.. do i have to put the phone to a 'special' mode,like recovery or debug... and how can i do that?

The phone should be work in normal mode.

The phone should be in usb debugging mode , storage mode must be off .

The debugging mode is in the settings, applications, development menu .

Link to comment
Share on other sites

The phone should be work in normal mode.

The phone should be in usb debugging mode , storage mode must be off .

The debugging mode is in the settings, applications, development menu .

./busybox cp su /system/bin : ./busybox not found, what can i do?

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.