Initialize local repository
repo init -u https://github.com/Lunaris-AOSP/android -b 16.2 --git-lfs
repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags
Set up the build environment
lunch lineage_codename-bp4a-user
Paintainer prop (define in system/product prop)
ro.lunaris.maintainer=GHOST | ゴースト
https://github.com/Pong-Development/device_nothing_Pong/blob/luna/overlay/pong/NTSettingsResTarget/res/values/lunaris_strings.xml
Refresh rate list (optional) - defining this flags makes the controller skip the parsing of Display.Mode refresh rates
For supported refresh rates. The refresh rate controller will also assume that all the defined refresh rates are "supported"
TARGET_SUPPORTED_REFRESH_RATES := 60,90,120,144
TARGET_CUSTOM_UDFPS := true
Set surfaceflinger refreshrate
$(call soong_config_set,surfaceflinger,frame_rate_category_high,120)
$(call soong_config_set,surfaceflinger,frame_rate_category_min,60)
Whether the device supports Smart Pixels(frameworks overlay)
<!-- Whether the device supports Smart Pixels -->
<bool name="config_supportSmartPixels">true</bool>
Limit AOD refreshrate (SystemUI overlay)
<!-- Preferred max refresh rate at AOD & Ambient Display, if supported by the display. -->
<integer name="config_aodMaxRefreshRate">60</integer>