Skip to content

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.

Open the Galaxy A12 ROM downloads and choose a release:

  • LineageOS 24.0 (release-4): Clean user build 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.zip or EvolutionX-17.0-20261201-a12s-12.4-Unofficial.zip)
  • recovery.img
  • vbmeta.img (needed when coming from stock One UI)
  • The SHA256SUMS*.txt file

Verify the hashes before flashing:

Terminal window
sha256sum -c --ignore-missing SHA256SUMS-a12s.txt

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:

Terminal window
heimdall flash --RECOVERY recovery.img --VBMETA vbmeta.img --no-reboot

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.

  1. In recovery, select Factory reset -> Format data / factory reset, then confirm. Skipping this step is the usual reason first boot loops back to recovery.

  2. Go back to the main menu and choose Apply update -> Apply from ADB.

  3. On your computer, sideload the ROM zip you downloaded:

    Terminal window
    adb sideload lineage-24.0-20261130-UNOFFICIAL-a12s.zip

    For Evolution X, pass EvolutionX-17.0-20261201-a12s-12.4-Unofficial.zip instead. The progress bar often stops at 47% and prints adb: failed to read command: Success or no error. That is normal when sideload completes.

  4. If recovery prompts about signature verification, select Yes to continue as long as your SHA-256 check passed.

  5. 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.

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.

Userdata is still encrypted with keys from the previous OS. Run Factory reset -> Format data / factory reset in recovery and reboot again.

Future builds on the same ROM branch do not require a wipe. Follow Updating.

Leaving Varifocal

External site

This link opens an external 3rd-party page in a new tab.