[Sprint LG Optimus G] renold458:
UPDATE 12/2/2013: The tutorial will remain for users who would like to change their own settings within the ROM or just like doing things themselves. However, I have included a Google Drive link to a modded ROM to skip most of the process, meaning you can just move this file to the root of your storage and flash and go from there. The link will be under Resources and I will try to update every Friday, no guarantees as I go to school and finals are coming up.

Hey guys, today I have a tutorial for anyone attempting to install MIUI v5 for the LG Optimus G LS970. I myself was totally hooked on this ROM seeing as it is totally different from Android yet still holds true to a lot of what Android is. Some setbacks are that this runs on Android JellyBean 4.2, a little dated for certain people and also not all options work, and you can scour around to figure out what those are as I personally have not testing everything. I do know that NFC is having problems and some people are having issues with phone services but there are workarounds that I will list in the resources below. Now for the tutorial.

*Note: This is what I did to get this to work based on the information found in the LS970 thread for MIUI v5 (linked below) and my constant attempts to see whats wrong, Im in no way a professional nor a developer just a user who wants to get things done. This may not work for everyone. If your phone messes up, I hold no responsibility as you did this out of your own choice and you have been warned. Credits go to siulmagic for the LS970 port and the work he was able to do with it, hopefully he can continue development. Credits also go to 2nd Sky for providing the basis for the tutorial. Links to their profile will be listed in the resources as well.

--Tutorial--

You will be flashing the F180/E975 ROM version of MIUI v5, and it is said you must install the recovery for the E975 in order to flash a ROM from this device, however this was not needed.

The following files will need to be downloaded:

7-Zip: http://www.7-zip.org/

LS970 MIUI ROM: http://www.androidfilehost.com/?fid=23060877489996359

F180/E975 MIUI ROM: http://rom.miui.com/download/view/359381#top (click the red button to download)

Custom Recovery: http://www.mediafire.com/download/ta3ecb4r4cq0b99/TWRP-2.6.3.0-LS970(sprint).zip (This is the latest TWRP version, but I used version 2.4.4.0, yet I do not think this matters)

Step 1: Install 7-Zip onto your PC. Once you have all files downloaded move all of them to the ROOT of your phone EXCEPT the F180/E975 ROM. This will not work if the files are not on the root as I have come to notice.

Step 2: Open up the F180/E975 ROM with 7-zip (it is a zip file). Navigate to the updater-script file and open it with Notepad (the location of the updater-script is META-INF-->com-->google-->android). To open with Notepad just double click the updater-script file and you will be ask to choose a program, choose Notepad of course. DO THIS ALL FROM THE ZIP FILE, DO NOT EXTRACT ANYTHING.

Step 3: With updater-script open, you will delete the following line:

assert(getprop("ro.product.device") == "e975" ||

getprop("ro.build.product") == "e975");

That includes the semi-colon. Save the file within Notepad and close. Once you close 7-Zip will prompt you that the file was modified and if you would like to save, hit YES. This will now modify updater-script within the zip file. Let that finish and now the zip can be moved to the root of your phone along with the other files. OPEN UP UPDATER-SCRIPT WITHIN THE ZIP TO MAKE SURE THE CHANGE WAS MADE, I GOT AN ERROR WHEN I TRIED FLASHING AND IT WAS BECAUSE 7-ZIP DID NOT SAVE THE MODIFED UPDATER-SCRIPT. CLOSE THE ZIP FILE AND RE-OPEN IT AND CHECK ONE MORE TIME BEFORE TRANSFERRING TO THE ROOT OF YOUR OPTIMUS.

Step 4: Now flash install TWRP. If you do not have a custom recovery to begin with you can download Goo Manager from the Play Store and install through there and update if required. I did a dirty flash of MIUI, meaning I flashed without factory reset or anything. There is no need for GAPPS as they are already built into the ROM. Go into your custom recovery and you will want to flash the LS970 ROM. If all goes well it will install without problems and you can reboot into system and setup MIUI. If you get errors during install or afterwards, try wiping the system within TWRP and try again. All you want to do is just get to the homescreen for MIUI.

Step 5: Once you have been sent into the MIUI homescreen for the first time, you will boot into recovery again and proceed to flash the F180/E975 ROM. There should be no issues and the flash should go smoothly. There is no factory reset or clearing of cache because MIUI takes this as an update to the previous ROM, so when you boot back into MIUI you will go directly to the homescreen. Now, reboot back into recovery for the final time and wipe data then factory reset and reboot into system for a nice clean MIUI v5 setup. Enjoy your new ROM!

--FAQs--

Ask them in the thread, questions will be added to this post as well as their answers and whoever answered it.

1. Can this ROM be updated?

Yes the ROM can be updated, however OTA does not work currently until someone finds a fix. A workaround is downloading the updated ROM manually from the website (or on the phone) and following the instructions listed above and then flashing the modified updated ROM. Unfortunately this takes more time but if you want an updated MIUI v5 this is the only way to get it as of now and as of my knowledge.

--Resources--

Modded ROM (Current Version: 3.11.29 v5): https://drive.google.com/folderview?id=0B9akUN35QuHKZHJGOTlJeDVaOUU&usp=sharing

Siulmagic's Profile: http://xdaforums.com/member.php?u=517347

2nd Sky's Profile: http://xdaforums.com/member.php?u=5310926

LS970 MIUI ROM Thread: http://xdaforums.com/showthread.php?t=2330690

F180/E975 MIUI ROM Thread: http://xdaforums.com/showthread.php?t=2489976

MIUI Official English Site: http://en.miui.com/

MIUI Official English Forums: http://en.miui.com/forum.php