abortBroadcast() not block message incomming android version less KITKAT

  • Replies:1
  • OpenNot stickiedAnswered
  • Forum posts: 1

Apr 5, 2016 11:26:30 AM via Website

I'm using abortBroadcast() to block incomming message, when my device not installed Message app from Play Store, abortBroadcast() run is true, but after my device installed, abortBroadcast() not block incomming message.

I try Manifest file:

<uses-feature android:name="android.hardware.telephony" />
    <uses-permission android:name="android.permission.SEND_SMS" />
    <uses-permission android:name="android.permission.WRITE_SMS" />
    <uses-permission android:name="android.permission.READ_SMS" />
    <uses-permission android:name="android.permission.RECEIVE_MMS" />
    <uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.RAISED_THREAD_PRIORITY"/>
<application
...
>
<receiver
            android:name=".blocksms.SmsReceiver"
            android:enabled="true"
            android:exported="true"
            android:permission="android.permission.BROADCAST_SMS">
            <intent-filter android:priority="1000">
                <action android:name="android.provider.Telephony.SMS_RECEIVED" />
                <action android:name="android.provider.Telephony.SMS_DELIVER" />
            </intent-filter>
        </receiver>

Help me, thank you every one!