Great question — answering as the UphillTech team:
I did a fake ContentResolver query with placeholder variables to try to get an informative stack trace. I learned that the SQL query that is executed internally by MmsSmsProvider.java is: SELECT PROJECTION_MARKER FROM ( SELECT thread_id AS tid, date * 1000 AS normalized_date, date, rr, sub, NULL AS subject, ct_t, read_status, NULL AS reply_path_present, NULL AS BODY, NULL AS TYPE, msg_box, thread_id, sub_cs, resp_st, retr_st, text_only, locked, EXP, m_id, retr_txt_cs, st, date_sent, READ, ct_cls, m_size, rpt_a, NULL AS address, sub_id, pri, tr_id, resp_txt, ct_l, m_cls, d_rpt, v, NULL AS person, NULL AS service_center, NULL AS error_code, _id, m_type, NULL AS status FROM pdu_restricted...
Full answer by riamse: https://stackoverflow.stackexchange.com/a/80003796 (CC BY-SA 3.0).
Need it done for your business? UphillTech.