[LG V30 Guides, News, & Discussion] tamakooo:
PART 2

STEP 4: TWRP AND FULL SYSTEM FORMAT

Disclaimer

We are going to format/factory reset your phone and delete all your data.

4.1 FROM TWRP

(Note: if you have magisk installed, to boot into TWRP simply go to 'Modules' in left plane of Magisk and in right pane inside 'Modules' there is option to 'reboot into recovery')

[ FOR THE LG V30, another method to boot into TWRP via volume down+power button is here: https://www.youtube.com/watch?v=VJF8oTGqohg

HARDWARE KEYS TO BOOT INTO TWRP:

> continue holding volume down and power button (10 sec)

>continue holding for the bootloader warning too

>as soon as LGV30 white logo appears on black background immediately unpress and repress the power button and

>continue holding both buttons

>a screen comes saying all your files will be deleted, press volume down button to YES, then press power button

>the same screen reappears again, press volume down button twice to YES, then press power button

>wait, phone reboots

>the same screen giving warning comes again

>Don't press any buttons

>After a while TWRP starts

4.1.A. PERFORM A FULL FACTORY RESET

In TWRP,

go to WIPE

SELECT ADVANCED WIPE

SELECT: DALVIK / ART CACHE

DATA

INTERNAL STORAGE

CACHE

(NOTE: don't wipe SYSTEM if you don't have flashable rom zip, there won't be any system to boot into)

(NOTE: after factory reset, Magsik must be re-flashed from TWRP, there will be Magisk icon in a firmware with previously Magisk installed, but it won't work)

(NOTE: many android roms now require a encryption disabler, make sure you have that in a flashble zip file for your rom)

SWIPE TO PERFORM ADVANCED WIPE, DON'T REBOOT.

THERE IS NOTHING IN INTERNAL MEMORY NOW

4.1.B FROM SD CARD/OTG

FLASH MAGISK 19+ ZIP

FLASH ENCRYPTION DISABLER ZIP

FLASH LG ROOT CHECK DISABLER ZIP

4.1.C IF YOU DONT HAVE SD CARD/USB OTG

follow STEP 5(not 5.1), after system starts connect phone to PC. copy the folder from PC to phone's internal memory.

COMPLETE STEP 4.1.B

While still in TWRP, go to WIPE and perform the default TWRP wipe then follow step 5 and 5.1 .

Remember this time you are not wiping your internal storage so 4.1.C users need not follow step 6. The copied folder is still there.

STEP 5: LET THE SYSTEM BOOT NORMALLY, DON'T CONNECT TO INTERNET

5.1 After booting up your system, configure settings to your like, manage display size, change your wallpapers etc.. to your liking.

THIS IS THE BASE SYSTEM WHICH WE WILL TAKE A BACKUP OF and which YOU WILL BE CONSTANTLY RESTORING VIA TWRP SHOULD ANYTHING GO WRONG.

5.2 ONLY FOR LG PHONES

LG Apps like HIFI Recorder and Smartdoctor have a Terms of use Screen before using that app for the first time. Removing google apps makes the terms of use app crash and consequently app like HIFI Recorder refuse to start. This is possible to bypass by the following method:

After step 5, open all Lg apps that you want to use like Hifi Recorder, Lg health etc and accept the terms and conditions. Once that is done; you can even remove those EULA app, Terms and conditions app...

I believe this is due to the lack of webview which gets removed along with 'Android System Webview'.

However, by the end of this post we will have a fully working, trackers and AD free Bromite webview.

STEP 6: MAKE SURE EVERYTHING IS FINE, COPY THE FOLDER FROM PC TO INTERNAL MEMORY/SD CARD/USB OTG AND REBOOT PHONE

STEP 7: BACKING UP YOUR SYSTEM IMAGE IN TWRP

After rebooting, reboot into TWRP via Magisk.

WHEN YOU START DELETING SYSTEM APPS, SYSTEM MIGHT NOT BOOT, GET STUCK IN A BOOT LOOP, HANG INFINITELY ETC. , IT TOOK ME 15+ SYSTEM RE-INSTALLS TO GET A WORKING LIST OF REMOVABLE APPS WITHOUT GETTING CAUGHT IN A BOOT LOOP.

RE-INSTALLING SYSTEM FROM A FLASHABLE ZIP IF ANYTHING GOES WRONG IS A LENGTHY, TEDIOUS PROCESS AND YOU WILL HAVE TO REPEAT EVERYTHING DONE TILL NOW.

TO MAKE RE-INSTALLING SYSTEM EASIER FOR YOU, YOU ARE GOING TO TAKE A COMPLETE SYSTEM IMAGE FROM A CLEAN INSTALL, THIS PROCESS IS IMPORTANT

In TWRP , go into BACKUP

Excluding 'SYSTEM IMAGE' back up everything to internal storage/SD, it only takes up a few minutes.

YOU NOW HAVE A COMPLETE MIRROR IMAGE OF YOUR SYSTEM. IF ANYTHING GOES WRONG AFTER REMOVING ANY APP, IT LITERALLY TAKES ONLY 2 MINUTES TO GET YOUR SYSTEM UP AND RUNNING FROM THE BACKUP.

STEP 8: REBOOT

STEP 9: INSTALL TITANIUM BACKUP,ALLOW ROOT ACCESS

STEP 10: FIND A LIST OF UN-INSTALLABLE GOOGLE APPS.

Personally, I think the easiest way is to download a FULLgapps package from 'opengapps.org' for your android version, extract it and find a file titled ' remove-gapps.txt ' . This gives you a basic idea of which packages are from google and which are not.

As a rule of thumb, packages with name like com.google.NSA_spyware are from google and packages with brand/vendor names like (here LG ELECTRONICS/lge) com.lge.hippityhoppityLGproperty are from your phone brand. Packages with name like com.android.teagoodcoffebad are core shared android apps, don't delete these.

UPDATE: DON'T USE THIS \ CAUSES BOOTLOOP thanks @cascabel for checking

HOWEVER, YOU CAN USE THIS FOR FINDING OUT GOOGLE PACAKGES YOU ARE UNSURE OF
[COLOR="Sienna"]There is this zip file specially made for removing gapps:
' [url]https://github.com/CHEF-KOCH/Remove-Gapps/releases[/url] '
but I didn't use that and it doesn't remove 'Android System Webview'
so it's upto you to find a list of removeable apps from your system.[/COLOR]

NOTE: nanoDroid/microG is a collection of open source softwares that combine the functionality of google services in a open source package. It is said that the nanoDroid installer automatically removes google packages during install. We will be installing nanoDroid later.

However, nanoDroid installer didn't remove google apps from the LG V30 OREO.

IF YOU SIMPLY WANT TO REMOVE SYSTEM AND GOOGLE APPS ON A HIT AND TRIAL BASIS, IT'S OK TOO AND THAT'S WHAT I DID BECAUSE WE HAVE A FULL SYSTEM BACKUP AND WE CAN RESTORE EVERYTHING EASILY IN 2 MINUTES.

STEP 10: IN TITANIUM BACKUP:

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

THIS PROCESS IS FOR BATCH REMOVING APPS THAT YOU ARE SURE ARE BLOATWARE\GOOGLE APPS like DRIVE,DUO,GMAIL etc

At the top right corner there are three icons: a search icon, a file with tick mark, and menu: Select the middle one.

This opens the 'Batch actions -ALL'

Swipe down to 'Un-install'

In Un-install, the last option is : 'Un-install all all user & system apps'

Select that, don't worry it just opens a page with all your apps.

Note the green tick mark at the top right corner.

Deselect all and select only the ones that you want to remove.

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

NOTE: YOU WILL FIND A LOT OF APPS WITH NAME ENDING IN OVERLAY like com.android.phone.overlay corresponding to an app com.android.phone.

They are very very small sized files and not full apps. I don't know if it is okay to leave them but by far there has been no problems leaving them alone.

Also if you remove the main app then TITANIUM BACKUP will show an error while trying to remove the overlay. JUST LEAVE OVERLAYS ALONE or REMOVE OVERLAYS BEFORE REMOVING THE MAIN CORRESPONDING APP.

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

DELETING APPS ONE-BY-ONE

ALSO: HOW TO KNOW A PACKAGE NAME IN ANDROID:

To know a package name like com.google.calculatorprebuilt from an app titled calculator so that you can be sure where the package is coming from (google/vendor/AOSP android), open TITANIUM BACKUP and in the first screen there is overview BACKUP/RESTORE Schedules; SELECT BACKUP/RESTORE and click any app. On the new window, select the button with YELLOW TEXT and find Package name.

If you are sure to remove this app, on this new window there is a option in RED titled UN-INSTALL!. Hit OK twice and uninstall the app.

Update: IN THE LG V30 removing 'Android Services Library 1' and 'Android Shared Library 1' causes bootloop and their name start with com.google.package....

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

STEP 12: AFTER REMOVING A FEW APPS RESTART YOUR SYSTEM

NOTE THE PACKAGES YOU HAVE REMOVED.

Often times, many apps inter-rely on each other and removing one app may cause other to crash.

IF THE SYSTEM BOOTS UP, FINE. CONTINUE REMOVING SYSTEM APPS.

STEP 13: BOOTLOOP AFTER REMOVING SYSTEM APPS/

SYSTEM REFUSES TO BOOT AFTER REMOVING GOOGLE APPS/

SYSTEM STUCK ON LG LOGO

This usually happens when you remove a core system app and the system fails to boot.

FOR A CONDITION LIKE THIS IS WHY WE TOOK A WHOLE SYSTEM BACKUP IN TWRP BEFORE (also called nAndroid Backup)

NO PROBLEM, FOLLOW STEP 14

STEP 14: RESTORING SYSTEM FROM A BOOTLOOP

1. BOOT INTO TWRP

2. GO TO RESTORE

3. RESTORE SYSTEM

4. DONE