Jump to content


How to root your LG GT540

- - - - -

  • Please log in to reply
151 replies to this topic

#81
wwenigma

wwenigma

    Newbie

  • Members
  • Pip
  • 15 posts
  • Devices:LG Optimus
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, 30 September 2010 - 12:21 PM.

Please join us!   We Want Android 2.3.4 for GT540

#82
joestone

joestone

    Regular

  • Members
  • PipPip
  • 130 posts
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 .

Attached Files



#83
RAT-BoyZ

RAT-BoyZ

    Regular

  • Members
  • PipPip
  • 65 posts
  • Gender:Male
  • Location:Indonesia
  • Devices:LG Optimus GT540
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

========================
Optimus GT540
Firmware 2.1
ClockworkMod Recovery v2.5.0.5
Kernel 2.6.29 v0.2.2

#84
RAT-BoyZ

RAT-BoyZ

    Regular

  • Members
  • PipPip
  • 65 posts
  • Gender:Male
  • Location:Indonesia
  • Devices:LG Optimus GT540

View Postjoestone, on Oct 1 2010, 07:56, said:

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 ?

========================
Optimus GT540
Firmware 2.1
ClockworkMod Recovery v2.5.0.5
Kernel 2.6.29 v0.2.2

#85
joestone

joestone

    Regular

  • Members
  • PipPip
  • 130 posts
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, 01 October 2010 - 02:25 PM.


#86
DUM4S5

DUM4S5

    Newbie

  • Members
  • Pip
  • 12 posts
  • Devices:LG GT540
^^ works =]


#87
bloodlust8

bloodlust8

    Newbie

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


#88
joestone

joestone

    Regular

  • Members
  • PipPip
  • 130 posts

View Postbloodlust8, on Oct 1 2010, 14:11, said:

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 .


#89
bloodlust8

bloodlust8

    Newbie

  • Members
  • Pip
  • 20 posts
  • Devices:LG GT540
thanks.. will try this later..
---------------------------------


Access is denied.

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

Edited by bloodlust8, 01 October 2010 - 01:41 PM.


#90
DUM4S5

DUM4S5

    Newbie

  • Members
  • Pip
  • 12 posts
  • Devices:LG GT540

View Postbloodlust8, on Oct 1 2010, 14:20, said:

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


#91
bloodlust8

bloodlust8

    Newbie

  • Members
  • Pip
  • 20 posts
  • Devices:LG GT540

View PostDUM4S5, on Oct 1 2010, 13:49, said:

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, 01 October 2010 - 02:09 PM.


#92
joestone

joestone

    Regular

  • Members
  • PipPip
  • 130 posts

View Postbloodlust8, on Oct 1 2010, 14:54, said:

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.


#93
bloodlust8

bloodlust8

    Newbie

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


#94
joestone

joestone

    Regular

  • Members
  • PipPip
  • 130 posts

View Postbloodlust8, on Oct 1 2010, 15:16, said:

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 .


#95
bloodlust8

bloodlust8

    Newbie

  • Members
  • Pip
  • 20 posts
  • Devices:LG GT540
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, 01 October 2010 - 02:46 PM.


#96
t0m4

t0m4

    Newbie

  • Members
  • Pip
  • 14 posts
  • Devices:LG optimus gt 540
device not found, wtf? :lol:


#97
joestone

joestone

    Regular

  • Members
  • PipPip
  • 130 posts

View Postt0m4, on Oct 1 2010, 19:51, said:

device not found, wtf? :lol:
You got this message after reboot or when ? Try to restart the phone and start from the begining.


#98
t0m4

t0m4

    Newbie

  • Members
  • Pip
  • 14 posts
  • Devices:LG optimus gt 540

View Postjoestone, on Oct 1 2010, 19:57, said:

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?


#99
joestone

joestone

    Regular

  • Members
  • PipPip
  • 130 posts

View Postt0m4, on Oct 1 2010, 20:04, said:

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 .


#100
t0m4

t0m4

    Newbie

  • Members
  • Pip
  • 14 posts
  • Devices:LG optimus gt 540

View Postjoestone, on Oct 1 2010, 20:10, said:

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?





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users