[GUIDE] Odin on Linux [VirtualBox]

What OS do you run on your computer?


  • Total voters
    52
Search This thread

DonutsAreGood

Member
Apr 18, 2023
14
8
Have you had success uninstalling Google apps then?
Yeah, I uninstalled a lot of Google and Samsung apps. Top of my list was Google Play Services, because that's allegedly the app that feeds all the other app data to Google.

I'm sure that uninstalling so many apps will break a lot of things, but I really don't care. To me my phone is just a phone, a browser, and a handy camera. I don't want or need most other apps, particularly as most seem to exist to harvest user data that can then be sold. There's no such thing as a free app!
 
  • Like
Reactions: ethical_haquer

ethical_haquer

Senior Member
Jan 30, 2023
712
384
Samsung Galaxy A52 4G
Yeah, I uninstalled a lot of Google and Samsung apps. Top of my list was Google Play Services, because that's allegedly the app that feeds all the other app data to Google.

I'm sure that uninstalling so many apps will break a lot of things, but I really don't care. To me my phone is just a phone, a browser, and a handy camera. I don't want or need most other apps, particularly as most seem to exist to harvest user data that can then be sold. There's no such thing as a free app!
Yep, Google Play Services is the worst out of the lot. I mean, look at what permissions it has:
Go to https://play.google.com/store/apps/details?id=com.google.android.gms&pli=1,
Click on the arrow next to "About this app",
Click on "View details" under "Permissions",
Look at how Google Play Services, an app with over 10,000,000,000 downloads, infiltrates people's lives!
There's no such thing as a free app!
That's what I always say.

If you're interested in privacy-oriented alternatives and stuff like that I've invited you to a conversation I'm having with a few other users.
 

a7md8762

Member
Jun 7, 2023
44
21
Hello.
I can't get Odin to detect my device (Samsung Tab A7) even though I did everything right, What Do I do to make Odin detect my device?
 
  • Like
Reactions: ethical_haquer
Hello.
I can't get Odin to detect my device (Samsung Tab A7) even though I did everything right, What Do I do to make Odin detect my device?
Sorry to ask but if you would describe fully! what you did we all can be sure that it was correct.
It's very hard for us to guess as we are not present at your place.
 
  • Like
Reactions: ethical_haquer

a7md8762

Member
Jun 7, 2023
44
21
This Should Explain What's My Problem.
 

Attachments

  • Screenshot_20230607_195927.png
    Screenshot_20230607_195927.png
    146.2 KB · Views: 19
  • Like
Reactions: ethical_haquer

a7md8762

Member
Jun 7, 2023
44
21
I'm assuming this is a problem with the Samsung drivers, as Windows itself appears to see the device. You said you installed the drivers, right?
When I Remove Samsung Android USB Driver, Windows Can not See My Device, But When I Install It Again, Windows Sees it...

I Wanna Ask A Question, Is USB Debugging Necessary Needed? I Don't Think So, Because When The Device Enters Download Mode, It Gets Enabled, Correct Me If I'm Wrong.
 
  • Like
Reactions: ethical_haquer

ethical_haquer

Senior Member
Jan 30, 2023
712
384
Samsung Galaxy A52 4G
When I Remove Samsung Android USB Driver, Windows Can not See My Device, But When I Install It Again, Windows Sees it...

I Wanna Ask A Question, Is USB Debugging Necessary Needed? I Don't Think So, Because When The Device Enters Download Mode, It Gets Enabled, Correct Me If I'm Wrong.
Honestly I would just try installing a normal Windows VM as per the tutorial because I'm thinking that's the issue. It may or may not work, but at least try it.
 

a7md8762

Member
Jun 7, 2023
44
21
Honestly I would just try installing a normal Windows VM as per the tutorial because I'm thinking that's the issue. It may or may not work, but at least try it.
Nope, I'm Not Going To Install A Normal Windows 10 To Flash My Device.
My Windows OS (Atlas OS) Sees My Device, So It's Not From The OS, It's Probably From Odin Itself, Like It Seems Odin Isn't Allowed To Interact With Connected Devices, That's Why It Can't See It.

Btw, Is There Requirements For Odin Or Samsung Android USB Driver? Like Do They Need A Specific Library Or Driver To Work?
 
  • Like
Reactions: ethical_haquer

a7md8762

Member
Jun 7, 2023
44
21
Hey, JOdin3 For Linux Seems To Be Working With Me, And It Detected My Device!
But I Wanna Add The UserData.img But The UMS Is Locked, What Do I Do To Unlock It?
UMS Is The UserData, Right? Correct Me If I'm Wrong...
 
  • Like
Reactions: ethical_haquer

ethical_haquer

Senior Member
Jan 30, 2023
712
384
Samsung Galaxy A52 4G
Nope, I'm Not Going To Install A Normal Windows 10 To Flash My Device.
My Windows OS (Atlas OS) Sees My Device, So It's Not From The OS, It's Probably From Odin Itself, Like It Seems Odin Isn't Allowed To Interact With Connected Devices, That's Why It Can't See It.

Btw, Is There Requirements For Odin Or Samsung Android USB Driver? Like Do They Need A Specific Library Or Driver To Work?
Did you run it as an administrator?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    Odin 3 running inside VirtualBox on PureOS, a Debian-based Linux distribution:
    Me_running_Odin_on_Linux.png

    I found a way to get Odin running on Linux! It uses a virtual machine (VM), but it works better than heimdall for newer devices, and is much better than dual booting Windows just to use Odin. Used it to flash Lineage OS 20 to my Samsung Galaxy A52 4G multiple times. Here are the steps I used to install and use Odin on Linux.

    I highly recommend reading through the steps once before following them, especially the "Things to know" and "Solutions to common problems" sections.


    Install VirtualBox:
    • Download VirtualBox for your distribution from virtualbox.org,
    • Right click on the downloaded file,
    • Click "Open With",
    • Click on "Software Install" or something similar,
    • Install according to onscreen instructions,
    • NOTE: if you don't have an app like "Software Install", you can either install the downloaded file manually - How to install .deb, How to install a .rpm; or try to install VirtualBox with a package manager such as apt, synaptic, etc. However, VirtualBox may not be included with your distribution and it probably will not be the newest version. In either case, skip the above four steps.
    • Download the VirtualBox Extension Pack from virtualbox.org,
    • Right click on the ".vbox-extpack" file you just downloaded,
    • Click "Open With", and select VirtualBox,
    • Follow the onscreen instructions to install it.

    Create a Windows VM:
    • Download the correct version (32-bit or 64-bit) of Windows 10 from microsoft.com,
    • NOTE: If Microsoft gives you an error like: "We are unable to complete your request at this time. Some users, entities and locations are banned from using this service..." when you are using a VPN, then just start the download on a normal network, pause the download, switch to your VPN, and then continue - It worked for me!
    • Run VirtualBox,
    • Click "New",
    • Type "Windows 10" in the "Name" entry,
    • Select the Windows ISO image you downloaded earlier,
    • Click "Next",
    • Enter a username and password, and change the host-name to "Windows",
    • NOTE: You will need to remember your password, because even though you don't have to enter it every time, you will be required to change it every month, which requires your current password.
    • Click "Next",
    • Set the "Base Memory" to 1GB (1024MB) for 32-bit, or 2GB (2048MB) for 64-bit,
    • Leave the "Processors" at 1,
    • Click "Next",
    • Select "Create a Virtual Hard Disk Now",
    • Set the "Disk Size" to whatever meets your requirements (Just remember that Windows needs 20GB, Samsung firmware needs ~17 GB (You can store it on a USB drive though), and that the virtual drive does take up space on your computer),
    • Click "Next",
    • Verify everything is as you expected,
    • Click "Finish",
    • Windows should now boot up and start installing itself, once it is done it will do multiple things, and finally boot to the desktop.

    Install Odin on the Windows VM:
    (The steps in this section are to be done on the VM)
    (To make this section easier, open this webpage on the VM)

    • Download the newest Samsung drivers from developer.samsung.com,
    • Open the "SAMSUNG_USB_Driver_for_Mobile_Phones.exe" file you downloaded,
    • Follow the onscreen directions to install the USB drivers,
    • Download Odin from androidfilehost.com,
    • Extract "Odin_3.13.1.zip",
    • Run "Odin3 v3.13.1" found in the newly extracted "Odin_3.13.1" folder,
    • Odin should run fine, BUT DON'T USE IT FOR YOUR PHONE YET, for now just close it.

    Get USB working with the Windows VM:
    • In the terminal, run the following (this unloads the "cdc_acm" module, which can be re-added by running "insmod cdc_acm"):
      Bash:
      sudo rmmod cdc_acm
    • With the Windows VM powered off, run VirtualBox,
    • Click "Settings",
    • Click "USB",
    • "Enable USB Controller" should be auto-checked, but manually choose either the 2.0 or 3.0 controller (if one isn't already selected), according to your computer's USB ports,
    • Close VirtualBox,
    • In the terminal, run the following:
      Bash:
      sudo usermod -a -G vboxusers $USER
    • Log out and log back in (of your computer),
    • Run VirtualBox,
    • Click "Settings",
    • Click "USB",
    • Plug your phone into your computer while in download mode,
    • Click on the icon of a USB cable with a plus sign,
    • Your phone should show up as something like "Samsung SM6150 [021B]",
    • Click on the box next to where your phone is listed,
    • Your phone should now show up under "USB Device Filters",
    • Click "OK",
    • Unplug your phone,
    • Exit download mode.

    Using Odin on the Windows VM:
    • Run VirtualBox,
    • Select "Windows 10",
    • Click "Start",
    • (The following steps are to be done on the Windows virtual machine),
    • Right click on the "Odin3v3.13.1" app you downloaded,
    • Select "Run as Administrator",
    • Odin should now recognize your device if you plug it in (be aware that your device will not show up if it's not in the mode it was in when you added it to the USB filters).

    Things to know:
    • To turn the VM off, click on the Windows logo in the bottom right, and then click on the power icon.
    • To turn the VM on, run VirtualBox, Select the "Windows 10" VM, and click "Start".
    • VirtualBox uses something called "USB filters" to decide whether the host OS (Linux), or the Windows VM get access to specific devices when they are plugged in, for information on how this works, look here. NOTE: If the VM is off, everything you plug in will open on the host OS, regardless of filters.
    • If you have files you want to move from your Linux computer to your Windows virtual machine, you can use a thumb drive, to do so add the drive to your USB filters (see above), make sure the VM is off, move the files you want to transfer from the Linux host onto the drive, eject the drive, unplug it, power on the VM, plug the drive back in, Windows should then see the drive, so move the files from the drive to the VM.

    Solutions to common problems:
    • If Odin is unable to see your device after following this tutorial try to unplug as many USB devices as you can from your computer (except your phone) and restart Odin.
    • If you encounter a "Kernel driver not installed" error when installing VirtualBox, look here.
    • If Odin gets stuck on "SetupConnection" during a flash, follow these steps.


    If you have any problems and/or questions, let me know.

    Hope this helps!
    2
    Glad it worked for you! Yes, Odin can be picky about USB ports. :)

    By the way, thank you so much for creating the guide. I have successfully rooted my galaxy tab S7!

    Thanks so much for creating this guide. It's been a while since I last used VirtualBox, so I found it very useful.

    The only slight problem I encountered was that Odin couldn't initially setup a connection for flashing, even though the Odin log showed the device had been added. I fixed it by closing Odin, unplugging as many USB devices as possible, then restarting Odin.

    Now that I think about it at first device manager showed a generic "USB HUB" with yellow triangle, but I solved it by removing the USB cable beetween my pc and monitor (my monitor has a few USB ports, so kind of a HUB).

    Now I just have to wait for SM-T875 version of TWRP (y)
    2
    Hello fellow Linux user,

    Might I suggest another similar method: QEMU and Libvirt (VirtManager). The only difference is it's lighter and more configurable than Virtualbox. USB passthrough is much simpler to setup in my experience and setup isn't terribly hard. I seem to have an issue with VBOX drivers, so this became my workaround for anything VM related.

    Best regards,

    D'Tor Aelek of Romulus
    Thanks, I'll look into it and see how it compares.
    2
    Why need that virtual machine just for Odin3 while Odin4 are running native and perfectly on Linux?
    I use Odin4 for flashing my a03s, a750 and s21fe and there is no problem here, it's only inconvenient when we have to type the command manually. Odin4 don't even need to install drivers unlike using an virtual machine with ugly driver install steps
    I know about Odin4, but it's proprietary so I didn't trust it enough. :ROFLMAO: Thor flash tool sounds like a viable alternative though, and I'm currently working on creating a GUI for it: link.
    2
    I found a way to get Odin running on Linux! It uses a virtual machine (VM), but it works better than heimdall for newer devices, and is much better than dual booting Windows just to use Odin. Used it to flash Lineage OS 20 to my Samsung Galaxy A52 4G multiple times. Here are the steps I used to install and use Odin on Linux.

    I highly recommend reading through the steps once before following them, especially the "Things to know" section.


    Install VirtualBox:
    Download VirtualBox for your distribution from virtualbox.org,
    Right click on the downloaded file,
    Click "Open With",
    Click on "Software Install", or something similar,
    Install according to onscreen instructions,
    # Note: if you don't have an app like "Software Install", you can skip the above steps and try to install VirtualBox with a package manager such as apt, synaptic, ect. However, VirtualBox may not be included with your distribution and it probably will not be the newest version.
    Download the VirtualBox Extension Pack from virtualbox.org,
    Right click on the ".vbox-extpack" file you just downloaded,
    Click "Open With", and select VirtualBox,
    Follow the onscreen instructions to install it.


    Create a Windows VM:
    Download the correct version (32-bit or 64-bit) of Windows 10 from microsoft.com,
    Run VirtualBox,
    Click "New",
    Type "Windows 10" in the "Name" entry,
    Select the Windows ISO image you downloaded earlier,
    Click "Next",
    Enter a username and password, and change hostname to "Windows",
    Click "Next",
    Set the "Base Memory" to 1GB (1024MB) for 32-bit, or 2GB (2048MB) for 64-bit,
    Leave the "Processors" at 1,
    Click "Next",
    Select "Create a Virtual Hard Disk Now",
    Set the "Disk Size" to 20GB,
    Click "Next",
    Verify everything is as you expected,
    Click "Finish",
    Windows should now boot up and start installing itself, once it is done it will do multiple things, and finally boot to the desktop.


    Install Odin on the Windows VM:
    (The steps in this section are to be done on the VM)
    (To make this section easier, open this webpage on the VM)
    Download the newest Samsung drivers from developer.samsung.com,
    Open the "SAMSUNG_USB_Driver_for_Mobile_Phones.exe" file you downloaded,
    Follow the onscreen directions to install the USB drivers,
    Download Odin from androidfilehost.com,
    Extract "Odin_3.13.1.zip",
    Run "Odin3 v3.13.1" found in the newly extracted "Odin_3.13.1" folder,
    Odin should run fine, BUT DON'T USE IT FOR YOUR PHONE YET, for now just close it.


    Get USB working with the Windows VM:
    In the terminal, run the following:
    Bash:
    modprobe -r cdc_acm
    
    cd /etc/modprobe.d/
    
    ls
    In the output from "ls" there should be one file, named something like "dkms.conf" or "blacklist.conf".
    In the terminal, run the following, replacing "yourfilename.conf" with the output of the "ls" command:
    Bash:
    sudo nano yourfilename.conf
    Add the following line to the file:
    Code:
    blacklist cdc_acm
    To safe your changes to the file, hit Ctrl+x, y, and Enter,
    With the Windows VM powered off, run VirtualBox,
    Click "Settings",
    Click "USB",
    "Enable USB Controller" should be auto-checked, but manually choose either the 2.0 or 3.0 controller (if one isn't already selected), according to your computer's USB ports,
    Close VirtualBox,
    In the terminal, run the following:
    Bash:
    sudo usermod -a -G vboxusers $USER
    Log out and log back in (of your computer),
    Run VirtualBox,
    Click "Settings",
    Click "USB",
    Plug your phone into your computer while in download mode,
    Click on the icon of a USB cable with a plus sign,
    Your phone should show up as something like "Samsung SM6150 [021B]",
    Click on the box next to where your phone is listed,
    Your phone should now show up under "USB Device Filters",
    Click "OK",
    Unplug your phone,
    Exit download mode.


    Using Odin on the Windows VM:
    Run VirtualBox,
    Select "Windows 10",
    Click "Start",
    (The following steps are to be done on the Windows virtual machine),
    Right click on the "Odin3v3.13.1" app you downloaded,
    Select "Run as Administrator",
    Odin should now recognize your device if you plug it in (be aware that your device will not show up if it's not in the mode it was in when you added it to the USB filters).


    Things to know:
    To turn the VM off, type "shutdown /s" in the PowerShell.

    To turn the VM on, run VirtualBox, Select the "Windows 10" VM, and click "Start".

    VirtualBox uses something called "USB filters" to decide whether the host OS (Linux), or the Windows VM get access to specific devices when they are plugged in, for information on how this works, look here.

    If Odin gets stuck on "SetupConnection" during a flash, follow these steps.

    If you have files you want to move from your Linux computer to your Windows virtual machine, you can use a thumb drive, to do so add the drive to your USB filters (see above), make sure the VM is off, move the files you want to transfer to the drive from the Linux host, eject the drive, unplug it, power on the VM, plug the drive back in, Windows should then see the drive, so move the files from the drive to the VM.



    If you have any problems and/or questions, let me know.

    Hope this helps!
    Hello fellow Linux user,

    Might I suggest another similar method: QEMU and Libvirt (VirtManager). The only difference is it's lighter and more configurable than Virtualbox. USB passthrough is much simpler to setup in my experience and setup isn't terribly hard. I seem to have an issue with VBOX drivers, so this became my workaround for anything VM related.

    You can install using the following commands:
    DEBIAN:
    sudo apt update && sudo apt install qemu virt-manager
    ARCH:
    sudo pacman -Syu qemu-full virt-manager
    FEDORA:

    sudo dnf update && sudo dnf install qemu qt-virt-manager
    GENTOO:
    sudo emerge --ask --verbose app-emulation/qemu virt-manager
    Best regards,

    D'Tor Aelek of Romulus