OSDN Git Service

Define vndk_product namespace for product apps
authorJustin Yun <justinyun@google.com>
Tue, 18 Feb 2020 06:01:51 +0000 (15:01 +0900)
committerJustin Yun <justinyun@google.com>
Fri, 21 Feb 2020 01:42:13 +0000 (01:42 +0000)
commit7326f393ad03da432ad5fe723485e1d2f47fe16b
tree44d318c61f18c9bc9138c177f9b7031cae71868a
parent52120b489b2e09fc0f6e746871c4233bd6ce0f70
Define vndk_product namespace for product apps

Unbundled apps may use vndk-sp libs from the system section. However,
product apps must use the vndk-sp libs for the product vndk version
that can be different from the vendor vndk version. So we must define
a vndk namespace for product partition.

For this purpose, BuildVndkNamespace() function requires an
additional parameter to indicate which partition is using the
namespace.
Using this function, the system section has an additional namespace
called "vndk_product" which is used only for unbundled product apps.

Test: atest linkerconfig_modules_unittest
Bug: 149063221
Change-Id: I3658efdc75e5c9a0ac3b92b9afc68aff2d4cb300
contents/include/linkerconfig/namespacebuilder.h
contents/namespace/vndk.cc
contents/section/apexdefault.cc
contents/section/product.cc
contents/section/system.cc
contents/section/vendor.cc
contents/tests/configuration/vndk_test.cc