It's been unavailable since I bought the phone directly from Tmobile. I've tried every solution out there and no build for my phone regardless of carrier in the US or Canada on android 11 or 12 has the option to OEM Unlock available. I've built ROMs myself right here on Xda and flashed many Samsung devices using both odin and heimdall so I know it's not me this time. I'm just wondering if I try an latest build Android 12 GSI with this tool if I can get past vbmeta errors when flashing on my end on my end among other things?Then how come the OEM unlocking option is unavailable.... If you have ever flashed stock firmware before, maybe you flashed the wrong one? That could cause OEM unlocking option to be unavailable.
If OEM is not unlocked you cannot get past the Verified Boot protection, even to flash a GSI. I just wonder how is that possible you can flash any other country's stock firmware and not get the OEM unlock option? Or you can't flash? Did you try the NPB firmware (Nepal/Butan, that's my favorite) and did Factory Reset without letting the system to boot after that? Flashing with NAND erase and repartitioning would also be helpful.It's been unavailable since I bought the phone directly from Tmobile. I've tried every solution out there and no build for my phone regardless of carrier in the US or Canada on android 11 or 12 has the option to OEM Unlock available. I've built ROMs myself right here on Xda and flashed many Samsung devices using both odin and heimdall so I know it's not me this time. I'm just wondering if I try an latest build Android 12 GSI with this tool if I can get past vbmeta errors when flashing on my end on my end among other things?
Theoretically Heimdall should work for every Samsung device.Will the heimdall_flash_stock.sh script work for a Galaxy Note20 Ultra 5G (SM-N986B C2S exynos)?
Flash patched ap or stock recovery and then go here.@physwizz I did have TWRP on there, but now when I boot I get the following error:
DEBORE ON_FAIL_PARTITION_ID
I can still get the downloading page though if I reboot and hold volup+voldown+plug usb in PC.
Flash patched ap or stock recovery and then go here.
![]()
Exynos 850 Resources
Devices post#1 Root method post#2 TWRP post#3 Kernels post#4 Debloaters post #5 wizzROM creators post #6 Exynos 850 Devices 1. A12s A127f & A127m 2. M12 M127f & M127g 3. A21s A217f & A217m 4. F12s F127g 5. A13 A135f & A135m 6. M13...forum.xda-developers.com
sudo heimdall flash --RECOVERY recovery.img
Thanks for reporting this! I have fixed this problem, you can try heimdall_flash_stock.sh again.I downloaded the stock image for my phone and when running the heimdall_flash_stock.sh with the zip file I get the following error;
Checking the PIT file format...
PIT file seems to be incorrect. Exiting...
I've got a Samsung NOTE 20 Ultra 5G and I'm in Australia and I think the phone is Telstra as it came with those apps, the bit/binary SW Rev number is 4. I've tried a 5 as it said to try the latest.
repacksuper/heimdall_flash_stock.sh N986BXXU5GWA5_N986BOXM5GWA5_TEL.zip
Should I try with the heimdall_flash.sh and pass in my pit file?
Yeah that should work.I think I have the correct stock image but I'm not completely sure. I've got the Bit/SW Rev = 4, and it's a SM-N986B Telstra phone from Australia. So I think that is one of these stock images https://samfw.com/firmware/SM-N986B/TEL/bit/4/av/all
So I've downloaded that and are you suggesting I untar & unlz4 then flash the recovery only like so?
Code:sudo heimdall flash --RECOVERY recovery.img
repacksuper/heimdall_flash_stock.sh samfw_stock_rom_android_13/Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac.zip
Checking the zip file...
Identified as zip archive
Unzipping the AP section...
AP section file: AP_N986BXXU5GWA5_N986BXXU5GWA5_MQB61003468_REV01_user_low_ship_MULTI_CERT_meta_OS13.tar.md5
Archive: samfw_stock_rom_android_13/Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac.zip
inflating: Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP_N986BXXU5GWA5_N986BXXU5GWA5_MQB61003468_REV01_user_low_ship_MULTI_CERT_meta_OS13.tar.md5
Unzipping the BL section...
BL section file: BL_N986BXXU5GWA5_N986BXXU5GWA5_MQB61003468_REV01_user_low_ship_MULTI_CERT.tar.md5
Archive: samfw_stock_rom_android_13/Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac.zip
inflating: Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL_N986BXXU5GWA5_N986BXXU5GWA5_MQB61003468_REV01_user_low_ship_MULTI_CERT.tar.md5
Unzipping the CP section...
CP section file: CP_N986BXXU5GVL2_CP23419976_QB60212932_REV01_user_low_ship_MULTI_CERT.tar.md5
Archive: samfw_stock_rom_android_13/Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac.zip
inflating: Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CP_N986BXXU5GVL2_CP23419976_QB60212932_REV01_user_low_ship_MULTI_CERT.tar.md5
Unzipping the CSC section...
CSC section file: CSC_OXM_N986BOXM5GWA5_MQB61003468_REV01_user_low_ship_MULTI_CERT.tar.md5
Archive: samfw_stock_rom_android_13/Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac.zip
inflating: Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC_OXM_N986BOXM5GWA5_MQB61003468_REV01_user_low_ship_MULTI_CERT.tar.md5
Unpacking the AP tar...
boot.img.lz4
recovery.img.lz4
dtbo.img.lz4
super.img.lz4
userdata.img.lz4
vbmeta.img.lz4
vbmeta_samsung.img.lz4
dqmdbg.img.lz4
misc.bin.lz4
meta-data/
meta-data/fota.zip
Unpacking the BL tar...
sboot.bin.lz4
up_param.bin.lz4
ldfw.img.lz4
tzsw.img.lz4
tzar.img.lz4
keystorage.bin.lz4
ssp.img.lz4
uh.bin.lz4
vbmeta.img.lz4
harx.bin.lz4
Unpacking the CP tar...
modem.bin.lz4
modem_debug.bin.lz4
Unpacking the CSC tar...
C2S_EUR_OPEN.pit
cache.img.lz4
omr.img.lz4
prism.img.lz4
optics.img.lz4
meta-data/
meta-data/fota.zip
Checking the PIT file format...
Identified as PIT by file signature "76983412"
Decompressing files...
Checking "dtbo.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/dtbo.img
Samfw.com_SM-N986B_O : decoded 8388608 bytes
Checking "vbmeta_samsung.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/vbmeta_samsung.img
Samfw.com_SM-N986B_O : decoded 3664 bytes
Checking "dqmdbg.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/dqmdbg.img
Samfw.com_SM-N986B_O : decoded 53360 bytes
Checking "vbmeta.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/vbmeta.img
Samfw.com_SM-N986B_O : decoded 9936 bytes
Checking "super.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/super.img
Samfw.com_SM-N986B_O : decoded 9222371252 bytes
Checking "misc.bin.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/misc.bin
Samfw.com_SM-N986B_O : decoded 520976 bytes
Checking "boot.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/boot.img
Samfw.com_SM-N986B_O : decoded 61865984 bytes
Checking "userdata.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/userdata.img
Samfw.com_SM-N986B_O : decoded 1120363048 bytes
Checking "recovery.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/recovery.img
Samfw.com_SM-N986B_O : decoded 69009408 bytes
Checking "vbmeta.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/vbmeta.img
Samfw.com_SM-N986B_O : decoded 9936 bytes
Checking "tzar.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/tzar.img
Samfw.com_SM-N986B_O : decoded 7340816 bytes
Checking "harx.bin.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/harx.bin
Samfw.com_SM-N986B_O : decoded 3145728 bytes
Checking "ldfw.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/ldfw.img
Samfw.com_SM-N986B_O : decoded 6291456 bytes
Checking "up_param.bin.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/up_param.bin
Samfw.com_SM-N986B_O : decoded 4608000 bytes
Checking "ssp.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/ssp.img
Samfw.com_SM-N986B_O : decoded 496640 bytes
Checking "tzsw.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/tzsw.img
Samfw.com_SM-N986B_O : decoded 1572864 bytes
Checking "uh.bin.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/uh.bin
Samfw.com_SM-N986B_O : decoded 89624 bytes
Checking "sboot.bin.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/sboot.bin
Samfw.com_SM-N986B_O : decoded 4194304 bytes
Checking "keystorage.bin.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/keystorage.bin
Samfw.com_SM-N986B_O : decoded 524288 bytes
Checking "modem.bin.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CP/modem.bin
Samfw.com_SM-N986B_O : decoded 65473968 bytes
Checking "modem_debug.bin.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CP/modem_debug.bin
Samfw.com_SM-N986B_O : decoded 5242880 bytes
Checking "optics.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/optics.img
Samfw.com_SM-N986B_O : decoded 5070984 bytes
Checking "cache.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/cache.img
Samfw.com_SM-N986B_O : decoded 78044 bytes
Checking "omr.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/omr.img
Samfw.com_SM-N986B_O : decoded 53360 bytes
Checking "prism.img.lz4" format: LZ4 compressed. Decompressing...
Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/prism.img
Samfw.com_SM-N986B_O : decoded 1215943020 bytes
Detecting partition names...
"vbmeta.img" goes into "VBMETA"
Skipping "userdata.img" (unsafe)
"dqmdbg.img" goes into "DQMDBG"
"dtbo.img" goes into "DTBO"
"super.img" goes into "SUPER"
"boot.img" goes into "BOOT"
"recovery.img" goes into "RECOVERY"
Skipping "misc.bin" (unsafe)
"vbmeta_samsung.img" goes into "VBMETA_SAMSUNG"
Skipping "vbmeta.img" (duplicate partition name "VBMETA")
"tzsw.img" goes into "TZSW"
"harx.bin" goes into "HARX"
"ssp.img" goes into "SSP"
"keystorage.bin" goes into "KEYSTORAGE"
"uh.bin" goes into "UH"
"sboot.bin" goes into "BOOTLOADER"
"up_param.bin" goes into "UP_PARAM"
"ldfw.img" goes into "LDFW"
"tzar.img" goes into "TZAR"
"modem.bin" goes into "RADIO"
"modem_debug.bin" goes into "CP_DEBUG"
"optics.img" goes into "OPTICS"
"omr.img" goes into "OMR"
Skipping "cache.img" (unsafe)
"prism.img" goes into "PRISM"
Now get into the Download mode:
A. If the phone is currently turned off, hold down BOTH the Volume Up and Down
buttons and connect the USB cable to PC while keeping them pressed
B. If the phone is currently booted, first connect the USB cable to PC, then do
the reboot but as soon as the screen goes black immediately hold down BOTH
the Volume Up and Down buttons
When the phone is in the Download mode (teal screen), continue to the
"Downloading..." page following the instructions on the screen (usually it is
done by pressing the Volume Up button).
Are you now in the download mode? Y/n
Detecting device...
Device detected
Flashing all partitions...
Flushing disk cache (this may take some time)
Heimdall v1.4.2
Copyright (c) 2010-2017 Benjamin Dobell, Glass Echidna
http://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:
http://www.glassechidna.com.au/donate/
Initialising connection...
Detecting device...
Claiming interface...
Setting up 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 RADIO
100%
RADIO upload successful
Uploading OPTICS
100%
OPTICS upload successful
Uploading CP_DEBUG
100%
CP_DEBUG upload successful
Uploading UH
100%
UH upload successful
Uploading BOOTLOADER
75%
ERROR: Failed to send file part packet!
ERROR: BOOTLOADER upload failed!
Ending session...
ERROR: Failed to send end session packet!
Releasing device interface...
Heimdall exit code: 123
Heimdall was unable to upload firmware.
You have to resort to Odin for Windows. Sorry.
Exiting...
repacksuper/heimdall_flash_stock.sh samfw_stock_rom_android_13/Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac.zip
Checking the zip file...
Identified as zip archive
Unzipping the AP section...
It seems like the AP section was already unzipped before.
Skip it? Y/n
Unzipping the BL section...
It seems like the BL section was already unzipped before.
Skip it? Y/n
Unzipping the CP section...
It seems like the CP section was already unzipped before.
Skip it? Y/n
Unzipping the CSC section...
It seems like the CSC section was already unzipped before.
Skip it? Y/n
Unpacking the AP tar...
Found unpacked files:
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/vbmeta.img
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/userdata.img
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/dqmdbg.img
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/dtbo.img
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/super.img
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/boot.img
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/recovery.img
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/misc.bin
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/vbmeta_samsung.img
Reuse them? Y/n
Unpacking the BL tar...
Found unpacked files:
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/vbmeta.img
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/tzsw.img
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/harx.bin
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/ssp.img
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/keystorage.bin
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/uh.bin
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/sboot.bin
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/up_param.bin
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/ldfw.img
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/tzar.img
Reuse them? Y/n
Unpacking the CP tar...
Found unpacked files:
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CP/modem.bin
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CP/modem_debug.bin
Reuse them? Y/n
Unpacking the CSC tar...
Found unpacked files:
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/optics.img
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/omr.img
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/cache.img
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/C2S_EUR_OPEN.pit
Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/prism.img
Reuse them? Y/n
Checking the PIT file format...
Identified as PIT by file signature "76983412"
Decompressing files...
Checking "vbmeta.img" format: seems uncompressed. Accepting as is.
Checking "userdata.img" format: seems uncompressed. Accepting as is.
Checking "dqmdbg.img" format: seems uncompressed. Accepting as is.
Checking "dtbo.img" format: seems uncompressed. Accepting as is.
Checking "super.img" format: seems uncompressed. Accepting as is.
Checking "boot.img" format: seems uncompressed. Accepting as is.
Checking "recovery.img" format: seems uncompressed. Accepting as is.
Checking "misc.bin" format: seems uncompressed. Accepting as is.
Checking "vbmeta_samsung.img" format: seems uncompressed. Accepting as is.
Checking "vbmeta.img" format: seems uncompressed. Accepting as is.
Checking "tzsw.img" format: seems uncompressed. Accepting as is.
Checking "harx.bin" format: seems uncompressed. Accepting as is.
Checking "ssp.img" format: seems uncompressed. Accepting as is.
Checking "keystorage.bin" format: seems uncompressed. Accepting as is.
Checking "uh.bin" format: seems uncompressed. Accepting as is.
Checking "sboot.bin" format: seems uncompressed. Accepting as is.
Checking "up_param.bin" format: seems uncompressed. Accepting as is.
Checking "ldfw.img" format: seems uncompressed. Accepting as is.
Checking "tzar.img" format: seems uncompressed. Accepting as is.
Checking "modem.bin" format: seems uncompressed. Accepting as is.
Checking "modem_debug.bin" format: seems uncompressed. Accepting as is.
Checking "optics.img" format: seems uncompressed. Accepting as is.
Checking "omr.img" format: seems uncompressed. Accepting as is.
Checking "cache.img" format: seems uncompressed. Accepting as is.
Checking "prism.img" format: seems uncompressed. Accepting as is.
Detecting partition names...
"vbmeta.img" goes into "VBMETA"
Skipping "userdata.img" (unsafe)
"dqmdbg.img" goes into "DQMDBG"
"dtbo.img" goes into "DTBO"
"super.img" goes into "SUPER"
"boot.img" goes into "BOOT"
"recovery.img" goes into "RECOVERY"
Skipping "misc.bin" (unsafe)
"vbmeta_samsung.img" goes into "VBMETA_SAMSUNG"
Skipping "vbmeta.img" (duplicate partition name "VBMETA")
"tzsw.img" goes into "TZSW"
"harx.bin" goes into "HARX"
"ssp.img" goes into "SSP"
"keystorage.bin" goes into "KEYSTORAGE"
"uh.bin" goes into "UH"
"sboot.bin" goes into "BOOTLOADER"
"up_param.bin" goes into "UP_PARAM"
"ldfw.img" goes into "LDFW"
"tzar.img" goes into "TZAR"
"modem.bin" goes into "RADIO"
"modem_debug.bin" goes into "CP_DEBUG"
"optics.img" goes into "OPTICS"
"omr.img" goes into "OMR"
Skipping "cache.img" (unsafe)
"prism.img" goes into "PRISM"
Now get into the Download mode:
A. If the phone is currently turned off, hold down BOTH the Volume Up and Down
buttons and connect the USB cable to PC while keeping them pressed
B. If the phone is currently booted, first connect the USB cable to PC, then do
the reboot but as soon as the screen goes black immediately hold down BOTH
the Volume Up and Down buttons
When the phone is in the Download mode (teal screen), continue to the
"Downloading..." page following the instructions on the screen (usually it is
done by pressing the Volume Up button).
Are you now in the download mode? Y/n
Detecting device...
Device detected
Flashing all partitions...
Flushing disk cache (this may take some time)
Heimdall v1.4.2
Copyright (c) 2010-2017 Benjamin Dobell, Glass Echidna
http://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:
http://www.glassechidna.com.au/donate/
Initialising connection...
Detecting device...
Claiming interface...
Setting up 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 UH
100%
UH upload successful
Uploading OMR
100%
OMR upload successful
Uploading LDFW
100%
LDFW upload successful
Uploading BOOT
10%
ERROR: Failed to send file part packet!
ERROR: BOOT upload failed!
Ending session...
ERROR: Failed to send end session packet!
Releasing device interface...
Heimdall exit code: 123
Heimdall was unable to upload firmware.
You have to resort to Odin for Windows. Sorry.
Exiting...
Alas, Heimdall sometimes fails at some files, and I can't fix it because C/C++ programming is beyond me. Recently I've backported all the git pull requests I could find which theoretically could remedy this issue but none helped. So only Odin remains.It gets a lot further but it bombs out whilst flashing the img files at different stages every time I try;
1st time;
Code:repacksuper/heimdall_flash_stock.sh samfw_stock_rom_android_13/Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac.zip Checking the zip file... Identified as zip archive Unzipping the AP section... AP section file: AP_N986BXXU5GWA5_N986BXXU5GWA5_MQB61003468_REV01_user_low_ship_MULTI_CERT_meta_OS13.tar.md5 Archive: samfw_stock_rom_android_13/Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac.zip inflating: Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP_N986BXXU5GWA5_N986BXXU5GWA5_MQB61003468_REV01_user_low_ship_MULTI_CERT_meta_OS13.tar.md5 Unzipping the BL section... BL section file: BL_N986BXXU5GWA5_N986BXXU5GWA5_MQB61003468_REV01_user_low_ship_MULTI_CERT.tar.md5 Archive: samfw_stock_rom_android_13/Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac.zip inflating: Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL_N986BXXU5GWA5_N986BXXU5GWA5_MQB61003468_REV01_user_low_ship_MULTI_CERT.tar.md5 Unzipping the CP section... CP section file: CP_N986BXXU5GVL2_CP23419976_QB60212932_REV01_user_low_ship_MULTI_CERT.tar.md5 Archive: samfw_stock_rom_android_13/Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac.zip inflating: Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CP_N986BXXU5GVL2_CP23419976_QB60212932_REV01_user_low_ship_MULTI_CERT.tar.md5 Unzipping the CSC section... CSC section file: CSC_OXM_N986BOXM5GWA5_MQB61003468_REV01_user_low_ship_MULTI_CERT.tar.md5 Archive: samfw_stock_rom_android_13/Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac.zip inflating: Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC_OXM_N986BOXM5GWA5_MQB61003468_REV01_user_low_ship_MULTI_CERT.tar.md5 Unpacking the AP tar... boot.img.lz4 recovery.img.lz4 dtbo.img.lz4 super.img.lz4 userdata.img.lz4 vbmeta.img.lz4 vbmeta_samsung.img.lz4 dqmdbg.img.lz4 misc.bin.lz4 meta-data/ meta-data/fota.zip Unpacking the BL tar... sboot.bin.lz4 up_param.bin.lz4 ldfw.img.lz4 tzsw.img.lz4 tzar.img.lz4 keystorage.bin.lz4 ssp.img.lz4 uh.bin.lz4 vbmeta.img.lz4 harx.bin.lz4 Unpacking the CP tar... modem.bin.lz4 modem_debug.bin.lz4 Unpacking the CSC tar... C2S_EUR_OPEN.pit cache.img.lz4 omr.img.lz4 prism.img.lz4 optics.img.lz4 meta-data/ meta-data/fota.zip Checking the PIT file format... Identified as PIT by file signature "76983412" Decompressing files... Checking "dtbo.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/dtbo.img Samfw.com_SM-N986B_O : decoded 8388608 bytes Checking "vbmeta_samsung.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/vbmeta_samsung.img Samfw.com_SM-N986B_O : decoded 3664 bytes Checking "dqmdbg.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/dqmdbg.img Samfw.com_SM-N986B_O : decoded 53360 bytes Checking "vbmeta.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/vbmeta.img Samfw.com_SM-N986B_O : decoded 9936 bytes Checking "super.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/super.img Samfw.com_SM-N986B_O : decoded 9222371252 bytes Checking "misc.bin.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/misc.bin Samfw.com_SM-N986B_O : decoded 520976 bytes Checking "boot.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/boot.img Samfw.com_SM-N986B_O : decoded 61865984 bytes Checking "userdata.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/userdata.img Samfw.com_SM-N986B_O : decoded 1120363048 bytes Checking "recovery.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/recovery.img Samfw.com_SM-N986B_O : decoded 69009408 bytes Checking "vbmeta.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/vbmeta.img Samfw.com_SM-N986B_O : decoded 9936 bytes Checking "tzar.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/tzar.img Samfw.com_SM-N986B_O : decoded 7340816 bytes Checking "harx.bin.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/harx.bin Samfw.com_SM-N986B_O : decoded 3145728 bytes Checking "ldfw.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/ldfw.img Samfw.com_SM-N986B_O : decoded 6291456 bytes Checking "up_param.bin.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/up_param.bin Samfw.com_SM-N986B_O : decoded 4608000 bytes Checking "ssp.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/ssp.img Samfw.com_SM-N986B_O : decoded 496640 bytes Checking "tzsw.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/tzsw.img Samfw.com_SM-N986B_O : decoded 1572864 bytes Checking "uh.bin.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/uh.bin Samfw.com_SM-N986B_O : decoded 89624 bytes Checking "sboot.bin.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/sboot.bin Samfw.com_SM-N986B_O : decoded 4194304 bytes Checking "keystorage.bin.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/keystorage.bin Samfw.com_SM-N986B_O : decoded 524288 bytes Checking "modem.bin.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CP/modem.bin Samfw.com_SM-N986B_O : decoded 65473968 bytes Checking "modem_debug.bin.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CP/modem_debug.bin Samfw.com_SM-N986B_O : decoded 5242880 bytes Checking "optics.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/optics.img Samfw.com_SM-N986B_O : decoded 5070984 bytes Checking "cache.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/cache.img Samfw.com_SM-N986B_O : decoded 78044 bytes Checking "omr.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/omr.img Samfw.com_SM-N986B_O : decoded 53360 bytes Checking "prism.img.lz4" format: LZ4 compressed. Decompressing... Decoding file Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/prism.img Samfw.com_SM-N986B_O : decoded 1215943020 bytes Detecting partition names... "vbmeta.img" goes into "VBMETA" Skipping "userdata.img" (unsafe) "dqmdbg.img" goes into "DQMDBG" "dtbo.img" goes into "DTBO" "super.img" goes into "SUPER" "boot.img" goes into "BOOT" "recovery.img" goes into "RECOVERY" Skipping "misc.bin" (unsafe) "vbmeta_samsung.img" goes into "VBMETA_SAMSUNG" Skipping "vbmeta.img" (duplicate partition name "VBMETA") "tzsw.img" goes into "TZSW" "harx.bin" goes into "HARX" "ssp.img" goes into "SSP" "keystorage.bin" goes into "KEYSTORAGE" "uh.bin" goes into "UH" "sboot.bin" goes into "BOOTLOADER" "up_param.bin" goes into "UP_PARAM" "ldfw.img" goes into "LDFW" "tzar.img" goes into "TZAR" "modem.bin" goes into "RADIO" "modem_debug.bin" goes into "CP_DEBUG" "optics.img" goes into "OPTICS" "omr.img" goes into "OMR" Skipping "cache.img" (unsafe) "prism.img" goes into "PRISM" Now get into the Download mode: A. If the phone is currently turned off, hold down BOTH the Volume Up and Down buttons and connect the USB cable to PC while keeping them pressed B. If the phone is currently booted, first connect the USB cable to PC, then do the reboot but as soon as the screen goes black immediately hold down BOTH the Volume Up and Down buttons When the phone is in the Download mode (teal screen), continue to the "Downloading..." page following the instructions on the screen (usually it is done by pressing the Volume Up button). Are you now in the download mode? Y/n Detecting device... Device detected Flashing all partitions... Flushing disk cache (this may take some time) Heimdall v1.4.2 Copyright (c) 2010-2017 Benjamin Dobell, Glass Echidna http://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: http://www.glassechidna.com.au/donate/ Initialising connection... Detecting device... Claiming interface... Setting up 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 RADIO 100% RADIO upload successful Uploading OPTICS 100% OPTICS upload successful Uploading CP_DEBUG 100% CP_DEBUG upload successful Uploading UH 100% UH upload successful Uploading BOOTLOADER 75% ERROR: Failed to send file part packet! ERROR: BOOTLOADER upload failed! Ending session... ERROR: Failed to send end session packet! Releasing device interface... Heimdall exit code: 123 Heimdall was unable to upload firmware. You have to resort to Odin for Windows. Sorry. Exiting...
2nd time
Code:repacksuper/heimdall_flash_stock.sh samfw_stock_rom_android_13/Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac.zip Checking the zip file... Identified as zip archive Unzipping the AP section... It seems like the AP section was already unzipped before. Skip it? Y/n Unzipping the BL section... It seems like the BL section was already unzipped before. Skip it? Y/n Unzipping the CP section... It seems like the CP section was already unzipped before. Skip it? Y/n Unzipping the CSC section... It seems like the CSC section was already unzipped before. Skip it? Y/n Unpacking the AP tar... Found unpacked files: Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/vbmeta.img Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/userdata.img Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/dqmdbg.img Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/dtbo.img Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/super.img Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/boot.img Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/recovery.img Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/misc.bin Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/AP/vbmeta_samsung.img Reuse them? Y/n Unpacking the BL tar... Found unpacked files: Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/vbmeta.img Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/tzsw.img Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/harx.bin Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/ssp.img Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/keystorage.bin Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/uh.bin Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/sboot.bin Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/up_param.bin Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/ldfw.img Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/BL/tzar.img Reuse them? Y/n Unpacking the CP tar... Found unpacked files: Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CP/modem.bin Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CP/modem_debug.bin Reuse them? Y/n Unpacking the CSC tar... Found unpacked files: Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/optics.img Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/omr.img Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/cache.img Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/C2S_EUR_OPEN.pit Samfw.com_SM-N986B_OPS_N986BXXU5GWA5_fac/CSC/prism.img Reuse them? Y/n Checking the PIT file format... Identified as PIT by file signature "76983412" Decompressing files... Checking "vbmeta.img" format: seems uncompressed. Accepting as is. Checking "userdata.img" format: seems uncompressed. Accepting as is. Checking "dqmdbg.img" format: seems uncompressed. Accepting as is. Checking "dtbo.img" format: seems uncompressed. Accepting as is. Checking "super.img" format: seems uncompressed. Accepting as is. Checking "boot.img" format: seems uncompressed. Accepting as is. Checking "recovery.img" format: seems uncompressed. Accepting as is. Checking "misc.bin" format: seems uncompressed. Accepting as is. Checking "vbmeta_samsung.img" format: seems uncompressed. Accepting as is. Checking "vbmeta.img" format: seems uncompressed. Accepting as is. Checking "tzsw.img" format: seems uncompressed. Accepting as is. Checking "harx.bin" format: seems uncompressed. Accepting as is. Checking "ssp.img" format: seems uncompressed. Accepting as is. Checking "keystorage.bin" format: seems uncompressed. Accepting as is. Checking "uh.bin" format: seems uncompressed. Accepting as is. Checking "sboot.bin" format: seems uncompressed. Accepting as is. Checking "up_param.bin" format: seems uncompressed. Accepting as is. Checking "ldfw.img" format: seems uncompressed. Accepting as is. Checking "tzar.img" format: seems uncompressed. Accepting as is. Checking "modem.bin" format: seems uncompressed. Accepting as is. Checking "modem_debug.bin" format: seems uncompressed. Accepting as is. Checking "optics.img" format: seems uncompressed. Accepting as is. Checking "omr.img" format: seems uncompressed. Accepting as is. Checking "cache.img" format: seems uncompressed. Accepting as is. Checking "prism.img" format: seems uncompressed. Accepting as is. Detecting partition names... "vbmeta.img" goes into "VBMETA" Skipping "userdata.img" (unsafe) "dqmdbg.img" goes into "DQMDBG" "dtbo.img" goes into "DTBO" "super.img" goes into "SUPER" "boot.img" goes into "BOOT" "recovery.img" goes into "RECOVERY" Skipping "misc.bin" (unsafe) "vbmeta_samsung.img" goes into "VBMETA_SAMSUNG" Skipping "vbmeta.img" (duplicate partition name "VBMETA") "tzsw.img" goes into "TZSW" "harx.bin" goes into "HARX" "ssp.img" goes into "SSP" "keystorage.bin" goes into "KEYSTORAGE" "uh.bin" goes into "UH" "sboot.bin" goes into "BOOTLOADER" "up_param.bin" goes into "UP_PARAM" "ldfw.img" goes into "LDFW" "tzar.img" goes into "TZAR" "modem.bin" goes into "RADIO" "modem_debug.bin" goes into "CP_DEBUG" "optics.img" goes into "OPTICS" "omr.img" goes into "OMR" Skipping "cache.img" (unsafe) "prism.img" goes into "PRISM" Now get into the Download mode: A. If the phone is currently turned off, hold down BOTH the Volume Up and Down buttons and connect the USB cable to PC while keeping them pressed B. If the phone is currently booted, first connect the USB cable to PC, then do the reboot but as soon as the screen goes black immediately hold down BOTH the Volume Up and Down buttons When the phone is in the Download mode (teal screen), continue to the "Downloading..." page following the instructions on the screen (usually it is done by pressing the Volume Up button). Are you now in the download mode? Y/n Detecting device... Device detected Flashing all partitions... Flushing disk cache (this may take some time) Heimdall v1.4.2 Copyright (c) 2010-2017 Benjamin Dobell, Glass Echidna http://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: http://www.glassechidna.com.au/donate/ Initialising connection... Detecting device... Claiming interface... Setting up 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 UH 100% UH upload successful Uploading OMR 100% OMR upload successful Uploading LDFW 100% LDFW upload successful Uploading BOOT 10% ERROR: Failed to send file part packet! ERROR: BOOT upload failed! Ending session... ERROR: Failed to send end session packet! Releasing device interface... Heimdall exit code: 123 Heimdall was unable to upload firmware. You have to resort to Odin for Windows. Sorry. Exiting...
Greetings from Melbourne's North![]()
Fixed it (hopefully). Try the latest version.View attachment 5827223
WSL Ubuntu 18.04, as a workaround i use 7z ZS to extract the super
Works like a charm! Many thanks!Fixed it (hopefully). Try the latest version.
v1.15.5 released: Fixed the compatibility issue with the older LZ4 compressors