문제

I'm developing Cydia tweaks using Theos. I need to use some functions in the framework GraphicsServices.

I've tried some simple function using GSEvent. ex:

void GSEventVibrateForDuration(float secs);

void GSEventLockDevice();   

But it all doesn't work. The device doesn't vibrate or lock. I'm using iPhone 5, iOS 7.0.4. Then I found iOS 7 private frameworks on GitHub: https://github.com/EthanArbuckle/IOS-7-Headers/tree/master/PrivateFrameworks/GraphicsServices.framework

Inside GraphicsServices is empty. So I'm wondering where this framework is? Sorry for my bad English, thank you!

도움이 되었습니까?

해결책

Most of these headers in the internet are generated by class-dump, which only dumps Objective-C classes.

Purely C API's (like GSEventLockDevice) won't be dumped. You can use disassembler to look at them.

Some private API become protected by entitlements recently. This will produce exactly described behavior (do nothing when called).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top