You seem to have a collection of files related to an Android custom ROM, specifically for the Samsung Galaxy A21s (model name "a21s"). Here's a quick overview of each file you listed, and what you might use them for:
Copyright (c) 2010-2017 Benjamin Dobell, Glass Echidna https://glassechidna.com.au
Copyright (c) 2021-2024 Henrik Grimler
This software is provided free of charge. Copying and redistribution is encouraged.
Flashing partitions with fastboot is destructive. Be cautious, and make sure files belong to your exact device model (a21s).
Unlocking bootloader wipes data.
Always verify you have the matching recovery and ROM for your device.
After flashing LineageOS via recovery and rebooting, the first boot can take several minutes.
If you want, I can provide you a fully custom step-by-step script or commands tailored to your current phone state—just let me know!
Thanks for clarifying — you’re on Ubuntu and using ADB + Heimdall v2.1.1 (Samsung’s open-source tool for flashing firmware). Since Samsung devices don't use fastboot mode but instead rely on Download Mode for flashing partitions, Heimdall replaces fastboot for flashing on Linux.
Here's how to flash your files using ADB and Heimdall:
Step 1: Prepare your device
Enable Developer Options & USB Debugging in your Galaxy A21s.
Boot device to Download Mode:
Power off the phone.
Press and hold Volume Down + Power + Volume Up simultaneously (this combination varies by model, confirm if your model differs).
When you see the Warning screen, press Volume Up to continue to Download Mode.
Step 2: Connect your phone, verify Heimdall connection
Make sure you have Heimdall installed:
bash
sudo apt install heimdall-flash
# Or if you installed from other sources, just ensure heimdall is available.
Check device connection in Download Mode:
bash
heimdall detect
You should get a message like: Device detected!
If it fails, recheck USB cable, USB port, and drivers.
Step 3: Flash each partition with Heimdall
Note:
Heimdall wants files mapped to partition names. You cannot flash .zip ROM files with Heimdall; you flash images only.
Typical partitions you'll flash:
boot.img → boot
dtbo.img → dtbo
recovery.img → recovery (optional)
vbmeta.img → vbmeta
super_empty.img → super (only if you want to re-flash/reset super partition)
If you want me to help you build a complete flash script or troubleshoot any step, just ask!
Copyright (c) 2010-2017 Benjamin Dobell, Glass Echidna https://glassechidna.com.au
Copyright (c) 2021-2024 Henrik Grimler
This software is provided free of charge. Copying and redistribution is encouraged.
The errors you're encountering with Heimdall flashing on your Galaxy A21s are unfortunately quite common, but usually solvable. Let's go over the issues and how to troubleshoot them.
Issues Observed
ERROR: Failed to receive session end confirmation! after successful flashing
Your first flash command partially succeeded (three partitions flashed), but Heimdall couldn't confirm the session ended properly.
ERROR: Failed to reset device! and handshake errors on the second flash attempt (with recovery)
Heimdall couldn't communicate properly with the device for the second flash.
What these errors mean in practice
The first error means flashing was done, but Heimdall wasn't able to close the session cleanly. This usually does NOT mean the flash failed, the partitions were very likely flashed properly.
The second error indicates a communication failure after the first flash; often this happens if the phone rebooted/crashed or disconnected unexpectedly.
How to fix / work-around these errors on Ubuntu with Heimdall:
1. Use the latest Heimdall version
You have v2.1.1 which is recent enough, but if you installed from Ubuntu repos, consider downloading the latest binary or building from source from the official Heimdall repo.
2. Check USB Cable & Port
Always use an original or good-quality data USB cable.
Try different USB ports (preferably USB 2.0, not USB 3.0/3.1, which sometimes cause problems).
Avoid USB hubs; direct PC connection preferred.
3. Put the Device into Download Mode correctly
Make sure the device is fully in Download Mode before starting Heimdall.
Use correct button combo and confirm via device display.
The device should not reboot or disconnect during flashing.
4. Flash partitions individually or in smaller groups
Since flashing multiple partitions sometimes breaks the session, try flashing them one at a time:
sudo udevadm control --reload-rules
sudo udevadm trigger
Unplug and replug your device in Download Mode.
7. Alternative: Try using Odin on Windows (if possible)
Samsung's official flashing tool Odin on Windows is often far more reliable and handles Samsung flashing protocols better. If you have access to a Windows machine (VM or physical), try flashing via Odin.
If you want, I can help you parse your files and generate a complete per-partition flashing script for Heimdall, or help troubleshoot further if you post exact outputs/errors of single partition flashes.
Extra notes
Heimdall’s session end confirmation error is "normal" sometimes and can be ignored if device appears to flash fine and boots correctly.
The second error may indicate the device rebooted unexpectedly, in which case retry flashing that particular partition alone.