Is a monitor added to androidsource/frameworks/base/ enough to not miss
any SMS event?
I was wondering how to monitor all SMS events on a device/emulator. So far
I thought it might be sufficient to have some extra code added to
frameworks/base/telephony/java/android/telephony/SmsManager.java . (
http://developer.android.com/reference/android/telephony/SmsManager.html )
One could change the code in this class in the following way:
import android.util.Log;
// …
public void sendTextMessage(
String destinationAddress, String scAddress, String text,
PendingIntent sentIntent, PendingIntent deliveryIntent) {
Log.i("MyMonitor", "SMS is about to get sent");
// …
}
The same could be done for the other two functions sendDataMessage() and
sendMultipartTextMessage()
However it seems to me that this would be too easy to circumvent in one
way or another but as I don't have a lot of experience with the Android
internal structure I am not sure.
Any comments ?
Thanks
No comments:
Post a Comment