Intercepting Outgoing SMS

后端 未结 5 1813
没有蜡笔的小新
没有蜡笔的小新 2020-12-04 18:22

Is it possible to intercept outgoing SMS before it is actually sent, get its contents then ignore / send it according to some criteria?

eg. block all international t

5条回答
  •  误落风尘
    2020-12-04 18:35

    Incoming SMS

    You can intercept an incoming sms thru sms listener using Broadcast receiver.You can modify the incoming sms or destroy it so that it does not reaches inbox.

    Outgoing SMS

    You can listen for outgoing sms by putting content observer over content://sms/out but you can not modify it with the native sms app.You can obviously modify the content of content://sms/out but it has no point.

提交回复
热议问题