yashsingh1/xdaforums huggingface dataset:
[Android Software Development] ragarcia87:
OMFG! You are a godsend!!! I was skeptical at first when I saw this post, wondering how I never saw this before today... However, I just tried it out and it worked 100% and quickly!

I have tried every other linux solution and every last one came up bust until now. Thanks again!

View attachment 5743797
[Android Software Development] NikitaSavc:
Hello! Can you to public source code? And port Odin for Linux for ARM. It's only for x86
[Android Software Development] TheAirBlow:
This is official odin from the LAP$US Samsung leak. I didn't find it's source code as the executable itself was used in some sort of CI.
[Android Software Development] NikitaSavc:
That is, it turns out that you just took the source code from there, downloaded a compiler that can make a binary for Linux and compiled it?
[Android Software Development] TheAirBlow:
I said that there was no source code and it was executable only. Is it that hard to understand?
[Android Software Development] Williamtung:
It's legit! Thanks a lot!
[Android Software Development] mark86v1:
What is the command you executed before this? Please tell clearly. I want to flash TWRP.
[Android Software Development] ragarcia87:
There was no command executed before this. That was the only command executed. I first copied the executable to my local bin folder in PATH and then ran that command.
[Android Software Development] mark86v1:
Does the phone have to be in download mode?
[Android Software Development] ragarcia87:
Yes, gotta be in download mode before you can use Odin to flash recovery
[Android Software Development] mark86v1:
Thanks for the info mate, I have already unlocked the bootloader but when I use the hardware key combinations for download mode, it's not working. Phone is directly re-starting. Any idea?
[Android Software Development] ragarcia87:
Try using adb. Use adb reboot download
[Android Software Development] mark86v1:
Sure thanks mate. Will try this.
[Android Software Development] mark86v1:
Tried the same. In the terminal, it came success but the phone is stuck at ODIN MODE (SVB FAIL). Even after restarting it is stuck in download mode.
[Android Software Development] TheAirBlow:
Verification is on for some reason?
[Android Software Development] mark86v1:
ODIN MODE (SVB FAIL)!
recovery: No footer detected. (0)
recovery: Error verifying vbmeta Image: invalid vbmeta header (6)
VBMETA A127FXXU..., 527...

These are the messages showing up. Any help?
[Android Software Development] mark86v1:
I somehow got rid of the above error and flashed BL, AP, CP, CSC files using Linux ODIN. Now can anyone guide me with the steps to install TWRP correctly, install lineage os and root my phone. It would be really helpful.
[Android Software Development] :
It was my fault. I put the letter a, but it shouldn't have. Windows 11 is being installed.
[Android Software Development] :
I installed Windows 11 on KVM. Now I need use USB on KVM.
[Android Software Development] Virnik0:
search this thread for my post with 'modprobe'

Connect your USB/phone to the PC, then run modprobe command I provided, and then again refer to my prior hint on how to share the USB
[Android Software Development] :
Thanks. Now it's 11:40 pm at my place. I'm going to sleep, so I'll continue tomorrow. Good night.
[Android Software Development] :
I can't find 'modprobe'.
[Android Software Development] :
I can't open Windows 11. I get this notification:

Underlined in red: No such file or directory.
[Android Software Development] Virnik0:
spaces and special characters in the path
[Android Software Development] :
I don't understand. Windows 11 is yesterday worked on KVM, and today not.
[Android Software Development] :
I didn't do anything. Now when I tried to boot Windows 11 again on the KVM, it booted up without a problem. I don't underestand it.

I've looked through all 10 pages on this topic and can't find your post with 'modprobe'.
[Android Software Development] :
I connect phone and Linux with USB cabel and I tried Redirect USB and it is error.
[Android Software Development] Virnik0:
I am quite annoyed by this. Multiple people referred this. Not only me.

sudo modprobe -r cdc_acm

You're just lazy liar
[Android Software Development] :
Not work for me.

I have spent over 200 hours trying to solve this virtual windows issue. Is it laziness?

I am neither lazy nor a liar. No offense please. nobody is forcing you to help me. You provide information at the drop of a hat. Just because I don't know English and I use IM Translator doesn't mean I'm lazy and a liar.

I apologize for asking you for help. From now on I won't talk to you anymore. Kind regards.
[Android Software Development] Virnik0:
You're aither one of those, or just ignorant. You've been provided with help you largerly ignored. You do not specify your nature of your issue properly. Majority of topics with you ends up with 'it doesn't work' instead of trying to learn from your mistakes. Secondly, we're flooding this topic with Off-topic not relevant to Linux odin binary, which works for those who tried it, but you're still complaining.
[Android Software Development] :
I didn't ignore anything. I have done everything I have found here and nothing has worked for me. Linux is a big unknown for me. Those who know how to work on Linux, they solved the problem without problems. For me, the debate is over. Greeting.
[Android Software Development] :
USB on KVM problem solved. The first: I Unmount USB on Ubuntu. After Redirect USB device and it is it.

I now cam connect ODIN.

I need share folders Ubuntu and KVM.
[Android Software Development] AnonVendetta:
Or you can install dconf-editor. Use it to prevent your Linux desktop environment from automounting the device (if it's in Download Mode this shouldn't happen anyway, since the internal filesystems are unavailable). My host is Ubuntu LTS 22.04.2.

Now you are learning.

I too had issues with passing USB device from host to guest. And I'd already did the modprobe/blacklist of cdc_acm. But it's working now, I can Odin flash from the VMed Windows. Besides Windows Odin, you'll also need to install the official Samsung USB drivers, so Odin will recognize it. Only necessary for Windows Odin, native Linux Odin doesn't need this step.

However, if you will just follow the instructions in 1st post, you wouldn't need the VM Windows for flashing, Linux Odin would work.
[Android Software Development] AnonVendetta:
@Virnik0: Calling him a liar is a bit heavy and unnecessary. But I will agree that he seems to be somewhat lazy. Because if he had searched for modprobe, he would have found it.
[Android Software Development] Virnik0:
You said it yourself - 'if he had searched for modprobe'

He said that he did. How else to call someone who says things which are not true?
[Android Software Development] :
Odin works for me on Windows 11 KVM. Odin4 works for me as well. I only need to transfer files from KVM to Ubuntu and from Ubuntu to KVM.
[Android Software Development] :
I don't know what is it modprobe. Is spending more than 200 hours trying to solve a problem laziness?
[Android Software Development] AnonVendetta:
I haven't figured out how to share files from host to guest/guest to host. It's the next thing I'm looking into.
[Android Software Development] AnonVendetta:
Come on, just search for "linux modprobe" on Google. And linux has manual pages built in that give you the nitty gritty on pretty much every command/utility that is bundled with the OS. You really are lazy.

Hint: just type "man modprobe" in a terminal, without the quotes. You don't even need internet access.
[Android Software Development] :
Not knowing what to do is not laziness. Laziness is that you do not explain how something should be done, for example. in this comment of yours.

Stop insulting me. No one is forcing you to help me. Why didn't you immediately write what you wrote in this comment? Can you drive a plane and a helicopter? If you don't know, you're really lazy.
[Android Software Development] AnonVendetta:
Enough with you, I've already tried to help, but I'm done now. I told you exactly what you need to do to get more info about modprobe. Then you can just do it on your own. Did you even bother typing the command I gave you? Or searching Google? I bet not.

Your problem is that you expect to be spoonfed every tidbit of info you need. Sorry, but you're not an infant, so you'll get none of that. Now put in some actual effort and stop being so annoying with your driveling.

Your plane/helicopter metaphor makes zero sense. I have no need/want to learn to fly, so it doesnt even matter. You, on the other hand, need something, and that something is info. But you can't always rely on others, you need to put in your own effort. I bet you put off a lot of other people into not wanting to help you with whatever, because they see how you are.
[Android Software Development] :
Now you've gone too far. I was on the road and just got home. How could I have known before that I should type 'man modprobe' in the Terminal? I don't have a crystal ball. I'm new to Linux and I have no idea about Terminal commands. I looked for help on other sites, but I found everything I needed. I wouldn't have a KVM or USB to KVM next to you. You are too lazy to write how something should be done, and you accuse me of laziness. There is no end to your hypocrisy.

I wrote my problem here and didn't force anyone to help me. I have been on XDA for almost 12 years and I have never experienced anything like this. You said a lot about yourself and nothing about me.
[Android Software Development] AnonVendetta:
As I said, I'm done trying to help you. I'm not lazy at all, but I'm also not motivated to help someone who isn't putting in genuine effort. Those people don't deserve my time. I won't endlessly explain myself to them. Don't forget, noone here owes you anything. Don't come around here acting as if people should just spell it all out for you. You really are proving that you want things on a silver platter.

There's no point in responding to me/quoting my posts, I'm just going to ignore you from here on. You won't get another reply from me.
[Android Software Development] :
Shame on you hypocrite. You hindered me more than helped me. To tell someone who doesn't know how to do something, that they are not trying, that they are lazy, that they demand something from someone is hypocritical, rude and immoral.
[Android Software Development] Devastated360:
Hello guys ... I am trying to flash A34 5G. ANDROID 13 .. BUT I GET ERROR MESSAGE

Fail request received 0

FAIL!(Erase)

Fail receive PIT info

Then on phone it says

MDM MODE. CAN'T ERASE USERDATA
[Android Software Development] Virnik0:
Aren't your data encrypted? If so, remove PIN and google account, then reboot to recovery and select factory reset. then try flashing again.
[Android Software Development] Devastated360:
There's no factory reset option ... It is encrypted by payjoy
[Android Software Development] Tarch1:
thanks for this easy to use program!
[Android Software Development] TheAirBlow:
Here's a decompilation of this by the HexRays decompiler: https://gist.github.com/TheAirBlow/179245bc708efbd34bc7f1cf2e0ed1da

Found the error codes for the end file sequence packet response here, will be put into Thor.
[Android Software Development] nguyenlucky:
Your device has MDM (mobile device management) configured by your workplace.
[Android Software Development] abrmbaloch:
Hi,

I am in the same situation.

How do I flash the vbmeta ?

I tried with :

"odin4 -a A528BXXU1CVG7_patched_vbmeta.tar -d /dev/bus/usb/003/17 "

But I got :

/dev/bus/usb/003/017

Setup Connection

initializeConnection

Receive PIT Info

success getpit

Upload Binaries

vbmeta.img

Close Connection

Fail request receive -5

FAIL close

Fail Close Connection
[Android Software Development] syl2o:
Very good stuff, just a remark from France, I've just refund my Samsung M20 (turk version) with android 10 with your soft : quiet good! before, i've made a mistake with a release of his old Android 9 with e/OS (to ungoogle it) wich is make for android 10 ... all broken... But, odin4 is strong, odin4 is full, you know, with odin4, this is freedom for release ;-)))))) If you want some screenshots of my upgrade , I could send them. thank you. Sylvain. (Linux Devuan4)
[Android Software Development] Rick_Astley:
Can u make a video pls, I don't rly understand..
[Android Software Development] ethical_haquer:
Can you be more specific please, I can't help you if you don't say what you're trying to do.
[Android Software Development] Virnik0:
Userdata is probably encrypted. Have you provided PIT? Try booting to stock recovery, and doing Factory Reset/Wipe. Format Data as well.

Then try again. Make sure that you do provide vbmeta image as well to the Odin, or package it to existing tarball and flash along. Basically it tells you that you're not authorized to overwrite data image/part of the phone.
[Android Software Development] Virnik0:
Usually when you're not certain in which state the phone is, make sure to download latest genuine FW for given phone model, and either flash with Odin3 (Windows), or odin4 (Linux) with re-partition ticket/defined. You'll need PIT file as well (it is available in the firmware tarball, just extract it).

That would wipe the phone, and reset it to factory settings, overwriting all content. Then follow the procedure to get it rooted and TWRP flashed, before moving forward with any firmware reflash.
[Android Software Development] Rick_Astley:
I don't understand nothing, I'm new l8nex user I know nothing about commands and boot and things like that. I just want to install a custom rom to my samsung a21s.
[Android Software Development] ethical_haquer:
What custom ROM in particular? (link please).
[Android Software Development] Rick_Astley:
I wanted to Flash twrp so I can install lineage os https://lineageos.org/
[Android Software Development] ethical_haquer:
Alright, what unofficial build though? Your device isn't officially supported.
[Android Software Development] Rick_Astley:
Oh... I didn't know that..
[Android Software Development] Rick_Astley:
Ok I found this one but idk how to install it..

As i said i am new in those things..

Https://xdaforums.com/t/android-12-experimental-re-uploaded-aosp-android-12-for-a21s.4349327/
[Android Software Development] SonicoXD:
Thanks! Successfully flashed a Galaxy S6 with this.

1. Download the firmware zip file

2. Extract it to some folder, say "SamFirmware"

3. cd into SamFirmware

4.

sudo odin4 -b BL_* -a AP_* -c CP_* -c CSC_* -e

5. Just wait. The device will reboot by itself once finished.
[Android Software Development] diehard2013:
will odin linux run under wsl?
[Android Software Development] ethical_haquer:
Sorry! I forgot about this!

The directions are included in this thread's first post.

Do you need help with something in particular?

Just let me know if you have any specific questions or concerns. :)
[Android Software Development] Rajnish@17:
Yeah working!! Thanks
[Android Software Development] Art10001:
Odin for Linux... What a miracle! It's finally here!

One comment said it works with even 2012 phones, that's great.

Thank you so much for sharing this discovery.
[Android Software Development] shaybaby79:
everything works till i get to cd odin4 /usr/local/bin I get too many arguments error
[Android Software Development] sql22:
Thank you very much after many attempts with heimdall and jodin It was all a failure
[Android Software Development] Louham:
Hello,

I rebooted successfully my Samsung in download mode:

./adb reboot download (my device is seen by adb devices).

It's running OK, but

odin4 -l

returns nothing, and so it is impossible to set a correct path to upload a rom...

Any idea on how to solve it ?

Thank you for any help :)
[Android Software Development] HorusEyE:
Hello.

OMFG, I wish I could have 1/10 of the help that "deleted" user had in the last (like) 10 pages.

I'm amazed how some people have the patience to keep helping people that can't even google for something like "modprobe command help".

Anyway, I have a Samsung Galaxy S21 and I've been trying to flash a firmware from SAMFW site.

I first tried Heimdall on my own laptop (Debian Bookworm) but I constantly get that annoying libusb error even after trying with amo13 binary of Heimdall.

Then, I tried to run a live distro I found here specific for flashing firmware files on several phones. A distro called mAID Linux but I'm running it as a Live Distro from a pen drive.I can make Heimdall to connect to the device only once (I think it is also a known bug with libusb timmings or something). To use it again, (and to use it again I have to reboot both laptop and phone or at least logout laptop and reboot phone to Download mode).

Then, now that I know I can, at least, use Heimdall once, I got another issue. The PIT file. I downloaded the PIT file from my phone with success using Heimdall and I also extracted the PIT file from SAMFW firmware. They both are accepted by Heimdall. But to use Heimdall I have to untar and un-lz4 all files and use each one with each partition type. The problem here is that the PIT file partitions and files doesn't match the files I extracted from SAMFW (16 bin and img files) and I'm not sure what to do here. If to use only the files extracted from SAMFW frmware and ignore the 31 partition types (47 - 16 = 31) I have from my phone's PIT file.

I also tried to use the SAMFW tar and tar.md5 files with Odin and the PIT file I extracted from my phone and also the one inside CSC folder but Odin keeps saying that these PIT files are corrupt.

So, I end up here, and I was trying to use odin4 to check if I could do something.

I have already removed cdc_acm, I have already blacklisted it but I keep getting the same ioctl error.

I also added the udev rules file but as this is a live distro I'm not sure if the udev file is critical if I am not forced to reboot the system but if I reboot it I lose the file.

Anyway, if anyone can try to give some further help, I would appreciate! I already have one other thread about flashing my device here:

Can't use Heimdall to flash a firmware

Hello. Long time I don't root my phones, probably since Galaxy S4. I just bought a used Galaxy S21 5G and wanted to try to flash a firmware, for instance from samfw.com. I downloaded the correct file from samfw.com, unlocke the bootloader and...

xdaforums.com
[Android Software Development] silviuXgaming:
Hi all, if somebody have time and can help me to unbrick my phone "Samsung A13 SM-A135F" is only working on download mode, when i run restore, is show this error,

"

┌─────(silviux)─────(~/Downloads/New Folder 7/New Folder)

└> $ '/home/silviux/Downloads/New Folder 7/New Folder/odin4' -a '/home/silviux/Downloads/New Folder 7/New Folder/AP_A135FXXU2AVH4_CL24699310_QB55157862_REV00_user_low_ship_MULTI_CERT_meta_OS12.tar.md5' -b '/home/silviux/Downloads/New Folder 7/New Folder/BL_A135FXXU2AVH4_CL24699310_QB55157862_REV00_user_low_ship_MULTI_CERT.tar.md5' -c '/home/silviux/Downloads/New Folder 7/New Folder/CP_A135FXXU2AVH3_CP22702486_CL24699310_QB54991038_REV00_user_low_ship_MULTI_CERT.tar.md5' -s '/home/silviux/Downloads/New Folder 7/New Folder/HOME_CSC_OXM_A135FOXM2AVH3_CL24699310_QB54991038_REV00_user_low_ship_MULTI_CERT.tar.md5' -d /dev/bus/usb/001/010

Check file : /home/silviux/Downloads/New Folder 7/New Folder/AP_A135FXXU2AVH4_CL24699310_QB55157862_REV00_user_low_ship_MULTI_CERT_meta_OS12.tar.md5

Check file : /home/silviux/Downloads/New Folder 7/New Folder/BL_A135FXXU2AVH4_CL24699310_QB55157862_REV00_user_low_ship_MULTI_CERT.tar.md5

Check file : /home/silviux/Downloads/New Folder 7/New Folder/CP_A135FXXU2AVH3_CP22702486_CL24699310_QB54991038_REV00_user_low_ship_MULTI_CERT.tar.md5

Check file : /home/silviux/Downloads/New Folder 7/New Folder/HOME_CSC_OXM_A135FOXM2AVH3_CL24699310_QB54991038_REV00_user_low_ship_MULTI_CERT.tar.md5

meta-data/download-list.txt

/dev/bus/usb/001/010

Setup Connection

initializeConnection

Receive PIT Info

success getpit

Upload Binaries

boot.img.lz4

recovery.img.lz4

dtbo.img.lz4

Fail request receive -106

Fail uploadBinaries"

On phone shows me, his start restoring on first 1% and after is stopping

Thanks
[Android Software Development] HorusEyE:
As others use to say, try another cable and/or port!
[Android Software Development] silviuXgaming:
Thanks for your help, i fix the phone, was official rom and restore i made it different, now all perfect :d
[Android Software Development] CedricGannet:
Thank you @TheAirBlow.

I'm a barbarian when it comes to Android and struggle with the Jargon.I've been trying to install TWRP on a Samsung S4 Mini and ran into all sorts of issues and failures with Heimdall and Thor. I'm running Linux Mint 21.2 (based on Ubuntu 22.04). Odin 4 worked a treat. It did take me a while to find out that I need to use the -a option to flash a recovery. I did a fair bit of Googling and finally found an example. What's so good about it is that it's a stand alone binary that just does what it's meant to.
[Android Software Development] pingopower:
```

openat(AT_FDCWD, "/dev/bus/usb/003/061", O_RDONLY) = 3

openat(AT_FDCWD, "/dev/bus/usb/003/061", O_RDWR) = -1 ENOENT (No such file or directory)

openat(AT_FDCWD, "/dev/bus/usb/003/061", O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK, 0666) = 3

openat(AT_FDCWD, "/dev/bus/usb/003/061", O_RDWR|O_CREAT, 0666) = 4

```

You've guessed it, otherwise I wouldn't be there, the failed call is the Odin4 one, where the other are from different binaries and succeed. What I seem to understand is that all binaries seems to naturally perform with rights (0666) but Odin4 doesn't seem tailored to do that, so it maybe fails toward udev or idk. I've already set up the udev rules, maybe why the other binaries actually achieve to access it. I guess that Odin4 is closed source... Any idea how to make it perform the right system call?

(Heimdall is more of a `ioctl(11, USBDEVFS_REAPURBNDELAY, 0x7ffdc3c06c48) = -1 EAGAIN (Ressource temporairement non disponible)` guy)

...

Anyway I forgot `--expose=/dev/bus/usb`. Inside the container paths needs to be exposed to actually exists
[Android Software Development] TheAirBlow:
IIRC that rule is only necessary if not running as root.

P.S. Oh, it was inside a container xD
[Android Software Development] schneidz:
seemz yoo ar trying to copy and not change directorys ?
[Android Software Development] AnonVendetta:
cd is for changing directories, cp is for copying. His command doesnt have cp anywhere, but it's still wrong.

If the odin4 binary isnt already in /usr/local/bin, do this:

sudo cp odin4 /usr/local/bin

Then:

sudo chmod 0755 /usr/local/bin/odin4

sudo chmod +x /usr/local/bin/odin4

Then you can just run it by typing odin4 in a terminal, assuming /usr/local/bin is already in your path statement. You might need to type "sudo odin4", without quotes, i cant remember if odin4 needs root permissions. And before running the cp command, you must extract the odin4 binary and change your terminal into the directory where it's downloaded. His mistake is that he tried to change directory into a file, which isnt possible.
[Android Software Development] mpliax:
Just to add to this comment, for me it was required to unplug, re-plug and do rmmod (always with the phone in download mode)
[Android Software Development] romstockprivate:
A huge thanks to the OP for this. I was able to get TWRP installed on my A53 5G. I had issues installing a rom so I wiped everything. That wiped TWRP as well. Twice now I have thought that I had TWRP installed after rebooting, the phones just loads as normal.

The output from terminal, did the flash complete successfully?

Check file : twrp_a53x-updated.tar
/dev/bus/usb/001/066
/dev/bus/usb/001/066
Setup Connection
initializeConnection
Receive PIT Info
success getpit
Upload Binaries
recovery.img.lz4
vbmeta.img.lz4
Close Connection