Commit Graph

8 Commits (a08308a7f23c103971855814a14103b4e029d5d0)

Author SHA1 Message Date
Martin Böh a08308a7f2 add shim for _ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEb
Change-Id: I71ce6e5886a67c0e974b23aa08ca00489155e186
2022-08-11 11:58:26 +02:00
LuK1337 b19c2c815d sm8250-common: Unlock gc5035 camera
This change lets us use gc5035 camera, which was blocked by OnePlus long
time ago after people discovered its *magic* capabilities. By default
only `com.oem.autotest` can use it, however if we replace the first
character with a NULL byte, then strncmp returns 0, and thus we pass the
check and allow everyone to use it.

You can see the logs below that led me to discover that behavior.

[DEBUG  ] JIANJIA.cpp:89 PretendOpenCamera() logicalCameraId 4, m_ClientPackageName 0
[DEBUG  ] STELLA.cpp:1445 informKernel() force: -1 value: 6 buf: 5
[DEBUG  ] chxextensionmodule.cpp:1005 ExtendOpen() You shall not pass 0
[DEBUG  ] chxextensioninterface.cpp:298 chi_extend_open() [OP_EXT] OPEN_CAMERA X
[ERROR][HAL    ] camxhal3module.cpp:772 ProcessCameraOpen() Camera Open failed with error status = CamxResultEInvalidArg

Change-Id: I9b3e4e55f07cef40886e09941f7ed0523cdf8cfa
2022-03-05 01:33:00 +01:00
LuK1337 8435400947 sm8250-common: Extract from OnePlus8ProOxygen_15.E.42_OTA_0420_all_2202141437_25d2af5d
Change-Id: Ibc2199557e2545d19585c72e5c4cba49c1c79894
2022-02-27 12:10:47 +01:00
LuK1337 4810995afe sm8250-common: Update WFD system stack from lemonadep
Change-Id: I6b4b5460cf627c0ebf6aa7ff22ec029b6e658695
2022-02-21 22:23:48 +01:00
Sebastiano Barezzi 3c04c5fc4e sm8250-common: Pin modified vendor.qti.hardware.camera.postproc@1.0-service-impl.so
The modified library NOPs out the instruction to change binder
threadpool, allowing the library to load and camera to work on S.

Command used:
$ SigScan -p "1F 0A 00 94" -P "1F 20 03 D5" -f vendor.qti.hardware.camera.postproc@1.0-service-impl.so

Change-Id: I1ef0ed29e4a2eb820826e5d7df1fa53c9e3df584
2022-02-21 22:23:48 +01:00
LuK1337 2de668db41 sm8250-common: Switch to AOSP NfcNci
Change-Id: Iebe48d59bcb7baf2a725508bec13a1c672596fba
2022-02-21 22:23:48 +01:00
LuK1337 32052fb25c sm8250-common: Regenerate makefiles
Change-Id: I3a13e0eb6d1d923e2a15d64d4a38bb12400c66cb
2022-02-21 22:23:48 +01:00
LuK1337 367423aca0 Import sm8250-common and its users from lineage-18.1 (ab4145f)
Change-Id: I5ed31c1abe988113b0f47cbeb2d405e89720c64b
2022-02-21 22:23:47 +01:00