yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] steadfasterX:
yes that will be possible. The code part is already done ( by [MENTION=3167089]runningnak3d[/MENTION] ) but I havent had the time to implement this or better merge this without breaking other stuff.

IF!? it's actually encrypted yea there is hope. lets say a 1% chance. The problem is that on all newer devices an internal chip is used to handle the crypt stuff. In short: without your phone there will be (almost) no way to decrypt. The 1% chance you have is someone find a bug in your device's implementation of encryption..

ah ok so its

not

encrypted I over read that. Then you have much more options and much higher chances!

Is it unlocked? Then you could just boot / flash TWRP in fastboot and there you go..

If it is REALLY not encrypted you can try to open a LAF shell in download mode. Its maybe useless as LG has restricted it over the last years more and more but its worth a try.

When you have FWUL just open the LG folder and double click the runningnak3d terminal. From there you could use the command

sudo python2 lglaf.py

which should bring up a prompt.

Its like an adb shell but more limited.

you can try to delete the lock settings there like

rm /data/system/locksettings.db*
or if rm fails:
echo > /data/system/locksettings.db
or if echo fails:
touch /data/system/locksettings.db

If that doesn't work exit the shell and start a full backup manually which should work already [MENTION=3167089]runningnak3d[/MENTION] correct me if Im wrong ;) ):

sudo python2 ./partitions.py --dump [B]<replace-this>[/B]/userdata.img userdata

replace <replace-this> with a path where you have enough free disk space. If I calculated your partitions size correctly it must be 10 GB or more!

Easiest is to double click the detected Windows partitions on your FWUL desktop (which should hopefully be shown). Then browse to a folder of your choice or create one. copy the whole path and use that as <replace-this>.

Example:

sudo python2 ./partitions.py --dump [B]/mnt/media/foo/bar[/B]/userdata.img userdata

When that suceeded you can use SALT again: go into the advanced menu and choose the mount image option, point to that path where the userdata.img is in and you can browse it.

Good luck :fingers-crossed:

.
[Android Software/Hacking General [Developers Only]] jerry_s87:
First let me say thank you very much for the valuable time you have dedicated me, I have not

unlocked the bootloader

, nor did I ever OEM Unlock, the Recovery is the one that comes from the factory. I think you can flash the TWRP temporarily, that is, flashing it, enter the recovery, then scan copy and restart the smartphone's own security system will restore the original recovery, after I get my data I do not care format everything again .

Anyway, I'm going to try the commands that you wrote to me, maybe some of them work, I hope. I'll leave the result as soon as I finish reviewing what he wrote me.

PD. If you can, you can answer me on a thread to flash the TWRP even if you do not have the OEM Unlocked. According to my theory you can flash but when you restart it will be erased, but it does not matter since I only need it once. :) :good:

EDIT:

I think bad luck for me or I'm doing something wrong!

Attachments Screenshot
[Android Software/Hacking General [Developers Only]] jjcdennis:
Per my post #780 in the fwul post, I have a link for the debug log for my issue - phone will not connect to fwul anymore.

http://bpaste.net/show/4233b43ffa89

adb devices shows no device connected.

Per your response:

1) read the faq of the SALT thread and find out how to share the debug log.

2) post that log in the SALT thread

3) use FWUL from an USB stick. Even when it runs in a VM critical operations should ALWAYS been done running natively.

I'm not sure what you mean by natively- dual boot on my Windows laptop? Write to a DVD? I followed the setup instructions for a USB stick and that is what I boot with.

The phone did connect the first few times I booted from USB. I managed to do a basic backup, although I'm not sure where the backup is stored. The next day phone would not connect and hasn't since.

Thanks for your help.
[Android Software/Hacking General [Developers Only]] steadfasterX:
Native = USB. I assumed you have FWUL installed in a VM...

So as you're still having issues your firmware may just need time to load the USB part.. Some devices need to wait up to 5min before SALT was able to detect it. So try that one first.

If it still doesn't work open a terminal (little black icon in the FWUL panel) and while your device is connected in download mode type this:

lsusb

and share the result. Also tell the device model and currently installed firmware version.

When you take a backup SALT will use your home directory ( /home/android on FWUL ) as the default location. The backup itself will be stored in salt_backup. You should ensure that you do not lost this if you plan to unlock your device.

.
[Android Software/Hacking General [Developers Only]] jjcdennis:
I have fwul installed on a USB and boot the USB on a Windows 10 laptop. No VM. I followed the install instructions and used Win32diskmanager. Rufus refused to work for me.

Phone is a G4 running H81220z

I have waited, rebooted and waited, reinstalled fwul onto 2 different USB sticks and it boots well from either. Phone has been in download mode all morning and in prior testing was plugged in for more than 5 minutes. When I first installed fwul and opened the device in SALT it opened quickly and I was able to retrieve device information and run a backup.

ADB and fastboot devices show none running.

lsusb picture attached

Thanks again for your help.
[Android Software/Hacking General [Developers Only]] steadfasterX:
Using FWUL like you do is perfectly fine. It's not a FWUL issue its an USB issue.

the USB command shows that the USB connection itself is just not there. The only thing you can try is other USB cables and other USB ports.. Maybe try with even an USB hub.

.
[Android Software/Hacking General [Developers Only]] jjcdennis:
Its strange because I can boot fwul from a USB and the device recognizes the cable, as it allows me to plug in and boot into download mode. I have used different cables and ports, so now I will try a USB hub.
[Android Software/Hacking General [Developers Only]] steadfasterX:
No it isn't strange.. To allow download mode it just needs to have a little bit power on the cable. To load USB communication for SALT it requires a looooot more (so e.g. the real USB data mode). So what I wanna say is that allowing to start the download mode means nothing at all..

.
[Android Software/Hacking General [Developers Only]] jjcdennis:
Tried a USB powered hub, no go. I booted into Windows 0 and the USB ports all function OK. Connected the USB powered hub and it opened the arch_efi USB stick no problem.

Is my next step Virtualbox?

Still not sure why fwul worked fine the first few times and then ceased to connect with my phone.
[Android Software/Hacking General [Developers Only]] Pete_Mitchell:
Hi Guys

I beg desperately for your help:

My h818p MM 20h has gone in bootloop yesterday, tried freezer, tried hairdryer nothing helped me to recover my precious pics and files.

I have flashed a tot 20.e file to disable 2 big cores, flash ok but still doesn't boot. The phone goes in download mode and the useless recovery mode. Is there a way with salt to backup my emmc content and from that backup recover my data? If yes, how?

I really appreciate any help, and I am a noob with Linux...

Kind regards
[Android Software/Hacking General [Developers Only]] jjcdennis:
I guess I solved this. I downloaded the 8gb image and installed that. Phone connected right away and Salt works. I have other questions I posted on the USU thread. Wish I knew a lot more about Linux.

Thanks for your help with this.

I had the same issue this am with SALT not recognizing the phone. I also had an issue with loading fwul. I took a shot and put the USB into the same slot as I had when fwul loaded last night and it did load. So I put the phone into the same slot as last night and SALT recognized it.

In my case it looks like fwul and SALT are USB sensitive and only work properly when plugged into the same slot when rebooting.
[Android Software/Hacking General [Developers Only]] Pete_Mitchell:
Any noble soul?
[Android Software/Hacking General [Developers Only]] steadfasterX:
Yes you can backup your data with SALT.

You can then open the userdata image with SALT (advanced menu) and copy the data you need. A restore is a manual progress once you recovered your phone though.

Ok great in general (in 9/10 times) this seems to be not a problem so related to your pc it seems. Glad you figured it out anyways.
[Android Software/Hacking General [Developers Only]] Pete_Mitchell:
Thanks Steadfaster this gives me hope.

Is it a straight forward process or I need linux commands?
[Android Software/Hacking General [Developers Only]] steadfasterX:
No Linux commands needed. Just SALT.

.
[Android Software/Hacking General [Developers Only]] NewDev4IOS:
I am able to boot FWUL perfectly fine no errors, and salt recognizes my device with no errors, but im trying to make a backup of my phone (full) and so i have a 32 gb vfat formated usb drive connected to my pc, also a few other internal HDDs, but when i go to make a backup SALT only recognizes the 16GB flash drive that FWUL is booted on, no external drive is shown in salt. However the USB drives are shown in FWUL. Please help Thanks

Salt version: 3.19-1:STABLE

Also i have tried entering the path to the usb manually, but it just adds /root/salt_backup/ in front of it
[Android Software/Hacking General [Developers Only]] steadfasterX:
IRC.

It's hard to help otherwise. I'm there next week on Tuesday first
[Android Software/Hacking General [Developers Only]] NewDev4IOS:
??? IRC -- Internet Relay Chat?
[Android Software/Hacking General [Developers Only]] steadfasterX:
yes.

FWUL thread topic support.
[Android Software/Hacking General [Developers Only]] steadfasterX:
( Continuing from here : https://xdaforums.com/showpost.php?p=77971093&postcount=1497 )

I have made some small changes which will just print more info in the logfile.

Thats needed to identify the root cause so please switch to the TESTING channel of SALT (read the FAQ #10) and update to 3.19-2.

Then try again to backup and share the log again afterwards.

.
[Android Software/Hacking General [Developers Only]] sananth:
New debug output from the "dev" branches of SALT

I was able to change SALT to use the dev branches like mentioned in the FAQ. Here is the latest debug output you requested:

http://bpaste.net/show/a38cebf51c7f

Thanks for the quick turnaround!
[Android Software/Hacking General [Developers Only]] steadfasterX:
could you check the OP of this thread and head over to IRC?

... and I need another run with a full backup as well incl. debug log ofc.

-.
[Android Software/Hacking General [Developers Only]] steadfasterX:
I can't say exactly what the reason is without seeing it live on your machine.. it cannot calculate the partition sizes and it's unclear why . it definitely is an issue on your local set up as it works perfectly fine everywhere else. Maybe it's just one of the variables which need to be adapted on your machine but as said without seeing it I can't say for sure.
[Android Software/Hacking General [Developers Only]] jerry_s87:
Without intending to divert the subject, taking advantage of its availability, know how close is the time when SALT is compatible with the G6 AT&T (H871) and allows a full backup? :good:
[Android Software/Hacking General [Developers Only]] steadfasterX:
It will never happen if there will be no users willing to help as I do not have a G6. Helping means the will to come online on IRC from Mondays to Fridays,patience and the use of FWUL.
[Android Software/Hacking General [Developers Only]] jerry_s87:
:D I am something new in these matters, but I have a will hehehehe. I just want to make the copy because I have important data that I do not want to lose because as I published in another post I'm stopped by the safe start. I came up with the idea of making a complete copy to have a sort of snapshot of my phone and proceed to format. If you can help with any information, you should only tell me the steps to follow. Although I do not have much room to do tests that can freeze the phone because I then lose the option to have a copy before re-installing the operating system since I do not remember the key. :good:
[Android Software/Hacking General [Developers Only]] steadfasterX:
As said above . IRC and FWUL are required.

No the tests are completely safe.
[Android Software/Hacking General [Developers Only]] jerry_s87:
Ready! jerry_s87 on the channel Cabon-user, I hope to serve you and that the copies will be achieved on these G6 devices too.
[Android Software/Hacking General [Developers Only]] steadfasterX:
you mean channel ca

r

bon

fusion

-user .

when you are there just say my name and I get a notify when I am online (rarely this week though, next one is a bit better)

.
[Android Software/Hacking General [Developers Only]] steadfasterX:
see also: https://xdaforums.com/showpost.php?p=77974365&postcount=550

You both have that issue (interestingly both with a VS986..) and I need a live session to fix that - which can just happen over IRC (read the OP for that).

Install tmate first:

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:tmate.io/archive
sudo apt-get update
sudo apt-get install tmate
ssh-keygen -b 4096 -f ~/.ssh/tmate -N ''
(note: the characters '' are 2 single quotes)
[Android Software/Hacking General [Developers Only]] jerry_s87:
Right!

Nick jerry_s87 irc
[Android Software/Hacking General [Developers Only]] steadfasterX:
as we had no luck this week try this:

in FWUL open the folder "LG" on the desktop and double click "LG LAF (steadfasterX)" to open a terminal for lglaf.

then:

git pull
git checkout ufs-test
git status
(should print that you are on the branch "ufs-test" now)

Connect the device in dl mode and in the same terminal do this:

python partitions.py --list

Copy the whole terminal output and put it on http://bpaste.net (ensure you select "never" in the dropdown)

.
[Android Software/Hacking General [Developers Only]] jerry_s87:
Here https://bpaste.net/show/19f3c817d7be https://bpaste.net/show/ff5782f7e8c9

After executing the listed commands, I executed python partitions.py --dump <path> /userdata.img userdata effectively started the dump. At the end, I wanted to mount using SALT, but I get an error indicating that the image can not be mounted at that point. I was just trying out options, I'll tell you if it's any good.

python partitions.py --dump <path> /system.img system This dump created a copy of the "system" partition when mounted in SALT, it is mounted and I can navigate in the files that the partition contains. Do you need some file from the "system" partition to advance the compatibility of the full backups in H871?
[Android Software/Hacking General [Developers Only]] steadfasterX:
wow awesome. to be really honest I never thought it would work sooooo far !! :cyclops: Thats good , I mean REALLY good.

ok do this on your userdata backup:

sudo -s
file /run/media/android/66C24B93C24B6681/LG_G6_911Backup/FROM_SALT/USER_DLGG6/userdata.img
tune2fs -l /run/media/android/66C24B93C24B6681/LG_G6_911Backup/FROM_SALT/USER_DLGG6/userdata.img
fsck -pfv /run/media/android/66C24B93C24B6681/LG_G6_911Backup/FROM_SALT/USER_DLGG6/userdata.img
mkdir /mnt/data
mount -t ext4 /run/media/android/66C24B93C24B6681/LG_G6_911Backup/FROM_SALT/USER_DLGG6/userdata.img /mnt/data
[Android Software/Hacking General [Developers Only]] xebbmw:
[MENTION=5545101]steadfasterX[/MENTION]: Thanks for writing this app, with your work we are a step forward in owning LG phones.

Do you have any plans in releasing the writing functionality on partitions? Cheap LG phones have no fastboot mode, using SALT we should be able to download the boot partition, patch it for root access (maybe Magisk manager could help here) and then write it back to the phone. The phone should have then root and be able to make changes on the installed firmware.

I am not sure if any issues would appear due to signing of boot image. This is just an idea, would worth trying.
[Android Software/Hacking General [Developers Only]] steadfasterX:
flashing functionality is already implemented. I can guide you on IRC if you like but what you suggest about rooting will only work on older devices/android versions.

The reason why it is not enabled by default is that I have to test several sub functions and on more devices (while I have only 1 model here).

.
[Android Software/Hacking General [Developers Only]] xebbmw:
My phone has MM version of Android (6.0). It is an LG K371 from AT&T and since I have it I never did any Android update.
[Android Software/Hacking General [Developers Only]] steadfasterX:
perfect. then come to IRC (read the OP topic "support") for how.

You need a bit of patience depending on your timezone.

Would be nice to have another model for testing here so greatly appreciated if you wanna help.

.-
[Android Software/Hacking General [Developers Only]] dharakv:
Greatly appreciate [MENTION=5545101]steadfasterX[/MENTION]'s work with SALT. Amazing tool for backups and extracting kdz's and BL unlocking and all... But my major concern is the lack of linux drivers for custom hardware (laptop users, you know what i mean). I have an AMD APU on my new (budget) laptop and there isnt a proper linux driver for it. Graphics driver keeps crashing every so often under FWUL. It would be disastrous if that happened during BL unlock process. In the future, will there be a SALT release for Windows?
[Android Software/Hacking General [Developers Only]] seadersn:
just wanted to hop in and say thanks, maestro :) very nice piece of software, this is the only one able to really succesfully decrypt lg v30 joan kdz' :good: very nice, again :D

just use ubuntu 16 or 18 (i'm on 16), on a usb stick or usb hdd, install the packages and you're good to go :good: maybe there the situation is better for amd drivers.
[Android Software/Hacking General [Developers Only]] steadfasterX:
Read & follow the FAQ #7 in the FWUL thread

Read the (new) FAQ #14 in this thread.
[Android Software/Hacking General [Developers Only]] zomgarcwind:
Cant get data out of bin files

Hi,

Im on a quest, trying to recover pictures from the internal memory of a G4 H811 that has been boot-looping for about 2 years. I was able to get into salt thru Live Cd FWUL and dump the userdata.bin file to my local hard-drive without any major issues

However when i get back into windows I cannot mount the bin file, and when i convert it to iso I still cannot open/mount it. What am I missing?
[Android Software/Hacking General [Developers Only]] Josh McGrath:
I don't know when Android started encryption on their devices, but on newer ones user data is encrypted so maybe that's the reason?
[Android Software/Hacking General [Developers Only]] zomgarcwind:
I was finally able to access the data, but I had to re-dump it and access the bin directly via salt. But finally we have what we came for
[Android Software/Hacking General [Developers Only]] steadfasterX:
SALT v3.20 released - Now with custom backup mode!

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

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:

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!
[Android Software/Hacking General [Developers Only]] jovanv:
Thanks [MENTION=5545101]steadfasterX[/MENTION] for the great tool: SALT.

I could not find useful info in the FAQs regarding the backup options. If I perform a basic backup, then when I restore it (after screwing up with ROM tests) will this backup be sufficient to get me back to my previous ROM?

I guess the complete backup is the safest, but it will take quite a while and it needs 32 GB of disk space. So, I was wondering what basic backup does.
[Android Software/Hacking General [Developers Only]] robles4242:
Is there any way to unlock my bootloader with usu/SALT on my VS986 WITHOUT having a computer?
[Android Software/Hacking General [Developers Only]] steadfasterX:
Basic will backup all main partitions excluding system, userdata, cache as those can be restored by a kdz. Well userdata not but that one is special anyways. On encrypted devices the backup of userdata will just contain GB of garbage. Better way is to backup your userdata within android if you can.

Full is clear.. Just everything.

Custom should be also clear I guess. Default there is to backup like full but you can choose whatever you want.

Absolutely no. Don't even think about it. You also need at least a *basic* SALT backup which will safe your ass if something goes wrong so no chance without a pc.
[Android Software/Hacking General [Developers Only]] Michael-IDA:
What version of LG UP do you use?

Hey Brian,

If I'm reading this correctly, for the V20 H91810p [Android 7.0 (Nougat)], SALT should not be used to flash the stock KDZ because of the hash issue?

Which only leaves using the windows LG UP software? As I’ve found several different versions of that, would you link to the specific LG UP (and associated USB drivers) that you use yourself?

Thanks,

Michael
[Android Software/Hacking General [Developers Only]] steadfasterX:
I am not Brian and I don't believe he will read this if you post here and not in his thread.
[Android Software/Hacking General [Developers Only]] Michael-IDA:
Egg on face :o

Sorry steadfasterX!

Serious "D'oh" moment there… I meant you as the OP, but I’d been conversing with Brian prior and had just read his name in the "Explained in detail" thread and unintentionally switched the names.

My complete apologies!

So...... Would you please link to the LG UP/USB drivers you use for Nougat?

Again, apologies, thanks, and best,

Michael
[Android Software/Hacking General [Developers Only]] Pete_Mitchell:
I have the same problem can you please tell me how did you do step by step? I would appreciate it .

Thanks in advance.
[Android Software/Hacking General [Developers Only]] steadfasterX:
No problem it was more meant as a hint because I thought you search for help from him. I can't help you with Windows stuff because that's why FWUL exists . Windows is a pita for these kind of things and so I just made a hopefully easy to use Linux distribution exactly for Android stuff.
[Android Software/Hacking General [Developers Only]] steadfasterX:
uhm.. it works now?

Ah I guess it was a timing issue then. You may need to wait for a longer time after entering Download mode (60 sec) before starting SALT.