Skip to content

Commit

Permalink
koekeishiya#725 some arm64 offsets and patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Nov 21, 2020
1 parent 1f2ea3b commit 4410fef
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/osax/arm64/payload.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,28 @@ uint64_t get_dppm_offset(NSOperatingSystemVersion os_version) {

uint64_t get_add_space_offset(NSOperatingSystemVersion os_version) {
if ((os_version.majorVersion == 11) || (os_version.majorVersion == 10 && os_version.minorVersion == 16)) {
return 0x0;
return 0x210000;
}
return 0;
}

uint64_t get_remove_space_offset(NSOperatingSystemVersion os_version) {
if ((os_version.majorVersion == 11) || (os_version.majorVersion == 10 && os_version.minorVersion == 16)) {
return 0x0;
return 0x2c0000;
}
return 0;
}

uint64_t get_move_space_offset(NSOperatingSystemVersion os_version) {
if ((os_version.majorVersion == 11) || (os_version.majorVersion == 10 && os_version.minorVersion == 16)) {
return 0x0;
return 0x2b0000;
}
return 0;
}

uint64_t get_set_front_window_offset(NSOperatingSystemVersion os_version) {
if ((os_version.majorVersion == 11) || (os_version.majorVersion == 10 && os_version.minorVersion == 16)) {
return 0x0;
return 0x4e458;
}
return 0;
}
Expand All @@ -56,28 +56,28 @@ uint64_t get_set_front_window_offset(NSOperatingSystemVersion os_version) {

const char *get_add_space_pattern(NSOperatingSystemVersion os_version) {
if ((os_version.majorVersion == 11) || (os_version.majorVersion == 10 && os_version.minorVersion == 16)) {
return NULL;
return "7F 23 03 D5 F6 57 BD A9 F4 4F 01 A9 FD 7B 02 A9 FD 83 00 91 F5 03 14 AA 94 A2 00 91 9D 9E 03 94 F3 03 00 AA B3 5E 00 94 B6 16 40 F9 C8 FE 7E D3 08 02 00 B5 C8 E2 7D 92 15 09 40 F9 E0 03 15 AA 3F 5F 00 94 A8 06 00 B1 46 02 00 54 89 02 40 F9 29 E1 7D 92 28 09 00 F9 28 0D 15 8B 13 11 00 F9";
}
return NULL;
}

const char *get_remove_space_pattern(NSOperatingSystemVersion os_version) {
if ((os_version.majorVersion == 11) || (os_version.majorVersion == 10 && os_version.minorVersion == 16)) {
return NULL;
return "7F 23 03 D5 FF 83 02 D1 FC 6F 04 A9 FA 67 05 A9 F8 5F 06 A9 F6 57 07 A9 F4 4F 08 A9 FD 7B 09 A9 FD 43 02 91 F5 03 03 AA F8 03 02 AA F3 03 01 AA F6 03 00 AA F4 03 01 AA 31 4D FD 97 FC 03 00 AA 08 FC 7E D3 A8 1E 00 B5 88 E3 7D 92 14 09 40 F9 9F 0A 00 F1 6B 0C 00 54 F5 4F 02 A9 A8 09 00 B0 1F 20 03 D5 08 81 46 F9 C8 02 08 8B 14 55 40 A9 28 0A 00 B0";
}
return NULL;
}

const char *get_move_space_pattern(NSOperatingSystemVersion os_version) {
if ((os_version.majorVersion == 11) || (os_version.majorVersion == 10 && os_version.minorVersion == 16)) {
return NULL;
return "7F 23 03 D5 E3 03 1E AA A2 5A 00 94 FE 03 03 AA FD 7B 06 A9 FD 83 01 91 F6 03 14 AA F4 03 02 AA FA 03 01 AA FB 03 00 AA 17 0A 00 F0 F7 22 34 91 E8 02 40 F9 18 68 68 F8 E0 03 18 AA E1 03 16 AA 9F 2B 00 94 A0 01 00 B4 F3 03 00 AA F5 03 01 AA 88 0A 00 D0 08 D1 3F 91 08 01 40 39 1F 05 00 71 01 01 00 54 E0 03 13 AA E1 03 1A AA";
}
return NULL;
}

const char *get_set_front_window_pattern(NSOperatingSystemVersion os_version) {
if ((os_version.majorVersion == 11) || (os_version.majorVersion == 10 && os_version.minorVersion == 16)) {
return NULL;
return "7F 23 03 D5 FF 83 02 D1 F8 5F 06 A9 F6 57 07 A9 F4 4F 08 A9 FD 7B 09 A9 FD 43 02 91 88 19 00 B0 08 85 43 F9 08 01 40 F9 A8 83 1C F8 E1 10 00 34 F3 03 01 AA F4 03 00 AA 15 FC 60 D3 FF BF 00 39 E1 BF 00 91 9D A7 00 94 80 19 00 B0 00 40 44 F9 21 00 80 52 0B BE 0A 94 40 0A 00 36 F6 BF 40 39 E8 83 06 32 E8 53 06 29 08 80 80 52 E8 73 00 79";
}
return NULL;
}

0 comments on commit 4410fef

Please sign in to comment.