Install vintf_fragments even when they are shared

Vintf_fragments should be installed regardless when they are shared with
other modules or not.

cc_binary {
  name: "foo",
  vintf_fragments: ["shared.xml"],
}

cc_binary {
  name: "bar",
  vintf_fragments: ["shared.xml"],
}

Either `m bar` or `m foo` should install `shared.xml`.

Previously, only *new* vintf_fragments were installed, which means, one
of "foo" or "bar" didn't trigger the installation of "shared.xml".

Bug: 198818343
Test: (see above)
Change-Id: I52b831df046b585db41449f06a6f9c684d623468
This commit is contained in:
Jooyung Han 2023-07-05 15:58:53 +09:00
parent 82d233a1bd
commit 7650ddad01

View file

@ -578,7 +578,7 @@ ifneq (true,$(LOCAL_UNINSTALLABLE_MODULE))
ALL_VINTF_MANIFEST_FRAGMENTS_LIST += $(my_vintf_new_pairs)
$(my_all_targets) : $(my_vintf_new_installed)
$(my_all_targets) : $(my_vintf_installed)
endif # my_vintf_fragments
# Rule to install the module's companion init.rc.