From download to flash — step-by-step instructions for samloader on Windows, Linux, and macOS.
Get the latest prebuilt executable for your OS from the Download page. Place it in a folder you can access from the terminal.
Windows: use PowerShell or Command Prompt. Linux/macOS: use Terminal and run chmod +x samloader.
Right-click PowerShell → Run as Administrator. Change directory to the folder containing samloader.
cd C:\path\to\samloader-folder
.\samloader.exe --help
Replace the model and region with your device values.
.\samloader.exe check-update --model SM-A705MN --region XSPOn Linux/macOS omit .\ and use ./samloader.
samloader downloads and decrypts on the fly. Large packages can take time; resume is supported if interrupted.
.\samloader.exe download --model SM-A705MN --region XSP --verboseAlways verify the downloaded package before flashing.
.\samloader.exe verify-md5 path\to\firmware.tar.md5Boot the phone into Download Mode and connect USB. Then run:
.\samloader.exe detectDownload Mode: power off → hold Vol Down + Power (or Vol Down + Vol Up + Power) while plugging USB → confirm with Vol Up.
Flash only the correct firmware for your model. Do not disconnect the cable during the process.
.\samloader.exe flash path\to\firmware.tar.md5 --usb-backend libusbFirst boot after a full flash can take several minutes. Do not force-restart the device.
--help on any command for options