This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>items</key> | |
| <array> | |
| <dict> | |
| <key>cell</key> | |
| <string>PSSegmentCell</string> | |
| <key>defaults</key> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef respring_h | |
| #define respring_h | |
| void respringBackboard(void); | |
| void respringFrontboard(void); | |
| #endif /* respring_h */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let sbs = dlopen("/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices", RTLD_LAZY) | |
| defer { | |
| dlclose(sbs) | |
| } | |
| let symbol1 = dlsym(sbs, "SBSSpringBoardServerPort") | |
| let SBSSpringBoardServerPort = unsafeBitCast(symbol1, to: (@convention(c) () -> mach_port_t).self) | |
| let symbol2 = dlsym(sbs, "SBGetScreenLockStatus") | |
| var lockStatus: ObjCBool = false |