Goal: to have the notification for a new text give the options to delete the message or mark it as read.
Where I'm stuck: the tasks to delete/mark read. I've got the AutoNotification working fine so far, so that's not a problem.
I've found on the forums a way to do it with SQLite3 (https://groups.google.com/forum/m/#!topic/tasker/kn9r4I2CPQ8/discussion), however it doesn't work. I believe it's because I'm not able to install SQLite3. I have an HTC One M8 and I have the WeakSauce root, which does not give me write access to the system folder (except xbin). I love that the root is so non-invasive as I didn't want to root to begin with. I do not want to do the whole S-Off thing for that reason.
I was able to copy SQLite3 to the xbin folder as I saw that it either needed to be there or the bin folder. I assume it does need the bin folder because it's not working.
Anyway, I also tried to do this via SL4A (http://taskerfans.blogspot.com/2013/04/sl4a-python-script-to-manage-android.html?m=1), but no success there. I honestly don't know why this one isn't working as I feel that it may be my best option.
So, any thoughts on how to go about this with my situation?
Thanks!
In the RunShell, I tried both this:
/xbin/sqlite3 /data/data/com.android.providers.telephony/databases/mmssms.db "DELETE from sms where address='%SMSRF' and body like '%SMSRB';"
And this:
qlite3 /data/data/com.android.providers.telephony/databases/mmssms.db "begin transaction; DROP TRIGGER sms_words_delete; DELETE from sms where address='%SMSRF' and body ='%SMSRB'; CREATE TRIGGER sms_words_delete AFTER DELETE ON sms BEGIN DELETE FROM words WHERE source_id = OLD._id AND table_to_use = 1; END; commit;"
Neither work. Am I doing something wrong?
Both times it comes up and says tmp-mksh: <stdin>[2]: /xbin/sqlite3: not found
Matt
Profile: Delete Sms (94)
Event: AutoNotification [ Configuration:Event Behaviour
Filter: deletesms ]
Enter: deletesms (85)
A1: Run Shell [ Command:chmod 0755 /system/xbin/sqlite3 /data/data/com.android.providers.telephony/databases/mmssms.db "DELETE from sms where address='%SMSRF' and body like '%SMSRB';" Timeout (Seconds):0 Use Root:On Store Output In: Store Errors In:%errorsms Store Result In: Continue Task After Error:On ]
Matt
Matt
Matt
How funny you should ask because I just tried it and it worked. Then I went back to variables and now it's working altogether! No idea what I changed, if anything. Now to do the mark as read! Haha I shall post back if I have problems with that one, but I don't foresee any issues since this one works now.
Thank you SO much for your help!
What if you use fixed phone number and body instead of variables?
Matt
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/Pf762H_H5Bo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
Yeah I was able to without a problem. Can you access it via SQLite Debugger?
Heather, did you manage to manipulate the data in mmssms.db? If so, did you do anything special? Cause I cannot open the database in its original location, only if I copy it somewhere else.Thanks!
--
If you set it to store an error in a variable, do you get an error?
I don't know what debugger you are talking about but I managed to access it via commands in the Terminal Emulator. But in Tasker, although I checked the <Root> option, it cannot open the database.
--