[G2 Android Development] paul89rulez:
Hi all.

Im d802 owner, and sometime devs give roms, o preview only for d800 (thank devs anyway for supporting our phone).

So, i ve reworked a file zip made some time a go by [MENTION=5031300]blastagator[/MENTION], that simply convert d800 rom to d802.

Ps: I m not English, im Italian, so sorry for some errors i will try to write the best i can.

Pay attention:

This is a PORT method. Is not stable like building someting from source, and is always better to use something compiled for the d802.

Anyway, in all rom that i ve tryed all worked as intended.

Your warranty is now void.
I am not responsible for bricked devices, dead SD cards, thermonuclear war.
Please do some research if you have any concerns about using custom ROMs/Kernels.
You are choosing to make these modifications, and if you point the finger at me for
messing up your device, I will laugh at you.

So, we can start now.

>>>>>JUST FLASH IN RECOVERY:

Downloads d802:

Choose the right zip:

For Cm based v4 roms: Mega

For Aosp basedv4 roms: Mega

Downloads d800:

AOSP:

Mega

CM:

Mega

Download vs980:

TEST AOSP by DjWald:

AndroidFileHost

TEST CM :

Soon

If the rom you ve downloaded wont flash, do this:

First of all, you have to edit the updater script of the rom that you wanna try, to allow Twrp to flash it.

You will need (optional):

Zip viewer (personally i use 7zip)

http://www.7-zip.org/download.html

-notepad ++

https://notepad-plus-plus.org/download/v6.9.1.html

-patience

https://www.youtube.com/watch?v=ErvgV4P6Fzc

Step 1 (if your rom don't have this lines, skip it):

-Extract rom.zip to any folder;

-Navigate to META-INF\com\google\android\

-Open updater-script and replace this 2 lines (change d800 with d802)

assert(getprop("ro.product.device") == "d800" || getprop("ro.build.product") == "d800"

-Repack rom.zip without compression and in .zip extension

-Copy to your phone

Step 2 (do only this if the rom dont have flash variant check):

-Backup your current ROM (optional)

-Backup EFS (higly suggested, but optional)

-Flash Rom.zip to your phone

-*****Flash D800 to D802 patch (WARNING: If you dont do this right after the flash of d800 rom, you will softbrick your device; you can recover it by simply go into recovery)

-Flash gapps

- I higly raccomend you to flash Lambda or HHKernel to avoid boot.img incompatibilities, just after the apllication of the patch (HH kernel is only for Aosp Based Roms).

-Enjoy! :D

-***** choose the right one, for Aosp or Cm based Roms.

Whats in Zip:

- Cyanogen Mod Kernel in Cm version

- Candy6 in Aosp version

- System Files from Cm\Aosp

- A script from the mighty [MENTION=5031300]blastagator[/MENTION] rewrite in some point by me.

CREDITS

[MENTION=5031300]blastagator[/MENTION] for the zip, the script, the recovery and all! :)

[MENTION=6175749]GalaticStryder[/MENTION]

[MENTION=5236920]zg85[/MENTION]

[MENTION=5132229]xpirt[/MENTION] for the how to extract Dat

[MENTION=7343330]pastsomeone[/MENTION] \ yairpatch for all the roms he makes (its to flash he s roms that i ve did this) (follow him on G+)

[MENTION=535343]all[/MENTION] the developers here that makes g2 a fantastic device

[MENTION=4193338]CyanogenMod[/MENTION], Aokp, LiquidDark, Aospb and all the custom roms that makes android magic

[MENTION=243864]xda[/MENTION]

If i haven't mentioned some one, contact me and i will do it! :)