lunedì 26 agosto 2013

LG L9 Unbrick script

Here is a script I make to unbrick LG L9. This uses some custom firmware downloaded from random web sites so YMMV. This should automatically unbrick your LG L9.

This script is to be used ONLY when phone can't be booted in sw upgrade mode and everything else fails. Screen MUST be always black, otherwise other methods may give better results. When nothing else works, proceed at your own risk.

When screen is black with all possible key combos, connect your phone to a linux box using an USB data cable, without battery. Then run "lsusb". If you see a texas instrument device in the list, then proceed.

Before running the tool, you need to install the android-tools-fastboot package (read the comments in the script to know more).

Unzip the archive, cd to the obtained directory  and run "./lgL9FixBoot.sh".

You will first be asked to connect the phone without battery, then to insert the battery in a second step.

https://dl.dropboxusercontent.com/u/8112691/unbrick-LG-Optimus-L9.zip



30 commenti:

  1. Hi, could you please help me? I bricked my lg p760 and now i am trying your method. I installed ubuntu on virtualbox and am trying to run ./lgL9FixBoot.sh . When i run it i receive the following error: unable to execute ./usbboot: no such file or directory. When i connect my phone to the pc without a battery, it keeps connecting and disconnecting. Can you please help me? I would really appreciate it!

    RispondiElimina
    Risposte
    1. You have to make usbboot & lgL9FixBoot.sh executable from properties . it would work.

      Elimina
  2. Questo commento è stato eliminato dall'autore.

    RispondiElimina
  3. Hi Vincenzo. My case is a little bit different. I've done very stupid thing: having CWM recovery installed with stock V20e I accepted update to V20i by OTA...
    The result: CWM bootloop - I can do some things on CWM recovery but when I try to reboot to normal OS mode, it always boots to CWM recovery mode.
    I've tried 'adb reboot bootloader','adb reboot fastboot' and 'fastboot oem unlock' but still the same. I think the solution would be to go into the fastboot mode, then I could reinstall the CWM recovery and probably it could repair this. But I can't do this.
    There are some tutorials with LG tools for Windows - I've tried - it doesn't work for me in spite of drivers installed. I'm linux user - maybe not so experienced like you but I can do some not very complicated operations.
    Do you think your script can be useful in my case?
    Or, maybe you have another idea?

    RispondiElimina
  4. Sorry you can explain it more esque step not find the solution and I gave my partner to help me please thanks.

    RispondiElimina
  5. I am unsure what is the problem in Alexandru's comment: the file "usbboot" is in the zip archive, maybe it did not unpack correctly and it need execution permissions? For Rafael, unfortunately I am no real expert here; try the xda-developers forum or if you're desperate just try my script, it may even work. For aaron, I have no idea what you're asking for.

    RispondiElimina
  6. Questo commento è stato eliminato dall'autore.

    RispondiElimina
  7. Sorry, I've explained very poorly
    what I get when I connect my lg l9 is that it connects and disconnects just all the time and I put the device aparace lsusb thanks

    RispondiElimina
  8. I have the same problem also: unable to execute ./usbboot: no such file or directory. I checked that usbboot is executable, which it is. Any ideas?

    RispondiElimina
  9. the unable to execute ./usbboot: means that you did not cd to the right directory.

    RispondiElimina
  10. Ciao, Vincenzo.First, thank you for this resource and script.

    I have a hard bricked L9 and it does show as an OMAP device when plugged into an XP box, but never mounts. I have ADK drivers installed, the phone stays black regardless of what key combos I use. I have flashed other devices, butthis one is definitely bricked.

    So, I installed Ubuntu 12 on another box, but there were problems with the mouse not appearing, so I installed Ubuntu 8, but then I got a "dependency is not satisfiable libc6" error when I tried to install the android tools fast boot and I think it is because Ubuntu 8 is too old(?)

    Anyway, I did run lsusb on it while plugged in with no battery and it didn't see the OMAP or TI device - it saw nothing.

    I am going to try Ubuntu 13 to see if the issue of the mouse not showing is resolved and try again to run lsusb or is there another flavor of Linux that I should try?

    Thanks for any advice or help,

    Davide



    RispondiElimina
  11. Hi Gama Goat,

    the device should show as an OMAP something with "lsusb". The device disappears shortly after plugging in with no battery; that's what I know. Check with ubuntu 13, as I never tried it with previous releases.

    RispondiElimina
    Risposte
    1. I finally settled on Ubuntu 13 and that showed the TI device, but not consistently. Something bad is happening as well as the L9 being bricked from a bad sector modification (I was trying to add to internal storage by using a partition on my external SD card.)

      When I first tried to flash it on a Windows PC, the phone would constantly "cycle" as though it was being connected and disconnected every 3 or 4 seconds.

      I think the same is happening on my Linux box because if I run lsusb, at times it will show the device and then it will not show it. If I unplug the phone and then re-plug it in, it will show the TI device. If I run it a second time, the phone "disappears" from lsusb.

      If I run lsusb and I see the TI device, then run the script, the script can't proceed because the device will not stay mounted.

      I think I totally f*cked up my phone.

      But thank you for your reply. I appreciate it.

      Elimina
  12. Ah, one more thing; for some reason you need to plug the phone into an USB2 port; USB3 does not work for me.

    RispondiElimina
    Risposte
    1. Thanks for the tip. I am using an older box without USB3, but will remember this if I try to run this script again.

      Elimina
  13. Well, I would try to run the script immediately after connecting the phone, even without lsusb; I heard something alike: "the phone should stay 30 minutes continuously charging first"; try that too. I don't know more about this unfortunately (my phone is going to be repaired soon, but at the moment I don't even have it).

    RispondiElimina
  14. Hi Vincenzo,

    I've the same problem with my phone, it seems it's totally bricked and there's no way to turn it on, so I tried your script. I'm trying it directly on a Ubuntu 12.04 SO (no VM), fastboot and adb packages installed, and lsusb shows the TI device (conecting and disconecting). Following the instructions, the script works fine, until I get this message:

    fastboot devices:
    015D61700101C008 fastboot
    flashing bootloader
    sending 'u-boot' (1024 KB)...
    OKAY [ 0.527s]
    writing 'u-boot'...
    FAILED (remote: partition does not exist)
    finished. total time: 0.534s

    Do you know what is it? I've read somewhere that it could be a hardware issue (memory failure) but I've seen some people getting the same message doing other things, and they can fix it changing their scripts... As I'm not an expert (neither linux nor android) I don't know what can I do.

    Thanks for you help!

    RispondiElimina
  15. I had this very same problem before my phone hard-broke by repeated falling (I will have it repaired soon). I suspect android 4.2 could be the culprit but I do not really know. This is a good question for some online forum. Please if you find out, let me know; I will see if my script can be fixed.

    RispondiElimina
  16. I have re-uploaded the script, but I think there are problems. If it works for you please leave a comment.

    RispondiElimina
  17. Questo commento è stato eliminato dall'autore.

    RispondiElimina
  18. hawe i's error...

    fastboot devices:
    014FB9620301800B fastboot
    flashing bootloader
    sending 'u-boot' (384 KB)...
    OKAY [ 0.204s]
    writing 'u-boot'...
    FAILED (remote: partition does not exist)
    finished. total time: 0.211s
    root@gobi-CN700-8237:/opt/lg# ./lgL9FixBoot.sh
    /usr/bin/fastboot
    /usr/bin/fastboot
    Connect LG L9 *without battery* to PC using data cable
    reading ASIC ID
    [*] read 0 bytes
    NumOfSubblocks: 0x5
    Subblock ID: 0x1
    Subblock Size: 0x5
    CH enabled: 0x7
    ROM revision: 0x4
    Checksum Subblock: 0x15
    CHIP: 4430
    IDEN: 63699f565b66f402f6e495d709337e29f5e0ff10
    MPKH: 5f4092eccddf90fa43f546adf89508b31b9c74795e9516194c0ea6412fdcb7f6
    CRC0: 9c669ad9
    CRC1: 682adccf
    sending 2ndstage to target... f0030002
    [*] msg size = 4
    [*] data size = 21552
    waiting for 2ndstage response...
    usb read = aabbccdd
    accepted 2ndstage response
    sending image to target...
    size = 246272
    ** Done **
    usbboot ok
    DO NOT disconnect usb cable. Insert battery, then press enter

    fastboot devices:
    014FB9620301800B fastboot
    flashing bootloader
    sending 'u-boot' (384 KB)...
    OKAY [ 0.200s]
    writing 'u-boot'...
    FAILED (remote: partition does not exist)
    finished. total time: 0.207s

    RispondiElimina
    Risposte
    1. I did you find any solution ? Please let us also know if you do find something how to recover from this state.

      Elimina
  19. Ho un LG-P760 nelle condizioni di cui parli all'inizio cioè black screen e non fa assolutamente niente. In ambiente windows e con fastboot viene visto omap4430 ma non riesco a fare niente perchè dopo qualche minuto sparisce dalle periferiche windows.
    Mi aiuti a recuperarlo se è possibile con il solo pc?? Grazie. Saluti.
    Doriano.

    RispondiElimina
  20. Questo commento è stato eliminato dall'autore.

    RispondiElimina
  21. HELP HELP HELP... PLEASE I need to know what version of ubuntu works with this script. Or any other way to get my phone to s/w mode????

    RispondiElimina

  22. fastboot devices:
    flashing bootloader
    sending 'u-boot' (1024 KB)...
    OKAY [ 0.675s]
    writing 'u-boot'...
    FAILED (remote: partition does not exist)
    finished. total time: 0.681s

    Please help , I think partitions got corrupted, Is there anyway to format and restore partition table via fastboot , I have the original partitions table how do i partitions my phone ,
    Backup of old partition table ..
    root@android:/ # ls -al /dev/block/platform/omap/omap_hsmmc.1/by-name
    ls -al /dev/block/platform/omap/omap_hsmmc.1/by-name
    lrwxrwxrwx root root 2000-01-01 05:45 boot -> /dev/block/mmcblk0p3
    lrwxrwxrwx root root 2000-01-01 05:45 cache -> /dev/block/mmcblk0p12
    lrwxrwxrwx root root 2000-01-01 05:45 divxkey -> /dev/block/mmcblk0p5
    lrwxrwxrwx root root 2000-01-01 05:45 fota -> /dev/block/mmcblk0p8
    lrwxrwxrwx root root 2000-01-01 05:45 misc -> /dev/block/mmcblk0p6
    lrwxrwxrwx root root 2000-01-01 05:45 mlt -> /dev/block/mmcblk0p14
    lrwxrwxrwx root root 2000-01-01 05:45 nv -> /dev/block/mmcblk0p7
    lrwxrwxrwx root root 2000-01-01 05:45 persist -> /dev/block/mmcblk0p13
    lrwxrwxrwx root root 2000-01-01 05:45 recovery -> /dev/block/mmcblk0p4
    lrwxrwxrwx root root 2000-01-01 05:45 reserved -> /dev/block/mmcblk0p9
    lrwxrwxrwx root root 2000-01-01 05:45 system -> /dev/block/mmcblk0p10
    lrwxrwxrwx root root 2000-01-01 05:45 u -> /dev/block/mmcblk0p2
    lrwxrwxrwx root root 2000-01-01 05:45 userdata -> /dev/block/mmcblk0p11
    lrwxrwxrwx root root 2000-01-01 05:45 x -> /dev/block/mmcblk0p1

    How can i restore this table ? My phone doesn't have any partitions or is corrupted .. Please help

    RispondiElimina