Jump to content


Photo

1-click Recovery Flasher (LG GT540)

- - - - -

  • Please log in to reply
20 replies to this topic

#1
adlx

adlx

    Newbie

  • Members
  • Pip
  • 8 posts
Upon request from an LG GT540 user (Liam W), I'm adding support for the GT540 (switft) to my 1-click Recovery Flasher.

If anyone is willing to test and report sucess/failure, you can download the app for free on the Market:

1-click Recovery Flasher

For those wondering how it works, here is a review of the app working on a Motorola Cliq, thanks to CliqAnDroid:



For now, the app will offer to flash the following recoveries:

- CWM Recovery 4.0.1.4
- Amon_RA 2.2.1
- CWM Recovery 3.0.2.4
- Amon_RA 1.7.0.1

My app also support the following devices (as the time of writing this post):

- Motorola MB200: Cliq & Dext
- Motorola MB300: Backflip
- Motorola MB501: CliqXT & Quench
- HTC Glacier / MT4g
- LG GT540 Optimus (swift)

Btw, if you know other devices who could benefit from my app, PM me with:
- build.prop file from the phone,
- link to the most relevant recovery.img you know for the phone with name and version for each or better a link to a thread.
- if the recoveries aren't flashed using flash_image, please tell me the exact command that has to be used (from the phone, not from fastboot/adb).

Edited by adlx, 10 August 2011 - 02:48 PM.

  • 1

#2
Stephen J. Knill

Stephen J. Knill

    Regular

  • Members
  • PipPip
  • 105 posts
  • Gender:Male
  • Location:Adelaide, Australia
  • Devices:LG GT540f Android 2.3.5
+1 Rep, nice job ol'chap :P

  • 0

Programs are like Cathedrals, first we build them... then we pray!


#3
Carlrg

Carlrg

    Newbie

  • Members
  • Pip
  • 26 posts
  • Devices:ZTE Blade (San Fran)
Hi Alexandre. Thanks for your hard work but it does not work on my rooted GT540 with official LG V20b 2.1, update 1 Firmware with 2.6.29 Kernal. Tried all 3 available flash files (CWM 4.0.1.4 - CWM 3.0.1.4 and Amon-RA 2.2.1) numerous times and just says Failed every time. Have updated Superuser and still no luck. Thanks very much Carl.

Edited by Carlrg, 25 August 2011 - 02:05 PM.

  • 0

#4
adlx

adlx

    Newbie

  • Members
  • Pip
  • 8 posts
Ok, could you check if there is a file called flash_image in your phone's /system/bin or /system/xbin?

I suspect this file can be missing in official roms.

Btw, sorry for the trouble :/. I'll try to solve this.

Edited by adlx, 25 August 2011 - 03:00 PM.

  • 0

#5
adlx

adlx

    Newbie

  • Members
  • Pip
  • 8 posts

+1 Rep, nice job ol'chap :P


I assume it worked fine for you, Right? what Rom/ build are you using?

  • 0

#6
Carlrg

Carlrg

    Newbie

  • Members
  • Pip
  • 26 posts
  • Devices:ZTE Blade (San Fran)

Ok, could you check if there is a file called flash_image in your phone's /system/bin or /system/xbin?

I suspect this file can be missing in official roms.

Btw, sorry for the trouble :/. I'll try to solve this.


Hi thanks for your reply. You are correct Alexandre the file is not found in either. Carl.

Edited by Carlrg, 25 August 2011 - 03:16 PM.

  • 0

#7
liamwilli2

liamwilli2

    Newbie

  • Members
  • Pip
  • 36 posts
  • Devices:LG GT540 Optimus

Upon request from an LG GT540 user (Liam W), I'm adding support for the GT540 (switft) to my 1-click Recovery Flasher.

If anyone is willing to test and report sucess/failure, you can download the app for free on the Market:

1-click Recovery Flasher

For those wondering how it works, here is a review of the app working on a Motorola Cliq, thanks to CliqAnDroid:



For now, the app will offer to flash the following recoveries:

- CWM Recovery 4.0.1.4
- Amon_RA 2.2.1
- CWM Recovery 3.0.2.4
- Amon_RA 1.7.0.1

My app also support the following devices (as the time of writing this post):

- Motorola MB200: Cliq & Dext
- Motorola MB300: Backflip
- Motorola MB501: CliqXT & Quench
- HTC Glacier / MT4g
- LG GT540 Optimus (swift)

Btw, if you know other devices who could benefit from my app, PM me with:
- build.prop file from the phone,
- link to the most relevant recovery.img you know for the phone with name and version for each or better a link to a thread.
- if the recoveries aren't flashed using flash_image, please tell me the exact command that has to be used (from the phone, not from fastboot/adb).



Hi Alexandre. Thanks for your hard work but it does not work on my rooted GT540 with official LG V20b 2.1, update 1 Firmware with 2.6.29 Kernal. Tried all 3 available flash files (CWM 4.0.1.4 - CWM 3.0.1.4 and Amon-RA 2.2.1) numerous times and just says Failed every time. Have updated Superuser and still no luck. Thanks very much Carl.


Hi! I'm Liam W!

This won't work on official gt540 roms as they lack a recovery partition!

  • 0
IM ONLY ON XDA NOW! SORRY!


LG GT540 Optimus with CM 7 ASIS @ 825 Mhz


Posted Image

#8
Carlrg

Carlrg

    Newbie

  • Members
  • Pip
  • 26 posts
  • Devices:ZTE Blade (San Fran)

Hi! I'm Liam W!

This won't work on official gt540 roms as they lack a recovery partition!



Thanks for the info Liam. May save Alexandra from wasting his time. Best regards, Carl.

Edited by Carlrg, 25 August 2011 - 06:27 PM.

  • 0

#9
adlx

adlx

    Newbie

  • Members
  • Pip
  • 8 posts

Hi! I'm Liam W!

This won't work on official gt540 roms as they lack a recovery partition!


You mean it wouldn't work even if I provide the flash_image within my app? I mean, even if there is no stock recovery with stock roms, do you mean there is no partition for it?? The recovery partition is created after/during flashing a custom rom?? (Excuse my ignorance, I'm not familiar with LG phones myself).

Wouldn't hurt to try anyway (for example, put the flash_image file in /system/bin for example and run my app on a stock rom), would it?

Could you please run the following commands on this phone, preferably on a stock rom:

cat /proc/mtd
cat /proc/mounts

and paste here the output?

Thanks in advance,
Adlx

  • 0

#10
Carlrg

Carlrg

    Newbie

  • Members
  • Pip
  • 26 posts
  • Devices:ZTE Blade (San Fran)

You mean it wouldn't work even if I provide the flash_image within my app? I mean, even if there is no stock recovery with stock roms, do you mean there is no partition for it?? The recovery partition is created after/during flashing a custom rom?? (Excuse my ignorance, I'm not familiar with LG phones myself).

Wouldn't hurt to try anyway (for example, put the flash_image file in /system/bin for example and run my app on a stock rom), would it?

Could you please run the following commands on this phone, preferably on a stock rom:

cat /proc/mtd
cat /proc/mounts

and paste here the output?

Thanks in advance,
Adlx


cat /proc/mtd
dev: size erase size name
mtd0: 00500000 00020000 "boot"
mtd1: 04000000 00020000 "cash"
mtd2: 00500000 00020000 "recovery"
mtd3: 00060000 00020000 "splash"
mtd4: 0f500000 00020000 "system"
mtd5: 002c0000 00020000 "lgdrm"
mtd6: 08b80000 00020000 "userdata"
mtd7: 00080000 00020000 "usd"
mtd8: 005a0000 00020000 "pkg"
mtd9: 1cfc0000 00020000 ""

  • 0

#11
Carlrg

Carlrg

    Newbie

  • Members
  • Pip
  • 26 posts
  • Devices:ZTE Blade (San Fran)

You mean it wouldn't work even if I provide the flash_image within my app? I mean, even if there is no stock recovery with stock roms, do you mean there is no partition for it?? The recovery partition is created after/during flashing a custom rom?? (Excuse my ignorance, I'm not familiar with LG phones myself).

Wouldn't hurt to try anyway (for example, put the flash_image file in /system/bin for example and run my app on a stock rom), would it?

Could you please run the following commands on this phone, preferably on a stock rom:

cat /proc/mtd
cat /proc/mounts

and paste here the output?

Thanks in advance,
Adlx



cat /proc/mounts

rootfs / rootfs ro 0 0

tmpfs /dev tmpfs rw,mode=755 0 0

devpts /dev/pts devpts rw,mode=600 0 0

proc /proc proc rw 0 0

sysfs /sys sysfs rw 0 0

/dev/block/mtdblock6 /data yaffs2 rw 0 0

/dev/block/mtdblock1 /cache yaffs2 rw,nosuid,nodev 0 0

tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0

/dev/block/mtdblock4 /system yaffs2 ro 0 0

/dev/block/mtdblock5 /lgdrm yaffs2 rw,nosuid,nodev 0 0

/dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

This was typed off Terminal Emulator so i hope its right. Thanks Carl.

Edited by Carlrg, 25 August 2011 - 10:13 PM.

  • 0

#12
adlx

adlx

    Newbie

  • Members
  • Pip
  • 8 posts
Thanks Carlrg,
would you mind doing also:

ls -l /dev/mtd/mtd2

Would you mind trying now to flash any of the recoveries from my app?

Thanks

  • 0

#13
adlx

adlx

    Newbie

  • Members
  • Pip
  • 8 posts

mtd2: 00500000 00020000 "recovery"


There seems to be a partition for it :), that's good!

  • 0

#14
Carlrg

Carlrg

    Newbie

  • Members
  • Pip
  • 26 posts
  • Devices:ZTE Blade (San Fran)

Thanks Carlrg,
would you mind doing also:

ls -l /dev/mtd/mtd2

Would you mind trying now to flash any of the recoveries from my app?

Thanks



Sorry 4 the late reply had to go to bed.


ls -l /dev/mtd/mtd2

crw------- root root 90, 4 2011-08-26 10:52 mtd2

When i flash any of the 3 files it says (FLASHED OK) but when i ask it to (reboot into recovery) the phone just start up and reboots with the LG logo normally. Very best regards, Carl.

Edited by Carlrg, 26 August 2011 - 10:14 AM.

  • 0

#15
adlx

adlx

    Newbie

  • Members
  • Pip
  • 8 posts
That sounds good. I guess the recovery has been flashed correctly. It's probably an issue with the command I use in the reboot button that do not work on that phone...

Do you know any key combination to power the phone and boot into recovery?

Maybe try to run:

adb reboot recovery

Thanks for your help btw :)

  • 0

#16
Carlrg

Carlrg

    Newbie

  • Members
  • Pip
  • 26 posts
  • Devices:ZTE Blade (San Fran)

That sounds good. I guess the recovery has been flashed correctly. It's probably an issue with the command I use in the reboot button that do not work on that phone...

Do you know any key combination to power the phone and boot into recovery?

Maybe try to run:

adb reboot recovery

Thanks for your help btw :)



I will search around and find the key combinations to try to reboot manually. I have been using terminal emulator and am trying to get ADB working on my XP windows pc. Can i use Terminal to try to reboot into recovery. BTW thanks to you to try to get this app working it`s very much appreciated. Carl.

Tried to reboot recovery through terminal and says operation not permitted.!

Edited by Carlrg, 26 August 2011 - 10:42 AM.

  • 0

#17
liamwilli2

liamwilli2

    Newbie

  • Members
  • Pip
  • 36 posts
  • Devices:LG GT540 Optimus
In my experience, it has been impossible to flash recovery on stock roms for this phone.

To get into recovery you need to hold home and power.

Doing this on stock roms goes into safe mode, which blocks non system apps.

Stock roms may have a recovery partition, but you can't boot into it.

Sent from my GT540 using Tapatalk

  • 0
IM ONLY ON XDA NOW! SORRY!


LG GT540 Optimus with CM 7 ASIS @ 825 Mhz


Posted Image

#18
Carlrg

Carlrg

    Newbie

  • Members
  • Pip
  • 26 posts
  • Devices:ZTE Blade (San Fran)

In my experience, it has been impossible to flash recovery on stock roms for this phone.

To get into recovery you need to hold home and power.

Doing this on stock roms goes into safe mode, which blocks non system apps.

Stock roms may have a recovery partition, but you can't boot into it.

Sent from my GT540 using Tapatalk


Rebooting with power and home does not get me into recovery or even safe mode on this phone!. Very strange!
Thanks anyway Liam.

  • 0

#19
Carlrg

Carlrg

    Newbie

  • Members
  • Pip
  • 26 posts
  • Devices:ZTE Blade (San Fran)

Rebooting with power and home does not get me into recovery or even safe mode on this phone!. Very strange!
Thanks anyway Liam.

Just to let you know Alexandra that I installed an open fastboot Rom with kdz updater and this app of yours flashed cwm first time. I hoped it would have worked on my stock Rom as I wanted to save it in case of warranty problems but not to worry. Many thanks for your time and very best regards, Carl.

  • 1

#20
professionalnoob

professionalnoob

    Newbie

  • Members
  • Pip
  • 13 posts
  • Devices:lg gt540
your 1 cick recovery flasher but my phone in a boot loop and wont start up how do i fix this

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users