forked from khanhduytran0/FrontBoardAppLauncher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.m
38 lines (32 loc) · 737 Bytes
/
main.m
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
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
#include <dlfcn.h>
@interface UIStatusBarServer : NSObject
@end
@implementation UIStatusBarServer(hook)
+ (void)runServer {
// FIXME: PreBoard doesn't call this
}
@end
@implementation UIApplication(hook)
- (BOOL)_supportedOnLockScreen {
return YES;
}
@end
@implementation UIViewController(hook)
- (BOOL)_canShowWhileLocked {
return YES;
}
@end
@implementation UIWindow(hook)
- (BOOL)_shouldCreateContextAsSecure {
return YES;
}
@end
void FBSystemShellInitialize(id block);
int main(int argc, char **argv) {
@autoreleasepool {
FBSystemShellInitialize(nil);
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}