AOSP - how to get final contents of PRODUCT_PACKAGES while building

174 views Asked by At

Different packages and components we can add via PRODUCT_PACKAGES tag in different mk files. I want to remove some unwanted packages while building AOSP for my target.

But for some packages this is not working as I am unable to find from which location there even being added and for some I do not want to modify those original source files (in the actual codebase there are multiple vendors/teams as such)

is there any way to see the complete PRODUCT_PACKAGES content while building AOSP?

I am using below for removing the unwanted packages :

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

MY_OVERRIDE_PACKAGES := \
Dialer \
Calendar \
etc

LOCAL_MODULE := override_packages
LOCAL_MODULE_TAGS := optional
PACKAGES.$(LOCAL_MODULE).OVERRIDES := $(strip $(MY_OVERRIDE_PACKAGES))
include $(BUILD_PHONY_PACKAGE)
0

There are 0 answers