[G4 General] XDeathy:
This thread will always be a Work In Progress. Please be patient, as we receive new development it will be posted here. Thank you very much! :p

Do subscribe to this thread to get notified on any new updates.

If you own a G3, please proceed to this thread instead: http://xdaforums.com/lg-g3/general/guide-complete-tutorial-to-root-flash-t3098959

Own a V10? Proceed to this thread: http://xdaforums.com/lg-v10/general/wip-complete-guide-to-v10-t3217373

First things first, this guide is made mainly for our great

LG G4 D815

. Some steps may or may not work for other phones...

Please note that the results of the following methods may vary. I would advice you don't do this on a daily driver or corporate phone.

Also note that these steps

WILL VOID YOUR WARRANTY. PROCEED AT YOUR OWN RISK.

For increased chances of these working, update your KDZ to Lollipop first using OTA or Flash Tool.

If you don’t know what rooting, flashing and blah blah blah means, this probably isn’t the thread for you.

I do not own much of this stuff, credit really does go to the folks stated below. Do give them a shoutout!

Enjoy! :)

Complete guide to all things G4:

NOTE: The chapters are in chronological order, meaning everything after Chapter 2 assumes you already have root and unlock.

---------------------------------------------------------------------------------------------------------------------------------

CHAPTER 0: TERMINOLOGY (in my own words)

- Terms

- Tidbit

(To be honest, if you need to even look at this, this thread isn't for you.) :confused:

- Root: Gaining full administrative control of your device. "Jailbreaking" in terms of Android.

- ROM: The customized operating system that your Android runs on.

- Kernel: The thingy that links software and hardware

- Radio: The thingy that sends and receives messages, calls and data.

- Flash: Installing a zipped file in Recovery Mode

- Recovery: The software that allows tweaking and flashing, and other weird stuff that will destroy your phone.

- Fastboot: The thingy that allows recovery mode to happen.

- Brick: The term says it all.

- Bootloader: Quite literal; loads the phone for bootup.

- Nandroid backup: A backup-ed image of your current system

- ADB: Android Debug Bridge; some command line tool that sends information from and to the phone to, and from the computer

- CWM: ClockWorkMod; a recovery system

- XDA: The holy website that is full of weird stuff that makes your phone wayyyy better.

Now let's paint a picture:

Imagine you are your Android phone.

Before "rooting", you are trapped in jail.

Upon "rooting and unlocking", you are released from jail.

You go to a shopping mall named "XDA".

You find a credit card lying on the floor from the company "Recovery". On the back, it says there is no passcode required, and there is a infinite amount of money inside.

You enter a store and get a sweatshirt with the word "ROM" on it.

You didn't buy the shirt, the shirt just happens to be free, but still requires you to swipe your credit card anyways.

You keep the receipt as a "backup", just in case the shirt spoils.

Just then, you get greedy and get all the badges in the store.

Stupidly, you pin all the badges on your shirt, turning it as heavy as a "brick".

Then, the shirt rips, unable to put (it rhymes with boot) it back together again.

Luckily you still have the receipt to return the shirt, and return back to your good old disgusting shirt.

---------------------------------------------------------

CHAPTER 1: PREREQUISITES

-	The newest LG drivers are installed on your computer

-	A proper and working Wi-Fi network

-	Enable Developer Options

-	Enable USB Debugging

-	Ensure G4 is charged to at least 50%

-	Original and genuine LG G4 in-box USB cable

-	Backup all files!

---------------------------------------------------------

CHAPTER 2: ESSENTIALS

- Backup

- Unlock

- TWRP

- Flashing

- Restoring Backup

BACKUP:

Titanium Backup Method:

Use “Titanium Backup” batch backup

1.	Menu -> Batch

2.	Run -> Backup user apps + system data

OR:

Manual Non-Root Method:

-	Messages: “SMS Backup & Restore”

-	Contacts: should be synced with the cloud, if not: Export to SIM card or SD card

-	Calendar: should be synced with the cloud

-	Notes: use “Google Keep”, it will be synced with the cloud

-	User Dictionary: “User Dictionary Backup”

-	Call Logs: “Call Logs Backup & Restore”

-	Launcher (assuming you use Nova Launcher): Settings -> Backup & import settings -> Restore or manage backups

-	Apps: “Helium” or any other app

-	Nandroid Backup

store all backups in external SD card or transfer to your computer

UNLOCK BOOTLOADER (official!):

http://developer.lge.com/resource/mobile/RetrieveBootloader.dev?categoryTypeCode=ANRS

(direct link from LG Developer Resource Center!)

NOTE: THIS CANNOT BE UNDONE!

TWRP Touch Recovery:

http://xdaforums.com/g4/orig-development/recovery-twrp-2-8-6-0-touch-recovery-t3125859

(kudos to [MENTION=912474]Dees_Troy[/MENTION] & TeamWin)

1.	Download "TWRP Manager" app from the Google Play Store

2.	Advanced -> Install Recovery

3.	DONE!

FLASHING:

Clean Flash:

1.	Backup your data!

2.	Reboot into TWRP Recovery

3.	Go into settings and enable “Use Aroma File Manager”

4.	Wipe Dalvik, Cache, System & Data

5.	Flash your chosen ROM, basebands, firmware updates and other crap

6.	Flash any GApps package. (the one I use: http://xdaforums.com/android/general/gapps-lp-gapps-pa-gapps-aroma-installer-t3010798; kudos to [MENTION=4964524]raulx222[/MENTION] & [MENTION=233732]slim[/MENTION] Team)

7.	Flash anything else (e.g. frameworks, boot animations, splash screens, themes etc.)

8.	Reboot

9.	DONE!

OR:

Dirty Flash:

(flashing without wiping anything, used for updating to newer ROMs or reflashing)

1.	Reboot into TWRP Recovery

2.	ONLY wipe Dalvik Cache

3.	Flash your chosen ROM, basebands, firmware updates and other crap

4.	Flash any NEWER GApps package. If you manually installed/updated through Play Store, skip this step.

5.	Flash anything else (e.g. frameworks, boot animations, splash screens, themes etc.)

6.	Reboot

7.	DONE!

RESTORING BACKUP:

Titanium Backup Method:

1.	Use “Titanium Backup” batch restore

2.	Menu -> Batch

3.	Run -> Restore missing apps with data (*NOTE*: DO NOT RESTORE SYSTEM DATA)

4.	Once done, go to Backup/Restore on the main app interface

5.	Restore manually: Calendar Storage, Internet Bookmarks, Messaging SMS/MMS Prefs, Phone SMS/MMS/APN, User Dictionary, Wi-Fi Access Points**

6.	Launcher Settings: (assuming you use Nova Launcher) Settings -> Backup & import settings -> Restore or manage backups

OR:

Manual Restoration Method:

-	Messages: “SMS Backup & Restore”

-	Contacts: should be synced with the cloud, if not: Export to SIM card or SD card

-	Calendar: should be synced with the cloud

-	Notes: use “Google Keep”, it will be synced with the cloud

-	User Dictionary: “User Dictionary Backup”

-	Call Logs: “Call Logs Backup & Restore”

-	Launcher (assuming you use Nova Launcher): Settings -> Backup & import settings -> Restore or manage backups

-	Apps: “Helium” or any other app

store all backups in external SD card or transfer to your computer

---------------------------------------------------------

CHAPTER 3: ADDITIONS

- Temporary fix for Stagefright exploit

- Weather Widget

- XPosed

- Boot Animation

- TWRP Recovery Theme

- ExoPlayer for YouTube

- Ad-free

- Control

- Enhanced LG Touch Assistant

- Task Management

Temporary fix for 'Stagefright' exploit

Now, as we wait anxiously for our beloved OEMs to slowly update their softwares to patch for Stagefright, we are still vulnerable... UNTIL NOW! Here's a temporary protection for us, living in the slow ring of OTAs:

1. Open your messaging app.

2. Open your messenger's settings.

3. Disable "Auto receive MMS".

4. Repeat for all your other messaging apps.

5. DONE!

- If you're plainly lazy, download "Textra" messaging app which comes with in-built Stagefright protection!

Get G4's Weather Widget on ANY Launcher! (unofficial - Zooper theme)

My Official Thread: http://xdaforums.com/android/apps-games/lg-g4-s-weather-widget-launcher-phone-t3135381

Here's how to get the UNOFFICIAL G4's weather widget on ANY launcher,

including Smart Notice

.

These steps do require paid apps, so as to prevent piracy, I will not provide download links for these apps.

1. Download "Zooper Widget Pro" from the Play Store. *note: it must be PRO to make it work*

2. Download "UX 4.0 G4 for Zooper" from the Play Store.

3. Add a 4x2 Zooper Widget to any home screen.

4. Tap the widget to start.

5. Choose "UX 4.0 by N.A Dev".

6. Scroll down and choose "5x2 UX 4.0 Smart Notice."

7. Widget OnTap Action -> App List -> Weather App

8. Location -> Choose accordingly

9. Global Preferences -> Weather Provider -> Yahoo!

10. Calendar to display -> Deselect all events

11. Check the 1st Rich Text (it should be "Rect, W:388 H:192 R:0")

- Tap the pencil edit icon (most top right)

- Module OnTap -> App List -> Weather

12. Check the 2nd Rich Text ("Rect, W:400...")

- Edit

- Module -> Shortcuts -> Activities -> Smart Notice

13. Rich Text: (date, e.g. Monday, 15 June)

- Edit

- X Offset 181, Y Offset -5

- Module -> App -> Calendar

- Edit Text Manually -> Remove what's there and type this in: #DEEEE#, (enter next line) #DMMMM d#

- Lines -> 2

14. Rich Text: (location)

- X Offset -186, Y Offset -30

- Module -> App -> Maps

- Edit text manually -> Remove what's there and type this in: @ #LLOC#, (enter next line) #LCN#

- Lines -> 2

15. Rich Text: (updated on (time))

- Edit text manually -> Remove what's there and type this in: #BSTAT#: #BLEV#, #BTEMP#, #BLEFT#

16. Rich Text: "]"

- Blur 0

17. Add a Rich Text

- X Offset 0, Y Offset 4

- Edit text manually -> Remove what's there and type this in: #WCCOND#

- Size 14

18. Go back

19. Turn on Wi-Fi/Data & Location Services (if needed) & Force Update

20. Save

21. Quit Zooper App

22. Go to your home screen and tap "Refresh button".

23. Finally done!!

- Do remember to put Zooper on the Ignore List for any battery or task killer app!

---------------------------------------------------------

FAQ:

- Any battery impacts?

Shouldn't be, so long as you follow the steps correctly.

- What if my weather shows "??" or "Unknown"

Go into the Widget Settings and Force Update

- My location isn't accurate!

Manually tell the widget your location, don't use auto.

- The weather isn't accurate!

For now, there's no choice as it isn't powered by the all mighty Google or AccuWeather.​

---------------------------------------------------------

XPOSED FRAMEWORK:

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

(kudos to [MENTION=4419114]rovo89[/MENTION])

1.	Download “xposed-sdk21-arm-2015xxxx.zip” and flash in recovery

2.	Download “XposedInstaller_3.0-xxxx.apk” and install normally

3.	Download your favourite modules from the XDA indices

4.	Open Titanium Backup app and freeze “LG QuickCover”

5.	DONE!

BOOT ANIMATION:

6.x Marshmallow:

https://www.copy.com/s/t%3A83YzqkU0VlAHdSsY%3Bp%3A%252Fbootanimation-flashable.zip%3Boid%3A400

(kudos to [MENTION=2637536]Upstreammiami[/MENTION])

(flashable)

1.	Download “Root Explorer” app

2.	Go to root/system/media

3.	Mount R/W

4.	Change “bootanimation.zip” to “bootanimation.old”

5.	Download “bootanimation-flashable..zip” and flash in recovery

6.	DONE!

5.x Lollipop:

(if not flashable)

1.	Download “Root Explorer” app

2.	Go to root/system/media

3.	Mount R/W

4.	Change “bootanimation.zip” and “shutdownanimation.zip” to “bootanimation.old” and “shutdownanimation.old” respectively

5.	Copy your boot animation and shutdown animation of choice and rename to “bootanimation.zip” and “shutdownanimation.zip” respectively

6.	Change permissions to rw-r-r-T (Read Owner, Read Group, Read Others, Write Owner, Sticky)

7.	Mount R/O

8.	Reboot

9.	DONE!

TWRP Recovery Theme

http://xdaforums.com/android/themes/theme-twrp-materialised-dark-light-play-t2915584

(kudos to [MENTION=2719389]z31s1g[/MENTION])

1.	Choose 1440x2560 Themes Folder

2.	Download your chosen zip file to your device

3.	Change "28xX_vx_1440_xxxx.zip" to "ui.zip"

4.	Open your favourite file manager app

5.	Go to the TWRP folder

6.	Create a folder named "theme"

**no capital letters!**

7.	Copy "ui.zip" into this folder

8.	Reboot to recovery

9.	DONE!

Faster YouTube: ExoPlayer

http://r3pwn.github.io/yt-exoplayer.html

1.	Download “Root Explorer” app

2.	Go to data/data/com.google.android.youtube/shared_prefs

3.	Add the following lines below "<map>":

<string name="exo_player_activation_type">ADAPTIVE</string>

<boolean name="enable_exo_cache" value="true"/>

<boolean name="show_exo_player_debug_messages" value="true"/>
​

4.	Once done, close and mount R/O

5.	Force Close YouTube app in Application Settings

6.	Reboot

7.	Done!

Ad-Free

- Download "AdAway" app from F-Droid

https://f-droid.org/repository/browse/?fdid=org.adaway

Control

- Download "SELinux Mode Changer" from F-Droid

https://f-droid.org/repository/browse/?fdfilter=selinuxmodechanger&fdid=com.mrbimc.selinux

Enhanced LG Touch Assistant

http://xdaforums.com/lg-g3/themes-apps/app-touch-assisstant-themed-t3199658

(kudos to [MENTION=4482814]no14me[/MENTION])

1.	Download “Root Explorer” app

2.	Go to root/system/priv-app/LGSettingsAccessibility

3.	Mount R/W

4.	Change “LGSettingsAccessibility.apk” to “LGSettingsAccessibility.old”

5.	Copy your accessibility of choice and rename to “LGSettingsAccessibility.apk”

6.	Change permissions to rw-r-r (Read Owner, Read Group, Read Others, Write Owner)

7.	Mount R/O

8.	Reboot

9.	DONE!

Task Management

- Download "Greenify" or "Servicely"

http://www.apkmirror.com/apk/oasis-feng/greenify/

http://www.apkmirror.com/apk/francisco-franco/servicely/

---------------------------------------------------------

CHAPTER 4: FONTS

- Font

- Emoji

Changing ROM Font

http://xdaforums.com/android/themes/fonts-flashable-zips-t2964304

(kudos to [MENTION=1546609]gianton[/MENTION])

Simply flash the zip in recovery and done!

Changing Emoji

New iOS 8.3 Diverse Jaundice Emoji:

http://xdaforums.com/android/software-hacking/mod-apple-8-3-diverse-color-emoji-t3136169

(kudos to [MENTION=4052511]caiosilva96[/MENTION])

1.	Download “Root Explorer” app

2.	Go to root/system/fonts

3.	Mount R/W

4.	Change “NotoColorEmoji.ttf” to “NotoColorEmoji.old”

5.	Copy your emoji of choice and rename to “NotoColorEmoji.ttf”

6.	Change permissions to rw-r-r (Read Owner, Read Group, Read Others, Write Owner)

7.	Mount R/O

8.	Reboot

9.	Now, on your phone (with new emojis installed), go to http://emojipedia.org/skin-tone-modifiers/

10.	Copy the "(skin colour)" that comes before "Emoji Modifier Fitzpatrick Type-1-2"

11.	Go to your settings app, then keyboard settings, then personal dictionary

12.	Create a new word "(skin colour)", shortcut of "skin2"

13.	Repeat for skins 3-6

14.	Reboot if you want to

15.	DONE!

- To change the skin colour, type the emoji, followed by the shortcut word (e.g. "skin2")

OR:

Traditional iOS Emoji:

http://xdaforums.com/lg-g3/themes-apps/howto-change-lg-smiley-to-google-smiley-t2809012

(kudos to [MENTION=3932518]Soulfly999[/MENTION])

1.	Download “Root Explorer” app

2.	Go to root/system/fonts

3.	Mount R/W

4.	Change “NotoColorEmoji.ttf” to “NotoColorEmoji.old”

5.	Copy your emoji of choice and rename to “NotoColorEmoji.ttf”

6.	Change permissions to rw-r-r (Read Owner, Read Group, Read Others, Write Owner)

7.	Mount R/O

8.	Reboot

9.	DONE!

---------------------------------------------------------

CHAPTER 5: BATTERY

- The cliche...

- Extreme

- Resolution changing

the cliche stuff...

Turn on power saving, turn off bluetooth, Wi-Fi, data, NFC etc., turn off automatic brightness and blah blah blah...

The Extreme Battery Life

http://xdaforums.com/android/general/guide-extreme-battery-life-t3095884

(kudos to [MENTION=5867207]vaisakh7[/MENTION])

Change resolution down to 1080p

- Download "NOMone Resolution Changer" from the Play Store:

https://play.google.com/store/apps/details?id=com.nomone.resolution_changer&hl=en

(more coming soon)

---------------------------------------------------------

CHAPTER 6: GOODBYE

GO BACK TO STOCK + UNROOT + LOCK BOOTLOADER:

1.	Backup your data!

2.	Download “LG Flash Tool 2014”

3.	Download your stock KDZ file of choice and of device model

4.	Run “LGFlashTool2014”

5.	Enter Download Mode:

a.	Turn off the phone

b.	Press and hold the ‘Volume Up’ key and connect your USB cable to the computer at the same time once the phone is fully turned off​

6.	Set PhoneMode to “DIAG”

7.	Select your downloaded KDZ file

8.	Click “CSE Flash”

9.	Click “Start” (DO NOT CLICK ANYTHING ELSE)

10.	Click “OK” (DO NOT CLICK ANYTHING ELSE)

11.	DONE!

(doesn't work any more :( )

---------------------------------------------------------

CHAPTER 7: MISCELLANEOUS

- Developer Settings

- Nova Launcher Secret Labs

- Free Google Drive

- Official wallpapers

ENABLING DEVELOPER SETTINGS:

1.	Settings app

2.	About phone

3.	Software info

4.	Tap build number repeatedly until it prompts you

**secret** ENABLING NOVA LAUNCHER LABS SETTINGS:

1.	Nova Settings

2.	Hold down ‘volume down’ key until it prompts you

FREE 100GB GOOGLE DRIVE STORAGE!!!

1.	Open Drive Settings

2.	Finish the Product Tour to redeem!

OFFICIAL G4 WALLPAPERS:

http://www.phonearena.com/news/Download-the-official-LG-G4-wallpapers-here-leather-background-included_id69079

(kudos to PhoneArena)

---------------------------------------------------------------------------------------------------------------------------------

Thanks for reading. If this helped, do give me a thumbs up.

Frankly, I do not want any donations.

"Let's get this pinned on the General Thread shall we? Pretty please with cherry on top..." :victory:

“Hi, I am Lousyguyy, a guy lousy enough to do this.”