[TOOL][LOCKED/UNLOCKED] SALT - The LG(up) revolution (begins)

Search This thread

steadfasterX

Recognized Developer
Nov 13, 2013
6,257
15,488
127.0.0.1
OnePlus 7T Pro
Not trying to restore userdata.bin to my old LG G4. I got a new phone (same as yours looks like, a OnePlus 6T), I know can't flash it to the 6T, I'd just like to extract the userdata.bin files onto my PC if possible. There is one app in particular called Safe Areas that is extremely useful but no longer available in app store, and also my pics would be nice to get. I know this isn't a SALT issue per se but the backup was made with SALT and I can't seem to extract using PowerISO so I'm stuck.

as said.. mount the image in SALT -> advanced menu. Then you select browse image and you can copy what you want from your backup


.-
 
Last edited:

steadfasterX

Recognized Developer
Nov 13, 2013
6,257
15,488
127.0.0.1
OnePlus 7T Pro
  • Like
Reactions: Whoareyou
Jul 12, 2016
23
1
Running Debian. I'm stuck at this part...
and pip3 install python-zstandard (hint: you may need to install python-pip3 first)
I get this
"Collecting python-zstandard
Could not find a version that satisfies the requirement python-zstandard (from versions: )
No matching distribution found for python-zstandard"
 

steadfasterX

Recognized Developer
Nov 13, 2013
6,257
15,488
127.0.0.1
OnePlus 7T Pro
Running Debian. I'm stuck at this part...

I get this
"Collecting python-zstandard
Could not find a version that satisfies the requirement python-zstandard (from versions: )
No matching distribution found for python-zstandard"
Oops sorry:

pip3 install zstandard

is the correct cmd.. (not python-zstandard)
Thx for pointing .


Sent from my OnePlus 6T using XDA Labs
 
Jul 12, 2016
23
1
Oops sorry:

pip3 install zstandard

is the correct cmd.. (not python-zstandard)
Thx for pointing .


Sent from my OnePlus 6T using XDA Labs

Now I'm running into "Failed building wheel for pycparser" so I'll have to look into it after work.
Also a side note for pip3: !
Looks like after installing pip3 you need to run a few commands to "update" it (I'm guessing that's what it is) using the
Code:
pip3 install --upgrade setuptools

I'm going to look into pip3 when I get back, I think those commands might be fast and loose so be careful!
 

TacoShow

Member
Dec 11, 2018
25
5
Please help me bring up to speed in comprehending what SALT is all about. I've read the OP, but I still am unsure what I should expect from this utility.

  • Can I with SALT make a full backup of my device just like a TWRP backup, and reflash the backup to unbrick my device (like it did when the LG G7 had gotten into a bootloop due to a crappy update)?
  • Does SALT work with the LG V40 (at least the LM-V405EB, LV-V405EBW)?
  • In the OP it is mentioned that with SALT you can unlock the LG G4, but is it known whether you can use it to unlock the LG V40?
 

steadfasterX

Recognized Developer
Nov 13, 2013
6,257
15,488
127.0.0.1
OnePlus 7T Pro
Can I with SALT make a full backup of my device just like a TWRP backup
No. SALT goes much further then TWRP . In TWRP you will backup some(!) partitions but never all. In SALT you can backup every single partition which is the only full real true nandroid backup .

and reflash the backup to unbrick my device (like it did when the LG G7 had gotten into a bootloop due to a crappy update)?
Depends. On unlocked devices you can do so easily on every android version and on every device.
For this you would.just bring up fastboot and flash your backup back.

On locked devices it requires a compatible download mode (usually that means Lollipop or MM) . The flashing part in SALT while in download mode for locked devices is still under heavy development and so is not shown up by default in SALT .


In the OP it is mentioned that with SALT you can unlock the LG G4, but is it known whether you can use it to unlock the LG V40?
The unlock is only available for the g4 sorry.


Sent from my OnePlus 6T using XDA Labs
 
  • Like
Reactions: TacoShow

DarrenNewsgroup

Senior Member
Apr 9, 2011
355
143
Samsung Galaxy Note 20 Ultra
Hi @steadfasterX

I am trying SALT on my LG G6 H870 and have some positive starts but also some questions

I tried to use FWUL (persistent) - the 8GB version - on an SDCARD in my USB SDCARD reader formatting it with ETCHER but when I booted the PC from the SDCARD (as USB) I got an error saying

HTML:
Failed to load ldlinux.c32

I the tried booting as UEFI and it got a bit further but still no joy

I then burnt the forgetful ISO to a 4.7GB DVD and this booted OK. I had a problem with it saying error /dev/disk/by-label/FWUL but this seemed to disappear when I booted from DVD and I had removed my SDCARD.

Anyway I booted off the DVD and put my phone into DOWNLOAD mode. SALT recognised the phone as an H870 and I could get a partition list once I had gone into a terminal and entered your UFS text

HTML:
cd ~/programs/lglafng
git checkout ufs-test

In the main window I could "REBOOT your device" and the phone rebooted.

Once I went back into download mode and restarted SALT I tried to do the backup partitions and this is where I got stuck. Everytime I tried to backup a partition I got the error message

HTML:
ERROR:
Calculated target size is too small (0)!
Upload and share the debug log

I assume this is because I am running the forgetful DVD and there is no writeable disk space on the DVD. I have 3 hard disks on the PC, one of which had 65GB free and I managed to mount it after having to enter the password "linux" when I double clicked the disc in the File Manager app.

I am not sure how to tell SALT that I want my data backed up to a folder on that drive.

I guess on the persistent USB version the USB is writeable to store the partition backups.

I have linked my SALT debug log here https://bpaste.net/show/14dd48bf33f5

What is my next move?

Darren
 
  • Like
Reactions: steadfasterX

Seedmanc

New member
Feb 8, 2019
3
0
LG G4 bootloop

So I tried Salt with virtual box, I tried with natively, booting my PC with it, I tried various USB cables and ports, but no matter what I do I can never get past the 2 gigabytes of my userdata partition backing up before it hangs. Sometimes it hangs even before that. I also tried some of those extract partitions.py scripts and it hung just after a few dozens of files. Worst of all, Salt refuses to mount the unfinished .img file so I can't even get the little data I manage to pull out of it. The file recovery utility bundled with FWUL only extracts around 500mb of data from that 2gb image. The other .py scripts in the LG folder I tried complain about some inconsistent indentation somewhere.
I don't think it's caused by the phone heating beyond the cryogenic temperature it only works at now, since it doesn't reboot after Salt hangs, however Salt doesn't recognize it when I launch it again. After a while it reports "backup success" and only then it starts recognizing it again.

My questions are as follows:
1) How to get past the 2gb limit and recover my data properly?
2) If not possible, how to mount at least the 2gb I got?
3) Why isn't it possible to view the partition filesystem itself so the user would be able to only download the files they need instead of wasting time downloading entire partition that might never succeed? Somewhere in those .py scripts I saw a mention of "download a particular file from the phone" so it should be possible. I'd rather just download all *.jpg files to get my photos back, for example.
 

steadfasterX

Recognized Developer
Nov 13, 2013
6,257
15,488
127.0.0.1
OnePlus 7T Pro
...... I managed to mount it after having to enter the password "linux" when I double clicked the disc in the File Manager app.

I am not sure how to tell SALT that I want my data backed up to a folder on that drive.

I guess on the persistent USB version the USB is writeable to store the partition backups.

I have linked my SALT debug log here https://bpaste.net/show/14dd48bf33f5

What is my next move?

Darren
Thanks for your valuable feedback!

Well sdcard isn't tested and as you saw it may not work properly.. Sorry for that but USB is the only true way to go.
Well that error means I need a live debug. There is nothing you could do else atm .
You can use dvd ofc and its fine when you mount your windows disk. It will not help now but for later after fixing the current issue.

hi will the LG G7thinQ be in the list of supported models.
thanks
Sure

My questions are as follows:
1) How to get past the 2gb limit and recover my data properly?
2) If not possible, how to mount at least the 2gb I got?
3) Why isn't it possible to view the partition filesystem itself so the user would be able to only download the files they need instead of wasting time downloading entire partition that might never succeed? Somewhere in those .py scripts I saw a mention of "download a particular file from the phone" so it should be possible. I'd rather just download all *.jpg files to get my photos back, for example.
There is no such xx GB limit in SALT . It VERY likely means your target storage do not have enough free disk space.
Usually you need to mount your windows disk and point the backup target there.

It's normal that in download mode a command must run until it finishes even when it locally failed. There are only 2 ways to abort that. Either force a reboot to download mode or wait..

You need the full partition to mount it properly (well without doing Linux stuff).
You could try the qphotorec Tool on that incomplete file though .

Keep in mind that the userdata partition must be UNENCRYPTED otherwise you would just backup a bunch of unreadable data.

Yes in theory it is possible to implement such a file browser but it isn't there atm. Why? Nobody asked for that . If you want that feature feel free to add a feature request on my bug tracker.



Sent from my OnePlus 6T using XDA Labs
 
Last edited:
  • Like
Reactions: mrrocketdog
Jul 12, 2016
23
1
I heard that I should flash something before the Dec 2017 security patch. I can't find any KDZ files unfortunately and was hoping someone here would have a server I could pull it from.
 

TacoShow

Member
Dec 11, 2018
25
5
No. SALT goes much further then TWRP . In TWRP you will backup some(!) partitions but never all. In SALT you can backup every single partition which is the only full real true nandroid backup .

Depends. On unlocked devices you can do so easily on every android version and on every device.
For this you would.just bring up fastboot and flash your backup back.

On locked devices it requires a compatible download mode (usually that means Lollipop or MM) . The flashing part in SALT while in download mode for locked devices is still under heavy development and so is not shown up by default in SALT .

Well I'm very thrilled by the existence of SALT, so thank you for answering. So it looks like that SALT is the tool that allows to recover from data wipe after unlocking. I dread unlocking an already in-use device, as backing up stuff & restoring from within Android is limited, time consuming and overall just annoying to deal with.

Lastly:
Is SALT only compatible with LG devices? Or does the list on point 7 in the FAQ literally mean that only those devices are supported, and any device that is omitted from the list will not work with SALT?
Can you choose which partitions you'd want to restore with SALT?
Is there a place where you can track the progress on V40 support being added to SALT?
 

Seedmanc

New member
Feb 8, 2019
3
0
It VERY likely means your target storage do not have enough free disk space.

I certainly don't have a free space limit, I have plenty (50gb), besides Salt wouldn't even let me start the backup if I didn't have enough. 2.2gb is just the most I was able to get, sometimes it fails at 1.5 or even 300mb. I think I saw a user earlier in this thread having a similar issue with their system partition.
It is very strange that nobody asked for a file browser feature, no way only my phone is dead to the point of the partition image being unrecoverable. Besides, downloading by a filemask would reduce the free space requirements and the time needed, and time is of essence when the phone only works after being put in a freezer and quickly heats up to the room temperature and stops working.
I managed to mount the incomplete image using some Windows software so I had a little more luck recovering the files from it now.
 

steadfasterX

Recognized Developer
Nov 13, 2013
6,257
15,488
127.0.0.1
OnePlus 7T Pro
Well I'm very thrilled by the existence of SALT, so thank you for answering. So it looks like that SALT is the tool that allows to recover from data wipe after unlocking. I dread unlocking an already in-use device, as backing up stuff & restoring from within Android is limited, time consuming and overall just annoying to deal with.
Yes at least when the device was not encrypted then for sure. It may even work when encrypted as long as the encryption footer / metadata partition will be restored too.

Lastly:
Is SALT only compatible with LG devices?
Yes. SALT is made for LG only. The way SALT operates depends on the LG download mode and so can't be adapted to other devices easily.

Or does the list on point 7 in the FAQ literally mean that only those devices are supported, and any device that is omitted from the list will not work with SALT?
That list lists confirmed devices only . In theory ANY LG device will work. Newer devices need a workaround which is mentioned there as well until I had the time to implement the auto detect for UFS devices .

Can you choose which partitions you'd want to restore with SALT?
Of course. Currently flashing supports 2 modes:
Kdz flash
Folder flash (e.g from a folder which contains a previously taken backup)

Both will let you choose the partitions to flash and even more you can change even the destination partition on the folder flash mode. E.g. You could flash TWRP in the boot or laf partition etc.

Is there a place where you can track the progress on V40 support being added to SALT?
Sure:
https://github.com/steadfasterX/SALT/issues/29


I certainly don't have a free space limit, I have plenty (50gb), besides Salt wouldn't even let me start the backup if I didn't have enough. 2.2gb is just the most I was able to get, sometimes it fails at 1.5 or even 300mb. I think I saw a user earlier in this thread having a similar issue with their system partition.
Without the debug log (see faq) I can't say why that happens to you sorry.





Sent from my OnePlus 6T using XDA Labs
 
  • Like
Reactions: TacoShow

Top Liked Posts

  • There are no posts matching your filters.
  • 98
    Before reading any further


    This thread is best viewed in a browser!
    Mobile apps may parse the XDA formatting not correctly and may screw things up.


    About

    salt_pre.png


    steadfasterX's All-in-one LG Tool (SALT)



    SALT is able to communicate with your device while in download mode and provides these features:

    Detects your:
    • ARB
    • device model
    • firmware version (short)
    • firmware version (full)
    • country of firmware
    • Secure device state
    • Battery Level

    Is able to:
    • working completely without any LG dll (no more issues with replacing LGUP_xxxx.dll anymore!)
    • backup your device (predefined modes: full & basic and since v3.20 even a custom mode)
    • extract KDZ files
    • display your partitions (including what each partition is like bootloader etc!)
    • open a shell on the device*
    • ERASE (HOLY SH*** this is DANGEROUS!) one or multiple partitions
    • verify a taken backup (read all about this here)
    • self-update

    In development (already working on LP firmware! NOT on MM or N! read the Note):
    • Flashing a folder (e.g. from a previous backup)
    • Flashing a KDZ
    IMPORTANT NOTE: Do not use the underlying code backend (lglaf /partitions.py) to RESTORE image files (yet)!
    Reason:
    LG has changed the mechanism in MM and later for writing to a partition! It seems that the reason is that each write must be authenticated differently or at least another one for the fsync.




    Requirements

    mAid (fka as FWUL) (recommended)

    No requirements as SALT and everything needed is included there!
    Highly recommended: booting mAid from USB stick to avoid any connection issues.
    Ensure you use the latest mAid release and start SALT by opening the LG folder on the desktop.
    Now just click the update button once SALT is started to ensure you have the latest and greatest SALT version!

    Linux:
    I recommend mAid (fka FWUL) in general but SALT is made to be run on any Linux (if you can set it up).
    Requirements to install before beginning:
    yad, git, python3, python3-pyusb, python3-crypto, python-zstandard (python3), python-pip (python3) and pkexec/policykit
    (instead of pkexec/polkit gksudo will work too but this has been removed from many distributions)

    On mAid:
    • open the Folder "LG" from the desktop and start SALT :)

    On Arch:
    • sudo pacman -Sy polkit git xterm python-pyusb python-crypto python-pip
    • yay -Sy yad python-zstandard (hint: you may need to install yay first)
    • sudo pip3 install cryptography

    on Manjaro:
    • sudo pacman -Sy polkit yad git xterm python-pyusb python-crypto trizen python-pip python-zstandard
    • sudo pip3 install cryptography

    on *buntu, Debian, Mint and on all derivates of those:
    • sudo apt install policykit-1 yad git xterm python3 python3-usb python3-pip
    • sudo pip3 install zstandard
    • sudo pip3 install cryptography

    you may need to setup your udev rules as well: android-udev-rules thats another reason why I recommend mAid ;) this is all implemented there out of the box..!!

    Windows:
    Windows users should use SALT in mAid which is highly recommended for many operations with Android devices. Also read & follow the above topic "mAid (fka FWUL) (recommended)".


    Installation (not needed on mAid! Just open the LG folder and start SALT)

    1. open a terminal
    2. type:
      git clone https://github.com/steadfasterX/SALT.git cd SALT bash install-desktop.sh
    3. read the output and if required copy the SALT.desktop file manually to your Desktop.
    4. double click the SALT icon or while in a terminal start SALT with: sudo ~/SALT/salt
    5. When starting SALT the first time you will be prompted to install necessary backend tools.
      Choose YES to install them!

    Note:
    Even when the downloads tab in this project will contain releases the most up-to-date code can be fetched via the above way only.
    Nevertheless you can download the tar file from the Downloads tab but ensure that you're using the latest code by starting an update (Update button in SALT) afterwards.


    Usage

    Start the device in download mode and connect it to the PC.
    Start SALT.
    Usually the download mode should be fully ready in 20 - 60 seconds after you see the cycling arrow screen.
    But some devices needs up to >= 90 seconds until SALT can detect your device.
    If you still get trouble connecting boot the device in download mode and let it connected that way while rebooting mAid (fka FWUL) or your personal Linux.


    Known Issues

    A current list of all known issues can be found at the bugtracker


    Support




    Credits (without them no SALT)

    SALT is based on:


    • YAD (yet another dialog) -> GUI
    • the awesome LGLAF code and reverse engineering by Peter Wu & friends ;)
      -> general communication with the device like: flash, dump, getinfo, erase, list partitions, ...
    • kdztools by Elliott Mitchell -> extracting KDZ files
    • MANY enhancements by steadfasterX -> bring all together plus much more :)

    SALT's own sources:

    Special credits:

      • @runningnak3d for his incredible reverse engineering skills which makes SALT better and better each day :) it's great to have you in the community !
      • tuxuser for making LAF communication on Nougat possible and for his great support!




    XDA:DevDB Information
    SALT - teadfasterX's [A]ll-in-one [L]G [T]ool, Tool/Utility for the LG G4

    Contributors
    steadfasterX
    Source Code: https://github.com/steadfasterX/salt


    Version Information
    Status:
    Stable
    Created 2017-12-11
    33
    FAQ - Frequently Asked Questions

    • 1) How can I get into the download mode?

      Boot your phone into download mode--> the following guide is 100% working and bulletproof:
      1. take out battery and unplug USB cable
      2. plugin USB cable to your PC (while battery ist still out)
      3. wait until you see the missing battery icon (question mark within a battery symbol)
      4. press Volume up and while keeping it pressed put battery in (take care that you do not press the power button)
      5. keep pressing Volume up until you see "Download mode"

      If that does not work for you try it this way instead:

      1. unplug USB cable
      2. power down device or pull out battery
      3. put battery back
      4. press Volume up and while keeping it pressed plugin USB cable to your PC (take care that you do not press the power button)
      5. keep pressing Volume up until you see "Download mode"

      Your phones screen should look similar to this afterwards:
      View attachment 4284063

    • 2) Does SALT work on LOCKED devices ?
      Oh what a great question ;) YES it DOES. :)
      But keep in mind.. even when you can flash/erase partitions with SALT this still requires either valid/untouched pure LG files or an unlocked device.

    • 3) Can I unlock my LG G4 device with SALT?
      Holy moly --- NO! YES! ( https://leech.binbash.rocks:8008/g4-links/ for the guide)

    • 4) What is the meaning of ARB?
      Anti-Roll-Back a stupid mechanism to brick your device. Read on here

    • 5) Do I need a specific ARB version to work with SALT?
      You can start and use SALT with any ARB version. Later when flashing is fully implemented you will be warned when your ARB is lower then then one you want to flash.

    • 6) Which firmware versions does SALT support?
      Any
      of lollipop, marshmallow and nougat

    • 7) Which devices does SALT support?
      In theory ANY LG device supported by the lglaf backend.
      Confirmed devices are:
      - G2
      - G3
      - G4 (H810, H811, H812, H815, H818, H819, VS986, LS991, F500)
      - G5: unknown may only work with modifications like mentioned in the Release Notes for v3.20
      - G6 (H871) only with modifications: see Release Notes for v3.20. Please help in making this fully working! OP -> topic "Support"
      - V10 (H900)
      - V20 (H910) only with modifications: see Release Notes for v3.20. Please help in making this fully working! OP -> topic "Support" OP -> topic "Support"
      - yours ;) -> report your device by uploading the debug log from the advanced menu and share the bpaste link!
      - again: in theory any LG device will work with SALT . All newer devices (G5 and later) will just need the mentioned modification: see Release Notes for v3.20. Please help in making this fully working! OP -> topic "Support" OP -> topic "Support"
      .. this will change in one of the next versions as I will implement an automatic detection , of course!

    • 8) SALT is prompting me after a backup for verification. I have many Warnings|Errors what does that all mean?
      Read on here about he verification feature in SALT: MD5 verification

    • 9) I have installed SALT already. Is it possible to just update it?
      Of course thats one of the awesome features in SALT.
      Since v3.7 SALT will check for a new version on startup automatically and prompt you to update if necessary.
      If it ever fails just click the update button at the bottom.

    • 10) I have installed SALT already. Is it possible to switch between STABLE and STREAM channels?
      Note: STREAM (fka TESTING) may have issues, brick your device, let your phone or PC explode. so use it with care.
      So if you wanna still switch the channels click the update button at the bottom first.

      If you want to be on/switch to the STABLE channel choose Target mode = STABLE
      Click update and restart SALT afterwards.

      If you want to be on/switch to the STREAM channel choose: Target mode = TESTING
      Click update and restart SALT afterwards.

    • 11) I have a partition file with the extension: [ bin | image | img | mbn ]. How can I convert this?
      The extension is not important. The way how you extract files - is. That's why I say all the time use SALT.
      On Windows the file extension matters a lot which is not the case for Linux/Android.
      So if you see a guide mentioning to use a "bin" file and you have the file but with an extension of "image" (or vice-versa) it does not matters.
      There is no need to convert anything as they all are just raw image files.

    • 12) I want to backup but SALT says I have too less space for that! How can I get more disk space in FWUL (or my VM)?
      Read FAQ #5 in the FWUL thread (yes even when you are using Windows and do not run FWUL but any other Linux + SALT) and setup a shared folder with enough disk space as described.
      Point to that new shared folder (ensure you do not use spaces in the foldername and that you have created a new folder in the start of the shared folder) when asked for a backup location in SALT.

    • 13) I do *NOT* use FWUL because I have my own Linux running and you told me to install tmate. How?
      Current instructions can be found here: https://tmate.io/
      Ensure you create a SSH key as that is needed to start tmate later:
      Code:
      ssh-keygen -b 4096 -f ~/.ssh/tmate -N ''
      (note: the characters '' are 2 single quotes)

      Install tmate on Arch Linux / Arch variants like Manjaro, ..:
      Code:
      trizen -Sy tmate
      or: yaourt -Sy tmate (yaourt is [U]DEPRECATED[/U]!)

      Install tmate on Ubuntu / Ubuntu Variants like Kubuntu, Linux Mint, ... :
      Code:
      sudo apt-get install software-properties-common
      sudo add-apt-repository ppa:tmate.io/archive
      sudo apt-get update
      sudo apt-get install tmate

    • 14)Is there a Windows version of SALT available or planned?
      No. NEVER. Just use FWUL which has SALT already included and everything setup to manage your Android device.
      If you have issues in running FWUL report them in the FWUL thread.

    • 15)What is GPT compability (LG G4 only)?
      I saw people often confused about that option and here is what it is and does:
      1) This is only valid for the LG G4 models. If you have another one ignore it.
      2) If you have a LG G4 and not UsU'd (so an official unlockable model) - just ignore it.
      3) If you have a LG G4 and UsU'd your device (or planning to do so) this option is for you.
      Background:
      SALT checks the partition table (GPT) to find out what ROM model is compatible with an UsU'd device. The reason is quite easy: all G4 models have the same hardware (except the h818 but thats another story). Due to the incredible amount of country specific models not many ROMs exist for every model so I checked what's needed to bring a ROM meant for another model to an UsU'd device. I recognized quickly that the partition table is different on several models and even on a same model with another firmware (e.g. between LP and MM it changed for some models). The only thing we need on custom ROMs for the G4 is a correct sized system partition as that one differs for some. Another thing needed on some (mostly US models) is a carrier partition instead of a cust one. Basically that's all SALT checks at the end as if a ROM expects to mount the carrier partition it must be there.
      TL;DR
      The GPT compatibility shows what ROM you can install on an UsU'd device - if there is none for your specific model.
    • 16) Is it possible to extract TOT files with SALT?
      No but you can use this windows tool to extract TOTs: https://xdaforums.com/showthread.php?t=2600575

    • 17) I want to backup/extract my user data (internal storage) with SALT and my device is encrypted. Is that possible and can SALT unencrypt that data?
      SALT is doing 1:1 copies of your partitions which is really 100% identical to what is on your phone. If your data is encrypted SALT will backup that in the current state which means encrypted because within the download mode your userdata partition does not get mounted. So what does that mean? Yes you can backup your userdata but .. you can NOT mount it afterwards as it is just encrypted data. afaik there are no tools available to unencrypt but I may be wrong (let me know if you are aware of any).
      Does it makes sense to backup encrypted data? Depends on what you want to get. If you want to have a really full 1:1 copy of the current phone it might be useful if you are able to restore that data (e.g. via TWRP). Keep in mind though that encryption usually needs more partitions to be restored (e.g. persist or others) which contain information/keys,... as well.
      TL;DR
      You can but it is usually not very useful.

    • 18) Isn't it possible to flash with SALT (yet)?
      Well the flash mode is not enabled by default - while it can be enabled manually. The main issue here is that you can easily hard brick your device and I tried to find a way of making it possible to avoid that. Unfortunately and due to the wide range of models SALT supports this can't be guaranteed.
      That is the first reason and the second is that LG limited/restricted the LAF protocol used for communicating with the device in later versions and so flashing will simply not work on these.
      Fully supported are LAF protocol version: 1000001, 1000002. Anything later like 1000004 (e.g. Nougat on LG G4) will NOT work.
      If you want to take the risk read on here


    • 19a) (was FAQ 1000 before) I have an issue not listed here - what should I do?
      19b) Is there a SALT logfile and how can I share it?

      While your device is connected in download mode:

      Advanced Menu -> SALT Debug log -> Upload button -> right click the link or open it in a browser and copy from there

      Picture guide:
      screenshot_001.jpg

      do NOT share it as an attachment in a post or sending it as file via Telegram/Matrix. If the above does not work for you (then it is a bug which needs to be fixed) always use a paste service - never plain files.
      See also the next FAQ reg. paste services

    • 20) Sharing logs / Using a paste service

      when sharing logs or longer texts it is recommended a so-called "paste service". This is useful to keep a forum / chat readable for everyone and it dramatically helps a developer to read the log without saving tons of log files on their phones/PC's.

      Here are some examples (use your fav search engine to find more):

      - https://hastebin.com
      - https://controlc.com
      - https://justpaste.me
      - https://privatebin.net
      - https://pastebin.com
      - https://gist.github.com (no size limit!)
      - https://gitlab.com/dashboard/snippets (no size limit!)

      There you will always have an option how long you want to store that paste:

      Please ensure you choose at least several months (better 1 year) because developers have a real life, too and so its uncertain when they might find time to look into it.

      Once you pasted your text in there you will get an paste URL which you then can simply share without spamming a group/forum.
    18
    Changelog

    Checkout FAQ #9 for howto update to this brand new release

    Legend for the summary topics:
    Fix/New (SALT): Fixes & Enhancements of the SALT main application - what you see and work with
    Fix/New (lglaf): Fixes & Enhancements of the USB communication backend which SALT uses under the hood
    Fix/New (kdztools): Fixes & Enhancements of the KDZ extraction backend which SALT uses under the hood

    v3.22
    Released: 2020-03-09
    Full changelog (SALT): at github (this version compared with the previous release)
    Full changelog (lglaf): at github
    Full changelog (kdztools): at github
    Summary changelog:

    • ATTENTION FOR FWUL (v2.x, v3.x) users:
      Upgrading to this Version WILL BREAK SALT without doing a FULL system upgrade (which can take hours, downloading multiple GB, may even break on low RAM systems)
      Instead it is highly recommended to use the new mAid nightlies which are in RC phase already and so reasonable stable.

    • Fix (kdztools): some fixes for KDZ extractions
    • Fix (SALT): UsU and ARB detection in rare cases
    • Fix (SALT): no output for several lglaf based operations
    • Fix (SALT): backup (custom) progress bars
    • Fix (SALT): when a folder or filename contained a space SALT failed to parse and extract
    • Fix (SALT): several things around ARB and ARB detection
    • Fix (SALT): screwed part listing
    • Fix (SALT): log upload
    • New (SALT): added a pre-check after the user selected a directory: when the path exists and containing image files the user get prompted to either retry or continue.
    HINT:
    Newer devices using UFS storage (e.g. G5, G6, ..) still need to switch to the DEVELOP/TESTING branch (see FAQ)


    Older releases

    v3.21
    Released: 2018-12-21
    Full changelog (SALT): at github (this version compared with the previous release)
    Full changelog (lglaf): at github (this version compared with the previous release)
    Full changelog (kdztools): at github (this version compared with the previous release)
    Important Note:
    From this release on the system requirement have changed!
    You need to ensure you install the python module "zstandard" - read the OP for how or when using FWUL use the latest FWUL nightly which comes with everything pre-installed.
    Summary changelog:
    • New (kdztools): KDZ extractions have been EXTREMELY enhanced. Means we can now even extract newer KDZ files up to the latest LG flagship (e.g. G7/V30).
      This has been fully achieved by runningnak3d ! it's always a pleasure to work with him ;)
    • Fix (kdztools): extraction failed when a KDZ had unallocated space (e.g. some H811 ones but also others)
    • Fix (SALT): python version for KDZ/DZ extraction
    • Fix (SALT): Browsing the mounted directory after using the Image mounter (advanced menu) will now use full permissions by default
    • New (SALT): mounting an image (advanced menu): previously when a user hasn't unmounted an image file he had to unmount it manually (terminal). now SALT offers a dialog to do so for the user instead.
    • New (SALT): from now on SALT can detect when a user tries to mount an image file from a vbox shared folder and denies mounting it
    • Fix (lglaf): Do not use "G4" as detected model (as there is no safe way to identify a model via the usb info)
    • Hint from a previous release: preparation for UFS devices (all newer LG models). Hint: you can use SALT now on newer devices but this requires a manual change in lglaf atm:
      Code:
      cd ~/programs/lglafng
      git checkout develop
      The above is NOT needed on non-UFS devices (like the G2,G3,G4, ...). If you are unsure open the advanced menu in SALT and check if the partition listing is working - if it is empty try the above otherwise you don't need to.
      The above handling and UFS detection will be done automatically in a future release of SALT!

    v3.20
    Released: 2018-11-30
    Full changelog (SALT): at github (this version compared with the previous release)
    Full changelog (lglaf): nothing has changed
    Summary changelog:
    • Fix (SALT): when the size of a backup cannot be calculated SALT continues with the free disk space check nevertheless
    • Fix (SALT): "direct flashing" message optimized
    • Fix (SALT): permissions on logfiles and all 3rd party paths
    • Fix (SALT): User detection was wrong (pkexec) and so the resulting program paths as well
      ATTENTION:
      You may get prompted to re-download lglaf, sdat2img and kdztools due to the corrected paths. Just do so and it will be fixed next time you start SALT.
    • New (SALT): Introducing the CUSTOM backup mode! Now you can not just choose from the predefined BASIC and FULL mode but also can choose CUSTOM. This CUSTOM mode allows to choose from your existing partitions. Plus: while backing up a beautiful multi-progress bar is showing the progress.
    • New (SALT): preparation for UFS devices (all newer LG models). Hint: you can use SALT now on newer devices but this requires a manual change in lglaf atm:
      Code:
      cd ~/programs/lglafng
      git checkout ufs-test
      The above is NOT needed on non-UFS devices (like the G2,G3,G4, ...). If you are unsure open the advanced menu in SALT and check if the partition listing is working - if it is empty try the above otherwise you don't need to.
      The above handling and UFS detection will be done automatically in a future release of SALT!

    v3.19
    Released: 2018-08-23
    Full changelog (SALT): at github (this version compared with the previous release)
    Full changelog (lglaf): nothing changed
    Summary changelog:
    • Fix (SALT): (G4 - UsU) fixed a bug where direct flashing was incorrectly shown regardless if it was possible or not
    • Fix (SALT): incorrectly shown laf download window
    • New (SALT): completely re-design of the installer (thx for the pkexec contribution ThePiGuy). all details for the new installer here: commit
    • New (SALT): prepare for multi model support in SALT (not G4 only anymore)
    • New (SALT): available SALT features and main window screen are now based on the detected LG model

    v3.18
    Released: 2018-08-10
    Full changelog (SALT): at github (this version compared with the previous release)
    Full changelog (lglaf): at github (this version compared with the previous release)
    Summary changelog:
    • Fix (SALT): Backup function now allows to use paths with spaces within its name
    • Fix (lglaf): Backup was not working since 3.17 (CR function was not implemented for the backup function)

    v3.17
    Released: 2018-07-31
    Full changelog (SALT): at github (this version compared with the previous release)
    Full changelog (lglaf): at github (this version compared with the previous release)
    Summary changelog:
    • New (SALT): Force Challenge/Response mode available for devices where the automatic detection fails (PERMISSION DENIED in SALT debug log)
      How it works and where to find >click here<
    • New (SALT): provide feedback while detecting the ARB of a KDZ
    • New (SALT): completey re-worked "Convert an image (ZIP)" in the advanced menu. SALT is now able to mount any image file instead of just system (e.g. vendor,...)
    • New (SALT): some KDZ extract enhancements (like cleanup etc)
    • New (SALT): a lot of changes for the upcoming direct flashing function (not enabled by default)
    • Fix (SALT): ARB detection of KDZs in some cases

    • New (lglaf): added CR force-on, force-off (details)
    • Fix (lglaf): disable direct flashing on laf > 100001 again (was accidentally still enabled)
    • Fix (lglaf): When direct flashing failing raise a real error including a non zero returncode

    v3.16
    Released: 2018-05-06
    Full changelog (SALT): at github (this version compared with the previous release)
    Summary changelog:
    • New(SALT): Improved backup / Free disk space check

    v3.15
    Released: 2018-04-25
    Full changelog (SALT): at github (this version compared with the previous release)
    Summary changelog:
    • New(SALT): Select/Deselect button when extracting a KDZ

    v3.14
    Released: 2018-04-17
    Full changelog (SALT): at github (this version compared with the previous release)
    Summary changelog:
    • Fix(SALT): SALT was unusable in rare cases


    v3.13
    Released: 2018-03-22
    Full changelog (SALT): at github (this version compared with the previous release)
    Summary changelog:
    • New(SALT): Mount button after extracting a KDZ added
    • Fix(SALT): remove flashing warning when user skips device connection
    • Fix(SALT): several issues when directories containing spaces (I recommend to still avoid spaces in dir and filenames)
    • Fix(kdztools): rare issues when extracting some KDZ files

    v3.12
    Released: 2018-03-21
    Full changelog (SALT): at github (this version compared with the previous release)
    Summary changelog:
    • Fix(SALT, kdzmgr): several issues for extracting KDZ files

    v3.11-0
    Released: 2018-03-16
    Full changelog (SALT): at github (this version compared with the previous release)
    Summary changelog:
    • New(SALT): extracting a KDZ will now detect and show the ARB !
    • Fix(SALT): extracting KDZ in a path with space or special chars failed (empty partition list on extract)

    v3.10-1
    Released: 2018-03-13
    Full changelog (SALT): at github (this version compared with the previous release)
    Summary changelog:
    • Fix(SALT): UsU hashes on some devices can't be set correctly (country related)
    • Fix(SALT): UsU check for ARB <=2 implemented to avoid damage

    v3.9-0
    Released: 2018-03-09
    Full changelog (SALT): at github (this version compared with the previous release)
    Summary changelog:
    • New(SALT): binary checker for fastboot on start
    • New(SALT): improved error handling for binary checks on start
    • Fix(SALT): UsU hashes on some devices can't be set correctly

    v3.8-2
    Released: 2018-03-07
    Full changelog (SALT): at github (this version compared with the previous release)

    v3.7-12
    Released: 2018-03-05
    Full changelog (SALT): at github (this version compared with the previous release)
    Summary changelog:
    • New(SALT): update checker for SALT on start
    • New(SALT): added a mount option for image files
    • NEW(SALT): checking LAF version and offering a compatible LAF if needed/recommended
    • NEW(SALT): complete re-design of UsU flashing verification using a hash table
    • NEW(SALT): added a fastboot flashing fallback on UsU flashing when partial success
    • Fix(SALT): a LOT of UsU stuff..
    • Fix(SALT): will not let open as much windows as before (e.g. closing advanced menu dialog on unlock click etc)
    • Fix(SALT): important UsU related fixes -> if you want to unlock by UsU do not use any previous version!
    • Fix(SALT): do not start UsU flashing on incompatible LAF versions

    v3.6-5
    Released: 2018-02-14
    Full changelog (SALT): at github (this version compared with the previous release)
    Summary changelog:
    • New(SALT): Upload/Paste your SALT logfile with a single click!
    • New(SALT): many important stuff related to UsU
    • Fix(SALT): SALT does not start in rare circumstances

    v3.5-7
    Released: 2018-02-05
    Full changelog (SALT): at github (this version compared with the previous release)
    Summary changelog:
    • New(SALT): Main GUI completely re-worked to fit on smaller screens
    • New(SALT): main screen now detect and display: LAF protocol, IMEI and serial (removed "Secure device" as its meaning is unknown anyways)
      HINT: IMEI and serial will never be written into the logfile!
    • New(SALT): added the feature to extract/convert/mount system.dat files (from LP up to Oreo 8.1) - requested by @kessaras
    • New(SALT): KDZ extract HEAVILY improved (details)
    • Fix(SALT): UsU related stuff
    • Fix(SALT): modemst info

    v3.1-1
    Released: 2018-01-09
    Full changelog (SALT): at github (this version compared with the previous release)
    Summary changelog:
    • New(SALT): adding a GPT compatibility info for UsU ROM flashing
    • Fix(SALT): garbage on UsU check in log

    v3.0-7
    Released: 2018-01-08
    Full changelog (SALT): at github (this version compared with the previous)
    Summary changelog:
    • New(SALT): Full UsU support
    • New(SALT): Full Nougat bootloader support
    • Fix(SALT): several .. read the full changelog

    v2.1-0
    Released: 2018-01-05
    Full changelog (SALT): at github (this version compared with the previous)
    Summary changelog:
    • New(SALT): Backup now uses $HOME/salt_backup as default backup path
    • New(SALT): If backup path does not exists it will be auto-created now
    • Fix(SALT): Verify backup was broken (thx @cowsngrass or the report)

    v2.0-7
    Released: 2018-01-03
    Full changelog (SALT): at github (this version compared with the previous)
    Full changelog (lglaf): at github (all commits up to release date)
    Full changelog (kdztools): at github (all commits up to release date)
    Summary changelog:
    • New(lglaf, SALT): Backup now shows a progress bar instead of that creepy log output
    • New(SALT): adding a Retry button on SALT startup
    • New(lglaf, SALT): replaced legacy auth method with new chall/response
    • New(SALT): adding support for mbn firmware files
    • New(SALT): adding UsU (Unofficial steadfasterX Unlock) detection
    • Fix(lglaf): Timeout issues on some devices resulting in no detection
    • Fix(lglaf): Some devices even when using an older LAF protocol version required challenge/response
    • Fix(SALT): md5 verify on some devices
    • Fix(kdztools): when on master (so STABLE) branch kdz extract was not possible
    • and many more (check github changelogs above)

    1.1-5
    Released: 2017-12-15
    Full changelog: at github (this version compared with the previous)
    Summary changelog:
    • New feature: MD5 verification of backup
      This feature may not be available on every device but SALT will check after a backup automatically if your device supports
      md5 verification and offers you an option to do so.
    • Fix: ARB detection was wrong on H811

    1.0-14
    Released: 2017-12-11
    Changelog:
    • first public release
    • Full changelog at github
    12
    New SALT release!

    Checkout the FAQ #9 for howto update to this brand new release

    v3.5-7
    Released: 2018-02-05
    Full changelog (SALT): at github (this version compared with the previous release)
    Summary changelog:
    • New(SALT): Main GUI completely re-worked to fit on smaller screens
    • New(SALT): main screen now detect and display: LAF protocol, IMEI and serial (removed "Secure device" as its meaning is unknown anyways).
      HINT: IMEI and serial will never be written into the logfile!
    • New(SALT): added the feature to extract/convert/mount system.dat files (from LP up to Oreo 8.1) - requested by @kessaras
    • New(SALT): KDZ extract HEAVILY improved (details)
    • Fix(SALT): UsU related stuff
    • Fix(SALT): modemst info
    12
    v3.6-5 released

    Checkout the FAQ #9 for howto update to this brand new release

    Released: 2018-02-14
    Full changelog (SALT): at github (this version compared with the previous release)
    Summary changelog:
    • New(SALT): Upload/Paste your SALT logfile with a single click!
    • New(SALT): many important stuff related to UsU
    • Fix(SALT): SALT does not start in rare circumstances