FORUMS
Remove All Ads from XDA

[STOCK][LP][PATCH][d800] Patch Any Stock G2 ROM for AT&T

1,285 posts
Thanks Meter: 4,695
 
By blastagator, Inactive Recognized Contributor on 2nd June 2015, 12:22 AM
Post Reply Email Thread
Patch a ROM for LG G2 d800!
---- Supports Model d800 ONLY! ----
Lollipop ONLY!


What this is:
This patch can be flashed after flashing a full non-d800 ROM (DO NOT REBOOT AFTER FLASHING A NON-D800 ROM, even into recovery!) It changes the appropriate system files to the d800 variant version, as well as makes the proper build.prop changes. Note: If you use a vs980, ls980, l01f, or f320 specific ROM, there may be additional build.prop changes that need to be made. I didn't add all those because most of the development is on d80* models. Even if it is specific to these other models, patch will likely work just fine.

I took the basic idea from @dev>null (see here) I had previously dumped all of our stock, d80030f partitions. I took those dumps and combined them with the basic gist of this other patch dev>null made.


What changes this makes:
(1) Your entire bootloader is replaced. (a hybrid of 20y and 30f is applied)
(2) Stock lollipop 30f modem/baseband is installed.
(3) Stock lollipop 30f boot image, that has been bumped, is installed.
(4) Variant specific /system files are deleted. Then they are replaced with the d800 30f version of those files.


Installation:
(1) Boot into recovery, flash your desired ROM. (for my test, I used a d802 ROM)
DO NOT REBOOT RECOVERY, DO NOT!!!! If your ROM asks you to reboot after install, DO NOT!!!!!
(2) Flash this patch.
(3) That's it, you're done! It is okay to reboot now.
Note: Some ROMs might replace your /recovery partition, in which case you should re-flash your recovery before rebooting.


Troubleshooting:
SELinux / Bootloop
This patch properly sets permissions on the files it replaces. That being said, the boot.img in this patch is set to selinux ENFORCING. This means if the ROM you flashed does not have proper support for selinux to begin with, you'll get a boot loop, or hang on the glowing notification LED. Go yell at your ROM dev to fix it, or flash a boot.img that has selinux PERMISSIVE.

ROMs for models other than d80*
There are some additional build.prop changes that might need to be made if the ROM you want to use is f320/ls980/vs980/l01f. There isn't much development on ROMs specific to those models. I'll probably release a version 2 of the patch, eventually, to make these extra tweaks. However, it should work fine as is! The big exception is l01f ROMs. These ROMs are missing NFC files, so either NFC won't work, or the whole thing won't fail.


Major Thanks to:
dev>null


Download:
Did you read EVERYTHING above? If so, proceed -
https://www.gregtwallace.com/lg-g2/d800-rom-patch/



Shameless plug for donations:
Venmo Preferred (No Fee)



Zelle, send to [email protected]

Backup (Charges Fee)
Paypal

XDA:DevDB Information
d800 Lollipop ROM Patch, ROM for the AT&T LG G2

Contributors
blastagator
ROM OS Version: 5.0.x Lollipop

Version Information
Status: Stable

Created 2015-06-01
Last Updated 2019-12-31
The Following 43 Users Say Thank You to blastagator For This Useful Post: [ View ] Gift blastagator Ad-Free
2nd June 2015, 12:23 AM |#2  
blastagator's Avatar
OP Inactive Recognized Contributor
Flag Fern Park, FL
Thanks Meter: 4,695
 
Donate to Me
More
Change Log
July 29, 2015 (v1.5) (LP 5.0.x)
-Do not flash misc partition. Not needed.
-Overwrites MAC addresses and things.


June 23, 2015 (v1.4) (LP 5.0.x)
-If /data/media exists, set the proper permissions and context
-DONT use TWRP to wipe Internal Storage after running the patch/fix. If you want to wipe internal, do so BEFORE the patch/fix.


June 23, 2015 (v1.3) (LP 5.0.x)
-Change version number to be same for both files (so skipped v1.2 for permission fixer)
-Updated to latest file_contexts from dorimanx
-FIX!!! - ROM Patch and SELinux Context patch both fix ntcode_listing.sh context
++First boot was hanging on completely clean wipe, d800 does not support context: ubject_r:ntcode_listing_exec:s0
++ntcode file only executes on first boot
++Add build prop tweaks to remove lines that cause execution of ntcode_listing.sh
++In case build.prop tweaks fail and file is executed for some reason, fix its permissions so d800 can execute


June 12, 2015 (LP 5.0.x)
-Permission fixer v1.1
-Fixes a couple of contexts (thanks @dorimanx)


June 11, 2015 (LP 5.0.x)
-Created zip that should fix all SELinux Context and allow boot to ENFORCED mode.
-Posted on my site as "LP ROM SELinux Context Fixer"
-Flash after ROM, ONLY IF SELinux ENFORCE doesn't already work!


June 4, 2015 (v1.2) (LP 5.0.x)
-Added automatic flash of d800 recovery - TWRP 2.8.6.3 (in case ROM overwrote recovery)
-Also posted:
++Added a flashable zip containing devnull's permissive boot.
++Removed my permissive boot, it wasn't working right. Sorry!


June 1, 2015 (v1.1) (LP 5.0.x)
-Supports conversion for Stock Lollipop ROMs from any LG G2 variant, except l01f and lgl22.
-I will probably never add support for those two models since development is very minimal on them.
-Also added other flashable zips to easily switch between ENFORCING and PERMISSIVE.
-Replacement files come from Stock Lollipop d80030f.


June 1, 2015 (v1) (LP 5.0.x)
-Initial Patch
-Fully supports all d80* and f320 ROMs.
-Will do update shortly to add support for converting ls/vs ROMS
-Replacement files come from Stock Lollipop d80030f.
The Following 6 Users Say Thank You to blastagator For This Useful Post: [ View ] Gift blastagator Ad-Free
2nd June 2015, 12:24 AM |#3  
blastagator's Avatar
OP Inactive Recognized Contributor
Flag Fern Park, FL
Thanks Meter: 4,695
 
Donate to Me
More
[]
The Following 3 Users Say Thank You to blastagator For This Useful Post: [ View ] Gift blastagator Ad-Free
2nd June 2015, 12:24 AM |#4  
blastagator's Avatar
OP Inactive Recognized Contributor
Flag Fern Park, FL
Thanks Meter: 4,695
 
Donate to Me
More
res3
The Following User Says Thank You to blastagator For This Useful Post: [ View ] Gift blastagator Ad-Free
2nd June 2015, 02:07 AM |#5  
Senior Member
Thanks Meter: 214
 
More
Dude!!! You rock


Sent from my LG-D800 using XDA Free mobile app
2nd June 2015, 02:14 AM |#6  
Everhez's Avatar
Senior Member
Flag San Salvador
Thanks Meter: 77
 
Donate to Me
More
Yeah!
2nd June 2015, 02:19 AM |#7  
iamtha1's Avatar
Senior Member
Thanks Meter: 310
 
More
Bro thank you! Not only for this, but everything you do for the g2!
2nd June 2015, 02:23 AM |#8  
taywin13's Avatar
Member
Thanks Meter: 17
 
More
thank you.. thank you... thank you.. thank you
2nd June 2015, 02:57 AM |#9  
Member
Thanks Meter: 94
 
More
So could I use the stock system partition from the d800 lollipop and run it with this?
2nd June 2015, 03:14 AM |#10  
Senior Member
Flag Hanoi
Thanks Meter: 129
 
More
Thank you very much @blastagator!
Now I can flash any AOSP rom and back to stock easyly. :XXX
2nd June 2015, 04:16 AM |#11  
Senior Member
Thanks Meter: 11
 
More
I dont think there are any lollipop for L22. L22 is the lonely baby in G2 family without lollipop.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes