-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathByPassiOSPIN.mm
23 lines (13 loc) · 1.07 KB
/
ByPassiOSPIN.mm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#line 1 "/Users/meilingrui/Desktop/Projects/ByPassiOSPIN/ByPassiOSPIN/ByPassiOSPIN.xm"
#include <logos/logos.h>
#include <substrate.h>
@class MCPasscodeManager;
static BOOL (*_logos_orig$_ungrouped$MCPasscodeManager$isPasscodeSet)(MCPasscodeManager*, SEL); static BOOL _logos_method$_ungrouped$MCPasscodeManager$isPasscodeSet(MCPasscodeManager*, SEL);
#line 5 "/Users/meilingrui/Desktop/Projects/ByPassiOSPIN/ByPassiOSPIN/ByPassiOSPIN.xm"
static BOOL _logos_method$_ungrouped$MCPasscodeManager$isPasscodeSet(MCPasscodeManager* self, SEL _cmd) {
_logos_orig$_ungrouped$MCPasscodeManager$isPasscodeSet(self, _cmd);
return NO;
}
static __attribute__((constructor)) void _logosLocalInit() {
{Class _logos_class$_ungrouped$MCPasscodeManager = objc_getClass("MCPasscodeManager"); MSHookMessageEx(_logos_class$_ungrouped$MCPasscodeManager, @selector(isPasscodeSet), (IMP)&_logos_method$_ungrouped$MCPasscodeManager$isPasscodeSet, (IMP*)&_logos_orig$_ungrouped$MCPasscodeManager$isPasscodeSet);} }
#line 14 "/Users/meilingrui/Desktop/Projects/ByPassiOSPIN/ByPassiOSPIN/ByPassiOSPIN.xm"