Skip to content

Heimdall

Note about no-reboot command option

Command option --no-reboot causes the device to remain in download mode after the action is completed. If you wish to perform another action whilst remaining in download mode, then the following action must specify the --resume flag."

Detect device
heimdall detect
Dump Partitions Pit And Save To File
heimdall download-pit
Dump Partitions Pit And Save To File With Verbose
heimdall download-pit --verbose
Dump Partitions Pit And Save To File With Verbose
heimdall download-pit --stdout-errors 
Send logs to stdout errors
heimdall --stdout-errors 
Usb log leve: none
heimdall --usb-log-level  none
Usb log leve: error
heimdall --usb-log-level  error
Usb log leve: warning
heimdall --usb-log-level  warning
Usb log level: debug
heimdall --usb-log-level  debug
Print Pit And Save To File
heimdall download-pit --output SM-G998B_Android_13_Partitions.pit

Flashing

Example: Flash Partiton USERDATA and skip reboot
heimdall flash --USERDATA vbmeta_disabled_R.tar --no-reboot
Install Heimdall
USE="gui" emerge --ask app-mobilephone/heimdall
Flashing Partitions with Heimdal
> heimdall flash --SUPER super.img --VBMETA_SYSTEM vbmeta_system.img --RECOVERY recovery.img --MISC misc.bin --BOOT boot.img --DTBO dtbo.img
Heimdall v2.0.2

Copyright (c) 2010-2017 Benjamin Dobell, Glass Echidna
https://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
https://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
Claiming interface...
Initialising protocol...
Protocol initialisation successful.

Beginning session...

Some devices may take up to 2 minutes to respond.
Please be patient!

Session begun.

Downloading device's PIT file...
PIT file download successful.

Uploading SUPER
100%
SUPER upload successful

Uploading VBMETA_SYSTEM
100%
VBMETA_SYSTEM upload successful

Uploading RECOVERY
100%
RECOVERY upload successful

Uploading MISC
100%
MISC upload successful

Uploading BOOT
100%
BOOT upload successful

Uploading DTBO
100%
DTBO upload successful

Ending session...
Rebooting device...
ERROR: Failed to receive reboot confirmation!
Releasing device interface...