Skip to content

Latest commit

 

History

History
122 lines (96 loc) · 4.3 KB

README.md

File metadata and controls

122 lines (96 loc) · 4.3 KB

OdinV4

Samsung Odin v4 1.2.1-dc05e3ea - For Linux

Welcome to the GitHub repository for Samsung Odin v4 1.2.1-dc05e3ea for Linux. This tool allows you to flash firmware and custom binaries to your Samsung devices directly from a Linux environment using only your terminal.

Hardware

  • Compatible Samsung Device: The tool is designed to work with Samsung devices that support firmware flashing through Odin.
  • USB Cable: A reliable USB cable to connect your Samsung device to your Linux machine.

Software

  • Linux Distribution: Tested on popular distributions such as Ubuntu 22.04+, Fedora 36+, and others. Other distributions should work but have not been explicitly tested.

  • Dependencies: Ensure the following packages are installed:

    • libusb: Required for USB communication.
    • adb: Android Debug Bridge tool, which might be needed for some operations.
    • unzip: To extract the odin.zip file.

    Install these dependencies using your package manager. For example, on Ubuntu, you can use:

sudo apt-get install libusb-dev adb unzip 

Installation

Download and Setup

  1. Download Odin:

    Go to the Releases page and download the odin.zip file.

  2. Extract the Archive: Open a terminal and navigate to the directory where odin.zip was downloaded. Extract the files using:

unzip odin.zip
  1. Make Odin Executable: Change the permissions of the odin4 binary to make it executable:
chmod +x odin4
  1. Move odin4 to /bin Directory: To make odin4 available system-wide, move it to /bin directory
sudo cp odin4 /bin

Usage

To use Samsung Odin, simply run the following command:

odin4

For a list of available commands and options, use the help flag:

odin4 -h

This is how -h command menu looks like

Usage : odin4 [args...]
Odin4 downloader. odin4 version 1.2.1-dc05e3ea
 -v        SHOW VERSION
 -w        Show License
 -b        Add Bootloader file
 -a        Add AP image file
 -c        Add CP image file
 -s        Add CSC file
 -u        Add UMS file
 -e        Set Nand erase option
 -V        Home binary validation check with pit file
 --reboot  Reboot into normal mode
 --redownload   Reboot into download mode if it possible (not working in normal case)
 -d        Set a device path (detect automatically without this option)
 -l        Show downloadable devices path

IMPORTANT : You must set up your system to detect your device on LINUX host.
 create this file: /etc/udev/rules.d/51-android.rules
 to add a line to the file:
 SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev"
   (http://developer.android.com/tools/device.html)
 And you maybe need to unload a module cdc_acm before downloading. (This is only needed for older kernels.)
   $sudo rmmod cdc_acm
 OR
   echo "blacklist cdc_acm" > /etc/modprobe.d/cdc_acm-blacklist.conf

Example :
$odin4 -b BL_XXXX.tar.md5 -a AP_XXXX.tar.md5 -c CP_XXXX.tar.md5 -s CSC_XXXX.tar.md5
Example (Select One Device):
$odin4 -l
PATH_OF_DEVICE_A
PATH_OF_DEVICE_B
$odin4 -b BL_XXXX.tar.md5 -a AP_XXXX.tar.md5 -c CP_XXXX.tar.md5 -s CSC_XXXX.tar.md5 -d PATH_OF_DEVICE_A

Odin Community : http://mobilerndhub.sec.samsung.net/hub/site/odin/

Using odin4 example

Example :
$ sudo odin4 -a AP_XXXX.tar

Screenshot_2022-10-26_04-59-27

Features

• Firmware Flashing: Update your Samsung device with the latest official firmware.

• Custom Binary Installation: Flash custom recoveries, kernels, and other binaries.

• Ease of Use: Designed to be user-friendly for both beginners and advanced users.

Troubleshooting

• Device Not Detected: Ensure your device is in Download Mode and properly connected. Check if USB Debugging is enabled and that the necessary drivers are installed.

• Permission Issues: If you encounter permission errors, ensure you are running the commands with appropriate privileges.

Acknowledgements

Thanks to the community for their support and feedback. For more discussions and support, visit the XDA Forums thread.

License

This project is licensed under the MIT License. See the LICENSE file for details.