Commit Graph

15 Commits

Author SHA1 Message Date
Matsvei Niaverau
e9cf96da92 rosemary: Update blobs from V14.0.7.0.TKLMIXM
This reverts commit c478a2e and cb797b3.

Change-Id: I8a2372df789877f45a94dfaf76fecae717e860ab
2024-02-19 12:01:04 +01:00
R0rt1z2
79e98e94d5 rosemary: libshim_sink: Port to U
* Since commit eb57617 [1], the legacy callback interfaces in the Android
  AudioTrack system have been deprecated and replaced by a newer callback
  interface. Consequently, the user parameter, which was previously part
  of the constructor, has been incorporated into this new interface.

* To address the resulting build issues, update the function signatures
  to match the new methods. Although AOSP provides a wrapper [2] for this
  purpose, it's declared within an anonymous namespace, effectively making
  it private to its own translation unit. To work around this limitation,
  provide a local copy of the wrapper instead.

* Also format the shim with `clang-format`.

- [1]: eb57617e55
- [2]: https://cs.android.com/android/platform/superproject/main/+/main:frameworks/av/media/libaudioclient/AudioTrack.cpp;l=289;bpv=1

Change-Id: Ieae7df3f5f003538a0319cc77051322a989b93a8
2024-02-19 11:43:29 +01:00
bengris32
a3b88a8eda rosemary: Add shim for proprietary AudioTrack constructor
Change-Id: Icc7a1f9c748578f5b58499e7a76213673c4bcf54
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-02-19 11:42:22 +01:00
bengris32
481eb83edf rosemary: Shim missing libshowlogo symbol
* ui::Size was changed going from VNDK32 to VNDK33 [1] and
  ui::Size::INVALID constant was removed. However, all we need
  to do is set INVALID to a Size with a width/height of -1.

[1]: 6d043c5c5c

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I4a224c6c3f622152a8bdc9f70bca18263af068cd
2024-02-19 11:42:22 +01:00
Matsvei Niaverau
47baf4a55b rosemary: Checkout packages from V13.0.6.0
* Drop unneeded shims

* Spoofing roles is not needed anymore, so drop USB HAL

Change-Id: I4af4ace2db11e2388d5c14157f72f30ec5c5e625
2024-02-19 11:41:55 +01:00
R0rt1z2
6aaa0b584a rosemary: libshims: Initialize the entire attribution source
* As per b/182392769, AttributionSourceState's need their own
  unique token for their source.

* Also set the tag to a null optional value while we're on it.

Change-Id: Ie2588423fd5f8dbac3c71275a697f4cdef7799ff
2023-04-25 17:59:38 +02:00
bengris32
611afa5808 rosemary: Shim missing libutils symbol for Camera HAL
* cannot locate symbol "_ZN7android7String87toUpperEv" referenced by "/vendor/lib64/libcam.halsensor.so"....

[1] 9434f59c17

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I7ac4e2362a9cca76009785d994d2aa6d103182f1
2023-04-23 19:15:57 +02:00
bengris32
e076f5fcfe rosemary: Update kpoc_charger shim for T
[1] 79dc06a39f
[2] 6d043c5c5c

Signed-off-by: bengris32 <bengris32@protonmail.ch>
2023-04-15 14:36:56 +02:00
bengris32
2e85cebfc9 rosemary: libshim_vtservice: Call AudioTrack constructor directly
* Also compile shim only for 32bit since the constructors symbol changes
  between 32bit and 64bit and our IMS stack is 32bit only anyway.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
2022-11-12 10:48:38 +03:00
R0rt1z2
c66158fbdd rosemary: Shim another missing libsink symbol
[1] LineageOS/android_frameworks_native@992496b
2022-11-12 10:48:38 +03:00
Arian
577563da43 rosemary: Provide a shim for libsink
added opPackageName as a parameter to the constructor
  of AudioTrack which breaks our libsink which was compiled
  for an older libaudioclient.

* fixes the following error:
CANNOT LINK EXECUTABLE "/system/bin/vtservice": cannot locate symbol "_ZN7android10AudioTrackC1E19audio_stream_type_tj14audio_format_tjj20audio_output_flags_tPFviPvS4_ES4_i15audio_session_tNS0_13transfer_typeEPK20audio_offload_info_tjiPK18audio_attributes_tbfi" referenced by "/system/lib/libsink.so"

https: //github.com/LineageOS/android_frameworks_av/commit/fd90fdfe2a611ae824a32e236da288b1fdfd445d
Change-Id: I290e1beca02d46c4393d17356fa22741d771f847
2022-11-12 10:48:38 +03:00
R0rt1z2
84b9836f32 rosemary: Shim another missing showlogo symbol 2022-11-12 10:48:38 +03:00
Joel Stein
cb797b3eb4 rosemary: Shim missing libshowlogo symbols
Change-Id: I72dbe1012455a410ad01ceeb0cb9db53ac8f69f5
2022-11-12 10:48:38 +03:00
nift4
bfc3b1b0d1 rosemary: Shim beanpod keymaster
Change-Id: Iac8ab200f0d844c56a820be9553afcbaee880e4b
2022-11-12 10:44:26 +03:00
bengris32
66c85245e3 rosemary: Shim misssing audio symbol
* E vndksupport: Could not load /vendor/lib/hw/audio.primary.mt6785.so from default namespace: dlopen failed: cannot locate symbol "_ZN7android13TypeConverterINS_13DefaultTraitsI14audio_format_tEEE6mTableE" referenced by "/vendor/lib/hw/audio.primary.mt6785.so"....

* The required conversion mTable [1] was removed in VNDK31, add it back.

[1] dc6be0d575

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I9b90be74c40ec52624f84be24917b3392081a3bb
2022-11-12 10:44:26 +03:00