Advertisement
metalx1000

Backup Android Do Not Disturb Settings

Jun 18th, 2023
1,449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.57 KB | None | 0 0
  1. #Android Backup Do Not Disturb Settings
  2. #file is /data/system/notification_policy.xml
  3.  
  4. #As root on phone
  5. cp /data/system/notification_policy.xml /sdcard/Download/
  6.  
  7. #on desktop
  8. adb pull /sdcard/Download/notification_policy.xml
  9.  
  10. #plug in new phone and push
  11. adb push notification_policy.xml /sdcard/Download/
  12.  
  13. #on phone as root
  14. cp /sdcard/Download/notification_policy.xml /data/system/notification_policy.xml
  15.  
  16.  
  17. ##extra##
  18. #to edit 'xml' file
  19. #on phone
  20. cd /sdcard/Download
  21. abx2xml -i notification_policy.xml
  22. #exit file and convert back
  23. xml2abx -i notification_policy.xml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement