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
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