5
Building With Android Build System
YZBruh edited this page 2025-10-28 08:49:18 +03:00

This guide is for integrating the PMT Renovated project into the Android build system.

Downloading or Cloning the Source

You can add the project in two ways:

  • Placing in external directory:

    git clone https://git.yzbruh.space/YZBruh/pmt-renovated external/pmt
    
  • Placing in the device tree:

    git clone https://git.yzbruh.space/YZBruh/pmt-renovated device/<vendor>/<device>/pmt
    

    If added to the device tree, add the following line in your device.mk:

    PRODUCT_SOONG_NAMESPACES += $(DEVICE_PATH)
    

Including in Recovery

To include the project in the recovery image, add the following to device.mk:

PRODUCT_PACKAGES += pmt.recovery

Including in Normal ROM or System Image

To include the project in the normal ROM or system image, add the following to device.mk:

PRODUCT_PACKAGES += pmt

Now, the PMT Renovated project will be part of your selected build target.