rakeshdas
rakeshdas

Reputation: 2543

Is there any way to block SMS programmatically in Android KitKat?

Is this completely and utterly impossible in android Kitkat since Google has made so many changes to the way messaging works? I have tried using broadcast receivers and abortBroadcast, but to no avail.

Upvotes: 0

Views: 1559

Answers (1)

Mike M.
Mike M.

Reputation: 39191

Is there any way to block SMS programmatically in Android KitKat?

No. Starting with KitKat, the SMS_RECEIVED broadcast cannot be aborted, so any app with the RECEIVE_SMS permission can still listen for it and retrieve the incoming message. If your app is the default app, it can choose not to write the message to the Provider, so it will not appear to any app querying the Provider for messages, but even the default app cannot abort the SMS_RECEIVED broadcast.

Upvotes: 3

Related Questions