Android Wear O Preview 4
Add vendor_available to various libs.

These libs are required by the default implementation of the keymaster
hidl hal.

By setting vendor_available, the following may become true:

* a prebuilt library from this release may be used at runtime by
  in a later releasse (by vendor code compiled against this release).
  so this library shouldn't depend on runtime state that may change
  in the future.
* this library may be loaded twice into a single process (potentially
  an old version and a newer version). The symbols will be isolated
  using linker namespaces, but this may break assumptions about 1
  library in 1 process (your singletons will run twice).

Background:

This means that these modules may be built and installed twice --
once for the system partition and once for the vendor partition. The
system version will build just like today, and will be used by the
framework components on /system. The vendor version will build
against a reduced set of exports and libraries -- similar to, but
separate from, the NDK. This means that all your dependencies must
also mark vendor_available.

At runtime, /system binaries will load libraries from /system/lib*,
while /vendor binaries will load libraries from /vendor/lib*. There
are some exceptions in both directions -- bionic(libc,etc) and liblog
are always loaded from /system. And SP-HALs (OpenGL, etc) may load
/vendor code into /system processes, but the dependencies of those
libraries will load from /vendor until it reaches a library that's
always on /system. In the SP-HAL case, if both framework and vendor
libraries depend on a library of the same name, both versions will be
loaded, but they will be isolated from each other.

It's possible to compile differently -- reducing your source files,
exporting different include directories, etc. For details see:

https://android-review.googlesource.com/368372

None of this is enabled unless the device opts into the system/vendor
split with BOARD_VNDK_VERSION := current.

Test: works with BOARD_VNDK_VERSION := current
Bug: 37467707
Change-Id: I037b384d7591b79e8768a73b98f93fe4e8db5e7e
1 file changed
tree: 46a6e6c73eaf548060e72dbb8e04b1ffe0847c6c
  1. include/
  2. .clang-format
  3. .gitignore
  4. ae.h
  5. aes_key.cpp
  6. aes_key.h
  7. aes_operation.cpp
  8. aes_operation.h
  9. Android.bp
  10. Android.mk
  11. android_keymaster.cpp
  12. android_keymaster_messages.cpp
  13. android_keymaster_messages_test.cpp
  14. android_keymaster_test.cpp
  15. android_keymaster_test_utils.cpp
  16. android_keymaster_test_utils.h
  17. android_keymaster_utils.cpp
  18. asymmetric_key.cpp
  19. asymmetric_key.h
  20. asymmetric_key_factory.cpp
  21. attestation_record.cpp
  22. attestation_record.h
  23. attestation_record_test.cpp
  24. auth_encrypted_key_blob.cpp
  25. auth_encrypted_key_blob.h
  26. authorization_set.cpp
  27. authorization_set_test.cpp
  28. ec_key.cpp
  29. ec_key.h
  30. ec_key_factory.cpp
  31. ec_keymaster0_key.cpp
  32. ec_keymaster0_key.h
  33. ec_keymaster1_key.cpp
  34. ec_keymaster1_key.h
  35. ec_privkey_pk8.der
  36. ecdsa_keymaster1_operation.cpp
  37. ecdsa_keymaster1_operation.h
  38. ecdsa_operation.cpp
  39. ecdsa_operation.h
  40. ecies_kem.cpp
  41. ecies_kem.h
  42. ecies_kem_test.cpp
  43. gtest_main.cpp
  44. hkdf.cpp
  45. hkdf.h
  46. hkdf_test.cpp
  47. hmac.cpp
  48. hmac.h
  49. hmac_key.cpp
  50. hmac_key.h
  51. hmac_operation.cpp
  52. hmac_operation.h
  53. hmac_test.cpp
  54. integrity_assured_key_blob.cpp
  55. integrity_assured_key_blob.h
  56. iso18033kdf.cpp
  57. iso18033kdf.h
  58. kdf.cpp
  59. kdf.h
  60. kdf1.h
  61. kdf1_test.cpp
  62. kdf2.h
  63. kdf2_test.cpp
  64. kdf_test.cpp
  65. kem.h
  66. key.cpp
  67. key.h
  68. key_blob_test.cpp
  69. key_exchange.h
  70. keymaster0_engine.cpp
  71. keymaster0_engine.h
  72. keymaster1_engine.cpp
  73. keymaster1_engine.h
  74. keymaster_configuration.cpp
  75. keymaster_configuration_test.cpp
  76. keymaster_enforcement.cpp
  77. keymaster_enforcement_test.cpp
  78. keymaster_tags.cpp
  79. km0_sw_rsa_512.blob
  80. km1_sw_ecdsa_256.blob
  81. km1_sw_rsa_512.blob
  82. km1_sw_rsa_512_unversioned.blob
  83. List.h
  84. logger.cpp
  85. Makefile
  86. MODULE_LICENSE_APACHE2
  87. nist_curve_key_exchange.cpp
  88. nist_curve_key_exchange.h
  89. nist_curve_key_exchange_test.cpp
  90. NOTICE
  91. ocb.c
  92. ocb_utils.cpp
  93. ocb_utils.h
  94. openssl_err.cpp
  95. openssl_err.h
  96. openssl_utils.cpp
  97. openssl_utils.h
  98. operation.cpp
  99. operation.h
  100. operation_table.cpp
  101. operation_table.h
  102. rsa_key.cpp
  103. rsa_key.h
  104. rsa_key_factory.cpp
  105. rsa_keymaster0_key.cpp
  106. rsa_keymaster0_key.h
  107. rsa_keymaster1_key.cpp
  108. rsa_keymaster1_key.h
  109. rsa_keymaster1_operation.cpp
  110. rsa_keymaster1_operation.h
  111. rsa_operation.cpp
  112. rsa_operation.h
  113. rsa_privkey_pk8.der
  114. serializable.cpp
  115. soft_keymaster_context.cpp
  116. soft_keymaster_device.cpp
  117. soft_keymaster_logger.cpp
  118. sw_rsa_attest_root.key.pem
  119. symmetric_key.cpp
  120. symmetric_key.h
  121. valgrind.supp