Skip to Content
flagBuild flags

Build flags

Disclaimer and Information.

When you build, you will often need some specific flags, depending on the situation.

Here, we’ll try to establish a non exhaustive list of what flags you can find.

It’s an effort made by the community to try to gather the flags. If you find this section incomplete, or if you want to add some things to it, please send a message to Onelots on discord.

A flag is often used in the lineage_$device.mk file in your device tree. A flag follows the form FLAG := value

Flags list

Flag itselfDefault valueAccepted valueWhat it’s made for
EVO_BUILD_TYPEUnofficialOfficial/UnofficialDefine if a build is official or unofficial. allowed as flag but prefer to use as export.
WITH_GMSTruetrue/falseDefine if the build has Google Apps or if it’s a vanilla one. (Without google.)
TARGET_USES_MINI_GAPPSFalsetrue/falseIt often happens that a device can’t fit all the google apps. So we use this flag to use a smaller gapps package.
TARGET_USES_PICO_GAPPSFalsetrue/falseSame as MINI_GAPPS, but this one is the smallest working one. Not recommended tho because doesn’t have Velvet.
BUILD_BCRtruetrue/falseAllows to build (or not) the app Basic Call Recorder
TARGET_HAS_UDFPSdepends !true/falseindicate whether the devices has Under Display FingerPrint Sensor or not
TARGET_SUPPORT_BOOT_ANIMATIONStruetrue/falseAllows to define if boot animations are working on the device or not, and allows to hide options in evolver
TARGET_DISABLE_EPPEfalsetrue/falseEnforce Product Packages Existance. EPPE Requires all requested packages to exist, so disabling it allows some packages to be missing.
TARGET_INCLUDE_ACCORDtruetrue/falseAllows to define if the build will include Accord app . Accord is a music player with apple music like interface.
TARGET_INCLUDE_VIPERFXfalsetrue/falseAllows to include ViperFX with just a flag
WITH_ADB_INSECUREfalsetrue/falseAllows to define if the builds should include adb insecure or not
WITH_SUfalsetrue/falseallows to ship the su binary directly in the rom
BYPASS_CHARGE_SUPPORTEDfalsetrue/falseAllows to ship the “bypass charging” function if the device supports it.
Last updated on