yashsingh1/xdaforums huggingface dataset:
[AT&T LG Optimus G] peaceburn:
Did anyone ever looked inside the tot files? How much of a deal is fixing the 8gb vs 16gb issue?

I started looking into that last night, found where the partition table is, made some calculations, but I'm just curious if anyone looked at that? Is it a lost cause to go this way or it's just matter of fixing the partition table to give the userdata partition more blocks and fix the checksums of the gpt partiotion header?

Cause seeing most of other issues got fixed (ext. sd, hardware keys, etc.) probably this is something we can fix in the tot file itself?
[AT&T LG Optimus G] BoostedSR20:
I've been really content with AOKP... I might have to look at PA3...

Anyone using the franco kernel with it?
[AT&T LG Optimus G] dvhexer:
I was looking into it. I just took a break fixing more important things like ext sd and capacitive buttons. Now I'm back to it.

Thanks to xonar_ and others we know the format of the tot file. This is a link to xonar_'s great tool: http://xdaforums.com/showthread.php?t=1879915

The format of the tot is pretty simple. The only unknown seems to be what xonar_ calls magic numbers: 4 bytes at offset 8 of the file. Might me a checksum?

I have both gpts ready to be dumped into the tot. Some modifications are needed in a header of the tot as well.

The problem is in testing :D
[AT&T LG Optimus G] peaceburn:
heheh, good job man, I just found xonar_ thread half an hour ago, was reading through his sources.

Sounds good you even have the fixed partition table and all... but you're damn right about being scared testing this for real :))

I don't know how it works here, but on the captivate as long as you didn't flash the booloaders you were safe from bricking - i.e. you could always get to download mode and ODIN stuff. Not entirely sure if this is the same thing here on lgog?

I'm not sure I understand the boot seq on the lgog, but does the tot file also contain bootloaders? Maybe we can modify the tot files and remove the bootloaders, so to make sure we always have working bootloader to flash a working gpts?

I'm sure I'm getting way over my head here with this discussion, might as learning exercise rewrite xonar_ tool in java, just to get better understanding of the tot files and build on that stuff... it'll be nice to create a flashable stock that doesn't involve bricking risk :)

Stan
[AT&T LG Optimus G] SnowLeopardJB:
That is the whole issue with this method. The Nexus 4 conversion overwrites the entire bootloader chain, making it extremely dangerous to do. If one does not work correctly, it is almost definitely going to be a hard brick. And I would not suggest modifying the tot files, as that would almost certainly result in a brick if done incorrectly.

EDIT:

Actually, that's not the whole issue, but one of the largest.
[AT&T LG Optimus G] peaceburn:
I understand your concerns, and thats why I want to try to figure out the tot format, to see if its possible at all to remove these bootloaders from there - so when flashing, it would actually flash only MBR and partitions.

I would definitely not try to flash anything, but rather research and see if its doable :) Will ask questions here though :)
[AT&T LG Optimus G] xboxfanj:
The tot has sbls and aboot, but the optimus is compatible with the nexus ones. The main issue is partition map.
[AT&T LG Optimus G] theshamrockking:
Can this be done to the Sprint variant? Can't find it anywhere over there.

Oh and I don't need the radio to work it is just a WiFi device for me.

Sent from my LG-Optimus G
[AT&T LG Optimus G] Shelnutt2:
No, don't do it on sprint. Don't do it on att either :).
[AT&T LG Optimus G] Jakeroxs:
Yes you can do it on att version and it works great.
[AT&T LG Optimus G] dvhexer:
My intention was not to remove sbls, rpm etc but to modify gpts and the offset of the secondary gpt in the tot. So the conversion to 16G can be done in one step by LGNPSTing the modified tot. You would still need to use LGNPST, so probably there is some chance of a brick. I don't really know how stable LGNPST is, used it only several times and had no problems. But it is clear that you'll need a stable PC hardware with battery backup in case of power loss/surge.

I previously said, the only unknown things in tot for me are magic numbers. I'm pretty sure they are some kind of checksums of some part of tot, probably a tot header or a part of tot header. I could not figure it out yet. I did not try to flash a modified tot, I believe LGNPST would not flash it if checksums are incorrent. But if anyone wants to try (chance of a brick!!!!) I can give them the modified tot with uncorrected checksums.

If someone can figure out checksums, let me know. Another option is to crack LGNPST to ignore checksums.

I do have working partition tables for 16G internal memory. I have them in my phone for more than a week now and I'm 100% confident in them.

For my conversion I used standard busybox dd (but modified by myself to support files >4G) to dump my gpts directly to /dev/block/mmcblk0

I can give more details but at the same time I don't want people to brick their phones in case I'm not clear about something or their mistakes.

At the same time I hate the conspiracy around the development for this phone as whiteguypl noticed in Q&A forum, so I will probably write up a step-by-step how-to extend usable internal memory to 16G, but it's not for everybody and you'll need to understand what it does and I'm not responsible for any damage. If someone wants to script it, you're very welcome! This is a development forum after all!

Also, I contacted MobileTechVideos, they can JTAG unbrick our phones and in case you want they can flash 16G N4 partition tables and Nexus 4 firmware.

PS

houston and sk8er will probably release some aosp roms soon which don't need any conversion. So if you're not a hardcore hacker just ignore what I wrote here and wait for their roms. As for me, I'm not going back to stock partitions/bootloaders and will support the conversion roms as long as I have the phone and as much as I can. Also any N4 roms would work without any modifications anyway, except ext SD/capacitive keys/video-out/nfc and maybe some other minor things.
[AT&T LG Optimus G] Dsmforlife92:
That's awesome work man thanks
[AT&T LG Optimus G] peaceburn:
Hey, great job man :)

This sounds really great, you seem to have figure it all out now :) I tried to code some stuff, but without much success.

And also great news on the MobileTechVideos being onboard, remember them from the captivate times, they were helping unbrick many phones.
[AT&T LG Optimus G] ripbabey:
Wish I was not such a noob. I can root, unlock, flash recovery, and ROMs. I have some adb knowledge, I wish there was a way a noob like me can do this conversion . I keep wanting to attempt, but I clearly states not to in the intro lol. Good work devs, hopefully you can make a way for us noobs to feel this love!
[AT&T LG Optimus G] ShadowCodeGaming:
Best hack of 2013

This message was sent by a happy HTC user
[AT&T LG Optimus G] xxgmon3yxx:
Cant wait to try it! I'm also planning on staying on the conversion and take advantage of the endless possibilities, 4.2.2 is already out 5.0 is around the corner and the conversion will support those updates out the box, but like you said this isnt for everyone but I dont like to wait for for the latest and greatest if that was the case I would of bought me a gs3. LMAO. conversion is the way to go! love it or hate it!

PS

nothing against other devs but I wish there were more of them working on the conversion... I know they dont want to risk the user bricking their device, but if you think about it the choice lies within the user and there are some of us that are willing to take risks to make our device the best one out there. Not that it matters that much anymore since dvhexer seems to have tackled most of the major issues now, but like I said if I wanted a 4.1.2 aosp rom I would of bought me a gs3... PEACE!
[AT&T LG Optimus G] hackedout:
Thank you all for staying with the conversion. My daily driver is cm10 with all the fix,s. The Nexus setup makes the whole UI run smoother if you never get the whole 16 gig,s working ill still run the conversion for daily use. When you do get it working its gona be awesome. Thanks.
[AT&T LG Optimus G] tdnick:
Just converted again and wanted to flash PA 2.99 but I couldn't get it to flash. It kept failing in installation. Anyways, flashed the CM10.1 with the fixes and it works great. If anyone has any info on PA, please let me know
[AT&T LG Optimus G] jimi_pooh:
Sorry if this has been stated earlier, but are you using a N4 recovery or SK8s? I was getting failure too on some of the N4 ROMS. Not PA but others because i was using SK8s recovery.
[AT&T LG Optimus G] tdnick:
Ah I was using Sk8s. I'll try with an N4. Thanks
[AT&T LG Optimus G] mfknboss:
My following is off topic, but think there will be a xperia z conversion? :cool:

Sent from my Nexus G
[AT&T LG Optimus G] MrZim4:
I would doubt it. Lgnpst is the LG way to restore messed up phones, from what I've gathered. And since the lgog and n4 are nearly identical it made this conversion possible
[AT&T LG Optimus G] mfknboss:
Maybe im mistake but i could have swore the Z has the same chipset as these? Or is that not enough for a conversion? :confused:

Sent from my Nexus G
[AT&T LG Optimus G] MrZim4:
I couldn't tell you what exactly is required. I think it just so happened to work because theyre pretty much the same phone in a different case. Being made by the same manufacturer also probably helped a lot too
[AT&T LG Optimus G] mfknboss:
Ok :):beer:

Sent from my Nexus G
[AT&T LG Optimus G] div3rg3nt:
I know what you mean, but the barrier to entry to mod your phone had gotten so low now people who shouldn't be modding their phones are. the results of that causes undue grief in the thread, so I can see some of the hesitation around sharing certain pieces info.

That's the same reason why I don't suggest modding in general to friends or family any more - I don't want to be responsible for fixing it when it breaks.
[AT&T LG Optimus G] DeathmonkeyGTX:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^this x 9999999999999999999999999999999999999999999999

There really should be a reading comprehension test before download links show up.
[AT&T LG Optimus G] MrPlNK:
Just saying... The conversion was definitely worth it.. Way easier than some make it seem. I was drunk when I did mine lmao

Sent from my Neximus G
[AT&T LG Optimus G] div3rg3nt:
Maybe we should fall back to usenet and private IRC servers.. no ... BBS FTW!
[AT&T LG Optimus G] DeathmonkeyGTX:
BBS was before my time. I'm 24 and didn't become a desktop pc and Internet nerd until 1994 when we got a dialup modem at my house instead of just at my mom's law office.
[AT&T LG Optimus G] Alpione:
Ahh, the good ole BBS scene. I did a ton of that in the early-mid 90s. We ran 8 16.8k POTS lines with a dual-channel ISDN to the Internet. Good stuff.

Now, trying to decide whether to do this N4 conversion or not. :) The Canadian/Int JB install hasn't been reliable for me and need to go somewhere else. Hmmm.

A
[AT&T LG Optimus G] MrPlNK:
Join the dark side :) its worth it

Sent from my Neximus G
[AT&T LG Optimus G] Dsmforlife92:
If we dont get some kind of aosp or cm ROM in a week or so I'm doing the conversion. It so quiet in the dev section and the devs are real quite of what they are working on, they tell us to use the irc channel but there's so much text in there you cant really find any thing. Thanks for every one hard work
[AT&T LG Optimus G] Drewman294:
No kidding! I really want to get a taste of this conversion but I don't know how well my luck will be with the process. Different people get different results.

Sent from my LG Optimus Me
[AT&T LG Optimus G] tdnick:
The dark side is the right side :p
[AT&T LG Optimus G] TangoXray:
It sounds like people have been coming and going between the conversion and stock. Haven't heard of any bricks, there are fixes for the broken stuff. Just do it!

Personally, I'm waiting for AOSP. It's so close ;)
[AT&T LG Optimus G] Drewman294:
Are you currently using a nexus 4 rom?

Sent from my LG Optimus Me
[AT&T LG Optimus G] TangoXray:
I haven't done the conversion, and don't plan to.
[AT&T LG Optimus G] Drewman294:
Ohh okay. Yeah I have mixed feelings. I feel that big things are just around the corner, just gotta be patient.

Sent from my LG Optimus Me
[AT&T LG Optimus G] shreyaj:
i cant find dll file named lgnpst_ls970.dll. i have only one option which is utility_costom2 and when i try flashing choosing that dll it gives me a Error (ERROR:unable loading port component).
[AT&T LG Optimus G] MrPlNK:
You have to look around and download lgnpst_ls970.dll I had the same issue.. Look around I forgot where I found mine. Also a trick that gag had told me when I did mine, when it finishes and trys to boot and it doesnt, turn it off and boot into boot loader by holding volume up and power and from go into recovery by fiddling with volume buttons and power button (took A minute or two of fiddling) and once in recovery do a factory reset and it should boot up and be good to go!

Sent from my Neximus G
[AT&T LG Optimus G] xboxfanj:
Just use the automated install... makes things easier. Everything is set up that way.
[AT&T LG Optimus G] Dsmforlife92:
Where you get that at
[AT&T LG Optimus G] Mike724:
I got mine from the IRC channel
[AT&T LG Optimus G] xboxfanj:
Irc. I've got a whole guide there.
[AT&T LG Optimus G] idaho4045:
what IRC channel?? it wasnt 100% specified from what i remember reading

might i also add a huge thanks to all the Dev's and the community that have helped every way that they can to make this possible..

also lol i read all (74 pages according to the XDA app on my LGOG) and the overwhelming amount of info and the splashes of drama and mouth running throughout this whole thread has made it well worth the read... BUT it is also a lot to take in... and I cant help but agree that everyone should be redirected to the youtube video (XDA NOOB) everytime they go to post a comment on a thread lol..

and again a huge shout out and thanks to all the DEV'S and the community that make AWESOMELY INSANE stuff like this possible!!
[AT&T LG Optimus G] MrZim4:
Free node irc

Channel #lg-optimus-g
[AT&T LG Optimus G] idaho4045:
how do i get this from the IRC channel??
[AT&T LG Optimus G] MrZim4:
Link at the top of the page. I think it says something like lgnpst tutorial or guide
[AT&T LG Optimus G] ChiefWilNel:
just curious what does the n4 conversion give you over the orginal other than the obvious broken things.
[AT&T LG Optimus G] dnorthington:
AOSP ROMs.
[AT&T LG Optimus G] xboxfanj:
Yeah something like that. I wrote the guide so if it confuses you, just let me know and I can clear it up.
[AT&T LG Optimus G] Alpione:
If you're talking about the one on pastebin, I had no probs going through the guide last week. Thanks for putting it up there.

Sent from my LG Optimus G...
[AT&T LG Optimus G] ryfermadness:
The conversion is simple if you follow each step. The payoff is huge cause the N4 community is thriving.
[AT&T LG Optimus G] ChiefWilNel:
what exactally IS the payoff?
[AT&T LG Optimus G] compta5:
They Should Add This To The OP.
[AT&T LG Optimus G] blenkows:
AOSP ROMs.... Like the guy told you.

Or are you basically asking what those are?

____

Sent from my LG Original Gangsta
[AT&T LG Optimus G] Dr0!dFreek:
...................go away please........
[AT&T LG Optimus G] xboxfanj:
OK cool.
[AT&T LG Optimus G] tdnick:
Large amount of Roms/development? Cmon man
[AT&T LG Optimus G] Dsmforlife92:
I would do the conversion if we could use all 16g and SD card on all ROMs
[AT&T LG Optimus G] idaho4045:
BoostedSR20

hey man im having issues figuring out your added steps... ive done the conversion as stated in the tutorial and i am stuck on the Bootlooping X ive booted into recovery but there are no options ive even pressed the Vol key and Power key as you told someone else to do, to bring up the "menu" and there is no menu.. im also confuesed by your "Flash-all bin step.. could you possibly be a little more detailed on the steps?

I am fully aware that Fastboot -w does not work.. i gave it a shot anyway... and it didnt work either..

thanks for the help in advance!

(Originally Posted by BoostedSR20

I'll be damned, it worked! And booted in less than a minute. I had a good idea that it was working when the Google logo only stayed on for a few seconds instead of 30+ seconds.

This should be added to the OP?

My method:

LGNPST N4 conversion

Didn't even wait for it to boot, just went to bootloader and ran "flash-all" bat for the new files

again, didn't wait just went to bootloader, recovery, factory reset

reboot

booted in under a minute)
[AT&T LG Optimus G] Jakeroxs:
Sdcard is working on all roms (have to add a few files into whatever rom you want to use) and the 16gb fix is being "worked on" I believe.
[AT&T LG Optimus G] dnorthington:
AOSP is the way Google and jesus intended it.

Manufacturers skins are the way LG, Motorola, etc and the devil intended it.
[AT&T LG Optimus G] Dsmforlife92:
I thought that was for just 4.2.1 ROMs and aosp
[AT&T LG Optimus G] idaho4045:
ok im trying the Nexus toolkit now to install CWM recovery and then doing a wipe factory reset in recovery and rebooting... will post back when i figure it out..
[AT&T LG Optimus G] xxgmon3yxx:
LMAO!!! 100% the truth!
[AT&T LG Optimus G] idaho4045:
ok running the toolkit to install the Nexus 4 CWM recovery didnt work???.. do i need to install the LGOG CWM recovery?? i thought with doing the full Nexus conversion means you run everything like you would on the nexus 4?? can someone help me out with this?? shed some light on what im doin?
[AT&T LG Optimus G] div3rg3nt:
Going to answer, just please promise to not use that many question marks again, k?

Use this recovery:

http://xdaforums.com/showthread.php?t=2010984

Open the zip, copy the recovery.img out of it and put it on c:\ of your computer

put your phone in fastboot mode, run this command

fastboot flash recovery c:\recovery.img

use the volume keys on your phone to select recovery
[AT&T LG Optimus G] Mike724:
I've noticed I need to use the Nexus 4 recovery (TWRP specifically for the Nexus 4) to install ROMs like ParanoidAndroid (if you use the LGOG version of TWRP it won't work because it will be recognized as a different device). I'm not sure if CWM recovery does this.

So, if anyone gets an error about failing a device check or something along those lines (when trying to flash something), it's because you need a Nexus 4 recovery.
[AT&T LG Optimus G] idaho4045:
awesome thanks I apologize for the abundance of "?" I tend to get a little carried away with them sometimes.. again thank you.
[AT&T LG Optimus G] jblazea50:
Quick question about Sprint version conversion: If I do the conversion, will I be able to access the 32gb internal drive? Will I be able to use LTE?

Thanks
[AT&T LG Optimus G] xxgmon3yxx:
probably wont be able to get the full 32gb, I'm no sure about LTE you might want to ask that in the sprint forums.. You might be able to flash the LGOG modem over after you convert, at least that is how it works on ATT.
[AT&T LG Optimus G] ripbabey:
You have access to any n4 ROMs, Google will always be good at updating their software, ect.

I have been tempted to do it many times, but I keep hearing aosp is right around the corner, once that comes out, there will be no reason to convert.

Its not about what you know , but who you know.
[AT&T LG Optimus G] idaho4045:
this is for the AT&T version of the phone ONLY..from what ive read in this thread doing this with the sprint version of the phone will BRICK the phone until this gets ironed out and all the kinks worked out they will not be releasing the Sprint Version of this conversion....

also i did what you said and installed the recovery you posted and im still stuck at the bootlooping X screen... ive wiped everything i can.. i even once the conversion was done and it attempted to boot i even put it in fastboot mode as soon as it hit the boot up screen and installed the recovery and then factory data reset and rebooted.. and its still looping.. i even went back to the LGOG stuff and redid the whole conversion and installed the recovery right after the conversion was done factory reset ect and it still is boot looping.. am I missing something?

---------- Post added at 11:46 PM ---------- Previous post was at 11:10 PM ----------

can you post the link to the Recovery that your using.. I've tried a few different ones and I'm still stuck in the bootlooped X screen.. also if you could maybe post what you did to get your's working after the conversion was done that would be awesome as well. I've looked at a followed a handful of guides on this with no luck I always end up stuck at the same screen..

Thanks in Advance
[AT&T LG Optimus G] idaho4045:
ok I've redone the whole conversion when the boot up screen (the nexus X screen) popped up i help vol up and the power button to boot into fastboot mode then installed the TWRP 2.3.2.3 recovery.. then i pressed the vol button till it said Recovery then pressed the power button and the google logo popped up with the unlocked padlock at the bottom then the phone reset and tried to boot up I cant seem to get the Recovery to boot... atleast not TWRP 2.3.2.3... CWM 6.0.1.9 boots up just fine but still wont let me boot up it just boot loops at the (Nexus X screen)

any idea whats going on?
[AT&T LG Optimus G] tdnick:
Idk but this last time I converted, the only way I could get in recovery was through adb. It works like its supposed to, I just can't get to it any other way for some reason. Not a big deal to me though
[AT&T LG Optimus G] Dr0!dFreek:
Use the nexus 4 toolkit
[AT&T LG Optimus G] Jakeroxs:
Hold on, I'll share what I did to get my converted phone running in a moment.

Follow THIS tutorial right after you convert (I didn't even let it boot once)
[AT&T LG Optimus G] idaho4045:
I have..

(How I've used the tool kit thus far)

I've used the LGNPST to do the conversion after it hits 85% i close out of it just like the Tutorial says

I then wait till the Google logo with the padlock at the bottom of the screen goes away and the Nexus X boot screen pops up

(at this point I have let the phone sit for like 30 min and try to boot and it hasn't, I've also waited for the Nexus X boot screen to pop up then held down the Volume Up key and the power key to boot it into fastboot)

Then after the phone has booted into fastboot I have opened the tool kit ran Option 6 (Flash Recovery [custom or stock Recovery]

i have then chose both Option 1. Flash Clockworkmod Touch Recovery 6.0.1.9 (which then installs and I am able to boot into the custom recovery) and I have been able to Wipe/factory reset, but when I reboot it still stays stuck at the Nexus X screen bootlooping i have noticed tho that the screen starts out dim and then (i think i hear it do the little vibrate sound) and the screen gets brighter like its going to actually boot and then it never does.

and I have chosen Option 2. Flash TWRP Touch Recovery 2.3.2.3 (which then installs but I am unable to boot into custom recovery, the google screen with the padlock pops up then it seems to hang there for a minute and then it looks like the phone resets and trys to boot normally, so with that version of TWRP I am unable to boot into recovery)

I have also downloaded a different version of TWRP file name ( openrecovery-twrp-2.4.1.0-mako.img ) and then used in the toolkit ( Option 11. Boot or Flash .img files to device ) it installs the TWRP 2.4.1.0 recovery img but when it boots i get "please enter your password" and when i open up the log it says something is encrypted so i hit cancel and then try to wipe/factory reset and it fails due to partition/s being encrypted (i think) and it does the same thing upon reboot it get's to the Nexus X screen and just sits there bootlooping..

I have not tried to download and flash a Custom ROM only because id rather have the stock Nexus 4 stuff instead of a rom... but it will soon be my next shot.... I'm running out of ideas on what could be causing this and how to go about getting around it..

And again I want to thank everyone for their help with this.. I really hope we manage to figure it out.