FORUMS
Remove All Ads from XDA

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

4,973 posts
Thanks Meter: 13,325
 
By steadfasterX, Recognized Developer on 11th December 2017, 04:34 PM
Post Reply Email Thread
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



[S]teadfasterX's [A]ll-in-one [L]G [T]ool


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

FWUL (recommended)
No requirements as SALT and everything needed is included there!
Highly recommended: FWUL persistent to avoid any USB issues.
Ensure you use the latest FWUL 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 FWUL (persistent) 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)

Examples:
  • On Arch: sudo pacman -Sy polkit git xterm python-pyusb python-crypto python-pip
    and trizen -Sy yad python-zstandard (hint: you may need to install trizen first) - and you need to manually do this until it has been fixed upstream: workaround
    and sudo pip3 install cryptography
  • on Manjaro: sudo pacman -Sy polkit yad git xterm python-pyusb python-crypto trizen python-pip
    and trizen -Sy python-zstandard - and you need to manually do this until it has been fixed upstream: workaround
    and 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-crypto python3-pip
    and sudo pip3 install zstandard and sudo pip3 install cryptography
you may need to setup your udev rules as well: android-udev-rules thats another reason why I recommend FWUL this is all implemented there out of the box..


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


Installation (not needed on FWUL! Just open the LG folder and start SALT)
  • open a terminal
  • type:
    git clone https://github.com/steadfasterX/SALT.git
    cd SALT
    bash install-desktop.sh
  • read the output and if required copy the SALT.desktop file manually to your Desktop.
  • double click the SALT icon or while in a terminal start SALT with: sudo ~/SALT/salt
  • 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.
An easy way to retry the connection when you see the connection error dialog is to "close" it with the X on the window.


Known Issues

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



Support / IRC Channel / TG Group
IRC means Internet Relay Chat and you will get best support there only.
Personally I'm only online there from Mondays to Fridays only but there are maybe others (maybe YOU too) who can help as well.

Choose how to get in:
  • FWUL v3.1 or later: just click the IRC hexchat icon on the desktop
  • PC (HexChat and Pidgin are only 2 of them! This list is not complete!)
  • Android (Yaaic, AndChat, HoloIRC, AndroIRC are only a few of them! This list is not complete!)
  • Web (KiwiIRC-Web,Freenode-Webchat])
  • When you have to choose a channel it is: #carbonfusion-user
  • When you be asked for a server network choose: freenode
  • It wouldn't hurt to read this as well when you are new to IRC: beginners guide (for a quick one read just: "Etiquette")
    Simplified said: be polite, don't ask to ask, be patient(!), respect the timezones, help others.

Like FWUL SALT has now a Telegram Group which is bridged with my above IRC channel as well.
Many ppl are feeling more comfortable with TG theses days and as I now have a bridge between I am ok with it...

Feel free to join
LGLAF+SALT Users TG Group


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 - [S]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
Current Stable Version: 3.21
Stable Release Date: 2018-12-21

Created 2017-12-11
Last Updated 2019-03-22
Attached Thumbnails
Click image for larger version

Name:	salt_logo.png
Views:	10838
Size:	52.8 KB
ID:	4357939   Click image for larger version

Name:	screenshot_003.png
Views:	6526
Size:	141.2 KB
ID:	4357940   Click image for larger version

Name:	screenshot_005.png
Views:	6530
Size:	88.5 KB
ID:	4357942   Click image for larger version

Name:	screenshot_007.png
Views:	6378
Size:	13.6 KB
ID:	4357944   Click image for larger version

Name:	screenshot_002.png
Views:	5738
Size:	57.7 KB
ID:	4664000   Click image for larger version

Name:	screenshot_006.png
Views:	5308
Size:	21.5 KB
ID:	4664002   Click image for larger version

Name:	screenshot_008.png
Views:	5104
Size:	50.7 KB
ID:	4664003   Click image for larger version

Name:	screenshot_009.png
Views:	5002
Size:	64.0 KB
ID:	4664004   Click image for larger version

Name:	screenshot_011.png
Views:	4858
Size:	174.9 KB
ID:	4664006   Click image for larger version

Name:	screenshot_012.png
Views:	4788
Size:	111.5 KB
ID:	4664007   Click image for larger version

Name:	screenshot_013.png
Views:	4736
Size:	70.8 KB
ID:	4664008   Click image for larger version

Name:	screenshot_014.png
Views:	4538
Size:	94.7 KB
ID:	4664009   Click image for larger version

Name:	screenshot_015.png
Views:	4460
Size:	153.1 KB
ID:	4664010   Click image for larger version

Name:	screenshot_016.png
Views:	4250
Size:	18.8 KB
ID:	4664011   Click image for larger version

Name:	screenshot_000.png
Views:	4196
Size:	79.7 KB
ID:	4664020   Click image for larger version

Name:	screenshot_004.png
Views:	4072
Size:	93.9 KB
ID:	4664027   Click image for larger version

Name:	screenshot_010.png
Views:	4012
Size:	58.2 KB
ID:	4664031   Click image for larger version

Name:	screenshot_017.png
Views:	3928
Size:	37.0 KB
ID:	4664037   Click image for larger version

Name:	screenshot_018.png
Views:	3864
Size:	35.2 KB
ID:	4664038  
The Following 77 Users Say Thank You to steadfasterX For This Useful Post: [ View ]
11th December 2017, 04:34 PM |#2  
steadfasterX's Avatar
OP Recognized Developer
Thanks Meter: 13,325
 
Donate to Me
More
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:
    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://bit.do/unlockg4 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 TESTING channels?
    Note: 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:
    Code:
    SALT branch => g4-stable
    kdztools branch => master
    lglaf branch => master
    Click update and restart SALT afterwards.

    If you want to be on/switch to the TESTING channel choose:
    Code:
    SALT branch => g4-develop
    kdztools branch => develop
    lglaf branch => develop
    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 DEPRECATED!)
    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://forum.xda-developers.com/sho....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.



  • 1000a) I have an issue not listed here - what should I do?
    1000b) Is there a SALT logfile and how can I share it?
    Advanced Menu -> SALT Debug log -> Upload button -> right click the link or open it in a browser and copy from there
    Picture guide:
    Click image for larger version

Name:	screenshot_001.jpg
Views:	1616
Size:	92.5 KB
ID:	4492760
The Following 31 Users Say Thank You to steadfasterX For This Useful Post: [ View ]
11th December 2017, 04:34 PM |#3  
steadfasterX's Avatar
OP Recognized Developer
Thanks Meter: 13,325
 
Donate to Me
More
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.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!


Older releases

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
The Following 18 Users Say Thank You to steadfasterX For This Useful Post: [ View ]
11th December 2017, 06:52 PM |#4  
Member
Thanks Meter: 33
 
More
Thank you, very nice tool.
Now it is very easy to backup all of my data (H818P, v29a firmware).
Btw, it is working on kubuntu, I just had to google for how to set up some dependencies.
The Following User Says Thank You to Engelm For This Useful Post: [ View ] Gift Engelm Ad-Free
11th December 2017, 07:52 PM |#5  
steadfasterX's Avatar
OP Recognized Developer
Thanks Meter: 13,325
 
Donate to Me
More
Quote:
Originally Posted by Engelm

Thank you, very nice tool.
Now it is very easy to backup all of my data (H818P, v29a firmware).
Btw, it is working on kubuntu, I just had to google for how to set up some dependencies.

besides: sudo apt install yad git gksu python-pyusb python-crypto which dependencies else were needed?
I want to add them to the FAQ...

thx for reporting the working state!
If you don't mind: can you start SALT and grab the debug log just after starting SALT up?
you find it in the advanced menu. just copy everything and paste it in a PM would be nice..

Cheers
sfX
The Following 3 Users Say Thank You to steadfasterX For This Useful Post: [ View ]
11th December 2017, 08:29 PM |#6  
Member
Thanks Meter: 33
 
More
Quote:
Originally Posted by steadfasterX

besides: sudo apt install yad git gksudo python-pyusb python-crypto which dependencies else were needed?
I want to add them to the FAQ...

thx for reporting the working state!
If you don't mind: can you start SALT and grab the debug log just after starting SALT up?
you find it in the advanced menu. just copy everything and paste it in a PM would be nice..

Cheers
sfX


No other dependencies were needed, but I also use this OS for some development... so maybe something was already installed.
Maybe I could help if someone else has some dependencies missing.
The Following User Says Thank You to Engelm For This Useful Post: [ View ] Gift Engelm Ad-Free
12th December 2017, 10:22 PM |#7  
Junior Member
Thanks Meter: 11
 
More
Look like a great tool thank you very much for your time and effort!
The Following User Says Thank You to leclampin For This Useful Post: [ View ] Gift leclampin Ad-Free
13th December 2017, 03:17 AM |#8  
Junior Member
Thanks Meter: 0
 
More
I have LG G4 version LS991ZVD_03, can I ?
13th December 2017, 06:29 AM |#9  
steadfasterX's Avatar
OP Recognized Developer
Thanks Meter: 13,325
 
Donate to Me
More
Quote:
Originally Posted by Satrio Yudho

I have LG G4 version LS991ZVD_03, can I ?

Read FAQ 5,6 and 7 https://forum.xda-developers.com/g4/...4/post74811095

Sent from my LG-H815 using XDA Labs
The Following 2 Users Say Thank You to steadfasterX For This Useful Post: [ View ]
15th December 2017, 07:52 PM |#10  
steadfasterX's Avatar
OP Recognized Developer
Thanks Meter: 13,325
 
Donate to Me
More
SALT v1.1-5 released

1.1-5
Released: 2017-12-15
Full changelog: at github (this version compared with the previous)
Summy 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

Existing users can update with just a click:
  1. open SALT (no need to have a connected device - just press the SKIP button when asked)
  2. click at the most left button at the bottom
  3. leave everything on its defaults in the next window and start the update.
  4. close SALT and that's it


New feature - MD5 verification explained

Once you have taken a backup SALT will check if your device generally supports md5sum verification and if yes prompting you about this.
Choosing yes there is highly recommended to ensure that your files are really valid.
Click image for larger version

Name:	screenshot_003.png
Views:	856
Size:	15.2 KB
ID:	4361487

Once SALT has finished the verification you will see a summary window presenting you the results of the verification.
Click image for larger version

Name:	screenshot_004.png
Views:	820
Size:	19.5 KB
ID:	4361488

Click image for larger version

Name:	screenshot_005.png
Views:	822
Size:	16.7 KB
ID:	4361489

You can open details about each result by clicking the Details button:

Click image for larger version

Name:	screenshot_006.png
Views:	748
Size:	48.5 KB
ID:	4361490 Click image for larger version

Name:	screenshot_007.png
Views:	738
Size:	28.3 KB
ID:	4361491

As you can see in the above example I got 29 OKs, 18 WARNINGS but 0 ERRORS so what does that mean?
What OK means is simple: both the backup file and the partition on the device could be hashed and the verification matches.
A verification WARNING means that SALT is not able to generate a md5sum on your device. Even when the first generic check was successful some devices blocking some or even all partition for this verification.
So actually this means that the backup itself went well (the dump itself) but we cannot verify it against the device.
So should you be concerned about a WARNING ? No.

... but you should be concerned about ERRORS ofc. A verification ERROR means that both the backup file and the partition on the device could be hashed and the verification mismatches which is definitively an issue with the backup. If that happens take a fresh reboot into download mode again re-open SALT and start the backup again (ensure you have enough free disk space!).

and for fun:
you can just take a backup again in the same folder (nothing gets overwritten as SALT will not overwrite) and when prompted about the verification do not click but reboot your device into Android. once booted power down and open download mode again and wait some seconds until you can be sure that its fully started in download mode. then press the verification button to find which partitions have changed by a simple boot into android.



Cheers
steadfasterX
The Following 8 Users Say Thank You to steadfasterX For This Useful Post: [ View ]
19th December 2017, 04:44 PM |#11  
Junior Member
Thanks Meter: 5
 
More
Can't backup H815 - no partion detected error code 0x8000010a (LAF_ERROR_ACCESS_DEN
Hi ,

I read about SALT and it seems to be great tool. unfortunately it do not work well for me. I've attempted to update my phone to nougat and I've try to create backup but it failed. Later on I've found out that no partition was detected on the phone. The following happened :
- SALT installed on UBUNTU 17.04 - with minor issues that were solved
- Phone detected automatically
- Phone can be rebooted by SALT
- Error during backup

Log file is attached bellow.

Phone was delivered with Android 5.1 Updated to Marshallow via LG Bridge No root nor boot loader unlocked. After upgrade to Marshallow shows Warning massage after boot "Current version is not available for user. Can't find matched cust for NT-code mmx/mnc[],subset[]" , This messages is one of the reasons for attempting to flash Nougat, second one is battery life.

I'm looking for the following help. Waht steps need to be taken to backup the device and update it to Nougat v29a.
Can you please help ?

2017-12-19 16:25:43: Starting SALT v1.1-5:STABLE!
************************************************** **

2017-12-19 16:25:43: F_EGO: started
2017-12-19 16:25:43: F_EGO: /tmp/salt.lock created
2017-12-19 16:25:43: DEVCON before: 99
2017-12-19 16:25:43: F_CHKDEVCON: started
2017-12-19 16:25:44: F_CHKDEVCON: Device seems to be connected!
2017-12-19 16:25:44: RET: 0
2017-12-19 16:25:44: DEVCON after: 0
2017-12-19 16:25:44: F_GETINFO: started
2017-12-19 16:25:44: F_CDARB: started
2017-12-19 16:25:46: EMPTY ARB DETECTED:

2017-12-19 16:25:46: Please send this log and the SBL1 dump in /tmp/sbl1.err
2017-12-19 16:25:46: F_CDARB:
2017-12-19 16:25:46: F_CDARB: DEVARB=0, DEVARBEMPTY=1
2017-12-19 16:25:46: F_CDARB: ended
battery_level:100 device_sw_version:H81520g secure_device:S device_factory_version:LGH815AT-00-V20g-OPT2-HQ-JUL-20-2016+0 model_name:LG-H815 target_country:COM 2017-12-19 16:25:46: F_GETINFO: ended
2017-12-19 16:25:46: parsing arb:0:1
2017-12-19 16:25:46: parsing battery_level:100
2017-12-19 16:25:46: parsing device_sw_version:H81520g
2017-12-19 16:25:46: parsing secure_device:S
2017-12-19 16:25:46: parsing device_factory_version:LGH815AT-00-V20g-OPT2-HQ-JUL-20-2016+0
2017-12-19 16:25:46: parsing model_name:LG-H815
2017-12-19 16:25:46: parsing target_country:COM
2017-12-19 16:25:53: F_BACKUP: started with these arguments:
2017-12-19 16:25:55: F_BACKUP: choosen backup type was 1, Full, 0 KB
2017-12-19 16:25:57: F_BACKUP: choosen target directory was /tmp
Traceback (most recent call last):
File "/root/programs/lglafng/extract-partitions.py", line 72, in <module>
main()
File "/root/programs/lglafng/extract-partitions.py", line 65, in main
with partitions.laf_open_disk(comm) as disk_fd:
File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
return next(self.gen)
File "/root/programs/lglafng/partitions.py", line 61, in laf_open_disk
open_header = comm.call(open_cmd)[0]
File "/root/programs/lglafng/lglaf.py", line 264, in call
raise RuntimeError('Command failed with error code %#x (%s)' % (errCode, msg))
RuntimeError: Command failed with error code 0x8000010a (LAF_ERROR_ACCESS_DENIED)
2017-12-19 16:26:07: F_MSGOK: started
2017-12-19 16:26:07: F_ADVMENU: started
2017-12-19 16:26:10: getlog script started
The Following User Says Thank You to bodziak For This Useful Post: [ View ] Gift bodziak Ad-Free
Post Reply Subscribe to Thread

Tags
backup, kdz, lglaf, lgup, restore

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

Advanced Search
Display Modes