-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTweak.x
More file actions
55 lines (38 loc) · 745 Bytes
/
Tweak.x
File metadata and controls
55 lines (38 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#import <PassKit/PassKit.h>
%hook PKPass
- (BOOL)isRevoked {
return NO;
}
- (id)initWithData:(NSData *)data error:(NSError **)error {
id result = %orig(data, nil);
return result;
}
- (BOOL)supportsSecureCoding {
return YES;
}
%end
%hook WDCardFileManager
- (void)_deletePossibleInvalidCardWithUniqueID:(id)uniqueID {
return;
}
- (id)validatePassURL:(id)url {
return @YES; //tomfoolery
}
- (id)manifestHashFromPassURL:(id)url {
return [NSData new]; // Return a dummy hash
}
%end
%hook WDNetworkTaskManager
- (void)invalidate {
// Do nothing lul
}
%end
%hook PKLocalPass
- (id)validatePassURL:(id)url {
id error = %orig(url);
if (error) {
return nil;
}
return error;
}
%end