[Root & Bootloader Unlock] Docomo Optimus G

Search This thread

Fran31

Member
Apr 30, 2009
14
2
My problem was


D:\LG Optimus G\Fastboot>adb push lk.img /data/local/tmp/lk.img
1264 KB/s (234640 bytes in 0.181s)

D:\LG Optimus G\Fastboot>
D:\LG Optimus G\Fastboot>adb push unlock.sh /data/local/tmp/unlock.sh
29 KB/s (224 bytes in 0.007s)

D:\LG Optimus G\Fastboot>
D:\LG Optimus G\Fastboot>adb shell chmod 755 /data/local/tmp/unlock.sh
- exec '/system/bin/sh' failed: Operation not permitted (1) -
check_LGE_official: enable_root = 0, size = 0

D:\LG Optimus G\Fastboot>
D:\LG Optimus G\Fastboot>adb shell touch /sdcard/g_security
- exec '/system/bin/sh' failed: Operation not permitted (1) -
check_LGE_official: enable_root = 0, size = 0


any solutions?

I have same problem. ¿Solution please? :(

Edit: Solved.
 
Last edited:

Fran31

Member
Apr 30, 2009
14
2
Hi! Please!!!!!! I have a very serious problem. I did the root with this tutorial and I restored factory yesterday and now the phone does not work, or does not turn when you turn the screen or restart, and not either Screen S / W, which put out below:

I could install the cwm, if someone makes a backup with cwm recovery and uploads of here so I download it, I will be able to fix my problem?

1079xg6.jpg


Please help.

EDIT: I could install the cwm, if someone makes a backup with cwm recovery and uploads of here so I download it, I will be able to fix my problem?
 
Last edited:

medo18

Senior Member
Jul 1, 2010
410
108
Saudia Arabia
I dont have this phone now, but you should be install the Stock Firmware TOT files,

or try to enter the recovery by ADB

Fastboot boot recovery.img

and install the ROM.

But i think you have problem with the partition now, you should be install the Stock TOT files.
 
Last edited:
  • Like
Reactions: Fran31

Fran31

Member
Apr 30, 2009
14
2
I dont have this phone now, but you should be install the Stock Firmware TOT files,

or try to enter the recovery by ADB

Fastboot boot recovery.img

and install the ROM.

But i think you have problem with the partition now, you should be install the Stock TOT files.

Thanks.

And how I can install the tot with recovery? Can with cwm? is that if I try to install the tot with FlashTool, Flashtool don't detect my phone ...
 
Last edited:

medo18

Senior Member
Jul 1, 2010
410
108
Saudia Arabia
1- Install the driver .
2- Download FLASH TOOLS 1.2.45.921.
3- Turn off mobile and press Vol Down + UP and plug in USB you will see it.
You will see message in your mobile also for ready.

Here for the driver and how to flash but its very hard no need it just install the driver and you need DLL file for you mobile.
http://xdaforums.com/showthread.php?t=1244490
 
Last edited:
  • Like
Reactions: Fran31

Fran31

Member
Apr 30, 2009
14
2
1- Install the driver .
2- Download FLASH TOOLS 1.2.45.921.
3- Turn off mobile and press Vol Down + UP and plug in USB you will see it.
You will see message in your mobile also for ready.

Here for the driver and how to flash but its very hard no need it just install the driver and you need DLL file for you mobile.
http://xdaforums.com/showthread.php?t=1244490

Thanks.

The problem is that when I connect the phone to the PC does not appear "LGE CDMA USB Serial Port". Moreover, nothing comes in Ports (COM & LPT), only I get up as Google Android Phone Nexus 4 Bootloader. :(

EDIT: I only have two options:

1 - Someone upload a backup of your mobile phone with clockwork mode (CWM) to see if I can fix it.

2 - That leaves a KDZ to flash in Download Mode, because that way if I work.

Can anyone help in any of these cases? Please ...

EDIT 2: I just broke up over the phone as I do not know, now I do not recognize it or the cmd, I can only enter download mode. If someone gets in kdz stockrom tell me, please, I think is the only way to resurrect it. :crying::crying::crying:
 
Last edited:

kokogambo

Member
Aug 20, 2011
40
4
i am trying to root my:
Optimus LG pro L-04E device, with this method:
http://xdaforums.com/showthread.php?t=2006946
section: How to "root" your Optimus G

I am doing:
Put the phone into "Charge Only" mode at Settings->General->PC connection->USB connection type
Open CurrentRoot.bat and follow its prompts. You will need to change from "Charge Only" to "Media sync (MTP)" mode. The setting is in the same place.
then when i am continue with the script i got:

D:\L04E\ZV9-ZVB-Universal-Root\ZV9-ZVB-Universal-Root>adb shell
- exec '/system/bin/sh' failed: Operation not permitted (1) -
check_LGE_official: enable_root = 0, size = 1

now i get this message even after reboot when executing "adb shell"

someone knows what the issue is?
there is another way to root the device?
 

kokogambo

Member
Aug 20, 2011
40
4
is debug option enabled?
click my signature to see other rooting methods.

yes... i checked it.

is the original method ( giantpune) in this thread will fit to my device too? L-04E?
i say that this method contains flashing boot.img and i am afraid it wont fit to my device....
i dont want to brick it.
 

kimitza

Senior Member
Feb 27, 2010
2,012
731
43
Buzau
Rooting can be done several ways,try them.

Sent from LG E975 pwd by CM 10.2/smart phones,dumb people.
 

suco.zyx

New member
Oct 28, 2008
4
0
Original source: http://www.androidpolice.com/2013/01/21/exclusive-how-to-root-ntt-docomos-lg-optimus-g/

Credits:
adb backdoor: giantpune
Duct tape guru: jcase
bootloader: Team Codefire http://xdaforums.com/showthread.php?t=2001655
Testers: Shados and germes81m

Donations:
For giantpune : Paypal to giantpune@gmail.com
For jcase : http://xdaforums.com/donatetome.php?u=2376614

Download: http://d-h.st/d6p

Files: (Verify the MD5s before proceeding)
MD5 (boot.img) = 175c1bdaabbbbcbd7a4b69a315057e5b
MD5 (hotplug) = 9fbef20822281a2dd546b3e43d8c30dd
MD5 (lk.img) = bc54a6a730658550713a0779b30bf6b7
MD5 (unlock.sh) = 3871c2dde3d6b1d99d27ffa4021c81d3


Fastboot Drivers (needed for windows):
http://xdaforums.com/showthread.php?t=1996051

Notice:
This is an at your own risk kind of thing, if your phone becomes damaged or data lost, your
fault not mine. This does install a unsecured (ro.secure=0) boot image in the process, this
does potentially open your device to security risks (as do most customized firmwares.)


Story:
The Docomo Optimus G ships with a mandatory access control system, that prevents
remounting system, reading boot, executing some things as root, etc general pain in the butt.

We are using a backdoor found by giantpune (and later by Juggie). The backdoor is partially
broken on this device due to the MAC, so it does not yield a root shell for us. However we
can still use it with a couple extra steps to unlock the bootloader\s. We are also going to
install a modified boot img, that removes some of the phone's security features, and allows
us to actually have root access.

Notes:
Graphic glitches will occur while in the bootloader, you will have to use the bootloader 'blind'


Follow directions exactly.

Directions:


Code:
adb push lk.img /data/local/tmp/lk.img

adb push unlock.sh /data/local/tmp/unlock.sh

adb shell chmod 755 /data/local/tmp/unlock.sh

adb shell touch /sdcard/g_security

Disable USB Debugging, then enable usb debugging

Code:
adb shell id

Should recieve an error about not executing /system/bin/sh, this is what we want. If you
don't have the error, start over.

Code:
adb push hotplug /proc/sys/kernel/hotplug

Now toggle bluetooth once, and wait for your phone to display a garbaled screen (the bootloader).
If it displays a blank screen instead of a garbled screen, pull battery, reboot and run 'adb reboot bootloader'

Code:
fastboot devices

If you see your device listed, continue. If not then find the proper drivers, and then
continue.

Code:
fastboot flash boot boot.img
fastboot reboot
adb shell /sbin/rootme.sh

If your phone does not reconnect to your mobile network, try rebooting it serveral times.
If it does not still, then reflash stock firmware.

We are using supersu, and the app https://play.google.com/store/apps/details?id=eu.chainfire.supersu
is needed.
Hi jcase, I am trying to unlock the bootloader of LG L22 and L01F, can you share the backdoor that you have found so that I can try that at those 2 LG devices ?
 

hoangps

Senior Member
May 26, 2011
446
62
Ho Chi Minh
Step 2

After disable usb debug then enable and typing command: adb shell id

I got this notice

Code:
 uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),3001(n
et_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats)

What's wrong with me ? tried many times,still a same result :(

Optimus L01E Docomo 4.1.2
 

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    Original source: http://www.androidpolice.com/2013/01/21/exclusive-how-to-root-ntt-docomos-lg-optimus-g/

    Credits:
    adb backdoor: giantpune
    Duct tape guru: jcase
    bootloader: Team Codefire http://xdaforums.com/showthread.php?t=2001655
    Testers: Shados and germes81m

    Donations:
    For giantpune : Paypal to giantpune@gmail.com
    For jcase : http://xdaforums.com/donatetome.php?u=2376614

    Download: http://d-h.st/d6p

    Files: (Verify the MD5s before proceeding)
    MD5 (boot.img) = 175c1bdaabbbbcbd7a4b69a315057e5b
    MD5 (hotplug) = 9fbef20822281a2dd546b3e43d8c30dd
    MD5 (lk.img) = bc54a6a730658550713a0779b30bf6b7
    MD5 (unlock.sh) = 3871c2dde3d6b1d99d27ffa4021c81d3


    Fastboot Drivers (needed for windows):
    http://xdaforums.com/showthread.php?t=1996051

    Notice:
    This is an at your own risk kind of thing, if your phone becomes damaged or data lost, your
    fault not mine. This does install a unsecured (ro.secure=0) boot image in the process, this
    does potentially open your device to security risks (as do most customized firmwares.)


    Story:
    The Docomo Optimus G ships with a mandatory access control system, that prevents
    remounting system, reading boot, executing some things as root, etc general pain in the butt.

    We are using a backdoor found by giantpune (and later by Juggie). The backdoor is partially
    broken on this device due to the MAC, so it does not yield a root shell for us. However we
    can still use it with a couple extra steps to unlock the bootloader\s. We are also going to
    install a modified boot img, that removes some of the phone's security features, and allows
    us to actually have root access.

    Notes:
    Graphic glitches will occur while in the bootloader, you will have to use the bootloader 'blind'


    Follow directions exactly.

    Directions:


    Code:
    adb push lk.img /data/local/tmp/lk.img
    
    adb push unlock.sh /data/local/tmp/unlock.sh
    
    adb shell chmod 755 /data/local/tmp/unlock.sh
    
    adb shell touch /sdcard/g_security

    Disable USB Debugging, then enable usb debugging

    Code:
    adb shell id

    Should recieve an error about not executing /system/bin/sh, this is what we want. If you
    don't have the error, start over.

    Code:
    adb push hotplug /proc/sys/kernel/hotplug

    Now toggle bluetooth once, and wait for your phone to display a garbaled screen (the bootloader).
    If it displays a blank screen instead of a garbled screen, pull battery, reboot and run 'adb reboot bootloader'

    Code:
    fastboot devices

    If you see your device listed, continue. If not then find the proper drivers, and then
    continue.

    Code:
    fastboot flash boot boot.img
    fastboot reboot
    adb shell /sbin/rootme.sh

    If your phone does not reconnect to your mobile network, try rebooting it serveral times.
    If it does not still, then reflash stock firmware.

    We are using supersu, and the app https://play.google.com/store/apps/details?id=eu.chainfire.supersu
    is needed.
    3
    It failed, Docomo used a MAC (ccs-init/ccs-audit). We got the bootloader unlocked yesterday, so we can removed the access control. I'll post details in the morning.

    What does logcat say?

    Try creating a minimalistic binary

    Code:
    #include <sys/types.h>
    #include <unistd.h>
    #include <stdio.h>
    #include <errno.h>
    #include <string.h>
    
    int main()
    {
      if(setuid(0)==-1)
      {
        printf("Failed Setting Root UID : %s",strerror(errno));
      }
      else
      {
        printf("Success!\nCurrent UID : %d",getuid());
      }
    
      return 0;
    }
    1
    use the lg flash tool and .tot file.uploading complete,you may download now and make a mirror if possible.I'll post a guide on our group later.
    still cannot find the kdz file of this device...

    ---------- Post added at 09:01 AM ---------- Previous post was at 08:41 AM ----------



    it's an amazing job indeed. we're really grateful for what you've done on rooting the L-01E.:good::good::good:
    do i have the permission to reprint this thread on other bbs in my country? I'll indicate the source of course.

    THX again for rooting L-01E:fingers-crossed:
    best regards.


    Repost as you wish, would be nice to have the README stay intact, as well as linking to the source.
    1
    so looks like I am one of the first to confirm JCASE and his friends Rooting Procedure... ITS WORKING!!!!!

    but please be informed that since I had problems installing fastboot on windows... i used my Fedora to be safe... but I believe once you are sure with your fastboot drivers..then you too will not have any problems

    I know I may look redundant..but I want to share what I did so that some people can follow because I myself had some issues...

    so here goes.

    * my system was fedora 18 32bit

    1. I searched for android on the fedora package manager
    - Android Platform Tools (adb,fastboot)
    2. Downloaded the files as per sir JCASE
    3. on terminal, I followed this Commands

    adb push lk.img /data/local/tmp/lk.img

    adb push unlock.sh /data/local/tmp/unlock.sh

    adb shell chmod 755 /data/local/tmp/unlock.sh

    adb shell touch /sdcard/g_security

    4. Was kinda nervous about Disabling and Re-enabling USB DEBUGGING,

    so what I did is that I disconnected and reconnected my phone :)

    5. verified if my device is still seen by adb via this command

    adb devices

    6. once verified, then do this command

    adb shell id

    7. and I smiled when I had the error

    ---not executing /system/bin/sh

    8. next was this command

    adb push hotplug /proc/sys/kernel/hotplug

    9. Then I just Clicked the BLUETOOTH ICON in the STATUS BAR and then I did had the Screen Issue (and yup it is normal)

    10. CHecked if my device is connected via fastboot by this command

    fastboot devices

    11. Once my Device was seen, i followed these commands

    fastboot flash boot boot.img

    fastboot reboot

    12. after few seconds of reboot..I did this command


    adb shell /sbin/rootme.sh

    13. Then there was the note to install SuperSU

    14. After installation, I had some issues with network..so i restarted 2x

    15. And now I have Root, I just installed Cache Mate just to make sure and it worked


    Sorry Sir Jcase for being redundant

    anyway, this will not happen without the help of sir JCASW..so in behalf of all the L-01E Users, THANK YOU SO MUCH!!!!

    maybe this week..i will treat you with some coffee or beer.. hahahaha.. CHEERS!!!


    ***PLEASE TAKE NOTE THE COMMANDS from sir JCASE.. maybe due to my excitement, maybe i had some mixed up with the commands..

    again sir JCASE..thank you so much!!!
    1
    so at this step just click the bluetooth button once and that will do
    am I right dude ?
    congratulations you finally get the device root :D

    Sent from my LG-F160L using xda premium

    Yes toggle is turn off or on.