yashsingh1/xdaforums huggingface dataset:
[LG Optimus G Pro] Gotroot:
OMG converting this tot to img is a pain.It keeps breaking the sys.img in un even files..Anyone handy with LGExtract?
[LG Optimus G Pro] Jammol:
Guys can release keep this thread for bootloader unlock please. This is not a Rom request thread!!!
[LG Optimus G Pro] thecubed:
Getting closer... I have a tethered CWM build almost working... the kernel actually starts up, but for some reason, i get PAGES and PAGES of this:

[ 53.364779 / 01-01 00:00:53.356] mdm_pblrdy_change: pbl ready:0
[ 53.364810 / 01-01 00:00:53.356] mdm_pblrdy_change: pbl ready:0
[ 53.364840 / 01-01 00:00:53.356] mdm_pblrdy_change: pbl ready:0
[ 53.364871 / 01-01 00:00:53.356] mdm_pblrdy_change: pbl ready:0
[ 53.364901 / 01-01 00:00:53.356] mdm_pblrdy_change: pbl ready:0
[ 53.364932 / 01-01 00:00:53.356] mdm_pblrdy_change: pbl ready:1
[ 53.364962 / 01-01 00:00:53.356] mdm_pblrdy_change: pbl ready:0
[ 53.364993 / 01-01 00:00:53.356] mdm_pblrdy_change: pbl ready:1
[ 53.365023 / 01-01 00:00:53.356] mdm_pblrdy_change: pbl ready:0

...and the kernel never does it's init.

I believe this is an issue with the cmdline of the kernel now, or the modem has it's own security checks... Time to find a modem log somewhere...
[LG Optimus G Pro] Gotroot:
Nice work
[LG Optimus G Pro] thecubed:
Looks like I'm going to have to build a custom kernel without modem support to test this theory.

I have a feeling that somehow the bootloader is treating fastboot boot differently than a normal boot. The issue here is finding out *what* it's doing differently, so I can work around it.

To start, I'm going to grab the kernel source and see if there's any specific fixups that the kernel has when booted from fastboot vs normal boot.

As usual, I'll keep y'all updated with as much info as I have when I have it...
[LG Optimus G Pro] trooper1414:
Dude how do you even understand this stuff???.

Good luck and keep up the amazing job
[LG Optimus G Pro] vinniemac84:
u sir r awesome. i wish i understood all this stuff so i could help out. keep up the awesome work. i know u dont do this for the money but last i saw the reward being put up for this was over $600...not a bad thank you for all the hard work you do for us
[LG Optimus G Pro] vladutz2007:
i own lg f240k i will be able to unlock the bootloader through the same method as you gus with the at&t?
[LG Optimus G Pro] thecubed:
Hey! Would you like to do me a huge favor? Can you extract your phone's recovery.img file and upload it somewhere I can get?

Same with anyone that has the Korean version... I'd like to see if LG's stock kernel for ATT has issues with booting via fastboot.

Also, neat observation-- this phone apparently has earjack debug. I don't have the parts on hand to make the cable just yet, and it'll be a few days before I have the necessary parts for that.
[LG Optimus G Pro] reider123:
I will.

mine is F240S
[LG Optimus G Pro] vladutz2007:
http://www.hkepc.com/forum/viewthread.php?tid=1936283

do you think this will help?
[LG Optimus G Pro] thecubed:
Nope, I've got LG's B2B / B2C utilities installed already, I just haven't had time to pull down a whole TOT/KDZ and extract it just for the kernel.

Thanks though :)

Looks like I do need to make a serial debug cable (like the nexus4) so I can figure out what's going on with the very early kernel messages.

Something strange is happening, and I can't see it in the last_kmsg since it gets overwritten so quickly (the "pbl ready" message repeats itself hundreds of times a second)

I'm still not entirely convinced that the LG aboot doesn't do some extra fixups to a mmc booted boot.img versus a fastboot booted boot.img. This definitely was the case with the original OG, and I found the correct offset by accident (if I remember correctly)... now if only I could recreate the magical lightning strike :)
[LG Optimus G Pro] ericho1316:
F240K recovery.img

here is F240K recovery

mediafire.com/download/bmc3fcm0uskfmcm
[LG Optimus G Pro] starteam:
Here is F240L 's recovery.img:

http://pan.baidu.com/share/link?shareid=828032202&uk=691009106
[LG Optimus G Pro] Gotroot:
If you still need the files let me know i have them all pulled ...

E980 http://www.mediafire.com/?dwlhnl725lhasba
[LG Optimus G Pro] Gotroot:
I posted the source kernel and the system in the dev section if you need it cube
[LG Optimus G Pro] thecubed:
So, I tried booting the other variant's kernels, and no luck. Spinlocks at the mdm_pblrdy_change function. Looks like I'll be compiling a custom kernel for testing with.

I'm just not entirely sure what is going on here yet.

To check if any fixups are being applied at boot from flash that I don't normally see, I did the following:

* Backed up both boot and recovery to /sdcard

* Erased boot and recovery

* Copied back up of boot to recovery

* adb rebooted

This dropped me to a fastboot shell, from where I then did:

* Fastboot flash boot <backup of boot>

* Fastboot continue

This booted the system normally as it usually would, however it gave me access to the very early messages that are normally hidden by the LG init logo.

[YOUTUBE]o8dg8D_bYaU[/YOUTUBE]

(Ignore the terrible camera work and loud background noise, it's loud in a datacenter)

It would appear that the boot_linux function is being called twice (notice how it outputs the cmdline string twice in the boot process).

I need to dig further into the assembly code to figure out why this is happening when booting from flash and not from fastboot.

As an extra bonus, I've identified ~3 targets that can be exploited with Loki -- this phone will be *very* easy to unlock, I mean like butter, once I get a booting CWM from fastboot.

My next steps are as follows:

1. Build a earjack debug cable. This will let me debug kernels MUCH faster than using a reboot and a pull of /proc/last_kmsg (and much less tiring battery pulls and etc)

2. Build a custom kernel w/o modem support. This should let me successfully boot the kernel, since it appears to be hanging with the stock kernel when it tries to bring up the modem.

I haven't ruled out an error in the kernel code itself as being the source of this problem. It's possible that the stock LGE kernel doesn't know how to handle being booted from fastboot and it gives the modem bogus values. Anything is possible.

I'll try to make some headway on this tonight and have an update for you all soon.

Thanks!
[LG Optimus G Pro] esimon311:
You sir are a gentleman and a scholar.

OG PRO
[LG Optimus G Pro] zohaer21:
great ! words can't express our gratitude !!! thankyou !!
[LG Optimus G Pro] nthknd:
Im in for 20.00 on the bootloader deal this guy is a freakin micheal dell of andriod..I have no idea what he was talking about but I read it anyways thanks a hella lot...were do I toss my money at?
[LG Optimus G Pro] esimon311:
If you click on [MENTION=1157052]thecubed[/MENTION]'s profile he has a link to his PayPal account that is where I'll be sending my donation.

:thumbup:

OG PRO
[LG Optimus G Pro] MrDSL:
Okay I haven't seen a list and since the OP has switched phones I started a new topic for the bounty to keep track of pledges etc

http://xdaforums.com/showthread.php?t=2343146
[LG Optimus G Pro] z28tovette:
Thank you!!!! Very good move.

sent from a CARBON fiber NOTE 2
[LG Optimus G Pro] thecubed:
Alright guys, by request, I'll be posting in MrDSL's new thread: http://xdaforums.com/showthread.php?t=2343146

Please update your bookmarks and subscriptions :)
[LG Optimus G Pro] rougetor:
Contribution

Count me in for $100.00
[LG Optimus G Pro] evanrwolfe:
there is a new thread, repost there
[LG Optimus G Pro] rob219:
is this still being worked on? i know we have loki now but just bypassing the bootloader isnt the same. with a real unlocked bootloader this device will be alot easier to fix mod and pretty much evrrything else. im hoping since we have loki that everyone hasnt forgot its still not unlocked and would be really great to see it happen.
[LG Optimus G Pro] fryguy128:
There's no need. Loki fulfills almost everyone's needs.
[LG Optimus G Pro] xartic12:
Keyword: almost.
[LG Optimus G Pro] rob219:
loki just bydpasses the bootloader it does not allow functions other than flashing that would be nice to have to make things easier.
[LG Optimus G Pro] Funk2641:
I'll pledge $40
[LG Optimus G Pro] thecubed:
So, just a quick update to anyone who's following this:

We've tried (unsuccessfully) to change a string in the ABOOT (LK) image. The phone hangs on the LG logo. We have also confirmed that this behavior is replicated on the Optimus G as well.

There's still a few more options for testing, however we'd like to determine if the phone is recoverable if we accidentally hit qhsusb_dload mode.

If there's anyone who's willing to possibly have to exchange their phone to try a few things, let us know in IRC.

According to the service manual, this phone boots in "Fast boot" mode, meaning the on-chip bootloader doesn't check the sig of SBL1. However, SBL1 checks SBL2 which checks SBL3. We're not sure what SBL3 checks yet on the OG Pro.

We'll be sure to keep y'all up to date when we have more informations available.

Also, if enough people show interest in this phone, I may pick up one on Monday or Tuesday for development.

-Tyler
[LG Optimus G Pro] fix-this!:
I can't risk my phone but I promise you there's interest in this. I'll up my ante to $50 if you get this unlocked for us. If I can help in any other way, let me know.

Thanks for your efforts.
[LG Optimus G Pro] MrNa5ty:
I think we're all following lol just waiting for the good word. Thanks for your time and effort! !!
[LG Optimus G Pro] ipsuvedi:
Come On!!

This Device gonna be superhit after root:thumbup:
[LG Optimus G Pro] reider123:
If you're saying qualcomm download mod that does not display anything but I can detect on pc, only solve method is qpst,

We cannot fix it, I think.

I was in that mode 'cause gee and geefhd is similar so I thought bootloader unlock may work(sound silly haha), I tried it and rebooted it.

Than in qualcomm download mode :)

And I replaced it for free haha
[LG Optimus G Pro] zohaer21:
Hi

If u need some one who is stuck on qhsusb_dl mode when the phone is connected to pc and otherwise doesnt not turn on at all .... im here to help :)
[LG Optimus G Pro] thecubed:
How did you manage to brick your phone already?

If you're interested in volunteering your body.. er, phone... for science -- hit me up in IRC tomorrow around 3PM PST and I'll be around.
[LG Optimus G Pro] zohaer21:
its been bricked for about 2 weeks :( I got the first optimus g pro on ebay .. and hated the Korean on it .. finally when English rom came along from at&t .. flashed it .. but the speaker bug was the deal breaker for me

I then trolled some Chinese forums and downloaded a striped down rom for flashing... then KAPUT !!!

I haven't IRC'd ever .. so is there a particular channel you will be on ??? or can we Skype or viber ???

---------- Post added at 12:33 PM ---------- Previous post was at 12:31 PM ----------

are you saying that you managed to fix your phone out of the QUALCOMM download mode ????
[LG Optimus G Pro] reider123:
No, LG replaced mainboard for free.

BTW, do you have F240S?
[LG Optimus G Pro] idle0095:
Ill throw in $50 if we can do this and get AOKP and CM10.1 on board.
[LG Optimus G Pro] zohaer21:
I have F240L variant
[LG Optimus G Pro] fix-this!:
Id love some asop but to be honest id take just a modded, deodexed rom to.
[LG Optimus G Pro] fix-this!:
Well if you get the device and get this unlocked your gonna get most of your money back to. This phone will be a beast with the bootloder unlocked and some custom roms and kernels.
[LG Optimus G Pro] draiko913:
Thanks for all the work you guys have been doing on the OG Pro and posting the updates on how things are going. I don't have the skill to do what you guys are doing, but I do enjoy reading about what is and isn't working (even if there are a few things I don't completely understand) :)
[LG Optimus G Pro] zohaer21:
hey guys found this ..via google translate

looks really helpful….regarding the brick … its being called BLACKSCREEN brick

http://translate.google.com/transla...search?q=LGNPST+F240.dll&client=safari&rls=en
[LG Optimus G Pro] Funk2641:
Me too. All I want is a debloated stock rom.
[LG Optimus G Pro] ricco333:
+1, stock is not that bad, debloated will be perfect. :good:
[LG Optimus G Pro] fix-this!:
yup deblaoted and deodexed. i decided to keep my g pro and i sold my htc one. so im praying we get bootloader unlocked.
[LG Optimus G Pro] jprosek:
Yeah but cm10 would truly unlock the potential of this phone. I pray we have similar development to the original lgog...

Sent from my LG-E980 using Xparent Green Tapatalk 2
[LG Optimus G Pro] fix-this!:
Hopefully we hear some good news soon.
[LG Optimus G Pro] CXENTE:
I did the exact. Same thing.. this phone, feels better. . I couldn't stand, sense 5
[LG Optimus G Pro] kelvinl168:
sorry, i have to ask a few newbie questions. I just moved to android from an iphone. I did some research online, and it seems you need the unlock the bootloader to flash custom roms? But the chinese have been flashing custom roms on their korean version OGP, does that mean their bootloader is unlocked? And what are the chances of flashing the E980 radio into the F240s? Do they have to share the same model (MDM9615)?
[LG Optimus G Pro] trezegol:
i had my g pro 3 weeks before it came out on att i got it off someone that i think he didnt know what kind of phone was it :fingers-crossed: i dont know where it came from but its mine now:cyclops: anyways how can i check my bootloader i want to check to see if it might be unlock im it came off someone working for lg and was just testing the phone since its a WHITE att version and the imei its just one 0 never seen a phone like this before i can post some pics if you guys like and if it came with the bootloader unlock it can be of some help
[LG Optimus G Pro] lessthanzach:
Is it working? The s3 had issues where the imei could get wiped and it would show a zero. I've also never seen a white at&t version. You've got a special one pal. Cool.
[LG Optimus G Pro] trezegol:
yes works perfect its even unlock ny friend has tmobile i used hes simcard and got 4g on tmobile the phone is bone stock not even rooted or anything thats how i got it .. can someone tell me how to check the bootloader pls
[LG Optimus G Pro] madmack:
shut down phone, press vol+, home and keep pressing power. What happens? Do you get a black screen with nothing on it while the LEDs keep blinking different colors or do you see something else? What if you press vol- and power to boot up? do you get a factory reset prompt?
[LG Optimus G Pro] trezegol:
yup got black screen lights blinkin so i guess is not unlock right ? thanks
[LG Optimus G Pro] madmack:
it doesn't necessarily mean that. It just meant that your phone doesn't have a proper recovery in there. If you're rooted, I can give you a list of commands to dd (dump) some partitions of your phone for us to see if anything is indeed different in your phone :)
[LG Optimus G Pro] thecubed:
Just a quick status update: don't worry, we haven't forgotten about y'all :)

We're still working on a way to recover the phone through the qualcomm download mode (not LGNPST) so we can mess around with the SBLs a bit.

According to the documentation from LG, this phone appears to boot in insecure mode, so we can simply patch sbl1,2,and 3 to not check each other, then patch ABOOT (LK) as we please.

The problem is, if we touch SBL3 or anything above it, our only disaster recovery is qchsusb_dload mode. I haven't gotten any volunteers on even the Optimus G side of things to try unbricking yet, so it's still theory-only.

I'm also looking for anyone with experience in sniffing serial connections-- I could really use a dump of the serial communications that LGNPST sends to the phone when flashing a TOT file. I'm creating my own LGNPST in Python since I hate LGNPST.

I also meant to go by my local ATT store to see if they'd let me poke around with their demo unit (the manager knows me pretty well by now haha) but I didn't have time to do that yet. Perhaps I will tomorrow.

In regards to the white OG Pro in this thread -- nice find! If you're rooted, try to dump the sbl3 and aboot partitions. I severely doubt that phone is unlocked because of it's IMEI, but I suppose I shouldn't rule anything out just yet.

The IMEI being "0" may just indicate that it's EFS has been blanked, or some other modem-related issue though and nothing special.

I suppose we'll see soon ...
[LG Optimus G Pro] ap3604:
You are the man! :highfive:

If the OG Pro's bootloader can be unlocked the skys the limit :victory:
[LG Optimus G Pro] RaptorMD:
Thanks for the updates folks. Anxiously awaiting bootloader unlock :)
[LG Optimus G Pro] ReggieSmith:
I'll be willing to add $20 to this bounty. We need this done so we can get custom recovery and then more themes, etc.

I'm curious if the root method for the Optimus G worked perfectly for this phone, could it be a similar path for the bootloader? (Just asking...)
[LG Optimus G Pro] apascual89:
Ok I took the plunge, first LG phone. Let me know whatever I can do to help.
[LG Optimus G Pro] dnorthington:
Now we're in business ^^^ just need that bootloader cracked.
[LG Optimus G Pro] thecubed:
So, my local Best Buy and ATT stores both didn't have the phone in stock, or even a demo model out.

If anyone's willing to try messing around with their phone in QPST tomorrow, hit me up in #lg-optimus-g in Freenode.

Thanks!
[LG Optimus G Pro] trezegol:
i can root my phone and if some one can give me the steps to dump all that is needed.. about the imei been blank theres no sticker on the back of the phone with any numbers or anything like any normal phone i think this might be a prototype phone or something like that
[LG Optimus G Pro] rbf351:
i'm on Freenode, but they said you are sleeping, so whenever you get back on there i am willing to help out since i have a G Pro
[LG Optimus G Pro] Jasbo:
Glad to see TheCubed in here... He hacked our LG Revo's... im sure he'll get this one too. :) Then imma gonna buy it.
[LG Optimus G Pro] ztmike:
What's the bounty at? Usually when these types of threads are created the OP keeps the OP updated with the total bounty and who is going to donate ..
[LG Optimus G Pro] fix-this!:
i returned my g pro for the s4 for now. IF this gets unlocked ill probably buy again. i also still donate what i can for the efforts.
[LG Optimus G Pro] ap3604:
traitor!!!

;)
[LG Optimus G Pro] MrGriffdude:
Why did you do that?
[LG Optimus G Pro] fix-this!:
bottom line is better development for the s4 currently, even with a locked bootloader.
[LG Optimus G Pro] MrGriffdude:
I havent decided between this phone and the one for the very same reason
[LG Optimus G Pro] thecubed:
Heh, trust me, this phone *will* get unlocked, it's just a matter of time.

Since this phone boots in insecure mode, there's a 100% chance it gets unlocked at some point even if I'm unable to.

Right now the main issue is finding testers and my time. Unfortunately it takes quite a bit of time to unlock phones like this with 0 bricks, since with one wrong move and you've got a lovely doorstop haha.

The first step is to establish some baseline of recovery. We know LGNPST/LGFlash works, which is good. However, if we want to unlock this we'll need to patch the SBL stack since we don't have an engineering bootloader like the Mako's to simply flash blindly.

We know for sure that SBL3 does check the signature of ABOOT (LK) so far, and that is indicitve of the work that is next to come-- patching SBL1 to not check SBL2, and SBL2 to not check SBL3, and SBL3 to not check ABOOT, and ABOOT to not check anything.

We may even be able to modify the Mako's bootloader to work as well so we'll have fastboot commands, but we'd still have to patch the SBL stack since the ABOOT signature would become invalid after modifying it in any way.

For now, I don't want to touch anything above ABOOT without knowing that we can fix the phone if it drops to QPST (qhsusb_dload) mode. This should be fairly simple, however there (as usual) is a risk of a brick at any stage in the discovery process.

If we can pool enough donations together to get close to the cost of the phone, I'd be happy to purchase one to accelerate the unlocking process.

Again, I do apologize for the slow pace that this is currently going at, however it's definitely a slow-n-steady trot to the finish line from here ;)

-Tyler
[LG Optimus G Pro] apascual89:
Ok how do we go about getting the device ? What's the best way to pool together donations?
[LG Optimus G Pro] ap3604:
Take all the time you need Tyler, I simply appreciate your work and helping the community however long it takes :)
[LG Optimus G Pro] zohaer21:
hi

this thread i posted before …a lot of work has been done on this boot loader but the google chinese to english is slightly off..

take a look at it..may be it will help you out

http://translate.google.com/transla...search?q=LGNPST+F240.dll&client=safari&rls=en

cheers
[LG Optimus G Pro] thecubed:
Quick-ish update. I've begun the process of patching SBL1 to not check SBL2 and so on and so fourth.

Basically, I've got the SBL stack open in IDA Pro and am looking for an easy to replace something like a JNZ (jump if nonzero) with an unconditional jump. This would allow us to bypass the signature checking function entirely, or essentially 'nerf' it so that nomatter the return of the signature check function it would still jump to the next stage of loading the SBL.

In essence, I can patch all the SBLs to not check each other, then we can possibly modify the Mako's ABOOT to work with out SBL stack we'd be in business. I'd like to use the Mako's ABOOT since it has full fastboot functionality, however if we patch the SBL stack we could actually compile our own ABOOT from CodeAuroraForum's sources.

This is all a lot of work and time, and of course, without knowing if we can recover from this it could be a one-way trip down a brick road ;)

It's not super busy at work today, so if someone who's got a recent version of QPST installed and isn't worried about possibly bricking could contact me on IRC, that'd be excellent.

Thanks as usual for y'all's patience!
[LG Optimus G Pro] kelvinl168:
I have no idea what you did, but it sounds like alot of work. :p

Thanks for all your time and effort for doing this!
[LG Optimus G Pro] mrfeuss:
Thank you so much for all of your hard work. I wish I had the knowledge to be of any help. I'm planning to start learning about developing with this device (by the time I started modifying my Skyrocket the development community was extremely mature). If you know of any resources where I can get some knowledge and hopefully be of assistance, please let me know.
[LG Optimus G Pro] MaddMan420:
What kind of brick probability are we looking at, percentage wise? I have 5 days left before my 14 days with AT&T is up and wouldn't mind helping out the cause.
[LG Optimus G Pro] munchkers13:
Let's say ur screen is broken within those 14 days can we still take it back?
[LG Optimus G Pro] MaddMan420:
The way I've read it on AT&T's site is it basically needs to be in the same physical condition as it was when you took it out of the box. Software doesn't fall under the same terms.
[LG Optimus G Pro] MrNa5ty:
Hey bricked my phone already it was boot looping...and my phone wasnt being seen by my computer to type commands to unistall apk ..went to att store said it was charging then rebooted,wouldnt come up and gave me a brandnew one ....also they said in the future since u get a 1 year warrenty if it happen after 14 day..the warrenty would cover it since it was faulty and wouldnt boot up lol
[LG Optimus G Pro] lessthanzach:
How did you brick it?
[LG Optimus G Pro] MrNa5ty:
Was using some root tool lol and had an option to add virtual memory lol well that didnt work out to well
[LG Optimus G Pro] adizzle23:
Man it will b great when this beast gets unlocked, I think this is the best phone out right now by far.
[LG Optimus G Pro] Yuriy.Samorodov:
Sorry guys for sill question,

Is this phone ever going to be get AOSP-like ROM?

Cheers,
[LG Optimus G Pro] mrfeuss:
We still have a locked bootloader. We may start seeing custom ROMs if we get this thing unlocked, but at the moment we don't have that ability.