From fb1252014956174deb0a63dbfbbf77bc066144ba Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 11 Apr 2024 18:43:48 +0200 Subject: [PATCH] fs: remove raw access patches --- source/ios_kernel/source/instant_patches.c | 5 ----- source/ios_kernel/source/ios_fs_patches.c | 5 ----- 2 files changed, 10 deletions(-) diff --git a/source/ios_kernel/source/instant_patches.c b/source/ios_kernel/source/instant_patches.c index 906befa..3781c91 100644 --- a/source/ios_kernel/source/instant_patches.c +++ b/source/ios_kernel/source/instant_patches.c @@ -62,11 +62,6 @@ void instant_patches_setup(void) { *(volatile u32 *) 0x0812CD2C = ARM_B(0x0812CD2C, kernel_syscall_0x81); - // Keep patches for backwards compatibility (libiosuhax) - // patch FSA raw access - *(volatile u32 *) fsa_phys(0x1070FAE8) = 0x05812070; - *(volatile u32 *) fsa_phys(0x1070FAEC) = 0xEAFFFFF9; - // Add IOCTL 0x28 to indicate the calling client should have full fs permissions *(volatile u32 *) fsa_phys(0x10701248) = _FSA_ioctl0x28_hook; diff --git a/source/ios_kernel/source/ios_fs_patches.c b/source/ios_kernel/source/ios_fs_patches.c index 8d80c8d..ce70947 100644 --- a/source/ios_kernel/source/ios_fs_patches.c +++ b/source/ios_kernel/source/ios_fs_patches.c @@ -49,11 +49,6 @@ void fs_run_patches(uint32_t ios_elf_start) { section_write_word(ios_elf_start, 0x107044f0, ARM_BL(0x107044f0, FSA_IOCTL_HOOK)); section_write_word(ios_elf_start, 0x10704458, ARM_BL(0x10704458, FSA_IOS_Close_Hook)); - // Keep patches for backwards compatibility (libiosuhax) - // patch FSA raw access - section_write_word(ios_elf_start, 0x1070FAE8, 0x05812070); - section_write_word(ios_elf_start, 0x1070FAEC, 0xEAFFFFF9); - // fat32 driver patches // patch out fopen in stat