Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 90033892 authored by Christopher N. Hesse's avatar Christopher N. Hesse Committed by Apavayan Sinha
Browse files

gralloc: Raise sNumInts field for M camera blobs

The new Marshmallow library (libexynoscamera.so) from a
Galaxy Note 5 (N920T) yields an increased value (again).

Disassembled gralloc handle validation pseudo code:

if (((r0 != 0x0) && (*r0 == 0xc)) && (*(r0 + 0x4) + *(r0 + 0x8) == 0x25)) {
    if (*(r3 + 0x18) == 0x3141592) {
        r0 = r3;
    }
    else {
        r0 = 0x6;
        r1 = "ExynosCameraMemoryAllocator";
        r2 = "invalid gralloc handle (at %p)";
        r0 = __android_log_print();
        r0 = 0x0;
    }
}

Change-Id: Icf3a771a3e3c40943f023e0e237066ae4c52ff3a
parent d752ff03
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment