Some text messages are missing and never show in the content://sms provider URI since the Samsung S7 came out. I have noticed this between multiple Samsung devices (S6 and/or S7) that are on the same carrier (in this case T-Mobile) but may not be limited to. These text messages are showing in the default stock messaging app, but I cannot find how to access them. Keep in mind that I receive 97% of text messages just fine through that content provider, but that last 3% eludes me.
Uri uri = Uri.parse("content://sms/");
String[] projection_sms = { "*" };
Cursor cursor = getContentResolver().query(uri, projection_sms, "", null, null);
I have also looked within the SIM card to see if the missing SMS may be there and found nothing:
Uri uri = Uri.parse("content://sms/icc");
I have gone through all MMS as well to find that they are not in there either.
<uses-permission android:name="android.permission.READ_SMS" />
I only want to read SMS in this case and according to the Android docs you would only need the above permission to read from the SMS/MMS db. I realize that in KitKat there was a change which allowed an app to replace the default stock app, but in this particular case I only want to read SMS.
So if those SMS are not in the correct places in the db and are not in the SIM card, then where on Earth (or should I say in Android) would they be?