Advertisement
metalx1000

Android ADB check if Alarms are Set

Nov 28th, 2024 (edited)
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.78 KB | None | 0 0
  1. # Find Alarm Settings on Android
  2.  
  3. dir="/data/user_de/0/com.android.deskclock/databases"
  4. cd $dir
  5. sqlite3 alarms.db
  6. .tables
  7.  
  8. #get column names
  9. PRAGMA table_info(alarm_instances);
  10. select * from alarm_instances;
  11.  
  12. # This will update the database
  13. # but alarm app seems to ignore it
  14. UPDATE alarm_instances SET hour=9 WHERE _id=1;
  15. #changing this value doesn't seem to show in clock app
  16.  
  17. # Another place to look
  18. cd /data
  19. #at this point enable an alarm andthen
  20. find -mmin -10s
  21. cd /data/system/users/0
  22. file settings_system.xml
  23. # this is an Android Binary XML
  24. # that's ok, we can make it a regular XML file
  25. xml2abx -i settings_system.xml
  26.  
  27. # to convert it back
  28. abx2xml -i settings_system.xml
  29.  
  30. ###NOTE###
  31. # I've tried changing values in both file
  32. # but clock app doesn't show changes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement