yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] kemasin:
Hello. I'm trying to do anything with LG K61 phone, but it seems like it's not so easy with fastboot disabled and locked bootloader. Extracting Q630EAW10d_00_OPEN_EU_DS_OP_0626.kdz or Q630EAW30k_00_OPEN_EU_DS_OP_0927.kdz result in arb-detect-error. In Download mode there are no partitions so I can't do backup or anything. Here is debug: https://hastebin.skyra.pw/emonosarev
[Android Software/Hacking General [Developers Only]] steadfasterX:
pls connect the phone in dl mode and share the debug log from advanced menu. it seems the log you shared has expired.

Sent from HD1911 using ReLabs
[Android Software/Hacking General [Developers Only]] kemasin:
@steadfasterX

Hastebin

hastebin.skyra.pw

I had tried to extract 3 ROMs with SALT, and all of them end up with arb error.
[Android Software/Hacking General [Developers Only]] steadfasterX:
Ok thx. Could you pls share the download link to that kdz or upload it somewhere? LG has changed the kdz formats several times in the past and it seems yours is not covered by SALT yet.

It seems your firmware is quite current (2023 April) which means the underlying LAF version is likely heavily restricted. This is also indicated by the error LAF_ERROR_ACCESS_DENIED which happens on those restricted ones.

Not all is lost though but you will very likely not be able to write partitions in the current state of SALT (or better said by the lglaf backend).

Also do this: in the advanced menu of SALT press the CR mode button to force yes (must show as "Force no CR" in the main window) then in the advanced menu list partitions, then share the log again
[Android Software/Hacking General [Developers Only]] kemasin:
@steadfasterX

Yes, sure.

My main goal was to install custom rom. Before everything would go south, I wanted to have ability to go back to stock firmware.

I think you will have arb error with any firmware from that site or any other site.

Before trying mAid, I suffered few days with Windows. All those updates. Signed, unsigned drivers. LGE and winusb driver. Multiple programs for unlocking, and always was stuck on "Waiting for device to connect" in Dl mode. In worst case scenario I would have full LG sluggish experience. They did pretty good job at locking that phone like there is no tomorrow. :D
[Android Software/Hacking General [Developers Only]] steadfasterX:
thanks will look into that kdz extract issue asap. in the meantime pls do that and paste the output:

~/programs/lglafng/lglaf.py --debug --rawshell --cr no -c '!EXEC whoami\0' --proto 0x1000004

and

~/programs/lglafng/lglaf.py --debug --rawshell --cr no -c '!EXEC whoami\0' --proto 0x1000004 --skip-hello
[Android Software/Hacking General [Developers Only]] steadfasterX:
ok that was a quick one - hopefully. I tested just the linked KDZ and it works now (you have to switch to the STREAM channel in SALT -> see FAQ). It should be fixed in SALT v3.35

Regarding ARB it looks .. weird.

First of all it seems that your model does not have an ARB enforced. the kdz file name says "OPEN" and "EU" which usually both means no ARB. The weird thing is that for your model the ARB cannot be detected, that means in the SALT main window and also when extracting a KDZ it will not show an ARB. I tested all extracted partitions (btw: weird unusual set of partition names there..) based on how LG usually shows/integrates the ARB but found nothing.

If my assumption is right then this is nothing to worry about but well... SALT also supports booting to QDL/EDL mode for most devices - usually you can use the awesome qdl tool to flash stuff if SALT does not allow to do so.

Please still do the mentioned commands from my previous post though.. :)
[Android Software/Hacking General [Developers Only]] kemasin:
@steadfasterX

Thanks for looking into that problem.

I put a phone in DL mode. Started SALT, and then used those commands in a terminal.
[Android Software/Hacking General [Developers Only]] steadfasterX:
I really would appreciate using paste services ;) text files are bad for many reasons

anyways, it seems there is nothing more we can do atm though. at least u can extract your kdz now. the previously mentioned edl tool looks like your only option then (on linux)
[Android Software/Hacking General [Developers Only]] kemasin:
@steadfasterX

Isn't qdl/edl only for Qualcomm devices? :>
[Android Software/Hacking General [Developers Only]] steadfasterX:
uh yea sorry for my ignorance. MTK right? those dont get much love..
[Android Software/Hacking General [Developers Only]] kemasin:
@steadfasterX

Yes, lovely MTK. :D Thanks for all.
[Android Software/Hacking General [Developers Only]] PH_Android:
Is there a guide for restoring through SALT a backup made using SALT?
[Android Software/Hacking General [Developers Only]] steadfasterX:
no as this is a dangerous process it is even not enabled by default. usually it is fully enough flashing a single partition back via fastboot if available. what is the reason why you want to do that?
[Android Software/Hacking General [Developers Only]] PH_Android:
Wanted to know if it was possible. Will just keep fastboot in mind then. Thanks.
[Android Software/Hacking General [Developers Only]] steadfasterX:
ok so yea it is possible but as a last resort only and depends on the LAF version (advanced menu in latest SALT release)
[Android Software/Hacking General [Developers Only]] cuynu:
does this tool can flash stock extracted kdz fw of lg g7/g8/v50 through fw update mode yet?
[Android Software/Hacking General [Developers Only]] _tyler_:
I found a few old H810. They are on h81022b, h81022c, & h81022d on 6.0. They all let me check OEM Unlock in Settings, can I just run `fastboot oem unlock`?

if not, well I have mAid/SALT on a USB drive, I open SALT, immediately see update, so I try it. Nothing happens. Currently SALT 3.28. Do I need to be latest update to unlock H810? I also briefly saw my ARB is 3, but the FAQ said for H810 it could be greater than 2. Bunch of long threads, makes it kinda confusing 🫤
[Android Software/Hacking General [Developers Only]] steadfasterX:
you cannot unlock the H810 officially or within fastboot.

ARB 3 is not supported for UsU unlock. no way. SALT is a generic tool for many LG devices but I assume you talking about UsU here.

The UsU thread says absolute 100% clearly (and this several times in the OP and FAQ) that the ARB must not be greater then 2.

If updating SALT fails you should at least share the debug log (see the SALT faq here)
[Android Software/Hacking General [Developers Only]] _tyler_:
faq 29 but I guess you wont help with that. So I will check my other. 2 H810
[Android Software/Hacking General [Developers Only]] steadfasterX:
if you wanna go that route you are alone, but feedback is welcome ofc ;)
[Android Software/Hacking General [Developers Only]] _tyler_:
I'll give it a go, I have 3 of them they are either garbage or lowly tax return credit donations. if I can get them running Q/11 I can probably sell them for $100+ each. Will report back, internet being slow, took forever to DL 2.2GB mAid, kdz also big.
[Android Software/Hacking General [Developers Only]] grantdb:
Thanks for the tab sequence as it went into the backup menu and I selected the basic but I don't think it was doing anything. After an hour or so there was nothing in the backup directory so I cancelled it.

I am still getting this in the log and I think it is related to the python crypto:

Going to try and see if I am able to get another python3-crypto installed but I am at a standstill now. Including the latest log.

Thank you
[Android Software/Hacking General [Developers Only]] steadfasterX:
Without python version 3 crypto SALT will not work for you

If you can't get it working just use FWUL 2.5 from the nightly server
[Android Software/Hacking General [Developers Only]] steadfasterX:
this requires some live hacking i guess.

could you install tmate?

and if you have no ssh keys yet the following is required to execute once:

ssh-keygen -b 4096

(when asked for a password its up to you to choose one or not but if you choose a password ensure you remember it as it get asked everytime when you start tmate later)

Then we need a time to meet and you need to access IRC as mentioned in the OP but I guess this would happen after my vacation first.

.
[Android Software/Hacking General [Developers Only]] grantdb:
Just for reference on Solus 3 it's called pycrypto and there is no gksudo so I just run the main script directly with "sudo ~/SALT/salt" in terminal and works like a charm.

Can see the partitions and backup (basic) as well as verification all working now!

Can't wait to see whats coming next!

Thank you [MENTION=5545101]steadfasterX[/MENTION] you rock!

Edit: I had to change the xterm entry in the salt.vars to be roxterm as that's the terminal I am using on Solus 3 (the default is something else but was to lazy to check).
[Android Software/Hacking General [Developers Only]] steadfasterX:
SALT v3.1 released

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

v3.1-0

Released: 2018-01-09

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

Summy changelog:

New(SALT): adding a GPT compatibility info for UsU ROM flashing
[Android Software/Hacking General [Developers Only]] doop:
No rush it`s my wifes phone :p and you have enough on your plate regarding the varied GPT `s.

The H815SEA is mine :D

Going to try out 3.1, Have a good holiday
[Android Software/Hacking General [Developers Only]] cowsngrass:
Works great on my LinuxMint 18.3!

Thanks!
[Android Software/Hacking General [Developers Only]] aaya888:
please add lg v10
[Android Software/Hacking General [Developers Only]] aaya888:
lg v10 h900 work please add f600l vs990 h900

:):):):):):)
[Android Software/Hacking General [Developers Only]] aaya888:
backup work please add lg v10
[Android Software/Hacking General [Developers Only]] Engelm:
Thanks for that :)

But could you please, as already mentioned I think, resize the window?

Because on my tiny little f***ng monitor I can't click the bottom icons xD
[Android Software/Hacking General [Developers Only]] steadfasterX:
The unlock is and will be available for the G4 ONLY. But I'm glad that the ARB detection and backup is working for you.

Yea it's on the to-do list... https://github.com/steadfasterX/SALT/issues/7
[Android Software/Hacking General [Developers Only]] grantdb:
A temporary workaround for this is to rotate your display to portrait. I can't see the icons on my 1366x768 screen in landscape but can see them in portrait. It's a little awkward but works fine.

Cheers
[Android Software/Hacking General [Developers Only]] grantdb:
I am trying to figure out the path to unlock the bootloader and get TWRP and AOSCP Oreo working but everything is in different threads. I hoping that a kind user can guide me through the process or something like follow thread A then flash files from thread B etc. Or maybe I should just wait for [MENTION=5545101]steadfasterX[/MENTION] to make his magic and put it all in SALT. I see the unlock button in SALT but am not nearly prepared with the correct files etc

Any hints or tips would be great!
[Android Software/Hacking General [Developers Only]] aaya888:
hello thank you lg v10 convert flash add:):):):):):):):)
[Android Software/Hacking General [Developers Only]] grantdb:
ok so I have SALT installed and working, I downloaded the AOSCP nightly ROM for H811, Majisk and TWRP from Unofficial TWRP nightlies

...[/ url] edit to remove some parts

I am on IRC and trying to figure this out!
[Android Software/Hacking General [Developers Only]] shane87:
Patience. UsU is still in testing. Give [MENTION=5545101]steadfasterX[/MENTION] time to finish testing and work all the bugs out. The complexities involved with the different models and firmwares of the G4 make this a very difficult job to finish. You can't rush a master at work! :)
[Android Software/Hacking General [Developers Only]] djamolsky:
If a H815 SEA owner is needed for testing, I am available!
[Android Software/Hacking General [Developers Only]] steadfasterX:
UsU is not released yet. H815 is proven to work so no further testers needed. Just be patient.
[Android Software/Hacking General [Developers Only]] doomanix:
Hey [MENTION=5545101]steadfasterX[/MENTION] I ran into a problem last night while backing up my phone using SALT. I believe it was the computers problem (not SALT) as somehow both the userdata and cache partitions ended up getting corrupted and turned the phone unbootable. Before doing anything else I backed up my phone completely and while I got errors on both the cache and userdata partitions; I thought it would be best to have them anyways. I then factory reset the phone as to get it working but I had some valuable data I was hoping to recover from the backup. I was curious how I would go about opening the userdata.bin file on Linux (if at all possible) as to recover some of my files. I thought I'd post here just in case anyone else was curious how to explore their SALT backups on their computers.

If nothing else I can live without the data being recovered (though I'll make sure to be wary of my computer the next time I plug my phone in ;) ) Cheers!
[Android Software/Hacking General [Developers Only]] _tyler_:
Well I think I soft bricked 2 of them. the 3 were on H810 22b/c/d 6.0. I flashed PRH810PR10a_04.kdz from "CM on H810" as one of the FAQ 29 anomalies. The device shows up in Device Manager on Windows as some sort of unrecognized device. I am losing patience although I believe it can be saved if I go find the driver .inf and get LGUP to flash the 22b/c/d kdz/tot. Flashtool would keep force closing or say it cant contact the server...something in Korean...LGUPing the other kdz would just say ARB is lower than currently on the device and it would simply fail. I tried H811 20o from the other FAQ29 anomaly and it told me invalid kdz. Not gonna bother trying to fix that kdz or even messing with the 3rd h810...
[Android Software/Hacking General [Developers Only]] st.patryk:
Hello, I don't know where to look for a help so I tried here:

I tried to unlock bootloader on my LG G4 H815, unfortunately official method is off.

I put phone in download mode, run SALT on live mAid and there is info:

"Your LAF firmware (unknown / LG-H815) does <b>not</b> support direct flashing!"

Anyone can help me unlock bootloader?

log:
[Android Software/Hacking General [Developers Only]] steadfasterX:
do you have read the next line that says

> This does NOT affect unlocking the G4!

??

anyways. simply use the internal storage or ext. sdcard method instead. and there is an unlock thread btw ;)
[Android Software/Hacking General [Developers Only]] st.patryk:
Yes I have, but UsU says that the "download mode version is not supported" and there's no way to flash other ROM because every testet app (lg up +uppercut, lg flash tool) on windows deasn't work...
[Android Software/Hacking General [Developers Only]] steadfasterX:
simply use the internal storage or ext. sdcard method instead.

when you get an error share the log, see FAQ 1000 in this thread post2
[Android Software/Hacking General [Developers Only]] st.patryk:
I do everything from thread:

[UNLOCK][UNOFFICIAL][G4] Unlock ANY* LG G4 device with UsU

and on point:

pops out error: ...download mode version is not supported.

Tell me friend, what did I wrong? I got a headache from that.
[Android Software/Hacking General [Developers Only]] steadfasterX:
what u did wrong? u still do not share the log (see my post above) so what should I do? guessing?
[Android Software/Hacking General [Developers Only]] st.patryk:
here is log file:
[Android Software/Hacking General [Developers Only]] steadfasterX:
thx. pls use the button (see FAQ 1000) to share the log next time.

start SALT and switch to the STREAM version (FAQ 10)
[Android Software/Hacking General [Developers Only]] st.patryk:
Did you find something useful in log file?
[Android Software/Hacking General [Developers Only]] steadfasterX:
the issue is you are using an old SALT version. latest is v3.36-1. Either switch SALT to the STREAM channel (see FAQ) or boot the latest mAid v4.2.

if it still fails share the log again on that latest version pls
[Android Software/Hacking General [Developers Only]] kazuarc:
Hello, how i fix error code: Calculated target size is too small (0), when trying to fully backup my lg v40. Im running 3.36-1 stable.
[Android Software/Hacking General [Developers Only]] steadfasterX:
there is a button in the advanced log. See FAQ 19.
[Android Software/Hacking General [Developers Only]] steadfasterX:
ok @kazuarc : pls ensure you read the new FAQ 20 when sharing logs. thanks.

pls try the following:

1. advanced menu

2. click "Force CR"

3. SALT will auto close and auto-restart, can take a mom

4. try a custom backup and choose just 1 partition (e.g. modem or aboot or boot)

5. if that works try a basic backup

in any case if you encounter issues share the log again (via FAQ 20)

gl
[Android Software/Hacking General [Developers Only]] kazuarc:
Hello, i did everything you mentioned and got the same error, also, when i choose to select custom partitions, none appear for me to select.

Log: https://hastebin.com/share/ijevoyedav.yaml
[Android Software/Hacking General [Developers Only]] steadfasterX:
ok thx. unfortunately nothing I can do than
[Android Software/Hacking General [Developers Only]] Squeeto:
It looks like a lot of thought and effort went into SALT.

Thank you steadfasterX.

Is it possible for this application to extract the rawprogram.xml files?
[Android Software/Hacking General [Developers Only]] steadfasterX:
salt has nothing to do with qfil and rawprogram xml files cant be extracted somewhere they must be generated (and no I dont have the tool for that, sorry)

Sent from HD1911 using ReLabs
[Android Software/Hacking General [Developers Only]] Squeeto:
Okay, cool, thx.
[Android Software/Hacking General [Developers Only]] st.patryk:
Hello,

I have another LG G4 H815 and I get error:

"I cannot determine your ARB!

UsU can be flashed only on ARB up to including 2!

..."

Can You help me again? :)

Log file: (I also send log via button in salt)

Edit:

Ok, after couple hours it finally unlocked device :)
[Android Software/Hacking General [Developers Only]] steadfasterX:
First of all SALT does not touch anything on your phone! It will only pull data not put (restore will come in a future release).

Besides that its planned to add an option to SALT to explore userdata soon: https://github.com/steadfasterX/SALT/issues/8

Until then you can just mount it like that:

sudo mount -o loop userdata.image /mnt

Afterwards you can open /mnt in the file browser.
[Android Software/Hacking General [Developers Only]] doomanix:
I had a felling from the get-go that SALT was not the problem, but rather the solution to my problem ;). I've attempted to mount the system in terminal but am getting the error: failed to setup loop device for userdata.image. I'll attempt to mount it a few more times after work but if not knowing SALT will soon allow for mounting of the partition is good enough for me (as long as the partition is not totally corrupted). Thanks again SFX!
[Android Software/Hacking General [Developers Only]] steadfasterX:
Which Linux?

What's the output of

lsb_release -a

That error is very strange and so would happen even later with SALT as well. Is that the exact error message?
[Android Software/Hacking General [Developers Only]] google99:
sorry i did a error my phone is H815 (G4) or i change with this ROM but this is for H850 (G5). Now my phone do not start and no light at all. Even in USB this is not recognized !!!!

Any help Please ?

Do you think that with your tools i could correct it ?

---------- Post added at 12:08 PM ---------- Previous post was at 12:06 PM ----------

Below are the error i have connecting my LG G4 (H815 with this ROM : [ROM][H850] H-ROM V30 FULL V1.0 [BETA][UX6+][v20s][v10g] normally for LG G5) !

Can you please help me to resolve it ?

---------- Post added at 12:08 PM ---------- Previous post was at 12:08 PM ----------

Below are the error i have connecting my LG G4 (H815 with this ROM : [ROM][H850] H-ROM V30 FULL V1.0 [BETA][UX6+][v20s][v10g] normally for LG G5) !

Can you please help me to resolve it ?
[Android Software/Hacking General [Developers Only]] steadfasterX:
You may have to wait 60 sec after you booted into download mode before SALT is able to detect your device. If not press the SKIP button open the advanced menu and copy and paste the debug log. My signature here has a paste service link you can use.
[Android Software/Hacking General [Developers Only]] google99:
[MENTION=5545101]steadfasterX[/MENTION] :

I did it many time, but my device is now using H850 or a LG G4 (H815). always it says '"no_device_found"

I would like to write it using LG FLASHTOOLS 1.8 that use COM Port ; what do you think ?

Thanks.
[Android Software/Hacking General [Developers Only]] steadfasterX:
The reason why I told you to use a paste service like the one in my signature is for a reason. It keeps the forum clean and ensures everything is readable as it should be.

The log shows that there is no USB device connected or the download mode is not fully up. One of the 2 is the reason why SALT does not work. Do you see the download mode as shown in the example picture or only the logo with text "download"? How is FWUL running? From USB stick or in VirtualBox? Pls use USB 2 ports to connect the phone and in VirtualBox ensure you link the USB device to the VM.
[Android Software/Hacking General [Developers Only]] google99:
You are right as now i have done an error using a ROM for H850, my phone is a LG G4 (H815) now the USB does not work also !!!

I do not know how to correct this also, i was thinking that using SALT it may could correct it also :(
[Android Software/Hacking General [Developers Only]] sdembiske:
H81210n failing to connect in download mode in Arch Linux in Virtualbox with USB device checked for the LG phone and showing connected and USB 2.0 controller checked as well, no long how long I wait or how many times I try.

If I reboot Arch Linux while phone is still connected in download mode, it connects right away.

Here is a link to the log: https://hastebin.com/dupesujomi.js

Love the program and have completed a full backup with no issues, but it cannot be verified with my device model.

Appreciate all you do.

Thanks,

S.
[Android Software/Hacking General [Developers Only]] steadfasterX:
SALT needs a working download mode so no. Even when you get it working SALT v3 is not able to flash something.

You can hexedit a kdz file so you can flash it with lgup. for this do a search before starting a new thread this has been asked many times for similar reasons.

! That sounds like an interesting finding but for another issue.. We may just need to restart a service.. Is your arch up2date? If not do a full upgrade with

pacman -Syu

Oh and one more thing:

As you are using virtualbox try to disconnect the LG USB device and connect again instead of rebooting
[Android Software/Hacking General [Developers Only]] fil3s:
I need help with using the disc image of FWUL 2.3 persistent

When I burn it to an 8gb USB drive I don't know how to boot from it in virtual box

I can boot from iso ok, but not the disc IMG :(
[Android Software/Hacking General [Developers Only]] shane87:
You would only use the USB drive if you wanted to boot directly from it without using virtualbox. If you are using virtualbox you just boot from the iso file.
[Android Software/Hacking General [Developers Only]] fil3s:
How? See files that load when I try to boot from disc image in screenshot
[Android Software/Hacking General [Developers Only]] fil3s:
I will just use forgetful iso. Thanks.
[Android Software/Hacking General [Developers Only]] fil3s:
This is what happens when I try to load the IMG
[Android Software/Hacking General [Developers Only]] steadfasterX:
Pls keep discussions in proper thread. This thread is about SALT.

Ofc you can use the persistent image in VirtualBox but for the how-to read the FAQ persistent mode - VirtualBox usage:

https://xdaforums.com/android/softw...-fastboot-driver-issues-t3526755/post70272692

Any further FWUL issues in the FWUL thread ;)

Thanks