Intercept incoming flash messages on an Android mobile device

can someone help me intercept incoming Flash messages (especially those from the telecommunications company where they send our current balance after some activity, for example, a message has been sent).

My application deals with sending bulk SMS messages, and I do not want the flash message to appear now and then. So is this possible on Android?

EDIT: everyone says this is impossible above Android 1.6, but I found a similar application on Google Play, but I want a source of this type for the Application. Please, help.

Edit: more than a year has passed and still I had no solution. Can someone help solve this topic .. ??

+7
source share
2 answers

Perhaps this depends on the channel [connection] used by your service provider. I suppose that they do not use SMS, perhaps they use WAP / PUSH or some predefined provider application for notifications, which makes blocking more difficult. If this is SMS, you probably have many ways to block their notifications, but in this case, I doubt that there may be a simple / direct way to do this.

Airplane mode should ideally block telco / service-provider operator messages / notifications, but then it also blocks your communication, right? So I'm not sure about that. Is there a way to refuse service provider notifications, perhaps through the ussd routine? I heard about this once ...

+2
source

Flash sms is the same as regular sms, except for data encoding flags. It has a β€œclass 0” indication in DCS.

See below for details on SMS encoding: GSM specification 3.38 / 4 SMS data encoding scheme.

Some snippets from the description about this

When the mobile terminated message is class 0 and the MS has the ability to display short messages, the MS must immediately display the message and send an acknowledgment to the SC when the message has successfully reached the MS regardless of whether there is memory available on the SIM card or ME. The message will not be automatically saved in the SIM card or ME.

Thus, in most cases, the phone simply displays this message and skips the usual chain of actions. You probably can't catch this message using the regular API ... maybe you need a deep hook and root device.

[Or maybe just turn off this service by calling support?]

+2
source