Mark text message read & dismiss relevant notification

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
beelze
Posts: 46
Joined: 04 Nov 2018 16:45

Mark text message read & dismiss relevant notification

Post by beelze » 25 Nov 2018 15:39

My operator spamming me with a lot a «service» messages which I can't unsubscribe. Same for Emergency service. It's easy to create trigger and catch those messages, but I failed to find a way to mark SMS message as read (and dismiss relevant notification too).

User avatar
beelze
Posts: 46
Joined: 04 Nov 2018 16:45

Re: Mark text message read & dismiss relevant notification

Post by beelze » 25 Nov 2018 16:23

I was able to mark a message as read using sqlite3 command:

Code: Select all

sqlite3 /data/user_de/0/com.android.providers.telephony/databases/mmssms
update sms set read=1 where _id==$ID;
but _id is not provided by trigger. Another possible way is to use something like address==$sms_sender and ($triggertime-date)>$SOMEVALUE in where clause.

But, notification dismissal is still not seolved.

Post Reply