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

Commit

Permalink
AP1A.240305.019.A1
Browse files Browse the repository at this point in the history
  • Loading branch information
s1204IT committed Oct 17, 2024
1 parent d641b90 commit 6a6348c
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_2403_A1 0x80f064

#define SEL_READ_ENFORCE_2311 0x818714
#define SEL_READ_ENFORCE_2403_A1 0x820c34

#define INIT_CRED_2311 0x271bfa8
#define INIT_CRED_2403_A1 0x277c328

#define COMMIT_CREDS_2311 0x167b40
#define COMMIT_CREDS_2403_A1 0x16fe48

#define ADD_COMMIT_2311 0x912d0108 //add x8, x8, #0xb40
#define ADD_INIT_2403_A1 0x910ca000 //add x0, x0, #0x328

#define ADD_INIT_2311 0x913ea000 //add x0, x0, #0xfa8
#define ADD_COMMIT_2403_A1 0x91392108 //add x8, x8, #0xe48

#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_2403_A1;

static uint64_t avc_deny = AVC_DENY_2311;
static uint64_t avc_deny = AVC_DENY_2403_A1;

/*
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_2403_A1, COMMIT_CREDS_2403_A1, SEL_READ_ENFORCE_2403_A1, ADD_INIT_2403_A1, ADD_COMMIT_2403_A1, &(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 6a6348c

Please sign in to comment.