Syntax to remove packages from AndroidProducts.mk

3,176 views
Skip to first unread message

Dave Smith

unread,
Jul 20, 2012, 11:24:37 AM7/20/12
to android-...@googlegroups.com
So I know that we can use syntax like the following in our device's AndroidProducts.mk file to apply custom packages on top of what the standard AOSP build would include:

PRODUCT_PACKAGES := \
ApiDemos \
SoundRecorder \

$(call inherit-product, build/target/product/generic.mk)

But is there a syntax we can use to REMOVE standard packages from the build inside of this file without having to copy the entire PRODUCT_PACKAGES listing there?  I don't want to remove the call to inherit-product, because that script copies in more than just the packages list, and we don't have any reason to modify all those variables as well.  Is there something like `PRODUCT_PACKAGES -= Launcher2` or something?

Any help greatly appreciated!

Jean-Baptiste Queru

unread,
Jul 20, 2012, 11:31:50 AM7/20/12
to android-...@googlegroups.com
There's no way to explicitly remove packages.

However, you can override packages: in the Android.mk for your
replacement for Launcher2, set LOCAL_OVERRIDES_PACKAGES := Launcher2.
When your replacement is included in a product, Launcher2 won't be
included.

JBQ
> --
> You received this message because you are subscribed to the Google Groups
> "android-platform" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/android-platform/-/NXEkdepH3JUJ.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to
> android-platfo...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/android-platform?hl=en.



--
Jean-Baptiste M. "JBQ" Queru
Technical Lead, Android Open Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Dave Smith

unread,
Jul 23, 2012, 10:23:04 AM7/23/12
to android-...@googlegroups.com
Thanks JBQ, I'll take a look at the local overrides.
> To post to this group, send email to android-platform@googlegroups.com.
> To unsubscribe from this group, send email to
> android-platform+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages