Preloader
: initial bootloader code that runs when the device is powered on.Vbmeta
: Verified Boot metadata, which is used to verify the integrity of the boot image.Vbmeta_system
: Verified Boot metadata for the system partition.Vbmeta_vendor
: Verified Boot metadata for the vendor partition.Spmfw
: Secure Partition Manager firmware.Lk
: Little Kernel bootloader.Boot
: kernel and ramdisk images used to boot the device.Dtbo
: device tree binary object.Tee
: Trusted Execution Environment.Efuse
: MediaTek Specific Data for RF Parameters and other chip-specific properties.Super
: metadata for all dynamic partitions on the device.Cust
: A partition that contains customer-specific data.Rescue
: A partition that contains a recovery image that can be used to restore the device to its factory state.Userdata
: user’s data, such as apps, photos, and documents.To use the SP Flash tool you need to have a scatter file. One easy way to find that is to look out for other devices that use the same chipset but the manufacturer releases the firmware file including the scatter file one such manufacturer is Xiaomi but you may find other manufacturers as well.
Samsung Galaxy A34 uses Dimensity 1080[MT6877v] and here is the list of other devices that use this chip as well:
Devices come in two kinds, eMMC and UFS. eMMC is just an SD card but in a package of a chip which then is called an embedded SD card or eMMC. Others come with UFS storage which is NAND flash in fancy words. You can determine your device type by looking at the specs. For A34 that is UFS 2.2.
There’s a PIT (Partition Information Table) file inside all Samsung firmware. This file includes all partition starting addresses. Don’t know how to read it yet though
By SRAM
, By DRAM
option, choose how the file was first copied to the device and then write to the actual location. Both should work in normal conditions, SRAM used if DRAM has issues, pro during R&D.Half of Samsung devices come with a MediaTek chip. These chips come with a special mode called BROM or emergency mode. This is something that by default is not enabled but if the device goes into broken mode it will activate to allow the device to be flashed without the need for a jtag connection.
There’s a tool called Android Utility Tool that comes with a very shitty support, website, and documentation. In my journey, I thought I give it a shot as the phone that I was playing with wasn’t so important to me. Unfortunately, I used the tool to put my device into the BROM mode and the device got bricked with a black screen and no reaction whatsoever.
The solution was easy just get a stock ROM extract Bootloader files uncompress the LZ4 file format and then use the write boot_section and write a preloader file to the device. And your device will work revive again.
Final note MediaTek mode only enables for a few seconds after you reboot the device so each time you want to execute an action you have to keep Holding the power button or some combination for a few seconds or more.
If you try to downgrade a new Samsung phone to an older firmware using Odin you are gonna get SW REV. CHECK FAIL
. Fortunately, there’s a fix for this but it takes a little bit of patience
Ap_<Version>.tar.md5
content in the same place as the required tools..lz4
files to .img
by dragging and dropping them on lz4.exe
SignRemover
lz4
files and tools to tar with 7-ZipAp_<Version>.tar.md5
) and flash normally using OdinIf needed place vb_mate.img in AP slot to disable AVB
– How to Downgrade Android Version in Samsung Devices if Device is in Higher Binery