Silent Sms detection android

Viewed 5175

I'm trying to figure out if there is a way to detect a silent sms through the android api. Also just for kicks, can you send one from a device?

4 Answers

The Android SDK supports Data SMS, as a subset of the general SMS received broadcast receiver capability:

<uses-permission android:name="android.permission.RECEIVE_SMS" ></uses-permission>

You would need to specify an intent filter and listen on a specified port that matches that of the silent SMS:

 <intent-filter android:priority="10" >
            <action android:name="android.intent.action.DATA_SMS_RECEIVED" />
            <data android:scheme="sms" />
            <data android:port="16001" />
        </intent-filter>

Reference: https://developer.android.com/reference/android/provider/Telephony.Sms.Intents#DATA_SMS_RECEIVED_ACTION

Related