Advertisement
metalx1000

Android Set all Ringtones for Contacts

Oct 3rd, 2024
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #as root
  2. cd /data/data/com.android.providers.contacts/databases/
  3.  
  4. #list all contacts with custom ringtones
  5. sqlite3 contacts2.db "SELECT custom_ringtone FROM raw_contacts"
  6. sqlite3 contacts2.db "SELECT custom_ringtone FROM raw_contacts"|sort -u
  7.  
  8. #set all contacts to ringtone
  9. update raw_contacts set custom_ringtone='content://media/external/audio/media/1000021093?title=ring&canonical=1';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement