Skip to content

Instantly share code, notes, and snippets.

@kevinpapst
Last active August 4, 2025 02:59
Show Gist options
  • Save kevinpapst/2962b66d9528e966ec5b068d2081f6c5 to your computer and use it in GitHub Desktop.
Save kevinpapst/2962b66d9528e966ec5b068d2081f6c5 to your computer and use it in GitHub Desktop.
Flash a new Android ROM on Mac with ADB and Heimdall

Find any ROM that you want to flash and unzip it. If there is a xxx.tar.md5 remove the .md5 and untar the file as well, until there is a list of around 12 files in a folder. Not switch to your console and change into that directory.

Software you need

  • adb
  • heimdall (brew cask install heimdall-suite)

Known problems with Heimdall "Claiming Interface Failed"

´´´ $ kextstat | grep -v apple $ sudo kextunload -b com.devguru.driver.SamsungComposite $ sudo kextunload -b com.devguru.driver.SamsungACMData $ sudo kextunload -b com.devguru.driver.SamsungACMControl ´´´

Flashing the ROM

$ adb reboot bootloader $ heimdall flash --APNHLOS NON-HLOS.bin
--ABOOT aboot.mbn
--BOOT boot.img
--HIDDEN hidden.img.ext4
--MDM modem.bin
--RECOVERY recovery.img
--RPM rpm.mbn
--SBL2 sbl2.mbn
--SBL3 sbl3.mbn
--SYSTEM system.img.ext4
--TZ tz.mbn
--CACHE cache.img.ext4

Have fun with your new ROM!

@ehsanghaffar
Copy link

thanks a lot

Is it possible to access the IMEI and repair it with Heimdall?

@fizzyz
Copy link

fizzyz commented Oct 26, 2024

In 2024, it is not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment