No description
Find a file
Nich 33327b651f compat: libc: Bring libc hax inline with the latest sources
-> [1] added tests to ensure nano timespecs are below 1000000000
-> Legacy blobs before N were able to use tv_nsec > 100000000
-> One such example would be our libmmcamera2_sensor_modules.so, which
have instances of timeouts of 5000000000 nsecs.
-> The previous workaround was to shim the old libc functions to
skip these tests, but that was really ugly since we leave out bug fixes
and security patches introduced from MM up till Oreo.
-> Current workaround is applied on the latest bionic code by correcting
the invalid timespecs, taking out each second from tv_nsec, and then
adding them to tv_sec, until tv_nsec goes below 1 second.
-> Due to bionic's tight security, we've got no choice but to copy-paste
its functions here.

[1]: https://android.googlesource.com/platform/bionic/+/c9a659c

Change-Id: I271f2899db54a252d0d2a018cf4eb7877b97a02a
2023-09-25 16:58:50 +00:00
interfaces compat: Add some HIDL interfaces types shims 2023-07-17 21:53:55 +02:00
libbase compat: Keep only one copy of clang-format style 2023-07-17 20:51:56 +02:00
libbinder compat: Provide shim with IPermissionController stubs 2023-07-18 18:10:41 +00:00
libc compat: libc: Bring libc hax inline with the latest sources 2023-09-25 16:58:50 +00:00
libcamera_metadata compat: Keep only one copy of clang-format style 2023-07-17 20:51:56 +02:00
libcomparetf2 compat: Add libcomparetf2 shim 2023-09-18 15:33:36 +00:00
libcutils libcutils_shim: jstring: Import strcpy8to16 definition 2022-09-21 13:10:09 -04:00
libgui compat: Keep only one copy of clang-format style 2023-07-17 20:51:56 +02:00
libmemset Provide shim for android_memset32 2022-09-21 16:26:12 +01:00
libpiex compat: libpiex_shim: Improve shim 2022-11-01 10:35:17 +00:00
libtinyxml2 compat: Add libtinyxml2 shim 2023-07-18 12:10:42 +02:00
libui compat: Keep only one copy of clang-format style 2023-07-17 20:51:56 +02:00
libutils compat: Add libutils shim 2023-07-19 21:32:21 +02:00
.clang-format compat: Keep only one copy of clang-format style 2023-07-17 20:51:56 +02:00
Android.bp compat: Add libcomparetf2 shim 2023-09-18 15:33:36 +00:00