summaryrefslogtreecommitdiffstats
path: root/libvndksupport
Commit message (Collapse)AuthorAgeFilesLines
* bpfmt.Elliott Hughes2018-02-162-3/+9
| | | | | | Bug: N/A Test: builds Change-Id: I89ad00e1c4c7e0767bc80a7ac7935a4d55e090ac
* Add OWNERS.Elliott Hughes2017-12-071-0/+2
| | | | | | Bug: N/A Test: N/A Change-Id: Ie785058c0f5eb9b4086c98ccba6e63e3ed411b65
* libvndksupport: do not use functions from android/dlext.hYifan Hong2017-11-101-3/+9
| | | | | | | | | | | | ... if they are not available. Use weak symbols and do not call the following functions when they are not defined: * android_dlopen_ext * android_get_exported_namespace Test: links Test: boots Change-Id: I653548bac61a0eba001f72bab969b5b858bd1553
* Make libvndksupport look for default namespace as well.Justin Yun2017-11-091-9/+24
| | | | | | | | | | In vendor process, libvndksupport must look for "default" namespace, instead of "sphal" namespace to open hal libraries. Bug: 63411330 Test: Boot the device. Change-Id: I26208b6f47708f83e0679fd72ca7471ade84fff9 Merged-In: I26208b6f47708f83e0679fd72ca7471ade84fff9
* libvndksupport: Change log level and message.Justin Yun2017-11-091-4/+3
| | | | | | | | | | | If no 'sphal' namespace exist, the sphal library may be found in current namespace. Change the log level and message to note this. Bug: 64162324 Test: Check log message for vndksupport tag. Change-Id: I5ed6ba1e48f99e7d11d80a465177ac9f3a7fbd97 Merged-In: I5ed6ba1e48f99e7d11d80a465177ac9f3a7fbd97
* Use -Werror in system/coreChih-Hung Hsieh2017-11-012-0/+2
| | | | | | | | | * Move -Wall -Werror from cppflags to cflags. * Fix/suppress warning on unused variables. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I1e05e96a1d0bcb2ccef1ce456504b3af57167cc5
* Merge "fix: ATRACE does not work for libs loaded in sphal namespace" into ↵Jiyong Park2017-05-311-1/+1
|\ | | | | | | | | | | | | | | oc-dev am: b560e6db6a am: 94baf7270a Change-Id: I5042241c4239800a4b8ff1f18db1ab66b029c5c3
| * fix: ATRACE does not work for libs loaded in sphal namespaceJiyong Park2017-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From O, libutils.so is loaded twice. Once in the default namespace and once in the sphal namespace for vendor libs. However, since the framework only communicates with the instance loaded in the default namespace, report_sysprop_change() event is not notified to the instance in sphal namespace. This causes ATRACE to not work for vendor libs loaded in sphal namespace. So, the instance loaded in default namespace now explicitly redirects the event to the other instance. Bug: 62084107 Test: start an app, run 'adb shell atrace gfx --stream'. atrace from the graphics driver are visible. Change-Id: Ia6c2ca6bcb9a8849ebb09b5c38d60480c92d4571
| * add libvndksupportJiyong Park2017-05-156-0/+189
| | | | | | | | | | | | | | | libvndksupport is a new LL-NDK library that provides vendor-visible APIs for platform-only functionalities of other LL-NDK libraries. Currently, it provides android_(load|unload)_sphal_library which abstracts the platform-only APIs of libdl (android_get_exported_namespace, etc.) Bug: 37323945 Test: sailfish builds and boots Test: libvndksupport-tests passes Merged-In: I6d2911b57e009d0c842554933aac87d6573ffcbf Change-Id: I6d2911b57e009d0c842554933aac87d6573ffcbf (cherry picked from commit 7130e13262f788d35e85e0b38db58a1e2aa6266b)
* libvndksupport: Do not lookup default namespace for sphal failureJustin Yun2017-05-241-7/+5
| | | | | | | | | | | Instead of looking up default namespace for the failure of loading sphal libs, report failure. This is only for the devices that have sphal namespace. Bug: 38435840 Test: sailfish builds and boots Test: libvndksupport-tests passes Change-Id: Ibbff5f2d5d83f6482f98677a5492777db6416967
* add libvndksupportJiyong Park2017-05-116-0/+191
libvndksupport is a new LL-NDK library that provides vendor-visible APIs for platform-only functionalities of other LL-NDK libraries. Currently, it provides android_(load|unload)_sphal_library which abstracts the platform-only APIs of libdl (android_get_exported_namespace, etc.) Bug: 37323945 Test: sailfish builds and boots Test: libvndksupport-tests passes Change-Id: I6d2911b57e009d0c842554933aac87d6573ffcbf