Initialize local repository
repo init -u https://github.com/ProjectMatrixx/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 matrixx_codename-bp4a-user
Maintainer flag (define in matrixx_device.mk)
MATRIXX_MAINTAINER := Mrick343
Include MatLog Application
TARGET_INCLUDE_MATLOG := true
TARGET_CUSTOM_UDFPS := true
TARGET_INCLUDE_PIXEL_LAUNCHER := true (For Building Pixel Launcher)
TARGET_DEFAULT_PIXEL_LAUNCHER := true (Set Pixel Launcher as default Launcher)
WITH_GMS_COMMS_SUITE := true (For Google Telephony)
WITH_GMS_AICORE := true (For Google AICore)
Set surfaceflinger refreshrate
$(call soong_config_set,surfaceflinger,frame_rate_category_high,120)
$(call soong_config_set,surfaceflinger,frame_rate_category_min,60)
Surface flinger boosting (Smoother scrolling, fewer frame drops but Keeps CPU slightly “awake”)
SURFACE_FLINGER_BOOST := true
Enable optimized dexopt tuning (default false, Recomended for highend devices)
TARGET_OPTIMIZED_DEXOPT := true
BYPASS_CHARGE_SUPPORTED := true
High Brightness Mode (HBM)
HBM_SUPPORTED := false
HBM_NODE := /sys/class/backlight/panel0-backlight/hbm_mode
Use X reality engine (careful with mtk, causes display stuck issue)
USE_REALITY_ENGINE := true
Drop default aperture camera
PRODUCT_NO_CAMERA := true
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>