Good Morning all,
It presented code that deleted alarms from the stock alarm clock. This code no longer works. I posted to the thread to ask if anyone had updated code, but the thread resisted a necro. Please forgive me for double posting but I really want an answer to this and the orig thread authors may not even be tasker users any longer for all I know.
This is the code in question, to be performed from use root enabled Run Shell:
sqlite3 /data/data/com.sec.android.app.clockpackage/databases/alarm.db 'DELETE FROM alarm'
This was presented as KitKat version of above:
sqlite3 /data/data/
com.android.deskclock/databases/alarms.db 'UPDATE alarm_templates SET delete_after_use=1'
neither of these work on my Lollipop 5.1.1 rooted platform.
looking at the code with as much logic as a new student to this could muster, I determined that "
com.sec.android.app.clockpackage" is the package name for the default clock, and confirmed that it is still the valid package name for my phone's clock.
With this realization, I replaced that section with the package name for my preferred clock, Smart Alarm:
sqlite3 /data/data/jp.tanyu.SmartAlarm/databases/alarm.db 'DELETE FROM alarm'
This gives the error:
06.13.14/E Run Shell: ->
06.13.14/E Run Shell: ->
06.13.14/E Run Shell: ->
06.13.14/Shell runBackground sqlite3 /data/data/jp.tanyu.SmartAlarm/databases/alarm.db 'DELETE FROM alarm' root: true timeout: -1
06.13.14/Shell start process-thread ID 8480
06.13.14/E add wait type Shell1 done
06.13.14/E add wait task
06.13.14/E Error: 127
Making sure to have an enabled alarm in stock and running the script for stock alarm gives this error:
06.16.19/E Run Shell: ->
06.16.19/E Run Shell: ->
06.16.19/E Run Shell: ->
06.16.19/Shell runBackground sqlite3 /data/data/
com.sec.android.app.clockpackage/databases/alarm.db 'DELETE FROM alarm' root: true timeout: -1
06.16.19/Shell start process-thread ID 8485
06.16.19/E add wait type Shell1 done
06.16.19/E add wait task
06.16.19/E Error: 127
If this worked in 2013/14 im sure it could work now with tweaking but ive no coding knowledge with which to do so. Could any of our experienced shell coders please lend a hand if youve time? Id be ecstatic with a working script for either clock app to utilize in tasks.
Thank you very much for reading,
Logan