[NOW PUBLIC!] Team Codefire Presents: Project FreeGee!

Search This thread

thecubed

Inactive Recognized Developer
Aug 19, 2008
1,046
10,458
Austin, TX
Please note, this is not compatible with the JB OTA - use the app in the Play store instead for now. Thanks!

Howdy all! So, it's time for me to dig out my release thread template... you know what that means?

The LG Optimus G is now unlocked.
Both the AT&T Version and the Sprint Version have been successfully unlocked with this method.
(To answer your question, if you're wondering, we're going to work on the Canadian version next, then the Korean version)

First off, I'd like to write a few words to LG:

Dear LG, a product will rise and fall on the shoulders of it's community.
If you lock a device, and shut out your community, you lose the backing of a very vocal group of people. When you lose the backing of your community, they no longer recommend your product, and you lose money. HTC has discovered this recently.
Please support your development community, we understand product security plays a role here, but ensure that you cater to your community still.
The second you try to fight your development community by locking them out of your products is the second that I will cease to recommend your products.
Keep this in mind, and I assure you that you will find yourself on the top of the game.


With all of that said, let's get back to the goodies.

What is this?!

This is Project FreeGee, silly!
Have an Optimus G ? This project will allow you to unlock your bootloader, and install whatever you want.

How does this work?

For the moment, that is a trade secret. Suffice it to say that we put some ones and zeros in the right places, and good things happen.
This is also my opportunity to say do not allow any OTAs to install without asking if they are compatible. LG could possibly patch this in such a manner that makes it rather hard to ever exploit it again.

I'm a skeptic. I demand proof!

Alrighty, here it is:

Once again, taken with my HTC Vivid, that would rather mute me than let me speak.
Damn "nose elimination"! I am not noise, and I will not be silenced! (mmhmhmhpmhmp!!)

Okay, I'm game. Where do I get it?

Version 0.3 has a confirmed bug-- camera app crashes phone after a few seconds!
If you have 0.3 installed, simply download this, extract the .zip, and extract the .tar file. Inside the freegee-working directory, you'll find boot-att-freegee.img .
Boot your phone to fastboot, then fastboot flash boot /path/to/boot-att-freegee.img
I will release a quick fix .zip for flashing in CWM tomorrow.

Current Version: 0.5
Changelog:
New in v0.5 Removed LG Security check. You are now free to remove any and all apps.
http://downloads.codefi.re/thecubed/lgoptimusg/sprint/freegee/FreeGee-0.5_Sprint.zip

Currently, the download is Windows-only. I will make a OSX/Linux/Windows version soon!

FAQ

  • Can I flash an OTA after installing this?
    No. Flashing an OTA could contain a new bootloader, and it would replace the one we have put on your device. If you flash the new OTA, and it replaces the bootloader but not the boot.img, you could be left in a situation where you could not boot the phone due to a security error. Once you're in that position, the only thing you can do is LGNPST back to stock-- and even then, it is possible that an OTA could enable an anti-rollback feature which would disable LGNPST.
  • Does this mean I can flash custom ROMs now?
    Yes. However, the custom ROM must be made for your device. We're working on a decrapified stock ROM, and AOSP ROMs as well. Be patient for those to come.
  • Can I install a Nexus 4 system image and boot.img and have it work?
    We've tested that, and the answer is no, not yet. Some work needs to be done, but once we figure it out, we'll have a quick and easy AOSP ROM.
  • Does this mean that we can use the Nexus 4 sources (kernel and android) ?
    Short answer: Yes.
    This phone is essentially a Nexus 4, with minor differences in GPIOs, memory address space, and partition table layouts.
    Kernel source is iffy, since we've got Eco mode and a few other things that actually make me like the Optimus kernel more than the Nexus kernel.
    However, this discussion is best suited for a new post.
  • How can I uninstall this?
    I'm working on an easy-uninstall for this as well. Stay tuned for the links...

Important Information

To enter bootloader, hold volume UP and power.

Upon entering the bootloader, you will notice that there is no 'menu' to enter fastboot or recovery. Unfortunately, since the stars didn't align properly, we were unable to tell the new bootloader where to load the images that contain the menu from.

In light of that, you'll have to navigate the menu blind. Use the volume keys to change selection, and the power key to select.

The choices are (in order of pressing volume down):
Start - boot the phone normally [already selected]
Restart Bootloader - reboot into the bootloader
Recovery Mode - enter recovery (CWM)
Power Off - powers the phone off

So, to get to Recovery, you would press volume down twice then power.

If you have trouble with this, watch my video below for a demonstration.

Instructions!

Please note: this requires root before you can install this! If you haven't rooted your phone yet, now is the time to do so.
Also, ensure that you have ADB drivers installed. This WILL NOT WORK without them.


Before we begin: please make sure you have USB Debugging turned on, your phone is in "Charge Only" mode, and your phone's screen is on and unlocked.
This will allow you to see the root access prompt if your phone asks for it.

  1. Download the .zip from this post
  2. Extract it somewhere on your hard drive
  3. Ensure your screen is on and unlocked
  4. Run the "freegee.bat" script, and follow the instructions.
    Do not run this as administrator! the install will fail if you do so.
  5. Once the unlock is complete, check to make sure you have a "backups" folder now in the folder where you put FreeGee. If not, DO NOT REBOOT your phone.

Even a failed unlock will still show the 'congratulations you're unlocked!' text, read the output to see if you have errors!
You should not see any "adb.exe not found" errors, or "tar: invalid magic" errors. Those would be errors in the script.
An error which you can ignore is "No space left on device" after it says erasing old recovery and boot. That's just a side effect of how we clear the old images out.

Contact Information

"Mister Cubed, how do I talk to you?"
That's easy! Hop on IRC and join me on Freenode in #lg-optimus-g . I'm in there as IOMonster (or IOMonster_desk, or IOMonster_work, depending on where I am)
There's also a lot of other cool people in there too!

When you hop in IRC, if you've got a question, just ask it. Don't say "halp! i does brick'd my phone, and i dunno wat to does?!!", but rather "can anyone help? my phone is stuck in fastboot mode, and I can't get out of it. I flashed <xyz> and now I'm stuck here."
Asking your full question (even though it might be a long message) helps us figure out the best way to assist you, without us having to lead the conversation and ask all the questions for you.

Also, on IRC (for those of you who have never used IRC) if you say someone's name, it will 'ping' (also called 'highlight') them. This tells us that someone is talking to us. So, if you pop in IRC and say "IOMonster, it worked!", I'll get a notification, and will probably say "that's awesome!" in response.

Special Thanks To!

None of this would be possible without the assistance of the following people:

  • Shelnutt2
  • g33k3r
  • kmdm
  • synergy
  • jcase
  • sextape
  • xboxfanj
  • ...and the support of the entire #lg-optimus-g IRC channel

A project like this is really only a sum of it's parts, and in our case, we're over 9,000!
Please make sure to tell someone on this list that they're awesome if you see them on IRC or (*gasp!*) in real life.

All right, that about sums up my post. Did I forget anything? Let me know below...
 
Last edited:

fiddy619

Senior Member
Nov 2, 2010
781
324
San Diego
Here is some proof, this is fully working...

IMAG0013.jpg


IMAG0014NoSer.jpg



Sorry for the blurry images, took these from my old OG Evo... But can say its fully unlocked!!!

Nice work thecubed, and shellnut2 on this, thanks for keeping our freedom alive!!!
 
Last edited:

Tyederian

New member
Oct 14, 2009
1
0
Does the sprint launch OTA prevent this from working?

Sent from my LG-LS970 using xda app-developers app
 

jblazea50

Senior Member
Feb 10, 2010
2,309
472
Beltsville
That's awesome. Just got the phone today from Best Buy for $55 and excited to get the bootloader unlocked and wait for the AOSP Jelly Bean roms.

Thanks devs!!!
 

twoslo

Senior Member
Sep 18, 2010
137
7
New Orleans
Wow! Many thanks to all the devs for their hard work and to the beta testers for their willingness to let their phones be guinea pigs. Very much looking forward to this!

Sent from my LG-LS970 using Tapatalk 2
 

engine95

Inactive Recognized Contributor
Oct 14, 2008
3,912
4,805
Google Pixel 2
Google Pixel 4a
So I just ran this and had a couple little panic moment!!

1. While reading the script, SU poped up and I missed the "Grant SU" button on the phone. I still got the backup folder but nothing was in it. I then thought it worked, rebooted, and nothing.
The second time I ran this, I got to the "Grant SU" button in time and all went GREAT!!! This time I had files in the backup folder.
2. When I rebooted into recovery, I tried to make a backup. I hit the backup button and got some message that said "Can't mount backup path". So i tried the backup to internal SD and it worked.

Figured I'd write this in case anybody else had the same moment's I did.

The files on the backup folder are very differnt from what I'm used to so hopefully I did it correctly. I noticed there was an option in CWM to choose the backup format after I'd made my backup, so I'm not sure which format is correct for Restore. I guess I used the default which is .dup.

Thank you very much dev's for this!!!!!:laugh::D

---------- Post added at 05:54 AM ---------- Previous post was at 05:25 AM ----------

DO NOT use the camera!!!! It'll crash your phone!!!

I read about it in the ATT section just now, but it's too late for me. So I guess we have this bug also.

OK...so not quite a crash. Held the volume down button and power together and got it to reboot.
Now we just need to have a way to recover our phones if/and/or when we do crash our phones. I know the devs are working on this, as obviously they are the bomb!!!:D
 

Top Liked Posts

  • There are no posts matching your filters.
  • 59
    Please note, this is not compatible with the JB OTA - use the app in the Play store instead for now. Thanks!

    Howdy all! So, it's time for me to dig out my release thread template... you know what that means?

    The LG Optimus G is now unlocked.
    Both the AT&T Version and the Sprint Version have been successfully unlocked with this method.
    (To answer your question, if you're wondering, we're going to work on the Canadian version next, then the Korean version)

    First off, I'd like to write a few words to LG:

    Dear LG, a product will rise and fall on the shoulders of it's community.
    If you lock a device, and shut out your community, you lose the backing of a very vocal group of people. When you lose the backing of your community, they no longer recommend your product, and you lose money. HTC has discovered this recently.
    Please support your development community, we understand product security plays a role here, but ensure that you cater to your community still.
    The second you try to fight your development community by locking them out of your products is the second that I will cease to recommend your products.
    Keep this in mind, and I assure you that you will find yourself on the top of the game.


    With all of that said, let's get back to the goodies.

    What is this?!

    This is Project FreeGee, silly!
    Have an Optimus G ? This project will allow you to unlock your bootloader, and install whatever you want.

    How does this work?

    For the moment, that is a trade secret. Suffice it to say that we put some ones and zeros in the right places, and good things happen.
    This is also my opportunity to say do not allow any OTAs to install without asking if they are compatible. LG could possibly patch this in such a manner that makes it rather hard to ever exploit it again.

    I'm a skeptic. I demand proof!

    Alrighty, here it is:

    Once again, taken with my HTC Vivid, that would rather mute me than let me speak.
    Damn "nose elimination"! I am not noise, and I will not be silenced! (mmhmhmhpmhmp!!)

    Okay, I'm game. Where do I get it?

    Version 0.3 has a confirmed bug-- camera app crashes phone after a few seconds!
    If you have 0.3 installed, simply download this, extract the .zip, and extract the .tar file. Inside the freegee-working directory, you'll find boot-att-freegee.img .
    Boot your phone to fastboot, then fastboot flash boot /path/to/boot-att-freegee.img
    I will release a quick fix .zip for flashing in CWM tomorrow.

    Current Version: 0.5
    Changelog:
    New in v0.5 Removed LG Security check. You are now free to remove any and all apps.
    http://downloads.codefi.re/thecubed/lgoptimusg/sprint/freegee/FreeGee-0.5_Sprint.zip

    Currently, the download is Windows-only. I will make a OSX/Linux/Windows version soon!

    FAQ

    • Can I flash an OTA after installing this?
      No. Flashing an OTA could contain a new bootloader, and it would replace the one we have put on your device. If you flash the new OTA, and it replaces the bootloader but not the boot.img, you could be left in a situation where you could not boot the phone due to a security error. Once you're in that position, the only thing you can do is LGNPST back to stock-- and even then, it is possible that an OTA could enable an anti-rollback feature which would disable LGNPST.
    • Does this mean I can flash custom ROMs now?
      Yes. However, the custom ROM must be made for your device. We're working on a decrapified stock ROM, and AOSP ROMs as well. Be patient for those to come.
    • Can I install a Nexus 4 system image and boot.img and have it work?
      We've tested that, and the answer is no, not yet. Some work needs to be done, but once we figure it out, we'll have a quick and easy AOSP ROM.
    • Does this mean that we can use the Nexus 4 sources (kernel and android) ?
      Short answer: Yes.
      This phone is essentially a Nexus 4, with minor differences in GPIOs, memory address space, and partition table layouts.
      Kernel source is iffy, since we've got Eco mode and a few other things that actually make me like the Optimus kernel more than the Nexus kernel.
      However, this discussion is best suited for a new post.
    • How can I uninstall this?
      I'm working on an easy-uninstall for this as well. Stay tuned for the links...

    Important Information

    To enter bootloader, hold volume UP and power.

    Upon entering the bootloader, you will notice that there is no 'menu' to enter fastboot or recovery. Unfortunately, since the stars didn't align properly, we were unable to tell the new bootloader where to load the images that contain the menu from.

    In light of that, you'll have to navigate the menu blind. Use the volume keys to change selection, and the power key to select.

    The choices are (in order of pressing volume down):
    Start - boot the phone normally [already selected]
    Restart Bootloader - reboot into the bootloader
    Recovery Mode - enter recovery (CWM)
    Power Off - powers the phone off

    So, to get to Recovery, you would press volume down twice then power.

    If you have trouble with this, watch my video below for a demonstration.

    Instructions!

    Please note: this requires root before you can install this! If you haven't rooted your phone yet, now is the time to do so.
    Also, ensure that you have ADB drivers installed. This WILL NOT WORK without them.


    Before we begin: please make sure you have USB Debugging turned on, your phone is in "Charge Only" mode, and your phone's screen is on and unlocked.
    This will allow you to see the root access prompt if your phone asks for it.

    1. Download the .zip from this post
    2. Extract it somewhere on your hard drive
    3. Ensure your screen is on and unlocked
    4. Run the "freegee.bat" script, and follow the instructions.
      Do not run this as administrator! the install will fail if you do so.
    5. Once the unlock is complete, check to make sure you have a "backups" folder now in the folder where you put FreeGee. If not, DO NOT REBOOT your phone.

    Even a failed unlock will still show the 'congratulations you're unlocked!' text, read the output to see if you have errors!
    You should not see any "adb.exe not found" errors, or "tar: invalid magic" errors. Those would be errors in the script.
    An error which you can ignore is "No space left on device" after it says erasing old recovery and boot. That's just a side effect of how we clear the old images out.

    Contact Information

    "Mister Cubed, how do I talk to you?"
    That's easy! Hop on IRC and join me on Freenode in #lg-optimus-g . I'm in there as IOMonster (or IOMonster_desk, or IOMonster_work, depending on where I am)
    There's also a lot of other cool people in there too!

    When you hop in IRC, if you've got a question, just ask it. Don't say "halp! i does brick'd my phone, and i dunno wat to does?!!", but rather "can anyone help? my phone is stuck in fastboot mode, and I can't get out of it. I flashed <xyz> and now I'm stuck here."
    Asking your full question (even though it might be a long message) helps us figure out the best way to assist you, without us having to lead the conversation and ask all the questions for you.

    Also, on IRC (for those of you who have never used IRC) if you say someone's name, it will 'ping' (also called 'highlight') them. This tells us that someone is talking to us. So, if you pop in IRC and say "IOMonster, it worked!", I'll get a notification, and will probably say "that's awesome!" in response.

    Special Thanks To!

    None of this would be possible without the assistance of the following people:

    • Shelnutt2
    • g33k3r
    • kmdm
    • synergy
    • jcase
    • sextape
    • xboxfanj
    • ...and the support of the entire #lg-optimus-g IRC channel

    A project like this is really only a sum of it's parts, and in our case, we're over 9,000!
    Please make sure to tell someone on this list that they're awesome if you see them on IRC or (*gasp!*) in real life.

    All right, that about sums up my post. Did I forget anything? Let me know below...
    19
    ZVB is now supported. Unlock like normal then flash this zip in recovery:
    http://downloads.codefi.re/shelnutt2/optimusg/sprint/ZVBboot-freegee.zip


    Or wait for google to push our the new playstore apk. Both freegee and freegee free should get it within the next couple hours.

    The issue and the delay was cause I was dumb and forgot to change the console for the stock boot.img, which is needed too. n00b mistake :(
    14
    any sort of ETA on the Nexus 4 image/4.2 Rom? I absolutely love the work being done here, but I don't exactly have a use for it without working roms :(

    I wish I could create working ROMs myself, but sadly I'm not that skilled.

    2 weeks.

    But no seriously, xboxfanj and I are working on merging sources with 3.4 kernel, once that's done it will open it up to roms. :)

    Sent from my LG-LS970 using xda app-developers app
    8
    New release:

    Current Version: 0.5
    Changelog:
    New in v0.5 Removed LG Security check. You are now free to remove any and all apps.

    http://downloads.codefi.re/shelnutt2/optimusg/sprint/private/freegee/FreeGee-0.5_Sprint.zip


    Currently, the download is Windows-only. I will make a OSX/Linux/Windows version soon!
    8
    This is really dumb but does this also install clock work mod

    Sent from my LG-LS970 using xda premium

    Actually, let me be honest with you and say that it's not a dumb question.
    I just realized that I forgot to put that in the first post.

    So, my bad.

    I'll update that.

    To answer your question: yes, it does install CWM for you.