Commit Graph
55 Commits
Author SHA1 Message Date
duckyduckg fc47733b7e sdm845-common: Patch codec2 for legacy 128x32 alignment
Note: values were taken from stock msmnile codec2 using ghidra.

on kona platforms or newer or older, if IsCameraCustomFormat fails c2 enforces 512x512 alignment.
after this patch with IsCameraCustomFormat disabled on legacy CamX,
incoming buffers retain standard Venus 128x32 alignment.

1. qc2::QC2Buffer::Graphic::GetAlignedHeight
   - File_Offset: 0x138D2
   - Assembly:
     0x138D2: 00 F2 FF 11 -> 00 F2 1F 01  ; addw r1, r0, #0x1f
     0x138D6: 40 F2 FF 12 -> 40 F2 1F 02  ; movw r2, #0x1f
   - ALIGN(h, 512) -> ALIGN(h, 32)

2. qc2::QC2Buffer::Graphic::GetAlignedWidth
   - File_Offset: 0x1397C
   - Assembly:
     0x1397C: 00 F2 FF 11 -> 00 F2 7F 01  ; addw r1, r0, #0x7f
     0x13980: 40 F2 FF 12 -> 40 F2 7F 02  ; movw r2, #0x7f
   - ALIGN(w, 512) -> ALIGN(w, 128)

Change-Id: I154b556cbefdbbd47a6c315d38fb468aed39f1b7
Signed-off-by: duckyduckg <duckyduckg65@gmail.com>
2026-10-23 18:47:57 +00:00
Edwin Moquete 285d3dc4e6 sdm845-common: Update C2 blobs from FP4.QREL.15.20.0.20260821145807
Change-Id: I5ae3c31baa0fb9eb17d0dae75ce5bd37859cbeb4
2026-10-23 18:47:51 +00:00
LuK1337 dda6ed4095 sdm845-common: Update WFD vendor blobs from FP4.QREL.15.20.0.20260821145807
Change-Id: I6f8c4da7384e85ab4a65b7d084bda18381a16b05
2026-10-23 18:43:34 +00:00
Michael Bestas 514c2a108c sdm845-common: Update WFD system blobs from marvel_g A171WEH.20
Change-Id: I733c2bf342175474ce7f02d467a17ded6f0a8760
2026-10-23 18:37:17 +00:00
Raya Mahardika e003903536 sdm845-common: Drop Audiosphere 2026-10-23 18:34:58 +00:00
Raya Mahardika ba7f6711b6 sdm845-common: Fix PLT stub target alignment in libC2D2 bridge
Change-Id: I4c9650aeeb4244468e110164d22e967ef5576e02
2026-10-05 11:14:30 +00:00
Raya Mahardika b81d342bb1 sdm845-common: Fix 32-bit gsl_memory_alloc_pure ABI bridge in libC2D2
- Instead of intercepting gsl_memory_alloc_pure in libgsl.so (which corrupted
  the stack frame and crashed 5-argument callers like libGLESv2_adreno in
  android.hardware.camera.provider-service_32), bridge the legacy 3-argument
  calling convention directly inside libC2D2.so.
- Restore standard Pong calling convention in 32-bit libgsl.so while keeping
  the defensive null check on error return.

Change-Id: I494c15e9f7cca5bcb8a0d786e0034b8fed5dfd9e
2026-10-05 01:15:54 +00:00
Raya Mahardika baca65a148 sdm845-common: Fix gsl_memory_alloc_pure ABI mismatch in 32-bit libgsl
- When graphics blobs were updated from pong, gsl_memory_alloc_pure changed
  its calling convention to 64-bit size, causing 32-bit legacy blobs like libC2D2
  to pass mismatched arguments (flags corrupted to memdesc pointer, memdesc null).
- This caused kgsl_sharedmem_alloc to fail and crash vendor.qti.media.c2@1.0-service
  on null pointer dereference during video encoding (e.g. scrcpy, video recording).
- Add trampoline to correctly bridge 32-bit gsl_memory_alloc_pure calls to
  gsl_memory_alloc_pure_64 and add null check on error path in libgsl.

Change-Id: Ic6b835fbf2ffd876789e9b332bc26634e303c0f4
2026-10-05 00:33:47 +00:00
Raya Mahardika 222fd447bf sdm845-common: Update blobs graphics from pong
Change-Id: I5299ef9b2512fc99abbb2e956be71eef249bcad6
2026-09-28 10:49:58 +00:00
Raya Mahardika 46489f7676 sdm845-common: Let build libspkprot from source
Change-Id: Ic44bd63322c04840c4602bb7c82f3e2c834e333d
2026-09-20 10:55:05 +00:00
Raya Mahardika 96c51d5d97 sdm845-common: Update namespace_imports to sdm845-4.19
Change-Id: I747f87722207db7bb80f010edcdf9a8be6c33e8a
2026-09-20 10:54:50 +00:00
Raya Mahardika 72924e9daa sdm845-common: Regenerate vendor
Change-Id: Ib33615496e721f22c5e6b62750120374a963b88f
2026-09-20 10:54:43 +00:00
basamaryan 93f84225de sdm845-common: Patch audio to load libaudioroute-v34.so
Change-Id: Idad20512982b8753820fffa6d956df137e462638
2026-04-04 10:17:34 +05:00
MrArtemSid c0803ef3b0 sdm845-common: Update Adreno firmware from OnePlus 6 Android 11
tag: OnePlus/OnePlus6/OnePlus6:11/RKQ1.201217.002/2109171635:user/release-keys
Change-Id: I1720bde6ee5a32aa0bae1322e9460c7932b94121
2026-04-04 10:17:34 +05:00
dianlujitao ea2a47f4b1 sdm845-common: Remove OMX
* OMX HW video codecs are no longer used after enabling Codec2
 * OMX HW audio codecs won't work without QCOM A/V enhancements, which
   we don't have on Lineage.

Change-Id: I65852151c8fb6387add5fc4402ba3f13c97b5f64
2026-04-04 10:17:34 +05:00
Edwin Moquete 287d185179 sdm845-common: Kang QTI C2 stack from guacamole
Change-Id: Ief898517746710f85a5edae70c96fcbcb7d04e86
2026-04-04 10:17:34 +05:00
LuK1337 99dc469121 sdm845-common: Shim WFD with libinput_shim
Change-Id: I5c64d4fb6608cf6134ee7647802d9befc26fc8fb
2026-04-04 10:17:34 +05:00
basamaryan b5e62064d2 sdm845-common: Update WFD vendor blobs from sweet_k6a OS1.0.19.0.THGMIX
Change-Id: I6f8c4da7384e85ab4a65b7d084bda18381a16b05
2026-04-04 10:17:33 +05:00
basamaryan 85bbd911c8 sdm845-common: Update WFD system blobs from dada OS2.0.217.0.WOCMIXM
Change-Id: I95dfb07cae97f3c8716a7cb6d87a7081de986748
2026-04-04 10:17:33 +05:00
duckyduckG c71226a742 sdm845-common: Use Widevine DRM from munch
Change-Id: I51b2e37aae3f1a5497c182707c5ec29f0aafb864
2026-04-04 10:17:33 +05:00
duckyduckG bcf1992f9b sdm845-common: Update Neural networks from munch
Change-Id: I979efec786340d193fc3e703e4a882069ae7a712
2026-04-04 10:17:33 +05:00
duckyduckG 4b7927a0aa sdm845-common: Commonize BT stack and dependencies
There's no harm doing this and eases kernel 4.19 bringup.

Change-Id: Ie88f469be3f83c887dc2f993cb964bfa51091512
2026-04-04 10:17:33 +05:00
PainKiller3 dcfb560be8 sdm845-common: Update CNE, DPM, IMS, QMI and RIL blobs from munch
Change-Id: I12f1f5d2c626c046390031bbcf53fb99abb2a7fc
2026-04-04 10:17:32 +05:00
PainKiller3andEdwin Moquete 17957886fb sdm845-common: Kang display blobs from munch
Co-authored-by: Edwin Moquete <edwinmmoquete@gmail.com>
Change-Id: I98a9ffd3aefcbf49cf0a02fee4005d137e3e6163
2026-04-04 10:17:31 +05:00
Bruno Martins 22fd9f2994 sdm845-common: Use sm8250 HALs for vendor namespace imports
Change-Id: I15cee4a9a80c2ba564315e0bf2e22b62f966e973
2026-04-04 10:17:07 +05:00
duckyduckG b971b2ccd4 sdm845-common: Commonize BT stack and dependencies
There's no harm doing this and eases kernel 4.19 bringup.

Change-Id: Ie88f469be3f83c887dc2f993cb964bfa51091512
2026-02-07 10:54:39 +00:00
LuK1337 152a9ab88f sdm845-common: Add libwfdservice_shim for WFD
e69a5be2449122f90220151f9d01ace15221facf in system/hardware/interfaces
broke the ABI ;'(

Change-Id: I3badfc56581a6bf3de5d7e996fa51f59eb164aae
2025-04-13 19:11:24 +01:00
Michael Bestas ceb9cb58ef sdm845-common: Patch libwfdservice to resolve duplicate dependencies
Fixes:
error: module "libwfdservice" variant
"android_arm_armv8-a_cortex-a76_static": depends on multiple
versions of the same aidl_interface:
android.media.audio.common.types-V2-cpp-source,
android.media.audio.common.types-V4-cpp-source

Change-Id: I8086a80fcc238d6b03d16640ee2c4e134129bbab
2025-04-13 17:54:24 +01:00
Bruno Martins 55f000c70e sdm845-common: Regen vendor after enabling ELF checks
Change-Id: I5502bb5bcf03f5311ecda9bc6c82f8070216923f
2025-04-13 17:54:20 +01:00
Bruno Martins 7953e137dd sdm845-common: Remove a bunch of unused blobs
Change-Id: I0f85d818595e9d15626e05fa1178670954625738
2025-04-04 21:43:31 +01:00
Bruno Martins f968ed0465 sdm845-common: Downgrade WFD system stack
Blobs taken from: OnePlus/OnePlus9Pro_EEA/OnePlus9Pro:14/UKQ1.230924.001/R.1b54031-8e6e-42a35:user/release-keys

Change-Id: I9f0d1d5c40674494aab7fa7b2d815e333f6eebaf
2025-04-04 21:40:42 +01:00
LuK1337 c12f332eba sdm845-common: Move WfdCommon boot jar declaration to vendor
Change-Id: I5f35c89027b0728d9e04ab5f93f80bd26e792e86
2025-01-27 23:36:01 +00:00
Bruno Martins ba9288ff67 sdm845-common: Regen using python extract-utils
Change-Id: Ic56941ae5f313ca1fe1e15c1191300c66a42c6fb
2025-01-27 23:35:55 +00:00
Michael Bestas b914381b3d sdm845-common: Remove OMX audio codecs
* OMX HW audio codecs won't work without QCOM A/V enhancements, which
   we don't have on Lineage.

Change-Id: I1bddff8a4f62d95e2b356ca04616d63341fd33d1
2025-01-27 23:01:27 +00:00
Bruno Martins c5d232a58b sdm845-common: Update WFD system stack from OOS 15.0.0.201(EX01)
From: OnePlus 11 (CPH2447_15.0.0.201(EX01)
Change-Id: I5f063c3e35d3bcec91b2b3a33327100340a232c6
2025-01-27 23:01:18 +00:00
LuK1337 596410dd23 sdm845-common: Shim WFD with libgui_shim/libinput_shim
Change-Id: I254939cc424170083d04e46e7fb0fbf90de4b4c8
2024-11-24 17:35:13 +00:00
Michael Bestas 04b6682285 sdm845-common: Shim widevine with libcrypto_shim
The following change
https://github.com/google/boringssl/commit/e202e51cb0912f36dafbd2e67cf04d6ec82f3180
removed symbols that our libs require.

Change-Id: Ifd4bc8bc4f0179046dd2562430dab9ff2ff12c65
2024-11-24 17:35:13 +00:00
Bruno Martins ec160cad97 sdm845-common: Add WFD libs symlinks
Change-Id: I04b21c2117fd94d4e5ac964aca311b4eaa7ed122
2024-11-24 17:35:13 +00:00
Bruno Martins 8725f9b7ff sdm845-common: Remove software OMX blobs
Default to C2 codecs from swcodec apex.

Change-Id: Id005b453c2ce0b1697b175e7139699b1544d96b8
2024-09-28 10:27:26 +01:00
Bruno Martins edcdb590b0 sdm845-common: chmod 755 proprietary/*/bin/hw/*
Change-Id: If2aa0b7e85f1219ee615fb77423eac57a2da5bd5
2024-09-28 10:25:54 +01:00
Bruno Martins 28719ac233 sdm845-common: Add EGL libs symlinks
Change-Id: I6486b919002556b8b3deb7697d5e1ffcf0d30647
2024-07-06 17:47:11 +01:00
Bruno Martins 14525164de sdm845-common: Add IMS libs symlinks
Change-Id: I32558148ce637542b8663a8d8aedb4fcddfdd092
2024-06-23 21:44:46 +01:00
LuK1337 8a1d9ac03c sdm845-common: Update WFD system stack from OOS 14.0.0.81(EX01)
Change-Id: Idfc897121e6ce520379132440b8dfecee31beb23
2024-02-20 09:55:39 +00:00
Bruno Martins 9e0ba88f15 sdm845-common: Regen main blueprint
Change-Id: Ie74326570c66ac4bd093bce857b441ed0ab177ab
2024-02-20 09:55:39 +00:00
LuK1337 e837a91650 sdm845-common: Patch pm-service to load libutils-v33
Change-Id: If3ca5ed03594558fba25443977d0e70a4632ae47
2023-11-24 10:26:00 +00:00
Bruno Martins b263fe1a37 sdm845-common: Remove QtiTelephonyServicelibrary
Change-Id: Ica9d9c1fc8b7566aca1d7d772ea320c746ec7940
2023-11-20 21:26:24 +00:00
Bruno Martins 9c30316573 sdm845-common: Remove MIUI charging daemon
Change-Id: I9026a3ef1a78447e548800412fb3f31d6681248c
2023-11-14 11:52:06 +00:00
Georg Veichtlbauer 71cb379dea sdm845-common: Remove aptX(HD) encoder shared libs
Encoder shared libraries are no longer required as of Android 13 QPR2.

Change-Id: I893a9000070cb2582ada0af91547f5176e6fea84
2023-03-20 09:09:03 +00:00
Georg Veichtlbauer 3b8ace3fee sdm845-common: Fix PowerOffAlarm
* The APK is prepared to not run as system user
* Blobs grabbed from: lge/caymanslm/caymanslm:12/SKQ1.211103.001/2222823249237:user/release-keys

Change-Id: I3496232d468c671f7ef67b7bb6050978388d6ccf
2022-10-19 01:22:17 +01:00
Bruno Martins f20acc4524 sdm845-common: Re-patch lib-imsvideocodec
This lib was previously patched to dlopen a "not so proper" shim,
so let's fix it.

New command used during extraction:

  `patchelf --add-needed "libgui_shim.so" "system_ext/lib64/lib-imsvideocodec.so"`

Change-Id: Icc960261f7f1738fe8cb8d1f6685acd47e17c718
2022-09-21 16:18:11 +01:00