Commit graph

32 commits

Author SHA1 Message Date
Bruno Martins
770258c025 compat: Provide libprotobuf-cpp vendorcompat prebuilts from v29 VNDK
Android moved to a versioned approach in R and vendorcompat libs were
still possible to build, but not anymore with the Android U release.

Change-Id: Ibe06bf8d22ab0ce24ac5d5d9f3394b8593ee46cb
2023-11-10 15:57:30 +00:00
Dominik Baronelli
25a12c76a8 compat: libhidlbase: add shim for missing constructor map symbol
gBn/sConstructorMap symbols were removed from libhidl:
- https://android.googlesource.com/platform/system/libhidl/+/e29b2ad

However, some prebuilts still make use of them.

In some cases, for example when using GSI, libhidl can not be patched
directly, which requires modifying affected blobs to depend on this shim
library.

Change-Id: I097c75ac210a9c3f50a9725da0b910d819c85b9a
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2023-11-04 15:12:56 +00:00
LuK1337
e8f0e4b7a0 compat: Add libprotobuf-cpp-lite-3.9.1-vendorcompat
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Change-Id: I5e3a64036907ee5d8495333de2da6bb93f295730
2023-10-10 01:16:00 +02:00
bengris32
015d90baa5 libbase: Shim old StartsWith function prototype
* The str parameter StartsWith function in libbase got changed
  from std::string to std::string_view in later android versions [1].

* Create a shim that provides the older StartsWith function.

[1]: ef973cee17

Change-Id: I116a32a739d6fa34ecc0d1a4acf8b2e3756910ea
2023-10-03 08:31:35 +00:00
R0rt1z2
d549dba0e3 compat: Add GNSS interface type shim
Change-Id: I2c1afc2be03871efb391a65ae775f2f4632a5731
2023-09-25 16:58:58 +00:00
Sebastiano Barezzi
aea5a5fba5 compat: Add libsensor -> libsensorndkbridge wrapper
Change-Id: I62c27463af385dc791dde64731a39e9ebadfd587
2023-09-25 16:58:58 +00:00
me-cafebabe
ac25b3eb52 compat: libc: Convert to Android.bp
While we're at it:
* Rename to libc_*_shim
* Move the source files to /libc/

Change-Id: I7eb08ae8ab7ff5349814d4475ab08fcfc95e8854
2023-09-25 16:58:50 +00:00
Alessandro Astone
bfad08e532 compat: Add libcomparetf2 shim
Provide __lttf2 to various blobs

Change-Id: Idb8309fcdc969e9954f0b8b4ca7a39ab261e64de
2023-09-18 15:33:36 +00:00
Sebastiano Barezzi
07607db7a4
libui: Move to system_ext
* No functional changes, but system should only contain AOSP files

Change-Id: I99392905acabcdc294b5b4fd9cd867b9bdcf156d
2023-07-19 21:35:26 +02:00
R0rt1z2
118bd4294f
compat: Add libutils shim
* This is required because some old libraries still rely on the
  strncpy16() function.

Change-Id: I77da329d1296d946f43ffe6708444b1d25607342
2023-07-19 21:32:21 +02:00
R0rt1z2
895a614971 compat: Provide shim with IPermissionController stubs
* All the IPermissionController related functions are guarded by
  `if !defined(__ANDROID_VNDK__)` [1], meaning they're not fully
  accessible to vendors.

* Since we know these are mainly used to check whether an app or
  process has a required permission, simply provide an stub that
  returns true no matter what the permission / caller are.

- [1]: https://github.com/LineageOS/android_frameworks_native/blob/lineage-20.0/libs/binder/IServiceManager.cpp#L170

Change-Id: I898bf8eb577faecb8bc0f007498b835816dddb93
2023-07-18 18:10:41 +00:00
Sebastiano Barezzi
5c54e69ef0
compat: Add libtinyxml2 shim
Change-Id: I2bc7963086f7f5df453e135819ed8b28c4d6a0d5
2023-07-18 12:10:42 +02:00
R0rt1z2
844cbbb2d3
compat: Add some HIDL interfaces types shims
* toString is a static function, do some magic to export it to the
  vtable

Change-Id: Iae53ef6e9c02c526218ae8b8de981130473b9f67
2023-07-17 21:53:55 +02:00
R0rt1z2
efa7303881
libui: Add android::GraphicBufferMapper::lock shims
Change-Id: I9f4da2bb1260d53ec4bb6604a89e78c495ad539a
2023-07-17 20:51:56 +02:00
Sebastiano Barezzi
2318cd6f47
libui: Fix android::GraphicBuffer::lock return value
Change-Id: I2c439c74d594959f1612c672ac685388a5386d4d
2023-07-17 20:51:56 +02:00
LuK1337
e386376f9c
compat: Add libcamera_metadata shim for stripping out system camera cap
Change-Id: I8f7772fc9ec15a00c4b630866aa7fc162a52c1aa
2022-11-25 22:27:26 +02:00
Nolen Johnson
e4fbaa32d3 compat: Provide a libip_checksum shim
* * In Android T, AOSP moved `libnetutils` to an APEX that is inaccessible
  to the vendor namespace - and it can't be built to vendor in any
  treble-compliant way.

* Our `wfc-pkt-router` blob lives on vendor, and relies on `libnetutils.so`.

* Upon further analysis, we only reply on a few checksum related functions,
  such as the symbol `ipv4_pseudo_header_checksum`, which lives in the (now)
  staticly included dependency of `libnetutils.so`, `libip_checksum`.

* To work around this, we enabled building `libip_checksum` as a stand-alone
  vendor_available library called `libip_checksum_shim.so`, and `patchelf`
  `wfc-pkt-router` to depend on `libipp_checksum_shim.so`.

Change-Id: I7dff9ec6c8ff146f6090e9519ece7844b4a057eb
2022-11-10 15:19:21 -05:00
Nolen Johnson
f25f2ec083 compat: libcutils_shim: Make it vendor_available
Change-Id: I9796ab3db63988837e843105ebec93cc27a6c194
2022-11-03 00:13:35 -04:00
Michael Bestas
ce8f7cfed4
libgui: Add SurfaceComposerClient shim
Change-Id: Ie0ce6a17cebd079584a3121524eb79bf64a88df3
2022-11-02 04:25:13 +02:00
Nolen Johnson
fd79adbaeb compat: libui_shim: Allow building 32-bit versions
* msm8998 camera stacks need this.

Change-Id: I87b69209bf73120e11d7d5c3b686d3b0a989abb9
2022-11-02 01:01:32 +01:00
Nolen Johnson
eb2e7226b8 compat: libui_shim: Make vendor available
* msm8998 camera stacks need this.

Change-Id: I5046eab287e3f14f024cd88293dfe4c5279f6667
2022-11-02 02:01:26 +02:00
daniml3
b6e1983240
compat: Add GetPreviewImageData shim for camera
Signed-off-by: daniml3 <daniel@danielml.dev>
Change-Id: Iad9d37b992775b6d7b9b52ed4637c70fd13ede7f
2022-11-01 15:23:42 +05:30
Ethan Chen
f0f1e67f41 compat: Add shim for Fence destructor
* This was replaced with a default destructor which has no visible
  linkage. No-op the destructor call and hope the actual destructor is
  called from underneath.

Change-Id: Id039e916c24959e9f60391bc10886df878f4d265
2022-10-27 17:21:16 +01:00
Ethan Chen
e2f889da0b compat: Add shim for libbase LogMessage functions
Change-Id: I4d1db75e5407586c9b69d94803af0ef9a9a91037
2022-10-19 11:40:51 +02:00
LuK1337
edf122ea20 Add missing commas to Android.bp
Change-Id: I5ebb4758e4609fcb971a3d507829f0bc91db8dcd
2022-09-21 18:19:26 +02:00
Nolen Johnson
12973d5ad4 Provide a shim for libui
Co-authored-by: Erfan Abdi <erfangplus@gmail.com>
Co-authored-by: Quallenauge <Hamsi2k@freenet.de>
Change-Id: I27d511340f0f2497bbeb2b046c18b66606610040
2022-09-21 16:42:55 +01:00
Jan Altensen
20c7906710 Provide shim for android_memset32
* memset32.S and android_memset.S taken from Q where this still existed.

Change-Id: Iaf59389e32b87d181f6dccc34e9174da25171f4f
2022-09-21 16:26:12 +01:00
dianlujitao
004fc53230 Provide shim for libcutils strdup8to16/strdup16to8
Co-authored-by: Demon000 <demonsingur@gmail.com>
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: Ic5d732f3e98ba45c886db9646d6ef30eb0d42bf4
2022-09-21 16:25:02 +01:00
Erfan Abdi
aae0cea26d Provide libgui{,_vendor} shim for 4.4/4.9-era camera blobs
Signed-off-by: Jarl-Penguin <jarlpenguin@outlook.com>
Change-Id: I5e622e68422f5c4da13c0752a7eb3f4b20ddae49
2022-09-21 12:08:45 +01:00
Sebastiano Barezzi
572788148f
Add android.hidl.{base|manager}@1.0 shim
Some qcom blobs still depend on it.

Change-Id: I5457ebbadd95e4c43af4f4dd2e1a1413a241d865
2022-09-15 20:45:53 +03:00
Michael Bestas
65e78e1596
Add aidl shim libraries for S compatibility
T changed *ndk_platform.so to *ndk.so.
Add shim libraries to make old blobs work again.

Change-Id: I77074f1fadbd44a63b6b9e9822632064d164ef94
2022-09-15 20:45:15 +03:00
Michael Bestas
793b874c4d
Add libavservices_minijail_vendor shim
This has been removed in frameworks/av commit
a03603523a5ec96c75153d39a2369c306f88fa70
but older vendor omx blobs still depend on it.

Change-Id: I49f7756a1fd3c76f650a1ae5c22053553c8cfd9d
2022-09-13 03:58:05 +03:00