[G4 Q&A, Help & Troubleshooting] steadfasterX:
Restore a previously taken backup or partitions of an already extracted KDZ

There are 2 methods available - choose the one matching your needs:

A) Restore a previously taken DLM Backup

B) Flash a KDZ / LGUP NG by sfX

Unfortunately this may not work on every firmware so you may try different firmwares then and you will receive the same error regarding communication port closing but in general it should work this way.

A) Restore a previously taken DLM Backup / Restore partitions from an extracted KDZ

To restore single partitions use the following

sudo python2 auth.py

sudo python2 partitions.py --restore /path/to/dumpfile partitionname

e.g.

sudo python2 auth.py

sudo python2 partitions.py --restore /tmp/misc misc (would restore the misc partition)

To restore ALL partitions in a folder

For this the best is to use the new LGUP NG kdzmanager which is explained in the next topic.

Install LGUP NG but skip the steps to extract a KDZ if you don't need it.

Then:

bash kdzmanager.sh --test --flash /path/to/imagefiles

(/path/to/imagefiles must contain your previously taken DLM backup files or an extracted KDZ)

This will just test flashing and not actually flash.

If that looks fine do it again but without --test parameter:

bash kdzmanager.sh --flash /path/to/imagefiles

B) Flash a KDZ / LGUP NG (next generation) by sfX

Forget LGUP to flash a KDZ from now on!

Just use my KDZManager ;)

Features:

No worries anymore about those crappy DLL issues

Extract a KDZ

Test flashing partitions (dry run without actually flashing anything)

Flash partitions from a KDZ

when flashing avoid erasing/wiping userdata (keep your data between KDZ flashes)

Hint: not wiping userdata can occur in a bootloop when its not compatible with the ROM! So use that option with care.

will work on any Linux (but FWUL is the only supported)

Keep in mind that this is an early release and there are NO CHECKS

like ARB or even if the device model matches with the KDZ but THIS WILL ALL COME (even with an option to override and flash regardless) :)

Roadmap:

GUI

Check for matching device model

Check for ARB

Instructions:

Boot FWUL (or your Linux but keep in mind that only FWUL is supported), choose language & login

Download the KDZ file you want to flash (we need to know the path later e.g. /home/android/Downloads/)

Open the folder

LG

Connect device in download mode to the PC

Double click "LG laf NG" icon

Type in the new opened terminal:

sudo python2 auth.py

[*]sudo python2 partitions.py --list

If this lists your partitions then we can proceed with flashing.

Download my brand new kdzmanager tool in FWUL: (right click and save as)

When you are not using the persistent mode of FWUL: plug in a big USB stick (e.g. 32 GB or more) into FWUL and extract the attached file there

When you are using the persistent mode of FWUL: just extract it in your download folder

You need to know the full path so best is copying the path from the file manager (e.g. /home/android/Downloads/ ) or leave the file manager open there

Open another terminal (black little icon in the panel)

cd and directly behind this paste the path you copied (e.g. cd /home/android/Downloads/ )

press ENTER

bash kdzmanager.sh -x FILLINFULLPATH-TO-DOWNLOADED-KDZ

(e.g. bash kdzmanager.sh -x /home/android/Downloads/h811blablubb.kdz)

WARNING-1: Keep in mind that atm kdzmanager is not able to proof if you choose a compatible KDZ file for your device!

Check your device model and the KDZ twice!

WARNING-2: Keep in mind that atm kdzmanager is not able to proof your current ARB version so flashing an smaller ARB then your current one will BRICK your device.

Check ARB first: CLICK

If you understood the above 2 warnings proceed like this:

bash kdzmanager.sh --test --flash extracteddz/

(just like this as "extracteddz" is the path generated by the kdzmanager)

This will just test flashing and not actually flash. Let me know the results of this (copy & paste output)

if you can't wait the next step would be actually flashing ofc:

WARNING: by default the kdzmanager will not overwrite userdata (which would be like a factory reset) and I would recommend to leave it out always and better choose the LG factory reset menu (after flashing completed) if required. If you still want to flash it use --with-userdata as a parameter (can take a loooong time then btw).

bash kdzmanager.sh --flash extracteddz/

last step ( will be included in the next release): wipe your userdata:

sudo partitions.py --wipe userdata

Or just use the factory reset hardware key combo to do the same.

If you skip this step you may encounter a bootloop. If that happens you can at any time use the hardware key combo to boot into factory reset to fix that.

sfX