Skip to content

Commit

Permalink
Show windows while locked
Browse files Browse the repository at this point in the history
FIXME: currently apps will crash due to "Process detected doing insecure drawing while in secure mode". Need to figure out how SpringBoard keeps apps alive
  • Loading branch information
khanhduytran0 committed Sep 29, 2024
1 parent 278ed27 commit 1f2a60f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions main.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,24 @@ + (void)runServer {
}
@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) {
Expand Down

0 comments on commit 1f2a60f

Please sign in to comment.