yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] wulsic:
NOTE

This is an port of the optimus g stock ROM, it doesnt fully work yet and doesnt had all the apps because of the 828mb system partition and the optimus g had 2gigabyte. It isnt for daily use yet because of the random reboots and no GSM and maybe soms fcs

If you go back to some other rom again dont forget to flash the good modem again or it will end in a bootloop or not cellular/wifi

Also if you backed up a rom with your data in twrp or CWM same story i also needed to flash the good modem to get out of bootloop.

DISCLAIMER

/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, or dead SD cards,
* nuclear war, pinguin invasions or that you are getting fired because the alarm app failed.
* before flashing it! YOU are choosing to make these modifications, and if
* If you point your finger at me for messing up your device, I will laugh at you. Hard
*/

Since this is the same case as miui you need to change modem.So steps are below.

Download the files from the link below.

Download the zip files

WIPE DATA/FACTORY RESET

Format/System

flash the rom zip from recovery

flash the 4.4 gapps zip from recovery or your own. You can use mine or from Banks.

Flash the Modem from recovery

Reboot

Downloads:

Rom

https://drive.google.com/file/d/0B1u3mnq0nstfXzBIejI3TURDYUU

Modem

https://drive.google.com/file/d/0B1u3mnq0nstfOVdmWEl2bHQ1SlU/

Back Camera doesnt work

GSM Network/cellular doesnt work

NFC

Random reboots sometimes

Tell me more

Screenshots will be coming later since i need to do homework for tomorrow. but you must imagine LG UI with a gel launcher

This rom is really for daily use yet. It sometimes random reboots after a LONG time dun know why yet and GSM/cellular doesnt work.

Credits:

LG for their rom

Google for android

eugenioxx for reminding me for a fix for wifi

22sl22 for Shrinking the System

blttalas for Shrinking the System

Cyanogenmod for their kernel

All the great users which are supporting this project and keeping me going to finish it.
[Nexus 4 General] blttalas:
Sounds good..
[Nexus 4 General] AntiBillOS:
Want this Rom for Multiboot ha ha))
[Nexus 4 General] wulsic:
Yes i will look what i can do to get the basic of the system booting so withoit the lg bloatware cause our system partition was only 512mb and their is about 1.5gb i think. But maybe there is also an way to get all the apps but then out of the system folder somewhere.

Verstuurd vanaf mijn Nexus 4 met Tapatalk
[Nexus 4 General] 22sl22:
I'll see if I can extract the img files. I'll post here if successful :good:
[Nexus 4 General] 22sl22:
Here's the system IMG extracted so you can see everything inside and make a rom :good:

https://drive.google.com/file/d/0B-EjyK193BdqNkh1U0QxbFR4VDA/edit?usp=sharing
[Nexus 4 General] wulsic:
Yeah i also extracted it but i didnt had permission for all files to extract. I will download and look into it.

I am now deodexing everything.

Verstuurd vanaf mijn Nexus 4 met Tapatalk
[Nexus 4 General] prog19:
I will love to test it. My GF have the optimus g still in warranty (so she doesnt let me unlock the bootloader) and i would use rom show her how the phone will feel one month from now when the update arrives in brazil.
[Nexus 4 General] wulsic:
I know why she wants it if you have warranty with an phone glass on the back and on the front its pretty risky but i will look into all these things tomorrow after i am done with school or later today.

Verstuurd vanaf mijn Nexus 4 met Tapatalk
[Nexus 4 General] hp420:
Last time someone tried porting an optimus g rom they perma-bricked. Please be careful!!!
[Nexus 4 General] Zehlek:
But remember they were trying to port a 4.1.2 to N⁴
[Nexus 4 General] 22sl22:
I'm gonna give it a try, using this guide. Will let you know how it goes :good:

http://xdaforums.com/showthread.php?t=2245786
[Nexus 4 General] hp420:
I used his FlymeOS port for Nexus S to make a Nexus S 4G port...worked great!! Give it a shot and keep us updated. If it boots without bricking I'll test for you!
[Nexus 4 General] 22sl22:
Right now iv'e done most of it, followed to the letter including using libs and things from source.

I'm stuck on recompiling the boot img, the option isn't showing in the kitchen for the some reason :confused: :confused:

EDIT: I did it, compiled boot img successfully

Gonna de odex and root now :good:
[Nexus 4 General] prog19:
We will be able to use this as a second rom in multirom ?(assuming that the first rom has the kexec-hardboot patch, like franco or hells)
[Nexus 4 General] 22sl22:
Not sure yet but in theory yes.

Rom is almost done. Will create a new thread if it flashes successfully :good:
[Nexus 4 General] wulsic:
22sl22 i wish you goodluck with your project we will see who will be the first who gets it good running. I examined the kernel and most paths are just the same so it should be not really an problem. I was busy with removing unneccesary crapware to see if its booting but i will continue later todat so around 2 or 3 o clock i think cause i have tomorrow an test and i am tired from learning. 22sl22 you maybe cant deodex something from weatherbut then just remove it deodex or odex doesnt really matter now first the priority is to see does it boot and work but you also need to have an good updater-script so take one from an rom and see or it has something like assert get prop and remove it. Not neccesary but i always do it cause i know i have that device.

22sl22 think about the size of the system folder. Cause our system partition is 828 mb i believed. So yeah you cant get all apps or you need something like app2ad or symlink to somewhere on the device.

Verstuurd vanaf mijn Nexus 4 met Tapatalk
[Nexus 4 General] 22sl22:
Iv'e never made a rom before so you will probably get up and running first. I have trimmed down the system a bit but I will look to cut it down some more.

Mine says 'some symlinks failed' So I will work on it tomorrow, good luck with your test :good:
[Nexus 4 General] Zehlek:
I so want to try it if it works.
[Nexus 4 General] jnhsd0319:
Hope it works well.

it wouldnt be bad having a stock factory OS for our device.
[Nexus 4 General] wulsic:
Lol the phone what i will be buying next i dont know for sure yet but definetly no iphone cayse i cant have fun with that so much, not so much customizations lije android and iphone have blobs so downgrading cant if you dont have the blobs :/

i think oneplusone/htc one/ some other lg phone/nexus 5 and maybe some other choises

Verstuurd vanaf mijn Nexus 4 met Tapatalk
[Nexus 4 General] NEXUSg4:
Can you post a link to LG's system ui
[Nexus 4 General] wulsic:
Do you mean the systemui.apk or the framework files with framework-res? If so then I might need to redownload it. If you want to dowmloadit fast download the light version
[Nexus 4 General] idonttakedrugs:
support for the rom come back :(
[Nexus 4 General] wulsic:
Well i dont own the phone anymore and it would be easier if some dev woul take it over and i suspected that somebody would do it but yeah they wouldnt...

But today i also talked to a betatester of a cm11 port for the galaxy fame with what i am busy with and he also talked to me about that he had the n4 so i will see tomorrow about the rom porting. I will try to fix things like modem also but i guess i need to use a cyanogenmod 4.4.2 kernel then. I will do my best guys[emoji1]

EDIT: I have downloaded the roms now again the official kitkat rom/My optimus G port rom and the Cm11 4.4.2 rom as lib provider and for other files also. I will start tomorrow again on this project and I will see to base the kernel now maybe on cm11 or what cause the phone gets abit hot with my bit edited Optimus G kernel. Its safe to flash you know but you probably need multirom then also.
[Nexus 4 General] loveuhp:
Is it availabale now ?
[Nexus 4 General] wulsic:
No i am still working on the newer version to work with the nexus4 modem and if you want to use this rom you probably gotta flash it with multirom or i need to make a debloated version but that is probably again 810mb cause the full one is 1,4 gb.

EDIT: If a dev is also interested in this project go ahead and make your own version! Android is free and every work is different so go ahead and do it :D If an dev who still owns the N4 would make the port then it would have a higher chance of an faster port.

I was also working on this now and I will continue tomorrow. I have started over now again to be sure that I don't have screwed anything up in the previous beta's.

Well guys i will try to continue it on my windows since my ubuntu stays black screen :/
[Nexus 4 General] ale29-09:
Project has stopped, right?

ale29-09 on LG G3 and Tapatalk Pro
[Nexus 4 General] wulsic:
Well it was partly stopped i can say cause my ubuntu didn't worked but now its working again and i'm also busy with some other projects but i will try to make some progress this week. It was easier if i still had my nexus 4 to test it etc but i will provide later an beta when i'm done:good:
[Nexus 4 General] ale29-09:
If for you is ok I've this week free for test your work, my Nexus 4 is closed in box since I'm using G3 :D

ale29-09 on LG G3 and Tapatalk Pro
[Nexus 4 General] wulsic:
I'm sorry but i don't think i can finish the flashable build today. I am still editing some things in the Port to work and i am now busy with making it lighter to fit on the system partition and i am busy with an new kernel for the stock rom:D
[Nexus 4 General] marcof93:
Nice to see that you're working on it..good work man!
[Nexus 4 General] wulsic:
Yes I am going further today with the kernel and then I will try to release it if its good in my opinion but I still have to remove some stuff to fit on the systemmpartition

Edit to save an post:

Progress so far is that i am already working a bit on the kernel, I Merged almost all the neccesary files from the Nexus 4 to run the Rom i hope that it will boot the first time already when its done:/ i miss my n4. And i am still busy with decreasing the rom size to like 818 mb. The rom is now still 980MB so i still gotta shrink it. I need to find a way to let everything fit on the system partition and run normally but yh i guess for the ones who want a full LG experience should use Multirom but for the 8GB users it will not be easy then also...
[Nexus 4 General] daivee:
All your effort is greatly appreciated. Thanks for continuing this work.
[Nexus 4 General] jackhilfuer:
Do let us know when you have tested and released. I want to have a try on my phone.
[Nexus 4 General] NEXUSg4:
Any update? Besides android L this is the only rom I wish.. Always wanted LG rom for Nexus 4
[Nexus 4 General] wulsic:
[MENTION=5758921]NEXUSg4[/MENTION] [MENTION=4554576]blttalas[/MENTION] was now shrinking the system folder to fit more on the system partition so when he`s done then i can also check again my testing kernel and then just cross fingers that it boots in 1 time. I am not sure but i guess i also enable custom bootanimstion (bootanimation.zip) and then with an lg boot animation. I also always wanted the lg rom on my nexus4 i still regret i sold it. But thats why i made an dirty port. I bet the rom would be faster and better if people noticed the thread in the first place, the 4.1.2 port (backport) was really unstable and that thread got more attention then mine and also someome rated the thread 1 star probably because i cant make an fully working stock lg rom to fit on then n4 partitiomn and with the stock n4 modem but yh those are the unthankfull people who dont know how many time i had put into it in the first place to see how to boot into it. But i thought too hard when making an port, you should think easy but i couldn`t since i had a week full of tests which were important to graduate.
[Nexus 4 General] NEXUSg4:
I feel your pain. I know you worked too hard for this. Don't know why people are so ignorant to this thread. If this have been in development thread it might have gain some attention. I know you requested to move, why it isn't move yet makes me sick. I was disgusted to see so less people voted in the question you asked. It's upto you what you want to do with this rom but I will say graduation must be your first priority. All the best for your tests. Cheerz
[Nexus 4 General] wulsic:
Well idk again really but he said like if the rom boots then he would move it to the dev thread but i first didnt really wanted it because when it will be moved it would probably go after 2 days again to page 2 or 3 so yh.. I miss my Nexus4 ;p Stuck with an N95 till i have a new phone but yh.

Thanks for your support
[Nexus 4 General] blttalas:
Current 780 mb without keyboard :)
[Nexus 4 General] wulsic:
Bump. So guys i am still working on the kernel, The system folder should be done so far as i know now since i already copied the hardware related files from the nexus 4 so all the important files to get wifi etc working. Still watching a bit in the Optimus G Stock kernel to see all the things but i will upload today I hope the Test build to see or it boots or just hangs on google :/ I will use on that testbuild the cyanogenmod kernel from M7 since thats still 4.4.2 based. If after all kinds of tests cyanogenmod kernel doesnt boot then i would probably merge somethings from the optimus G kernel but i will not use the stock kernel anymore since LG is really Anti Debloat with their kernel cause if some apps are removed then the kernel would see it and cause an security error which results into that it will not boot further. I will later make a new post or Edit this post to post the link. I really used much times the word post...

Sorry for the delay guys I was also busy with watching my brothers/sisters for the whole week almost:eek:.

Thank [MENTION=4554576]blttalas[/MENTION] for the smaller system folder to let it fit on the nexus4. I think that if the build boots and works normally that for the hardcore LG users like me i will post then an Full size Optimus G port with all their apps. I hope you guys could maybe test it in the night cause i sadly don't own the nexus 4 :(

EDIT:

Idk still yet about the security error with the lg stock kernel or that should be causes by the system itself or the kernel but so far as i know the kernel :/

This is testversion 1 so don't expect that it fully works/boot cause i didn't had tested it yet And i would rather test it myself to prevent spilled time of people's life/bandwith but yh the Phone is gone and I don't know anyone in the area where i live with an nexus 4. Ignore weird messages while flashing. I had nothing to do

Download:

https://drive.google.com/file/d/0B1u3mnq0nstfOElaWTRTenlJSXM/edit?usp=sharing

Please report back
[Nexus 4 General] Cice96:
Stucked at google logo

---------- Post added at 07:27 PM ---------- Previous post was at 07:27 PM ----------

On multirom
[Nexus 4 General] wulsic:
Hmm Damm xd I already thought that would happen but multirom always screws up roms sometimes but i guess that on primary rom it would be same story. I guess i need to edit more on the Cyanogenmod kernel now to make it compatible with the LG Rom since the Stock kernel from LG optimus G also works with the Nexus4 But... The device would get hot and random reboots not so much but still and some drivers also wouldnt work. Thanks for reporting back I will Look into the project tonight again :good:

EDIT:24August2014

Sorry guys that i didn't fixed the kernel yet I was busy with My galaxy fame Cyanogenmod 10/Cm11 Porting project and my daily life so i didn't had time for it :( Sorry that I dissapointed you guys. I will Work tomorrow again on and I will really Try tomorrow to get an Working kernel.

LogBook 25 august 2014: ;p

I am still thinking bout the Security error from LG. Damm lg xd
[Nexus 4 General] kdog1202:
When I was back on the lg e379 for t mobile we always had security errors with ROMs as well. One or two of those guys got around it, but that was on gb. So maybe if they helped we could get it. I know its the boot image that causes that message obviously I think
[Nexus 4 General] wulsic:
[MENTION=4514460]kdog1202[/MENTION] I also think its the bootimage for 98% but i couldnt find where it was, an lg device had that removed but they didn't said how. So i have to compare it, but I am also sadly very busy with school and my personal life so its hard to continue the project but I will try to finish it when I have free time and fixed my hard disk os'es.

So for the guys feel free to also continue my project cause then it might be faster finished and 2 are better then 1 so if you have a bit knowledge about the stuff do it :).
[Nexus 4 General] Freddycico:
Any news? :)
[Nexus 4 General] wulsic:
Well, I have some bad news, I didn't had time anymore because of school to start with it so I erased it. If you don't mind then I will make a second try In the next Weekend since I then have vacation and time to do it maybe. I also planned to like maybe buy first the nexus 5 and then Note everything what I am doing with porting the G2 stock rom and then do the same on the nexus4 but when with the Optimus G stock rom first.
[Nexus 4 General] daivee:
That would be great.
[Nexus 4 General] prog19:
The lack of softkeys in our nexus is a problems ? The LG framework doesnt have navbar
[Nexus 4 General] wulsic:
Prog19 no problem we can fix it. Status 7 error is what it sayed symlink error in the updater script.

So yeah i forgot about the symlinks problem. Last night. I will look how we will do it.

Hp420 but you ported from another device. The optimus g and the nexus 4 are actually almost the same except camera sdslot and some little things but the most partitions have the same name same gpu same cpu so no really hard porting i think cause it isnt like sense or what i mean lg ui is portable or doesnt even needs the base like in your guide maybe for some small fixes but further not really. I had changed the boot.img and some other files and my conclusion is that it will not hard brick but the guy from the lg4.1.2 port probably didnt edited the updater-script so it has different partitions. But i will try to get it on our phone after school.

Verstuurd vanaf mijn Nexus 4 met Tapatalk
[Nexus 4 General] hp420:
I ported Nexus S to Nexus S 4G. The only difference is NS4G is CDMA, so I had to edit the build.prop, copy and paste the proprietary files, and edit the installer script. It took like 10 minutes. GalaxyUser ported from Mizuu to Nexus S, I believe. I'm sure that wasn't such an easy task.
[Nexus 4 General] wulsic:
Yes that also wasnt an easy task i think but the new flyme os will be alot harder.

I think that we must do also the same but i was also deleting unneccesary apps first cause the nexus 4 system partition is only 828 mb and the lg optimus g dump is over the 1,3 gb.

Verstuurd vanaf mijn Nexus 4 met Tapatalk
[Nexus 4 General] NEXUSg4:
Great work

Great work.. Maybe wulsic you should move this thread to development so you might get support of other developers
[Nexus 4 General] 22sl22:
Yeah that's what I'm trying to do know. Got it down to about 1 GB by deodex, and removing some apps like Google stuff you can get from the play store but it is still too big. Gonna keep trying :good:
[Nexus 4 General] wulsic:
I will move it later if we got it booted and things works.

Verstuurd vanaf mijn Nexus 4 met Tapatalk
[Nexus 4 General] 22sl22:
Yeah that will definitely help. We may have to see if we can remove some libs as well because they take up a lot of space:
[Nexus 4 General] 22sl22:
I tried to get rid of the symlnk errors by deleting the first line of the updater script but it didn't work, the updater binary may need to be edited as well......
[Nexus 4 General] wulsic:
If you are using dsxidas kitchen then you could go to legacy options and check the updater-script which symlinks are not right and delete those after you checked it.
[Nexus 4 General] 22sl22:
I have been using the kitchen but the kitchen gives me an error when I try to convert the script for use in the kitchen so I can change it

What about you? Have you got any progress?
[Nexus 4 General] wulsic:
Well i accidently removed the wrong folder so deodexing starting over now and then i will just move the unneccesary apps to another folder. Maybe we could like symlink those apps later dun know. But after its done and i have made the whole /system to around 800mb then i will try to make an working updater-script.

Did you also had problems with deodexing the weatherwidget, lgeasyhome, LGQtranslator? not that it really matters now but i just wonder.

they all have the same problem.

The section size in the header and map for item type TYPE_PROTO_ID_ITEM do not match
[Nexus 4 General] 22sl22:
Ouch, can't you just restore from recycle bin?

I got it down to 960mb so far but I don't want to remove things like LG Home and things even though they are very large. Should I just delete them?
[Nexus 4 General] 22sl22:
[MENTION=5403922]wulsic[/MENTION] I got it down to 813mb!! System Partition size is 827 mb for nexus 4, now I just need fix those damn symlinks :( :(
[Nexus 4 General] wulsic:
Edit: Going to try to flash now again i founded out that my updater script coding was outdated.

Edit2: Its coming to the LG Logo lets see how far it goes. Maybe i still need to change something in the Boot.img

EDIT3: Good news Got it booting with some basic apps and Fc keyboard -.- but it got booted so **** yeah! [MENTION=4653206]22sl22[/MENTION] do you got it booted already? if not i will send you my updater-script and binary if you need it.

Now i am going to get the wifi working and those kind of things.

I will ask to move this thread to android development.

Wifi Signal Etc not working probably not an good path to the modem from the nexus 4. i will post later screenshots if you dont believe me. I am not sharing it yet cause wifi and those crap doesnt work yet and we need to get an way to get all applications or basic on the partition.

Long boot then the Oldbasic android letters so i think its in some emergency mode but i will find out whats the problem!
[Nexus 4 General] 22sl22:
Yes, finally. Congrats man :good:

Haven't got mine to work, so share your'e scripts and I will see what is working on my end :good:
[Nexus 4 General] wulsic:
Sorry for late reaction was working on boot.img I am sending it now to you.
[Nexus 4 General] eugenioxx:
Can you post a mirror of the zip so we can flash it and see what works or not :laugh:

BTW good job mate :good:
[Nexus 4 General] wulsic:
Well actually the things what work is now Just booting and Touchscreen settings but wifi etc is not working.

I will upload my flashable zip for the devs who want to edit it and i will also upload the missing apks to just see or it boots.

Message to all Devs: Feel free to help me and 22sl22 and the Nexus 4 community to get an working lgstock rom on the Nexus4

Status: Uploading.

Here are some Builds from other people for the optimus g but you guys could also use it as base. But use My Updater-script Or Parts from it. Wrong partition flashing isnt nice.

META-INF

https://docs.google.com/file/d/0B1u3mnq0nstfb3lZS0RraWhCYzQ/

You might have to remove the backuptool lines from the updater-script or you can like temporary add it to your Bin folder.

System partition gets wiped. The meta-Inf is safe Since i am also a normal daily person i restored my backup until i fixed some things on the pc And everything works normal on my backup on TWRP so this doesnt harm your partitions

http://lgviet.com/forum/threads/kitkat-4-4-2-sling-g-f180-v2-0-blueberry-lgviet-com.19093/

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

http://xdaforums.com/showthread.php?t=2757781&page=2

These are all links from Leaks That from Page2 was the original i think from hoangnova. You can extract the system img using Dsxidas kitchen Archis Dsxidas kitchen or some other kind of programs. Use my Meta-INF as Base to spare you some time.

I will continue with it tomorrow since i still need to download something for an friend tomorrow so i hope the download gets finished.

I will Upload my full or Just only the removed content Will see it later to mega.

My Own Build thing is now 48% uploading.