Mark text message read & dismiss relevant notification
Moderator: Martin
Mark text message read & dismiss relevant notification
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).
Re: Mark text message read & dismiss relevant notification
I was able to mark a message as read using sqlite3 command:
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.
Code: Select all
sqlite3 /data/user_de/0/com.android.providers.telephony/databases/mmssms
update sms set read=1 where _id==$ID;
But, notification dismissal is still not seolved.