Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
UQ1A.240205.004
Browse files Browse the repository at this point in the history
  • Loading branch information
s1204IT committed Jun 20, 2024
1 parent d641b90 commit b9d7123
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions firmware_offsets.h
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#ifndef FIRMWARE_OFFSETS_H
#define FIRMWARE_OFFSETS_H

#define AVC_DENY_2311 0x806b50
#define AVC_DENY_2402 0x80a320

#define SEL_READ_ENFORCE_2311 0x818714
#define SEL_READ_ENFORCE_2402 0x81bee4

#define INIT_CRED_2311 0x271bfa8
#define INIT_CRED_2402 0x272bfe8

#define COMMIT_CREDS_2311 0x167b40
#define COMMIT_CREDS_2402 0x16af5c

#define ADD_COMMIT_2311 0x912d0108 //add x8, x8, #0xb40
#define ADD_COMMIT_2402 0x913d7108 //add x8, x8, #0xf5c

#define ADD_INIT_2311 0x913ea000 //add x0, x0, #0xfa8
#define ADD_INIT_2402 0x913fa000 //add x0, x0, #0xfe8

#endif
Binary file modified libGLES_mali.so
Binary file not shown.
6 changes: 3 additions & 3 deletions mali_jit_csf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_2402;

static uint64_t avc_deny = AVC_DENY_2311;
static uint64_t avc_deny = AVC_DENY_2402;

/*
Overwriting SELinux to permissive
Expand Down Expand Up @@ -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_2402, COMMIT_CREDS_2402, SEL_READ_ENFORCE_2402, ADD_INIT_2402, ADD_COMMIT_2402, &(root_code[0]));
cl_platform_id platform_id = NULL;
cl_device_id device_id = NULL;
cl_uint ret_num_devices;
Expand Down

0 comments on commit b9d7123

Please sign in to comment.