Jump to content


Photo

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.

  • 0

#82
joestone

joestone

    Enthusiast

  • Members
  • PipPipPip
  • 228 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


  • 0

#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

  • 0
========================
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

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 ?

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

#85
joestone

joestone

    Enthusiast

  • Members
  • PipPipPip
  • 228 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.

  • 0

#86
DUM4S5

DUM4S5

    Newbie

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

  • 0

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

  • 0

#88
joestone

joestone

    Enthusiast

  • Members
  • PipPipPip
  • 228 posts

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 .

  • 0

#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.

  • 0

#90
DUM4S5

DUM4S5

    Newbie

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

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

  • 0

#91
bloodlust8

bloodlust8

    Newbie

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

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.

  • 0

#92
joestone

joestone

    Enthusiast

  • Members
  • PipPipPip
  • 228 posts

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.

  • 0

#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)
#

  • 0

#94
joestone

joestone

    Enthusiast

  • Members
  • PipPipPip
  • 228 posts

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 .

  • 0

#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.

  • 0

#96
t0m4

t0m4

    Newbie

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

  • 0

#97
joestone

joestone

    Enthusiast

  • Members
  • PipPipPip
  • 228 posts

device not found, wtf? :lol:

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

  • 0

#98
t0m4

t0m4

    Newbie

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

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?

  • 0

#99
joestone

joestone

    Enthusiast

  • Members
  • PipPipPip
  • 228 posts

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 .

  • 0

#100
t0m4

t0m4

    Newbie

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

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?

  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users