Skip to content

LineageOS 24.0 (Android 17) - Galaxy A12 (a12s) [20261130 user]

Choose a tag to compare

@varifocal varifocal released this 30 Nov 20:43

Unofficial user build of LineageOS 24.0 (Android 17, CP2A.260605.016) for the Samsung Galaxy A12 (SM-A127F, Exynos 850 / universal3830), compiled from source against stock A127FXXSDDXJ5 vendor blobs.

Note

Only for the Exynos 850 Galaxy A12 (SM-A127F). The MediaTek SM-A125F is not supported.

Build info

Field Value
LineageOS version 24.0-20261130-UNOFFICIAL-a12s
Android version Android 17 (API 37, CP2A.260605.016)
Build type user (ro.debuggable=0, ro.secure=1, ro.adb.secure=1)
SELinux Enforcing (no permissive kernel flags)
Android security patch 2026-11-01
Vendor security patch 2024-10-01 (matches stock A127FXXSDDXJ5)
Firmware base A127FXXSDDXJ5
Kernel Linux 4.19, Clang-built (identical in boot.img and recovery.img)

What changed since 20261129

Camera, graphics, and display

  • Replaced the legacy Android 13 prebuilt camera stack with source-built N23 HAL3 (hardware/samsung_slsi-linaro/camera), adding sensor definitions for the rear main S5KGM2, GC5035 5 MP ultrawide, GC02M1 macro (rear4), and front S5K4HA/SR846 sensors.
  • Switched graphics to stock A127FXXSDDXJ5 Mali Bifrost r38p1 blobs with native Gralloc4 handles (gralloc3_compat_handle=false), threaded SkiaGL (skiaglthreaded), background blur, and SurfaceFlinger VSync/ADPF tuning.
  • Replaced the borrowed A21s top-left punch-hole cutout with the stock A127FXXSDDXJ5 center Infinity-V notch (status_bar_height_portrait=28dp) and symmetric 20dp (42px) rounded-corner padding.
  • Fixed an HWC3 (libhwc2.1) backlight stall by clamping negative -1.0f screen-off brightness values and calling mBrightnessOfs.clear().

Audio, haptics, sensors, and media

  • Enabled duration_amplitude scaling on the COINDC ERM motor in the Samsung Vibrator HAL (CAP_AMPLITUDE_CONTROL) with 14ms / 8ms / 6ms click timings.
  • Removed declarations for hardware the A12 does not have (gyroscope, compass, hifi_sensors), fixed accelerometer and touchscreen sysfs permissions, and updated thermal_info_config.json.
  • Enabled AIDL Codec2 (media.c2.hal.selection=aidl) hardware video encode/decode through Exynos MFC kernel backports and dropped unused legacy OMX configs.

Security and tree cleanup

  • Moved from userdebug to a user build: dropped su, WITH_ADB_INSECURE, and androidboot.selinux=permissive, and enabled ro.adb.secure=1.
  • Set ro.vendor.build.security_patch=2024-10-01 and ro.frp.pst=/dev/block/platform/12100000.dwmmc0/by-name/persistent.
  • Removed 34 bundled TEE binaries, duplicate fstab.exynos850, dead patches, and TARGET_UNOFFICIAL_BUILD_ID from device/samsung/a12s (zero binary blobs remain in the device trees).
  • Synced proprietary-files.txt 1:1 (178 blobs) with vendor/samsung/a12s-common, verified setup-makefiles.py output, and added camera and codec2 to lineage.dependencies.
  • Verified VINTF compatibility (COMPATIBLE) and matched the exact kernel image across boot.img and recovery.img.

Architecture notes

  • Kernel (exynos850-a12snsxx_defconfig): Samsung A127FXXSDDXJ5 4.19 base with LineageOS 24.0 backports for cgroup freezer, MFC Codec2 + SBWCL, SCSC WPA3/SAE, Mali r38p1, and GC5035 probing.
  • Security and keystore: File-Based Encryption (FBE) is enabled using software android.hardware.security.keymint-service. Samsung hardware TEE keymaster@4.0, vaultkeeper, and cass stay disabled because A12s VaultKeeper TA expects a missing PA provisioning component. All 21 TEEGRIS TAs load from vendor/tee/.

Included files

File Purpose
lineage-24.0-20261130-UNOFFICIAL-a12s.zip Flashable LineageOS 24.0 user ROM zip (sideload in recovery)
recovery.img LineageOS 24.0 Recovery (Android 17, matching kernel)
boot.img Boot image (matching kernel)
dtbo.img Device Tree Blob Overlay for a12s
vbmeta.img Disabled AVB vbmeta (--flags 0 --algorithm NONE)
SHA256SUMS-a12s.txt Checksums for every file in this release

SHA-256 checksums

28721df43a50fa983646225f44d8604459b9e5f1507a8a04fbb5e12b5bfe130c  lineage-24.0-20261130-UNOFFICIAL-a12s.zip
e06bef61a928dbab6819135fa6d19aa0c055af2a7967201fd71342072d449016  recovery.img
4d7cf69f340afe9b0723302420c97e20240b1ee100221767127c7bf6522ffb6d  boot.img
b75e0d784b64adbfa8721201b7c9186bc3e2ee5d60b2d391468088705bbe42de  dtbo.img
e204c2dcb3b930754cc26131fc46f5a6a8e954c0a047b5a143b7194b73d0a3b8  vbmeta.img

Install

Warning

Never flash BL, CP, CSC, PIT, PARAM, EFS, or MODEM.

Updating from an existing LineageOS build (keeps data)

  1. Verify your downloads:
    sha256sum -c SHA256SUMS-a12s.txt
  2. Boot into Lineage Recovery and choose Apply update -> Apply from ADB.
  3. Sideload the ROM:
    adb sideload lineage-24.0-20261130-UNOFFICIAL-a12s.zip
  4. Choose Reboot system now.

Clean install from stock or another ROM

  1. Boot into Download Mode and flash recovery and vbmeta with Heimdall:
    heimdall flash --RECOVERY recovery.img --VBMETA vbmeta.img
  2. Reboot straight into Lineage Recovery by holding Vol Up + Power before One UI can boot.
  3. Choose Factory reset -> Format data/factory reset.
  4. Choose Apply update -> Apply from ADB, then sideload the ROM:
    adb sideload lineage-24.0-20261130-UNOFFICIAL-a12s.zip
  5. Reboot to system.

Source code

Upstream LineageOS Gerrit CLs

  • 515963: libhwc2.1: ExynosDisplay: Fix brightness error path
  • 515964: camera: N23: exynos3830: Add GC5035 sensor info
  • 515965: camera: N23: exynos3830: Add 4HA/SR846 front info

Screenshots

System UI Trebuchet System UI
LineageOS 24.0 lock screen LineageOS 24.0 home screen LineageOS 24.0 quick settings
Settings Trebuchet Trebuchet
LineageOS 24.0 About phone LineageOS 24.0 app drawer LineageOS 24.0 launcher