[G4 Android Development] steadfasterX:
Follow up #1

I have flashed the zip without the venus files and everything is working as it should. No issues nowhere. Cell service, cam, sound, call, video all is working.

video FPS (avg): 53,71 (highest: 110,98fps)

Then I flashed the venus files as well and after the first boot I now have:

video FPS (avg): 60,44 (highest: 130,06fps)

so yea a clearly better FPS rate. and everything is still working as it should.

After a reboot ... it starts to behave different like you all . signal bars are all filled, WiFi is working. I can't call / get called and sound stopped working though. H+ so internet data is available. Sensors stopped working (thats why you can not switch to portrait/landscape). SMS coming through though (sometimes). System process is fighting due to all the errors it throws now and so sometimes FCs.

So at least my assumption is proven now that the venus files are the reason for that issue.

ok now I am at the same level as you and be able to dig deeper.

Follow up #2

adsp is not able to start anymore after that venus-patch:

[ 4.709536] ueventd: firmware: loading 'adsp.mdt' for '/devices/soc.0/fe200000.qcom,lpass/firmware/adsp.mdt'
[ 4.710748] ueventd: loading /devices/soc.0/fe200000.qcom,lpass/firmware/adsp.mdt took 1ms
[ 4.710842] subsys-pil-tz fe200000.qcom,lpass: adsp: loading from 0x0000000007400000 to 0x0000000008800000
[ 4.752893] subsys-pil-tz fe200000.qcom,lpass: adsp: Invalid firmware metadata
[ 4.753028] adsp-loader qcom,msm-adsp-loader.33: adsp_loader_do: pil get failed,
[ 4.753039] adsp-loader qcom,msm-adsp-loader.33: adsp_loader_do: Q6 image loading failed

adsp files are on /firmware (so modem partition) and some of them (adsp.mdt, adsp.mbn, adsp.b01) contains ARB fuses (that was known).

I hexedited adsp.mdt to have it ARB v0 (as my h815 and your h812 have 0) and pushed only the adsp.mdt and it still refuses to load.

Then I flashed an ARB v2 adsp.mdt and (not surprisingly) it is going further now. That means even when we have secure-boot off the signatures in /firmware are still checked and must be valid.

Now it stops on b04:

[ 0.173664] cma: Assigned CMA region at 0 to adsp_heap.67 device
[ 0.387479] ION heap adsp created at 0x00000000cd400000 with size 12c00000
[ 0.705572] subsys-pil-tz fe200000.qcom,lpass: [adsp]: Error getting proxy unvoting gpio
[ 4.684178] ueventd: firmware: loading 'adsp.mdt' for '/devices/soc.0/fe200000.qcom,lpass/firmware/adsp.mdt'
[ 4.685884] ueventd: loading /devices/soc.0/fe200000.qcom,lpass/firmware/adsp.mdt took 1ms
[ 4.686044] subsys-pil-tz fe200000.qcom,lpass: adsp: loading from 0x0000000007400000 to 0x0000000008800000
[ 4.740548] ueventd: firmware: loading 'adsp.b02' for '/devices/soc.0/fe200000.qcom,lpass/firmware/adsp.b02'
[ 4.742117] ueventd: loading /devices/soc.0/fe200000.qcom,lpass/firmware/adsp.b02 took 1ms
[ 4.742849] ueventd: firmware: loading 'adsp.b03' for '/devices/soc.0/fe200000.qcom,lpass/firmware/adsp.b03'
[ 4.744639] ueventd: loading /devices/soc.0/fe200000.qcom,lpass/firmware/adsp.b03 took 1ms
[ 4.745417] ueventd: firmware: loading 'adsp.b04' for '/devices/soc.0/fe200000.qcom,lpass/firmware/adsp.b04'
[ 4.775885] ueventd: loading /devices/soc.0/fe200000.qcom,lpass/firmware/adsp.b04 took 30ms
[ 4.775906] subsys-pil-tz fe200000.qcom,lpass: adsp: Blob size 7499776 doesn't match 7501497
[ 4.775963] adsp-loader qcom,msm-adsp-loader.33: adsp_loader_do: pil get failed,
[ 4.775974] adsp-loader qcom,msm-adsp-loader.33: adsp_loader_do: Q6 image loading failed

here 2 things are interesting:

adsp.b01 contains signature checking but it is never loaded (same on a working device)

adsp.b04 does not contain signature checking but the blob size gets checked

so I replaced adsp.b04 as I cannot figured out how to change that check size quickly (it must be in adsp.mdt) and as adsp.b04 does not contain any signatures and it goes further again:

[ 4.676429] ueventd: firmware: loading 'adsp.mdt' for '/devices/soc.0/fe200000.qcom,lpass/firmware/adsp.mdt'
[ 4.678243] ueventd: loading /devices/soc.0/fe200000.qcom,lpass/firmware/adsp.mdt took 1ms
[ 4.678438] subsys-pil-tz fe200000.qcom,lpass: adsp: loading from 0x0000000007400000 to 0x0000000008800000
[ 4.720663] ueventd: firmware: loading 'adsp.b02' for '/devices/soc.0/fe200000.qcom,lpass/firmware/adsp.b02'
[ 4.722227] ueventd: loading /devices/soc.0/fe200000.qcom,lpass/firmware/adsp.b02 took 1ms
[ 4.722955] ueventd: firmware: loading 'adsp.b03' for '/devices/soc.0/fe200000.qcom,lpass/firmware/adsp.b03'
[ 4.724685] ueventd: loading /devices/soc.0/fe200000.qcom,lpass/firmware/adsp.b03 took 1ms
[ 4.725337] ueventd: firmware: loading 'adsp.b04' for '/devices/soc.0/fe200000.qcom,lpass/firmware/adsp.b04'
[ 4.755915] ueventd: loading /devices/soc.0/fe200000.qcom,lpass/firmware/adsp.b04 took 30ms
[ 4.756476] ueventd: firmware: loading 'adsp.b06' for '/devices/soc.0/fe200000.qcom,lpass/firmware/adsp.b06'
[ 4.763901] ueventd: loading /devices/soc.0/fe200000.qcom,lpass/firmware/adsp.b06 took 7ms
[ 4.763924] subsys-pil-tz fe200000.qcom,lpass: adsp: Blob size 1253592 doesn't match 1256664
[ 4.763982] adsp-loader qcom,msm-adsp-loader.33: adsp_loader_do: pil get failed,
[ 4.763993] adsp-loader qcom,msm-adsp-loader.33: adsp_loader_do: Q6 image loading failed

so I went on, replaced adsp.b06 as well:

[ 4.839723] ueventd: firmware: loading 'adsp.b08' for '/devices/soc.0/fe200000.qcom,lpass/firmware/adsp.b08'
[ 4.840704] ueventd: firmware: sendfile failed { '/sys/devices/soc.0/fe200000.qcom,lpass/firmware/adsp.b08', 'adsp.b08' }: Invalid argument
[ 4.840938] subsys-pil-tz fe200000.qcom,lpass: adsp: Failed to locate blob adsp.b08 or blob is too big.

woa.. well going on .. it goes up to b15 so I decided to simply flash all others and now.. kernel crash (invalid ram console). sigh..

will let you know how it goes on.

.-