yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Varso01:
Cannot Launch Salt

I had rebooted many times but I must admit I am much more comfortable in Windows than Linux but I managed... I am not sure I used the right command to launch in the terminal window but based on the output, I think I got it right. I tried to find the equivalent of a task manager but I think FWUL has no GUI equivalent of task manager.

Salt.log file salt executed from terminal window.

paste.omnirom.org/view/110a4936

text generated by Salt within terminal window.

paste.omnirom.org/view/48383757

PS. I am not allowed to paste links since I have less than 10 posts. I had to strip the links. Sorry

When launched I was asked for a password I entered the default password linux.
[Android Software/Hacking General [Developers Only]] steadfasterX:
Well done thx. yea that can happen with nightlies as they are not tested.

It seems the nightly has an issue with the tool yad which is used by SALT to display the graphical frontend:

For reference (for me):

yad: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory

I will fix that asap but that issue will not happen in the stable 3.1 of FWUL. If that happens there, too (or another issue) you have to start SALT again from the terminal and paste the log from the terminal again . The command for that is (as you found out already):

sudo ~/programs/SALT/salt

or

double click the "SALT debug" icon in the LG folder on the desktop .. (sorry I forgot I had that one).

Note:

There is the possibility to click "thanks" / thumbs up on each post where you think it's worth it ;)
[Android Software/Hacking General [Developers Only]] dukula:
when making a full copy of a Lg m250n and I need to retrieve the data from userdata.bin, how can I retrieve it, sorry for my english
[Android Software/Hacking General [Developers Only]] steadfasterX:
as long as it is not encrypted: advanced menu -> mount an image file

.-
[Android Software/Hacking General [Developers Only]] dukula:
I've tried and this mistake comes out:

returned: /run/media/android/3b50d08a-a4c5-422a-ad2c-5384ca806829/home/userdata.bin|/home/android/lg/|

2019-06-13 12:51:44: IMGFILE = /run/media/android/3b50d08a-a4c5-422a-ad2c-5384ca806829/home/userdata.bin, MNTPNT = /home/android/lg/

2019-06-13 12:51:44: F_MOUNTIMG: started with /run/media/android/3b50d08a-a4c5-422a-ad2c-5384ca806829/home/userdata.bin

2019-06-13 12:51:44: F_MSGE: started

2019-06-13 12:51:49: ERROR: Image could not be mounted to /home/android/lg/.Is this even an mountable image?
[Android Software/Hacking General [Developers Only]] steadfasterX:
read the FAQ #1000 in this thread to understand how to share the log. I always need the full log. If you cannot paste a link use spaces in the URL

.-
[Android Software/Hacking General [Developers Only]] dukula:
https://bpaste.net/show/1195c8d0f78d
[Android Software/Hacking General [Developers Only]] piotr1953:
SALT

The directory '/home/peter/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory '/home/peter/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

???
[Android Software/Hacking General [Developers Only]] steadfasterX:
I do not know what you are trying to do here
[Android Software/Hacking General [Developers Only]] kim12355:
[MENTION=5545101]steadfasterX[/MENTION] i have a question. I read changelog and it can work on lg g7 right?

Are there any function like Partition DL on LGup?
[Android Software/Hacking General [Developers Only]] piotr1953:
how to fix salt

After the second installation, I got a message asking for fastboot. Fixed it following al steps on this site:

hirenbootcd org

When done SALT was able to start and download necessary files:) Would like to inform you that SALT can't deal with bricked phones. Win10 see qualcom as COM3 and ubuntu 16 04 as Bus 002 Device 008: ID 05c6:9008 Qualcomm, Inc. Gobi Wireless Modem (QDL mode). Thank you for a good job. I would like to inform you that my last attempt to install tv tuner via git ended with media_build directory size 1.1GB :( May you try to make this program as a self bootable CD? Wish you fast progress:) Thanks for a hard job

---------- Post added at 03:23 AM ---------- Previous post was at 03:11 AM ----------

After the second installation, I got a message asking for fastboot. Fixed it following al steps on this site:

hirenbootcd

When done SALT was able to start and download necessary files:) Would like to inform you that SALT can't deal with bricked phones. Win10 see qualcom as COM3 and ubuntu 16 04 as Bus 002 Device 008: ID 05c6:9008 Qualcomm, Inc. Gobi Wireless Modem (QDL mode). Thank you for a good job. I would like to inform you that my last attempt to install tv tuner via git ended with media_build directory size 1.1GB :( May you try to make this program as a self bootable CD? Wish you fast progress:) Thanks for a hard job
[Android Software/Hacking General [Developers Only]] pyoung9:
Came across an old LGMS428 that is FRP locked from a Google account I no longer have access to, what extracted files from the .kdz would I flash from the stock firmware to bypass? Running FWUL forgetful.
[Android Software/Hacking General [Developers Only]] STALKER18:
Trying to extract a KDZ of the LG G4 H812. Ending up with arb detect error.

Here is the log. Using salt 3.21 stable. Fwul forgetful.
[Android Software/Hacking General [Developers Only]] steadfasterX:
Read-only file system: '/run/media/android/01D55B7DFC74F2A0/....' ( I guess that is your windows disk)

so SALT cannot write to the path where you are trying to extract to.

choose another one or create a new folder on that disk from within FWUL and use that one.

.-
[Android Software/Hacking General [Developers Only]] Thasan762:
==$ #HELP_POST

I wanna root my lg g4.

From recommendation i downloaded fwul in virtual box but it says not to do any critical operations.so i have to install salt in windows.can u help me to install salt in windows 10 step by step?

Is there any telegram group for support?
[Android Software/Hacking General [Developers Only]] steadfasterX:
What about reading the OP? You find everything you asked for..

Why not using the USB stick method which is recommended?
[Android Software/Hacking General [Developers Only]] Thasan762:
May i need this all tools (yad, git, python3, python3-pyusb, python3-crypto, python-zstandard (python3), python-pip (python3) and pkexec/policykit)be installed before installing salt?
[Android Software/Hacking General [Developers Only]] steadfasterX:
No I meant the FWUL op.

Simply flash FWUL on an USB Stick and everything is just there and ready to use
[Android Software/Hacking General [Developers Only]] Thasan762:
So if i use forgetful as dual boot?could i use it then?
[Android Software/Hacking General [Developers Only]] steadfasterX:
Correct.
[Android Software/Hacking General [Developers Only]] Ainz_Ooal_Gown:
i get this in Ubuntu Requirement already satisfied: zstandard in /usr/local/lib/python3.7/dist-packages (0.12.0)

Requirement already satisfied: cffi>=1.11 in /usr/local/lib/python3.7/dist-packages (from zstandard) (1.12.3)

Requirement already satisfied: pycparser in /usr/local/lib/python3.7/dist-packages (from cffi>=1.11->zstandard) (2.19)

but salt is still giving fatal error about zstandard
[Android Software/Hacking General [Developers Only]] socket1923:
hey,

have SALT running and i cant seem to get it to interact with my device v20 918, it sees the device but no backup no flashing so on. any ideas?[ r/I]
[Android Software/Hacking General [Developers Only]] steadfasterX:
Millions of ideas .. But without a log..
[Android Software/Hacking General [Developers Only]] EnesTR:
how to

how to open this *.img files ? won't working winrar,winzip, windows explorer.
[Android Software/Hacking General [Developers Only]] steadfasterX:
You can't open img files. You have to mount them . In the advanced menu you will find an option for that.
[Android Software/Hacking General [Developers Only]] EnesTR:
I get this error when I try to convert an image;

https: //i . hizliresim . com/jqRRLn.png (please remove the spaces)
[Android Software/Hacking General [Developers Only]] steadfasterX:
without the log (see FAQ of this thread) i cannot say anything .

.-
[Android Software/Hacking General [Developers Only]] Stavinair Bluewing:
Because if I do decide to get N or O on this device I want to know if I will lose Bluetooth file share functionally.
[Android Software/Hacking General [Developers Only]] steadfasterX:
completely unrelated here.

SALT has nothing to do with Bluetooth. SALT can backup your device, allowing to flash for older devices and doing stuff around but thats it: a tool. What you do with it is up to you.

If you want to know if you get/loose a specific feature when flashing whatever then ask this in the according ROM thread or open an own one if there is none.

.-
[Android Software/Hacking General [Developers Only]] N4cr2k:
I too had some initial difficulties in getting SALT (running FWUL persistent) to recognize the phone in download mode. LSUSB showed the phone, and I could see it with ADB not in download mode. Honestly I'm not sure what trick I did to get it working. It might have been a fresh git clone, or updating some of the dependencies. But it has been working consistently now.
[Android Software/Hacking General [Developers Only]] steadfasterX:
looks normal. could you pls star t SALT from a terminal and paste the terminal output?

cd into the directory where you installed it and:

./salt

thanks

btw: LGUp is able to recognize it i guess?
[Android Software/Hacking General [Developers Only]] grantdb:
Missing backup option

Thank you for all your hard work!!! I have managed to get SALT working on Solus 3 but I think there is some part of the window missing and I can't resize or move to be able to see the bottom. There is no backup option and it does not see my partitions. What am I doing wrong?
[Android Software/Hacking General [Developers Only]] fauntelroy:
[MENTION=5545101]steadfasterX[/MENTION] just a quick suggestion,could you make the windows resizeable coz on my tiny notebook it doesn't fit well.

btw thanks a lot for your work on this :good:
[Android Software/Hacking General [Developers Only]] doop:
Firstly thanks for the help.

LGUp recognises phone as H815v29.

Terminal output after running ./salt

Adding salt debug log Debug log

It`s strange that my G4 is recognised as a completely different phone ie:-

LG Electronics, Inc. Ultimate 2 Android Phone L41C
[Android Software/Hacking General [Developers Only]] steadfasterX:
Its there but you can not see it as your display resolution is too small..

as a workaround do this:

open SALT

press the TAB key 4 times

press ENTER

EDIT: And you are missing python3 Crypto . It seems to be not installed.

I will look into this yes.

ok thanks.

pls update SALT to v2.2-0 and try again

if it still does not work pls do the same again (terminal start and give the output)

thx
[Android Software/Hacking General [Developers Only]] doop:
Thank you, worked first time with my phone. BUT the H810 still does not. Logs attached.

Terminal Log 3.0-6

salt Log. 3.0-6

Terminal Log 3.0-7

salt log 3.0-7
[Android Software/Hacking General [Developers Only]] steadfasterX:
NEW SALT release! Now with FULL UsU support included :)

stay tuned. UsU has not been released yet to the public but this will happen soon!!!

v3.0-7

Released: 2018-01-08

Full changelog (SALT): at github (this version compared with the previous)

Summy changelog:

New(SALT): Full

UsU

support

New(SALT): Full Nougat bootloader support

Fix(SALT): several .. read the full changelog
[Android Software/Hacking General [Developers Only]] steadfasterX:
yea .. iirc there was this issue before on the H810 models..

The only way was to use skip-hello but .. i had removed that a while ago as we need the hello..

please paste the output of:

sudo python3 /root/programs/lglafng/lglaf.py --debug

thx
[Android Software/Hacking General [Developers Only]] doop:
requested Log sudo python3 /root/programs/lglafng/lglaf.py --debug
[Android Software/Hacking General [Developers Only]] steadfasterX:
ok try the following:

sudo cp /root/programs/lglafng/lglaf.py /root/programs/lglafng/lglaf_nohello.py
sudo sed -i 's/try_hello(comm)$/#try_hello(comm)/g' lglaf_nohello.py
sudo python3 /root/programs/lglafng/lglaf_nohello.py --debug

and paste the output
[Android Software/Hacking General [Developers Only]] doop:
Output:

[android@fwul ~]$ sudo cp /root/programs/lglafng/lglaf.py /root/programs/lglafng/lglaf_nohello.py

[android@fwul ~]$ sudo sed -i 's/try_hello(comm)$/#try_hello(comm)/g' lglaf_nohello.py

sed: can't read lglaf_nohello.py: No such file or directory

[android@fwul ~]$ sudo python3 /root/programs/lglafng/lglaf_nohello.py --debug

LGLAF.py: DEBUG: product id in CR list: ><

LGLAF.py: DEBUG: Using endpoints 85 (IN), 03 (OUT)

Traceback (most recent call last):

File "/root/programs/lglafng/lglaf_nohello.py", line 541, in <module>

main()

File "/root/programs/lglafng/lglaf_nohello.py", line 512, in main

try_hello(comm)

File "/root/programs/lglafng/lglaf_nohello.py", line 401, in try_hello

data = comm.read(0x20, timeout=HELLO_READ_TIMEOUT)

File "/root/programs/lglafng/lglaf_nohello.py", line 240, in read

buff = self._read(need, timeout=timeout)

File "/root/programs/lglafng/lglaf_nohello.py", line 359, in _read

array = self.usbdev.read(self.ep_in, 2**14, timeout=timeout)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 988, in read

self.__get_timeout(timeout))

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 833, in bulk_read

timeout)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 936, in __read

_check(retval)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 595, in _check

raise USBError(_strerror(ret), ret, _libusb_errno[ret])

usb.core.USBError: [Errno 110] Operation timed out
[Android Software/Hacking General [Developers Only]] steadfasterX:
hmpf.. soooorry:

sudo cp /root/programs/lglafng/lglaf.py /root/programs/lglafng/lglaf_nohello.py
sudo sed -i 's/try_hello(comm)$/#try_hello(comm)/g' /root/programs/lglafng/lglaf_nohello.py
sudo python3 /root/programs/lglafng/lglaf_nohello.py --debug
[Android Software/Hacking General [Developers Only]] doop:
[android@fwul ~]$ sudo python3 /root/programs/lglafng/lglaf_nohello.py --debug

LGLAF.py: DEBUG: product id in CR list: ><

LGLAF.py: DEBUG: Detaching kernel driver for intf 1

LGLAF.py: DEBUG: Using endpoints 85 (IN), 03 (OUT)

LGLAF.py: DEBUG: Using Protocol version: 0x0

LGLAF.py: DEBUG: CR detection: 0

LGLAF.py: DEBUG: Hello done, proceeding with commands

LGLAF.py by Peter Wu (https://lekensteyn.nl/lglaf)

Type a shell command to execute or "exit" to leave.
[Android Software/Hacking General [Developers Only]] steadfasterX:
What happens when you type

ls

In that shell?
[Android Software/Hacking General [Developers Only]] doop:
ls output
[Android Software/Hacking General [Developers Only]] cowsngrass:
Installed SALT v3.0-7

LinuxMint 18.3

LG G4 VS986 27c_00, ARB 2

Working great!

2 errors in the md5 verification now

Debug Log: https://hastebin.com/esilomedif.php

Terminal after backup & verify: https://hastebin.com/ajogihaqeh.vbs

Thanks again for your efforts!
[Android Software/Hacking General [Developers Only]] steadfasterX:
Ensure you have just one connection (e. G do not execute the given command twice) opened to the device. Close SALT before doing the command and reboot fresh to download mode before doing that command.

Errors are bad but in your case the reason is not because of as follows:

You had backuped before and so when doing another backup without changing the destination folder SALT will not backup the same partition again (as it is already a backup there).

So SALT now verifies partitions from a previous run and some partitions changes even when just rebooting into dl mode again.

This results in another hash and so the error occurs.

You can redo all by just renaming the default SALT backup folder in your home directory and restart a backup run.

You will still get warnings as your dl mode is very restricted but no errors.
[Android Software/Hacking General [Developers Only]] doop:
There seems to be no output following the "ls" command.

It eventually timed out.
[Android Software/Hacking General [Developers Only]] grantdb:
My resolution is 1366x768 so it could be something to do with the Budgie desktop on Solus.

For python3 crypto I installed pycrypto 2.6.1 and will report back.

Thank you
[Android Software/Hacking General [Developers Only]] cmrntnnr:
Hi [MENTION=5545101]steadfasterX[/MENTION],

I have SALT running fine under opensuse. Nice program, thank you for so much work for the LG community! I have hit a snag using it to extract images from the lastest 20e v35 ULM kdz. Basically I want the boot image for patching with magisk. Here are the results:

* SALT processes the kdz and outputs images.

* salt.log gives warnings -> Chunk is part of "xbl_a", but starts in front of slice?!

* The extracted images cannot be mounted. Mount asks, "Is this even an mountable image?"

* I resurrected a windows machine, installed the lg kdz extractor, and processed the kdz. I compared a few images from it and SALT and they are identical.

So, the questions: are the images OK, perhaps compressed? How does one mount them?

Logs and images available if needed.
[Android Software/Hacking General [Developers Only]] steadfasterX:
first of all without a log.. everything is just guessing.

other then that: try to switch to the develop channel (see FAQ) and extract again while that wouldn't help when they are 100% identical with the windows tool.

so what exactly are you trying to mount? I guess the data partition? Keep in mind that stock on all newer devices will auto-encrypt and that cannot be decrypted in/with SALT (i.e. cannot be mounted)

.-
[Android Software/Hacking General [Developers Only]] cmrntnnr:
My end goal is to update a bootloader unlocked v35 from Oreo to the latest Pie firmware. boot_a and boot_b are needed for patching with Magisk so as not to loose root. I'd also like to remove rtcd beforehand. It sounds like boot_a is encrypted and so cannot be mounted.
[Android Software/Hacking General [Developers Only]] steadfasterX:
no encrypted is the userdata partition only. boot is a special image and cannot be mounted (as it is not a filesystem). you would need to extract it e.g. with AIK for linux.

.-
[Android Software/Hacking General [Developers Only]] MLX:
Hi! I'm trying to get it working on Linux Mint 19.1 x86, but it doesn't recognize the phone while in Download Mode.

My device is an LG E411g (L1 II), and an LG Mobile USB Modem shows in file manager but SALT doesn't detect it.

Yes, I've installed all dependencies and setup android udev rules as well, but still nothing. Do you need a log? Everything it says is that no device was detected...

edit: nevermind, this device has two boot modes, the "Download mode" (which starts when press vol- and connect usb, and just shows "Download Mode" text on the screen) and the Recovery Mode (which starts pressing vol+ and connecting usb, I think this is the right mode).
[Android Software/Hacking General [Developers Only]] mpbdlc:
ERROR: Calculated target size is too small

Hi, I am trying to extract the data out of a LG-H860 that is stuck on bootloop after a botched update. When I try to backup on SALT I get the error: Calculated target size is too small (0)! Upload and share the debug log!

The partition shown are No and GPT with no size. I tried doing this with the latest develop version of SALT.

Here is the log: bpaste.net/show/RQ264

Thank you for your help! It has been an ordeal getting to this point.
[Android Software/Hacking General [Developers Only]] jcribbs67@gmail.com:
no not yet sorry
[Android Software/Hacking General [Developers Only]] steadfasterX:
Switch to the develop version (see faq)
[Android Software/Hacking General [Developers Only]] mpbdlc:
Hi steadfasterX,

The log attached was generated in develop version, I installed python cryptography to get it to run:

SALT branch => g4-develop

kdztools branch => develop

lglaf branch => develop

Thanks for the help!
[Android Software/Hacking General [Developers Only]] steadfasterX:
ok didn't recognized it first. do this:

on the FWUL desktop the folder "LG" contains the lglaf terminal (steadfasterX). double click to open and type:

sudo python partitions.py --debug --list > /tmp/auto.txt 2>&1

(password when asked is the login pass, so "linux" when using FWUL)

and

sudo python partitions.py --debug --list --devtype UFS > /tmp/forced.txt 2>&1

and share both output files (auto.txt, forced.txt) which you can find in /tmp

.-
[Android Software/Hacking General [Developers Only]] mpbdlc:
steadfasterX,

Here are the logs:

auto.txt -> bpaste.net/show/JLLDG

forced.txt -> bpaste.net/show/S2U3M

Thank you again for looking into this and helping
[Android Software/Hacking General [Developers Only]] steadfasterX:
ok I guess:

you are using FWUL in forgetful mode?

If so: you have to switch in SALT to the develop version first and re-do the above cmds..

.-
[Android Software/Hacking General [Developers Only]] mpbdlc:
Hi steadfasterX,

The logs from the last post were taken after SALT was set to develop mode. I normally run in forgetful mode since its faster.

The following logs were taken sequentially in persistent mode with SALT in version 3.22-11:TESTING:

Full SALT debug log -> bpaste.net/show/KL2PG

auto.txt -> bpaste.net/show/RKXIM

forced.txt -> bpaste.net/show/TR7GS

Thank you for the help.
[Android Software/Hacking General [Developers Only]] steadfasterX:
something went wrong then when switching to develop.. !

I recommend using the persistent mode (as you have done, just to mention for all future testings).

again on the FWUL desktop the folder "LG" the lglaf terminal (steadfasterX). double click to open and this time type:

git checkout develop
git status
git pull
sudo python partitions.py --debug --list > /tmp/auto.txt 2>&1
sudo python partitions.py --debug --list --devtype UFS > /tmp/forced.txt 2>&1

Copy and paste the output of the terminal commands as well.
[Android Software/Hacking General [Developers Only]] mpbdlc:
Hi steadfasterX,

You were right, this time it seems that the auto file has actual debug data. Here are is the data I got from the debug files:

Terminal outputs -> bpaste.net/show/2DVMW

auto.txt -> bpaste.net/show/QRHVG

forced.txt -> bpaste.net/show/JXBFW

Again, thanks for all the help!!
[Android Software/Hacking General [Developers Only]] steadfasterX:
ok perfect. as thought the switch to develop seems to have an issue in SALT..

anyways now that you are on develop you can start SALT again. it should look better now. Try doing a custom backup and select just userdata. This can take several hours though.

keep in mind that all this will only do any good if your device is not encrypted at all because in download mode the data is not unlocked.

.-
[Android Software/Hacking General [Developers Only]] mpbdlc:
Hi steadfasterX,

With SALT finally in develop mode I was able to start the custom backup but every time I attempt to run it it stops at 16% with the following error in the log: OSError: [Errno 27] File too large

The user data partition is around 24GB. The USB stick I am using to store the backup is 64GB. A more complete log is here: bpaste.net/show/OCGBU

Is there another setup step that I missed? In addition to this I have a question about the data being encrypted. If I factory reset the phone to fix the OS would I be able to put the data back in and access it? I had an unlock pattern on the phone (no PIN) but I cannot use it to unlock the phone in the current state since it gets stuck at booting.

Thanks for the help!
[Android Software/Hacking General [Developers Only]] ST Dog:
What filesystem on the USB stick?

You need exFAT or something else that supports files larger than 4GB (the FAT32 limit).