compatibility-device-info lib is built using SDK
The library has been built without LOCAL_SDK_VERSION in order to use
private APIs like SystemProperties, VintfObject, etc. However this
triggered the link-type check warnings because other cts modules using
this library are all built with LOCAL_SDK_VERSION; java:sdk ->
java:platform dependency is not allowed and this will turn into errors
soon.
In order to build the library with LOCAL_SDK_VERSION, the private APIs
are now provided as a small stub library. This is still far from
perfection, but much better than before since the set of private APIs
used by the library are now explicitly visible.
Other two libs for tests are added with LOCAL_SDK_VERSION as well.
Bug: 69899800
Test: m -j compatibility-device-info
Test: m -j compatibility-device-info-tests
Test: m -j compatibility-device-util-tests
do now show link-type check warnings other than android.test.* which
will be handled separately.
Change-Id: Iee9f1bcb3df31632c395ee059822191c40e2113c
6 files changed