This guide shows you how to install an AOSP Android 12 custom ROM on the Exynos Samsung Galaxy S7 and S7 Edge (codenames herolte/hero2lte). The phones launched in February 2016 on Android 6.0 Marshmallow and officially stopped at Android 8.0 Oreo, so Android 12 comes from the custom ROM community.
Android 12 features
Android 12 was a big visual change, built around the Material You design and its dynamic theming that pulls colours from your wallpaper. On top of the look, it added a Privacy Dashboard, mic and camera indicators, scrolling screenshots, one-handed mode, a quick tap gesture on the back of the phone, app hibernation, and easier Wi-Fi sharing, along with the usual round of performance and privacy work over Android 11.
What works and known bugs
On these Android 12 builds the core hardware generally works. Because these are community ROMs, the current list of anything broken is kept on the ROM’s development thread, so check it there before you flash.
How to install AOSP Android 12 on the Galaxy S7 / S7 Edge
Go through the requirements first, then follow the install steps.
Prerequisites
Back up your phone
Create a backup of your device storage and files first. The install wipes the phone.
Charge the phone
Charge to at least 50% so it does not shut down partway through.
Download ADB and Fastboot
You can skip this if you already have TWRP installed. Otherwise, download the ADB and Fastboot binaries (platform-tools). ADB creates the connection between phone and PC so you can sideload files, and Fastboot handles lower-level flashing.
Download Samsung USB drivers
Install the Samsung USB drivers on your PC so it detects the phone over USB.
Unlock the bootloader
You must unlock the bootloader before you can run any custom ROM.
Install TWRP recovery
You need TWRP to flash the ROM. After unlocking the bootloader, follow our guide for the Galaxy S7 or Galaxy S7 Edge.
Download the Android 12 ROM
Download Android 12 GApps
Most AOSP ROMs ship without the Google apps. If you want them, download an Android 12 GApps package (MindTheGapps). Skip it if the ROM bundles Google apps or you plan to use microG.
Warning
Only flash a build meant for your exact model; the wrong one can brick the phone. Unlocking the bootloader and flashing a custom ROM also wipe the phone and trip KNOX permanently. GetDroidTips is not responsible for any damage. Do this at your own risk.
Installation steps
- Copy the ROM ZIP (and GApps ZIP, if used) to the phone’s internal storage.
- Connect the phone to the PC with a USB cable, with USB debugging enabled.
- Open the platform-tools folder, type CMD in the address bar, and press Enter to open a Command Prompt.

- Boot the phone into TWRP, with the command below or the Volume and Power button combination:
adb reboot recovery

- In TWRP, go to Wipe > Advanced Wipe and format System, Data, and Cache. If the phone is encrypted or you are switching ROMs, use Format Data (type yes) so the ROM will boot.
- Go to Install, select the Android 12 ROM ZIP, and swipe right to flash it.
- If you want the Google apps, flash the GApps ZIP the same way, before the first boot.
- Wipe the cache, then go to Reboot and select System.

The first boot can take several minutes, and you will set the phone up from scratch afterward.
Frequently Asked Questions
Did the Galaxy S7 officially get Android 12?
No. Samsung stopped the S7 and S7 Edge at Android 8.0 Oreo. Android 12 only comes from community ROMs like LineageOS 19.1.
Will installing it erase my data?
Yes. Unlocking the bootloader and wiping/formatting data both erase the phone, so back up first.
Does flashing trip KNOX?
Yes, and it is permanent. It voids the warranty and disables KNOX features like Samsung Pay and Secure Folder.
Which models does this work on?
The Exynos Galaxy S7 (SM-G930F) and S7 Edge (SM-G935F). The Snapdragon US and carrier variants are not covered.
Conclusion
An Android 12 ROM like LineageOS 19.1 keeps an Exynos Galaxy S7 or S7 Edge current long after Samsung stopped updating it. Use a build for your exact model, back up first, and let the flash finish. If you want something newer, there is also our Android 13 and Android 16 guides for the S7. Report any bug on the ROM’s forum thread.