-
Notifications
You must be signed in to change notification settings - Fork 16
E970 Porting Nexus 4 ROMs
Because the hardware of the Optimus G E970 is almost identical to the Nexus 4, ROMs from the Nexus 4's massive ROM development scene can be easily ported over with few modifications onto the Optimus G.
This is a safer and better alternative to a full transformation into a Nexus 4, since you do not have to go through the trouble of flashing with LGNPST and finding out which fixes files to use.
Source: XDA Developers - defcondev's Guide to porting Nexus 4 ROMs to LGOG E970
-
We recommend using a decent text editor, such as Notepad++ to edit these text files. It will save you a lot of frustration. Download and install that first.
-
Start by downloading the ROM zip file you want to port. Don't decompress the ZIP, as then you'll have to re-sign it before you can flash.
-
Open the
updater-script
file underMETA-INF\com\google\android
with Notepad++ & remove the following line located at the top of the script. This line checks if the device is actually a Nexus 4.assert(getprop("ro.product.device") == "mako" || getprop("ro.build.product") == "mako");
-
Download the
N4_Port_Package.zip
file from defcondev, which contains all of the libs & firmware you will need. -
Use 7-Zip and drag the files from the ZIP you downloaded into their corresponding folders in the ROM you're trying to port. Don't decompress the zip file, just inject the files through 7-Zip.
-
Keep that zip file open, and delete
boot.img
. This is the Linux kernel used to boot the phone. -
Find a working
boot.img
(custom kernel) to replace it. Some good examples are dvhexer's CM10.1 Alternate for 4.2.2 ROMs, or his CM10.2 Alternate for 4.3 ROMs. -
Open the
framework-res.apk
from the ROM you want to port using 7-zip. -
Drag
storage_list.xml
(from theN4_Port_Package.zip
) into the folderres\xml
, overwriting the original.
NOTE: After flashing, the external SD header in
SETTINGS>>STORAGE
may show up as a random string (invalid SIM, Issued by, etc). if this happens for you, you'll have to decompileframework-res.apk
from the ROM you wish to port & manually add the External SD lines instorage_list.xml
and then recompile. (FIXME: Needs explanation)
- (Optional, but recommended) Open
build.prop
in the ROM your're trying to port and change the device values to match your E970. But you could of course keep it as a Nexus 4 (mako) to fool the Play Store.
- If you're stumped, use a
build.prop
from a ROM made for the E970 for reference.
Follow the same instructions as above, but use the OG_PORT_PACKAGE.ZIP
instead.
Note: All non-Android projects have moved to the BASLQC Wiki.
- Introduction - A quick intro to the rationale and ideals of this guide, and smartphone modding in general.
- General Setup - Learn how to install and run the tools you need to succeed.
- Device Guides - Customized, fully decked out guides for rooting each and every device we could find.
- General OS Customizations - General customizations that work on all devices of a specific OS.
- General Guidelines - The ideals that you should uphold while working with and editing this guide.
- Device Guide Templates - Templates and general guidelines for creating customized guides for a device.
- Linux - Run a full desktop OS on your little mobile device; research is being made to make it comfortable to use in the mobile space.
- Glossary - Contains all the crazy acronyms and word soup that you'll need to wade through when using this guide.
- Android Buying Guide for Modders - While modding can fix up an outdated device, it will make your life easier to buy the right device from the start.