1
나는 탈옥 아이폰에서 전화를 가로 채고 있던 프로그램을 사용하고 있었다. 나는 시스템 콜 이벤트를 차단하기 위해 dylib를 사용했지만 어떻게하면 메인 프로그램을 다시 호출하고이 이벤트를 처리 했습니까?"dylib"주 프로그램을 다시 호출하는 방법은 무엇입니까?
나는 탈옥 아이폰에서 전화를 가로 채고 있던 프로그램을 사용하고 있었다. 나는 시스템 콜 이벤트를 차단하기 위해 dylib를 사용했지만 어떻게하면 메인 프로그램을 다시 호출하고이 이벤트를 처리 했습니까?"dylib"주 프로그램을 다시 호출하는 방법은 무엇입니까?
CFNotificationCenter를 사용하여 dylib에서 응용 프로그램으로 Darwin 알림을 전송할 수 있습니다. 사용자 데이터를 전달할 수는 없지만 최소한 앱에 알릴 수는 있습니다. 그 이상에 관한 것 https://developer.apple.com/library/IOs/#documentation/CoreFoundation/Reference/CFNotificationCenterRef/Reference/reference.html
Example of registering and posting:
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(),NULL, &NotificationReceivedCallback,(CFStringRef)MyNotificationString, NULL, CFNotificationSuspensionBehaviorCoalesce);
CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter() , CFSTR(MyNotificationString), NULL, NULL, YES);