This commit is contained in:
√(noham)²
2026-02-23 19:02:00 +01:00
parent b79c4e7602
commit a4907a5024
2 changed files with 15 additions and 13 deletions

View File

@@ -7,8 +7,9 @@
#define IDA_BASE 0x100000000
#define ADDR_IS_PREMIUM 0x10009CD24 // Address of "isPremiumActive" in IDA (adjust if needed)
static int (*orig_isPremiumActive)();
static int hook_isPremiumActive() {
static int (*orig_isPremiumActive)(void);
static int hook_isPremiumActive(void) {
return 1;
}
@@ -27,13 +28,13 @@ static int hook_isPremiumActive() {
// iOS 16 Crash Fix
%hook CKContainer
+ (id)defaultContainer {
return nil;
}
+ (id)containerWithIdentifier:(id)arg1 {
arg1 = nil;
+ (id)containerWithIdentifier:(id)__unused arg1 {
return nil;
return %orig;
}
%end

View File

@@ -7,8 +7,9 @@
#define IDA_BASE 0x100000000
#define ADDR_IS_PREMIUM 0x100454D70 // Address of "isPremiumActive" in IDA (adjust if needed)
static int (*orig_isPremiumActive)();
static int hook_isPremiumActive() {
static int (*orig_isPremiumActive)(void);
static int hook_isPremiumActive(void) {
return 1;
}