Question

I'm working on a mobile substrate tweak and trying to find out how to hook into the phone ringing method. I've been looking through this framework, but haven't found anything promising yet. Am I looking in the right place?

Était-ce utile?

La solution

Ringtone is played using SBUserAgent -(void)playRingtoneAtPath:(id) vibrationPattern:(id). There is also another method that may be worth hooking - SBSoundController -(BOOL)_playRingtone:(id). It doesn't get called when there is an incoming call but still. May be Apple will use it in the future iOS versions.

Tested only on iOS 7. I checked older iOS headers. playRingtoneAtPath is there since iOS 5, _playRingtone - since iOS 6.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top