Repository navigation
Rescue and Restore
Important: on the Galaxy A55 the recovery boots with the kernel from the
bootpartition. If a kernel does not boot, the recovery won't start either. Keep an Odin tar of your stockboot.imgon your PC before you flash any kernel.
With root (any working kernel):
adb shell su -c "dd if=/dev/block/by-name/boot of=/sdcard/boot.img"
adb pull /sdcard/boot.img
Or take a Boot backup in H-Death Recovery and copy boot.emmc.win to your PC, then rename it to boot.img.
Pack it for Odin. Use a plain (ustar/GNU) tar, not a zip:
tar -H ustar -cf stock_boot_AP.tar boot.img (Linux, or Git Bash on Windows)
You can also extract boot.img.lz4 from your firmware's AP file and pack that.
- Recovery: Restore your Boot backup.
-
Or flash the image: in recovery, Install, Install Image, pick
boot.img, choose the Boot partition.
- Hold Power + Volume Down for about 10 seconds to force it off. The phone restarts; keep it unplugged.
- Enter download mode: with the phone off, hold Volume Up + Volume Down and plug in the USB cable.
- Press Volume Up to continue to download mode.
- Open Odin on the PC and put
stock_boot_AP.tarin the AP slot. - Untick Auto Reboot in Options.
- Press Start and wait for PASS.
- Force reboot to recovery or system: Power + Volume Down, then right after the screen goes off, Power + Volume Up for recovery.
Never flash a full firmware just to fix the kernel. It replaces your recovery and can wipe data.
Thanatos v1.0 (never published) had this bug. The fix is in v1.1. If it happens on a current version:
-
Hold Power + Volume Down to restart.
-
Before the phone reboots again, collect the log:
adb shell su -c "cat /proc/last_kmsg" > last_kmsg.txt -
Open an issue with that file, and tell us what you were doing when it froze.
adb shell uname -a > info.txt
adb shell su -c "dmesg" > dmesg.txt
adb logcat -d -b all > logcat.txt
adb shell su -c "cat /proc/last_kmsg" > last_kmsg.txt (after an unexpected reboot)
Thanatos kernel by Hima (@Hima_Simple) · GPL-2.0 · Flashing kernels is at your own risk.