Hi,
usually the name of the installed binary will be same as the module "name" but can we have 2 cc_binary modules defined to install a binary of same name but on a conditional PRODUCT_PACKAGES definition?
like a/Android.bp will define cc_binary with name : mymodule and it shall install myBin
and b/Android.bp will define cc_binary with name mymodule2 and it shall install myBin
and this will be controlled by a conditional
PRODUCT_PACKAGES definition
PRODUCT_PACKAGES += mymodule OR
PRODUCT_PACKAGES += mymodule2
this is the install a binary (with same name) from 2 partners but based on a build condition/rule.
regards,
abhay