mirror of
https://github.com/khanhduytran0/aintuitweaks.git
synced 2026-06-01 03:21:34 +02:00
Fix 19 stuff
This commit is contained in:
@@ -3,6 +3,30 @@
|
||||
#import <IOKit/IOKitLib.h>
|
||||
#import "SignedPDI.h"
|
||||
|
||||
typedef struct _img4_chip_instance {
|
||||
img4_struct_version_t chid_version;
|
||||
const img4_chip_t *chid_chip_family;
|
||||
img4_chip_instance_omit_t chid_omit;
|
||||
uint32_t chid_cepo;
|
||||
uint32_t chid_bord;
|
||||
uint32_t chid_chip;
|
||||
uint32_t chid_sdom;
|
||||
uint64_t chid_ecid;
|
||||
bool chid_cpro;
|
||||
bool chid_csec;
|
||||
bool chid_epro;
|
||||
bool chid_esec;
|
||||
bool chid_iuou;
|
||||
bool chid_rsch;
|
||||
bool chid_euou;
|
||||
uint32_t chid_esdm;
|
||||
bool chid_fpgt;
|
||||
img4_dgst_t chid_udid;
|
||||
uint32_t chid_fchp;
|
||||
uint32_t chid_type;
|
||||
uint32_t chid_styp;
|
||||
uint32_t chid_clas;
|
||||
} img4_chip_instance_t;
|
||||
struct _img4_nonce_domain {
|
||||
uint64_t cryptex1, index;
|
||||
};
|
||||
@@ -67,6 +91,18 @@ BOOL gCalledImg4Execute = NO;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
// Fix boardID = 9
|
||||
%hookf(errno_t
|
||||
img4_chip_instantiate, const img4_chip_t *chip, img4_chip_instance_t *chip_instance) {
|
||||
errno_t result = %orig;
|
||||
if(!result && chip_instance->chip_bord == 9) {
|
||||
chip_instance->chip_bord = 10;
|
||||
chip_instance->chip_chip = 0x8101;
|
||||
chip_instance->chip_ecid = 0;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
%end
|
||||
|
||||
%ctor {
|
||||
|
||||
@@ -6,7 +6,7 @@ include $(THEOS)/makefiles/common.mk
|
||||
|
||||
TWEAK_NAME = aintuitweaks
|
||||
|
||||
aintuitweaks_FILES = BypassMarketplace.x BypassMirroringUnlock.x FixDDI.x
|
||||
aintuitweaks_FILES = BypassMarketplace.x BypassMirroringUnlock.x FixDDI.x NineteenPatches.x
|
||||
aintuitweaks_CFLAGS = -fobjc-arc
|
||||
aintuitweaks_FRAMEWORKS = IOKit
|
||||
aintuitweaks_LIBRARIES = image4
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
#import <CydiaSubstrate/CydiaSubstrate.h>
|
||||
|
||||
%ctor {
|
||||
MSImageRef image = MSGetImageByName("/usr/lib/swift/libswiftCore.dylib");
|
||||
uint32_t *symbol = MSFindSymbol(image, "__ZNSt3__110__function6__funcIZL27_checkWitnessTableIsolationPKN5swift14TargetMetadataINS2_9InProcessEEEPKNS2_18TargetWitnessTableIS4_EEN7__swift9__runtime4llvm8ArrayRefIPKvEERNS2_27ConformanceExecutionContextEE3$_0NS_9allocatorISL_EEFSH_jjEED1Ev");
|
||||
uint32_t xpacd_x0 = 0xdac147e0;
|
||||
uint32_t ret = 0xd65f03c0;
|
||||
if (symbol && symbol[-1] == ret && symbol[0] == ret) {
|
||||
MSHookMemory(symbol-4, &xpacd_x0, sizeof(uint32_t));
|
||||
}
|
||||
}
|
||||
+4
-1
@@ -1,5 +1,8 @@
|
||||
{
|
||||
Filter = {
|
||||
Bundles = (
|
||||
"com.apple.UIKit",
|
||||
);
|
||||
Executables = (
|
||||
SpringBoard,
|
||||
appstorecomponentsd,
|
||||
@@ -8,4 +11,4 @@
|
||||
MobileStorageMounter,
|
||||
);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user