Wednesday, November 25, 2009

Playing around with Cycript

The following hooks in to SpringBoard: if there is an incoming call, it will answer it.


#!/usr/bin/cycript -p SpringBoard
var tm = [SBTelephonyManager sharedTelephonyManager]
if(tm.incomingCallExists) {
[tm answerIncomingCall]
}


Eventually I'd like to set up a whitelist/blacklist app that uses speech synthesis (see http://code.google.com/p/iphone-tweaks/ for an example) to read out caller ID information.

In the very near term, I'd like to simply auto-answer calls from my Google voice number.