yashsingh1/xdaforums huggingface dataset:
[LG Optimus G (International)] surge27:
Ok thanks. Will try when home but it won't be for a few hours

---------- Post added at 06:39 PM ---------- Previous post was at 06:03 PM ----------

Probably gonna get stank eye for chatting on a night out but...

I've never had a LG before so for fastboot....hold power and volume up/down simultaneously? Assuming so because I got a download mode image

Any current LG owners out there that can confirm?
[LG Optimus G (International)] theytalkalot:
Awww yes....the stink eye..just tell them it is for a good cause... if they don't like it the couch is always there.....:(

Thank you for working on this... get mine Tuesday...
[LG Optimus G (International)] Shelnutt2:
I also have never owned an LG, but if it shows up when you do `fastboot devices` you are good.
[LG Optimus G (International)] surge27:
Really anxious to get this going tonight but need to get up really early. Just FYI...if not tonight for sure in the afternoon tomorrow.

:Flashing jitters:
[LG Optimus G (International)] fiddy619:
Here is a link to get to fastboot on the Optimus Pad (G-Slate). It might be the same process on the Optimus G... BTW the fastboot oem unlock DOES work on the Optimus Pad, soooo, Maybe this is easier than expected. I hope so, cuz I will be getting my Sprint version hopefully on the 9th (I pre-ordered, and release date is the 11th, which is a Sunday), and this would make it all that much better...
[LG Optimus G (International)] mbonus:
couldn't get into fastboot that way. Any other ideas?
[LG Optimus G (International)] Shelnutt2:
Check the manual with the phone, maybe it's listed that way? Did you try the adb reboot-bootloader to get you into the bootloader at least? From there you can just try different things to get into fastboot mode.
[LG Optimus G (International)] mbonus:
adb reboot-bootloader just restarted the phone

pwr vol+ vol- simultaneously entered download mode

pwr vol- blinked factory reset

pwr vol+ did nothing
[LG Optimus G (International)] thecubed:
Howdy Y'all,

Can we get the output of

adb shell "cat /proc/emmc"

and

adb shell "cat /proc/partitions"

That should tell us what is what, in relation to what LK (the bootloader on 90% of LG's phones) is passing to the Linux kernel.

I've looked through the dumps, we have SBL1-3 in there, but those are Qualcomm modem-related initialization routines, what matters is LK for our purposes.

(edit: missing a sentence here)

I don't see LK or any sort of bootloader in the dumps that were listed a page or two ago... it'd help if we got a listing of the partition names from the kernel first (i.e. my adb commands above)

It would appear that the SBLs have Qualcomm's signatures all over them, not sure if that's due to Qualcomm having the only signing keys for the modem and SBLs, or if LG got lazy and signed everything with Qualcomm's test key. If that's the case, it should be fairly easy to make this work.

In regards to entering fastboot, some LG devices won't actually enter fastboot unless there's an issue with the BOOT.IMG partition. A perfect example of this was the LG Revolution 4G on Verizon that I worked on. There was _no_ way to enter fastboot. There was only an "emergency mode" which was entered by holding (IIRC) volume down and power. LG's download tool LGNPST uses a fairly easy ASCII/Binary protocol which is easy to emulate from a python program I wrote. On the Revolution and many other LG phones, this is all plaintext and not sigchecked.

If anyone's interested, meet me on #lg-optimus-g in Freenode on IRC (I'm IOMonster there). I'd be happy to discuss what I know and what I don't. Keep in mind, I don't have a device so what I say now is purely speculation :)

Before I can speculate any further, it'd be great to have someone who has a device around.

Let's make this happen!

--thecubed
[LG Optimus G (International)] Shelnutt2:
That makes sense seeing there is a string saying.

In the zip uploaded to gdrive partition 5 has the bootloader.
[LG Optimus G (International)] mbonus:
I have a device, but not a lot of time, anything I can get you real quick?

I tried the commands listed above, but they didn't give me anything.
[LG Optimus G (International)] Shelnutt2:
If you wouldn't mind, can you send me images of two more partitions?

adb shell
su
dd if=/dev/block/mmcblk0p18 of=/sdcard/mmvblk0p18.img
dd if=/dev/block/mmcblk0p19 of=/sdcard/mmvblk0p19.img
[LG Optimus G (International)] surge27:
Hey thecubed,

What you said makes sense....tried several variations to get into fastboot with no luck.

Gotta give it another crack tomorrow. So, if you have some stuff for me to try...PM me.

Thanks!
[LG Optimus G (International)] synergye:
Hi guys, Optimus G users are still needed on the IRC chan and will be regularly while devs work toward an unlock. The chan is #lg-optimus-g on freenode, or you may click this link to use the webchat. http://webchat.freenode.net/?channels=lg-optimus-g . Please ping (type in the username) of IOMonster (the cubed) or shelnutt2 upon joining if you own the device and can test/provide files.

Thank you.

sent from codefireX
[LG Optimus G (International)] thecubed:
Could someone with an Optimus G try this (don't worry, no need for root, or worry about data):

1) boot the phone with volume up and down pressed

This will boot the phone to EMERGENCY MODE, don't worry. I think this might be a gateway to fastboot, as me and Shelnutt2 have been digging into the bootloader.

2) Take a picture of this screen.

I know it's weird, but it'll help me figure out if this message is coming from the bootloader, or a SBL.

Basically, if it's graphics and images, it's SBL, if it's just text that says:

Emergency Mode!!!
Good luck to you!

that's good news.

A picture is worth a thousand words, though.

3) Plug the phone while in emergency mode into a PC of some sort.

I'd like to ideally get a "lsusb" from a linux PC, which would give me the vendor ID and product ID and the device name, but if all you have on hand is Windows, just plug it in and go to device manager and tell me what you see.

If it enumerates as a Serial Port, it means we have to use my python program (which I'll probably need to fix). If it enumerates as something else, it might be fastboot... or it might be something more sinister.

If you *do* have an Optimus G, and can spare some time, pop in #lg-optimus-g and say hi :)

Thanks!
[LG Optimus G (International)] Alpione:
All- I'll have some time tomorrow to work this with you. New at Android, but plenty of experience with phones and Unix.
[LG Optimus G (International)] thecubed:
Interesting that it didn't pick it up in "Download Mode". Your PC may have assigned it a generic device ID (check under "Serial Ports", or even View -> By Connection and drill down until you find the usb root hub that the phone is plugged in to).

Getting into recovery mode is easy, and i think we might have limited success just trying to replace the recovery.img with an unsigned image...

However, we'd have to be SURE to enter recovery by "adb reboot recovery" rather than the volume key trick, since that sets the boot flag in MISC and it has to be cleared before the phone will boot normally again (else, we'd get stuck in a boot loop)

The trick is to get into fastboot still... once we get there, it might be as easy as "fastboot oem unlock".... or, the strings in mmcblk0p5 suggest a RSA cert unlock process, in which case... I don't want to think about that. :)

There are still a multitude of avenues to explore!

Also, thanks for your willingness to lend a quick hand for this-- you're a pioneer!

And now it's really 3am, that means it's time for me to go comatose for a few hours. I will be around tomorrow beginning 2PM PST, if anyone is willing to drop by the IRC channel, I'll be there and here in this thread.

Thanks y'all!
[LG Optimus G (International)] mbonus:
Just sent them, sorry it took so long.
[LG Optimus G (International)] Shelnutt2:
Did you email them to the same email as last time? I haven't received them yet.
[LG Optimus G (International)] xboxfanj:
Shellnut, the thing about deleting the boot.img here is that since the bootloader is locked, there may be no way to get it back, but for someone with insurance (or unlimited funds), you could have them delete all the ramdisk files (inits and ueventd's) and then all the files created by the kernel (like sys, dev, and more). Is there a way we could make it think that there's no boot.img? Unfortunately we're stuck without fastboot, since you can't edit the bootloader code and repack it since no one can flash it unless we use lgnpst.
[LG Optimus G (International)] Shelnutt2:
Well if boot.img is nuked, then we should be able to get to fastboot. And if we can get to fastboot we can just reflash boot.img from a dump of it, or extracted from a ruu. However if we nuke boot.img and it doesn't work, and we are stuck in limbo land, then yes we would need the device replaced until we can figure out a work around. If we don't get fastboot by next weekend I plan to do this though. I don't have insurance, but Sprint has a 3 days no question return policy (as long as their is no physical damage) and a 14 day regular return policy. So I'll get it sunday and monday I might have to go play dumb :angel:
[LG Optimus G (International)] surge27:
Ok...couple more hours and I'll get back to it.

Question, what percentage chance do I have of f'ing up the OG if I say bye bye to boot.img????
[LG Optimus G (International)] xboxfanj:
100% however if it boots to fastboot after that, you can restore it. If not, you are screwed.
[LG Optimus G (International)] Shelnutt2:
Probably 60/40. thecubed has more experience with LG and LK/SBLs than I do (only used heroc and touchpad) but from indications, if there is no boot.img it goes into emergency mode, which is the bootloader (lk). There we think you should get fastboot access and with fastboot we *might* be able to flash boot.img back onto the phone. However until it's tried we can't be sure. In other words, unless you are willing to have a dead phone do NOT wipe the boot image. For all we know this will brick the phone. If you aren't okay with that, again do not wipe boot.img.

Now chances are if you have insurance or such you can go back to AT&T can get a new phone, or maybe say that you installed the OTA update and your phone doesn't work anymore. However ymmv, and neither I nor thecubed can be held responsible.
[LG Optimus G (International)] adfurgerson:
Would this be of any use?

http://xdaforums.com/showthread.php?t=1687590
[LG Optimus G (International)] xboxfanj:
We would need a boot.img back up since there isn't a boot.img yet. If the kernel sources are up, just adb pull /init.rc and the device specific init and ueventd (not sure what the code names are. I will look back in the thread.)

Edit: I see there's a lot of them. Please pull all the ueventd and init files and then I can try to make a boot.img if I can find the kernel source.
[LG Optimus G (International)] Shelnutt2:
At least on the at&t version that isn't needed. We have full root access through adb.
[LG Optimus G (International)] mbonus:
just re-sent them manually. I tried via root browser lite earlier....I guess it didn't work. :confused:
[LG Optimus G (International)] Shelnutt2:
Yup just got it, unfortunatly those aren't the boot partition :(.

If you don't mind, I'm just gonna have you (or anyone else) grab the rest of the ones bellow 100mb, so we don't have to keep asking for things.

dd if=/dev/block/mmcblk0p1 of=/sdcard/mmcblk0p1.img
dd if=/dev/block/mmcblk0p15 of=/sdcard/mmcblk0p15.img
dd if=/dev/block/mmcblk0p16 of=/sdcard/mmcblk0p16.img
dd if=/dev/block/mmcblk0p25 of=/sdcard/mmcblk0p25.img
dd if=/dev/block/mmcblk0p27 of=/sdcard/mmcblk0p27.img
dd if=/dev/block/mmcblk0p30 of=/sdcard/mmcblk0p30.img
dd if=/dev/block/mmcblk0p31 of=/sdcard/mmcblk0p31.img
dd if=/dev/block/mmcblk0p7 of=/sdcard/mmcblk0p7.img
dd if=/dev/block/mmcblk0p9 of=/sdcard/mmcblk0p9.img

If that ends up being too big to email I can give someone ftp details if you dont' want to use a hosting site.
[LG Optimus G (International)] xboxfanj:
Apparently, the Sprint Optimus G's source is available, but not AT&T's, so I will try to build with AT&T's defconfig.
[LG Optimus G (International)] mbonus:
ok, give me few min....
[LG Optimus G (International)] xboxfanj:
I know what Sprints defconfig is (j1-spr), but not sure about AT&T's... I would assume it's j1-a, but not sure, since there's 15 defconfigs.

I'm downloading the Nitro HD sources so I can see their naming conventions for AT&T devices.
[LG Optimus G (International)] mbonus:
sent you a link
[LG Optimus G (International)] Shelnutt2:
Big thanks to mbonus!

For all those interested here is a .tar of the bootloader, and the boot.img.

http://jellybean.dccontests.com/optimusg/optimusg-bootloader-boot_img.tar.gz
[LG Optimus G (International)] xboxfanj:
This is the recovery image... not the boot.img.

At least the one Shellnut unpacked is recovery.img. That's why it looks so weird.
[LG Optimus G (International)] ebosian:
I have been checking this thread regularly. I appreciate the work you guys are doing to unlock the bootloader in the Optimus G. I haven't had a personal Android before, and depending if the bootloader gets unlocked, I will be moving from my current platform to Android this time around.

The current platform I use does not have the specs of the LG Optimus G, but I can not see changing eco systems just for specs alone. I need to have more freedom in usability to push the needle.

Good Will Hunting!
[LG Optimus G (International)] Alpione:
Ok guys. So what do I need to do to help? Not rooted yet, but I assume that's the first step. Heading over to that thread next. And installing adb.

A
[LG Optimus G (International)] thecubed:
Alright, so I just got up.

I'm gonna look at the recovery unpacked image to see if there's a way for us to get ADB access in there, AND to see if it's possible that there are any backdoors available in it. Recovery.img will also contain the reboot codes we can use-- most of the time they use manufacture specific reboot codes which we might be able to use for fun :)

Anyway, I'll get to this in a few hours :)
[LG Optimus G (International)] surge27:
I could probably (gulp) give this a shot. Just for the record, I would never hold anyone responsible.

I wanna make this happen as much as anyone here.

If able to flash boot image back, than I would probably be more comfortable trying this method
[LG Optimus G (International)] Snow_fox:
If you do find the reboot codes, would that mean we'd be able to force a phone into download mode?
[LG Optimus G (International)] thecubed:
We've got more ideas first, hop in IRC :)

I'd like to explore download mode some more first, since right now that's our best chance of recovering a bricked phone should this go south quick.
[LG Optimus G (International)] xboxfanj:
and even better... maybe into fastboot/bootloader mode
[LG Optimus G (International)] thecubed:
Ok, so AWESOME news... apparently ADB runs as root in recovery. Special thanks to Alpione_ on IRC for helping with this :)

This means flashing unsigned zips is as easy as modifying /res/keys with clockwork's keys, and flashing whatever we want.

Alright, back to haxxoring.
[LG Optimus G (International)] Snow_fox:
um. you may want to remove that just in the off chance eyes are watching and could fix that through a patch..
[LG Optimus G (International)] thecubed:
It really doesn't matter at this point in time-- there will be 1001 other people who come to this same conclusion.
[LG Optimus G (International)] Snow_fox:
Alright, I suppose that makes sense.

Let's just say they issue a patch for this between now and the time I get my upgrade in December, will there be any way to revert the phone to the older version?

Like, hypothetically they patch this.. Could I just put a phone into download mode, flash this older signed version of the OS and then use the same exploit you guys are using now?
[LG Optimus G (International)] thecubed:
Quite likely.
[LG Optimus G (International)] Snow_fox:
Then I suppose I won't stress out about getting a device as soon as possible.

I'm so glad this phone is working out.
[LG Optimus G (International)] Alpione:
Woot!

A
[LG Optimus G (International)] thecubed:
Status update:

We now have the stock firmware image for the Sprint and ATT versions, along with the LGNPST driver.

Extra special thanks to user "sextape" for this. He's an awesome guy. Stop by IRC and thank him :)

I'm working on ensuring that we can recover the phone from a failed unlocking attempt right now... More updates to come.
[LG Optimus G (International)] tdamocles:
I'm excited about this and I don't even have this phone!
[LG Optimus G (International)] Snow_fox:
Still in #team-legacy?
[LG Optimus G (International)] Alpione:
#lg-optimus-g

Lots of progress already. Groovy.

A
[LG Optimus G (International)] xboxfanj:
Sextape's paypal email is Donations@sxtp-forum.com

So hit him up with donations. Without him, there may have been no chance for an unlocked bootloader
[LG Optimus G (International)] thecubed:
Status update: I'm installing a windows7 VM so I can look over a few things regarding firmware restore.

I want to be 9001% sure that I can recover a phone if we break it while experimenting.

I may pick up this phone tomorrow if it's in stock, then we'll see development pick up.. FAST. :)
[LG Optimus G (International)] Scotty_Two:
OVER 9000!!!
[LG Optimus G (International)] surge27:
Hope you get one
[LG Optimus G (International)] riceatusc:
I'll be getting the sprint variant. Hopefully you guys will have something by then, if not I'll see if there is any thing I can do.
[LG Optimus G (International)] neuroh:
Thecubed

Thecubed are you getting the AT&T version, supposably there is already a way to root the sprint version. I have the AT&T version just waiting on being able to root. I just picked up yesterday.
[LG Optimus G (International)] Broken:
I have rooted my At&t optimus G. It is in the at&t section....
[LG Optimus G (International)] surge27:
Root method works for ATT also
[LG Optimus G (International)] thecubed:
Ok, so I just bought the ATT version off contract. Yowza this thing's nice.

My screen seems to have a strange defect though, it retains ghost images (light text on dark background 'sticks' when viewing other things)...

It's ok, this might be a sacrificial phone :)

14 days is a long time :)
[LG Optimus G (International)] surge27:
Has there been a sacrifice yet? Lol
[LG Optimus G (International)] mbonus:
Did you stay up all night working on your new phone? :)
[LG Optimus G (International)] thecubed:
SO: Mixed (but awesome) news!

I have enabled fastboot the reckless way, and found that "fastboot oem unlock" does nothing.

Flashing and booting an unsigned image only gives us "secure booting error" "cause: boot certification verify"

HOWEVER, strangely enough, fastboot BOOT will boot anything :)

So, we have a tethered unlock for the time being.

I'll give more updates as they come, as usual.
[LG Optimus G (International)] mdubs:
Won't lie, watching this really closely. Up for an upgrade in Sprint and would love to get this device over the gs3.

Loads of thanks to everyone trying to open this device up the way it should have come from the manufacturer.
[LG Optimus G (International)] Alpione:
It's been fun to watch the progress on this.

Sent from my LG Optimus G.
[LG Optimus G (International)] smashcz:
I'm excited now, will donate when it's unlocked, thanks guys
[LG Optimus G (International)] xboxfanj:
Make sure to donate to sextape as well. Without him, this wouldn't have been possible. His donation link is in my sig.
[LG Optimus G (International)] ShotSkydiver:
Any news on this?
[LG Optimus G (International)] thecubed:
Ok, here's something you might wanna check out :)

Sorry for the teaser only though... I don't wanna release something that has the potential to help a n00b brick their phones because of carelessness. However, talk to me on IRC if you _need_ a build. I'll be happy to help.

http://xdaforums.com/showthread.php?p=33839172#post33839172
[LG Optimus G (International)] Thor_BR:
You sir, just made me spend $600.

Got the phone as soon as I finished your video.

Kudos.
[LG Optimus G (International)] ShotSkydiver:
You are a god.
[LG Optimus G (International)] firstness:
Is there any chance of the root/unlock developed for the AT&T version working on the Rogers Optimus G 2600?

According to the spec page the Rogers version has 700/2600 MHz LTE, 32 GB internal storage and 8.0 MP camera.
[LG Optimus G (International)] thecubed:
Howdy everyone!

I have released my tethered build of CWM for the ATT Optimus G on my thread here: http://xdaforums.com/showthread.php?t=1979996

I'm posting this here just in case anyone isn't subscribed to my other threads, and would like a notification.

Thanks!
[Galaxy Note II Q&A, Help & Troubleshooting] Djamel.K:
By Galaxy Note 2 is stuck in a bootloop on where it says "Samsung Galaxy Note II GT_N7100, It started after i installed chainfire 3D and the device attempeted to reboot, PLEASE HELP WHAT DO I DO?
[Galaxy Note II Q&A, Help & Troubleshooting] gee2012:
Reboot in recovery and do a data/factory reset, wipe cache and dalvik cache and reboot. Chainfire 3D doesn`t work on Jellybean afaik.
[Galaxy Note II Q&A, Help & Troubleshooting] Djamel.K:
It didn't work, its still stuck on boot
[Galaxy Note II Q&A, Help & Troubleshooting] eng.rego:
Why do u make double posts? I answered u in the other post..

↖(^▽^)↗ Sent From Rego Galaxy Note!! ↖(^▽^)↗
[T-Mobile, Samsung Galaxy SIII] Woody:
Proof that these things work. Stock battery by the way. Sorry for the huge pix. I'll tag them with a Hide Parse for better viewing real estate.

Battery screenshots as of 12/13/12

View attachment 1561698View attachment 1561700View attachment 1561701

Change Log:

9 August 13 -Added in Greenify, Tasker, Kernel settings, cleaned up a bit.

13 December 12 - Added more battery screenies

2 November 12 - Initial Post

***********

If anyone has any tips or tricks that they want to share, by all means post them in here and I will link it in the OP. We are all in this together.
[T-Mobile, Samsung Galaxy SIII] lazarat:
After reading this posts I am afraid to even use my phone cuz battery will drain lol jkjk! Thanks great thread!
[T-Mobile, Samsung Galaxy SIII] DocHoliday77:
Awesome thread man! Really glad to see you brought it over here!

Thanks for taking the time! I know it'll come in very handy for just about everyone.

Great job on a great guide!

:thumbup::thumbup::cool:
[T-Mobile, Samsung Galaxy SIII] dmarco:
Awesome guide.. We thank you :)
[T-Mobile, Samsung Galaxy SIII] nnklem:
This is some really great information. Thank you for taking the time to share it with everybody.
[T-Mobile, Samsung Galaxy SIII] DocHoliday77:
I knew it wouldn't take long for this to get to the top!

:thumbup::cool:
[T-Mobile, Samsung Galaxy SIII] IXChicharitoXI:
Great thread thank you
[T-Mobile, Samsung Galaxy SIII] mypenismighty:
I wanted to warn people that LBE Privacy Guard caused crazy boot loops for me. The reviews from the Play Store suggests that it's a Jellybean issue. Anyway, I was able to go into recovery, fix permissions, and force stop and uninstall before it went crazy again. Other than that, thanks for the great tips!
[T-Mobile, Samsung Galaxy SIII] iwillkillyou:
Woodrube good post, I remember seeing this in the vibrant section. Keep up the good work mod.
[T-Mobile, Samsung Galaxy SIII] Woody:
Thanks man. I ported the meat and bones of it over, but I added a ton of stuff specific to the SGS3, plus the sections about Governors and I/O schedulers.

If anyone reads this, I could use more OC/UV examples to put in the OP. It would be much appreciated.
[T-Mobile, Samsung Galaxy SIII] neim81094:
This is great, what really got me is how the phone doesnt automatically go to the best tower for the best signal, so I will defnitely start toggling airplane mode when I travel, thanks a lot for all this helpful information and apps that can help up save battery as much as possible!:D
[T-Mobile, Samsung Galaxy SIII] Arlanthir:
Be sure to turn off Latitude updates in

Maps > Menu > Settings > Location settings > Location reporting > Do not update your location
[T-Mobile, Samsung Galaxy SIII] masterex567:
Already on the portal.

Great Great Great!

Thanks a lot. :D