Samsung Galaxy A12 (a12s) · Guide
Install LineageOS or Evolution X
Flash recovery and vbmeta, format data, and sideload LineageOS 24.0 or Evolution X 12.4 on the Galaxy A12 (SM-A127F).
This guide installs native Android 17 ROMs (LineageOS 24.0 or Evolution X 12.4) on the Samsung Galaxy A12 (SM-A127F). Both follow the same recovery sideload flow. Make sure you have already completed Unlock the bootloader.
Download and verify the files
Section titled “Download and verify the files”Open the Galaxy A12 ROM downloads and choose a release:
- LineageOS 24.0 (
release-4): Cleanuserbuild without Google Apps, SELinux enforcing. - Evolution X 12.4 (
evox-12.4-20261201): Includes Google Apps (WITH_GMS=true); the 2.66 GiB zip downloads from Pixeldrain via the release page.
From the same release, download:
- The ROM zip (for example
lineage-24.0-20261130-UNOFFICIAL-a12s.ziporEvolutionX-17.0-20261201-a12s-12.4-Unofficial.zip) recovery.imgvbmeta.img(needed when coming from stock One UI)- The
SHA256SUMS*.txtfile
Verify the hashes before flashing:
sha256sum -c --ignore-missing SHA256SUMS-a12s.txtFlash recovery and vbmeta
Section titled “Flash recovery and vbmeta”Boot into Download Mode: power the phone off, hold Vol Up Vol Down while plugging the USB cable into your PC, then short press Volume Up on the blue warning screen.
Run this from the folder containing recovery.img and vbmeta.img:
heimdall flash --RECOVERY recovery.img --VBMETA vbmeta.img --no-rebootOdin requires a .tar archive. Pack both images first:
tar -cvf recovery-vbmeta.tar recovery.img vbmeta.imgIn Odin, open Options and uncheck Auto Reboot. Load recovery-vbmeta.tar into the AP slot and click Start.
Reboot straight into recovery without letting Android start. Keep the USB cable connected, hold Vol Down Power until the screen goes black, then immediately switch to holding Vol Up Power until LineageOS or Evolution X Recovery appears.
Format data and sideload the ROM
Section titled “Format data and sideload the ROM”-
In recovery, select Factory reset -> Format data / factory reset, then confirm. Skipping this step is the usual reason first boot loops back to recovery.
-
Go back to the main menu and choose Apply update -> Apply from ADB.
-
On your computer, sideload the ROM zip you downloaded:
Terminal window adb sideload lineage-24.0-20261130-UNOFFICIAL-a12s.zipFor Evolution X, pass
EvolutionX-17.0-20261201-a12s-12.4-Unofficial.zipinstead. The progress bar often stops at47%and printsadb: failed to read command: Successorno error. That is normal when sideload completes. -
If recovery prompts about signature verification, select Yes to continue as long as your SHA-256 check passed.
-
Return to the main menu and choose Reboot system now.
First boot takes 2 to 5 minutes while Android builds caches. Once the welcome screen appears, setup is complete.
Troubleshooting
Section titled “Troubleshooting”Verification error right after flashing recovery
Section titled “Verification error right after flashing recovery”Samsung’s Verified Boot rejected the image because vbmeta.img was missing or the bootloader unlock did not stick. Re-flash both --RECOVERY recovery.img --VBMETA vbmeta.img together. If the error stays, ask on Telegram with a photo of the screen.
Phone keeps rebooting into recovery
Section titled “Phone keeps rebooting into recovery”Userdata is still encrypted with keys from the previous OS. Run Factory reset -> Format data / factory reset in recovery and reboot again.
Need to update later?
Section titled “Need to update later?”Future builds on the same ROM branch do not require a wipe. Follow Updating.