Changing the default notification sound is a common way to personalize your device and make alerts more noticeable. Android stores user‑added tones in the /sdcard/Notifications folder. By using ADB you can copy a file there without opening the device’s UI, which is handy when you have many phones to configure or when the UI limits you to certain formats.
What you will need:
.wav, .mp3 or .ogg format (max 5 MB is safe for most devices).Make sure the phone is charged above 30 % and that you are connected to a reliable Wi‑Fi network if you plan to download the sound directly on the device later.
my_alert.wav. Avoid spaces and special characters; Android may reject them.C:\Sounds\my_alert.wav (Windows) or ~/Sounds/my_alert.wav (macOS/Linux).Why this matters: Android’s MediaStore scans the Notifications directory for files with supported extensions. A clean filename ensures the scan succeeds and the tone appears in the system picker.
adb devices. You should see a line like RZ8M7XXXX device. If the status shows unauthorized, unlock the phone and tap Allow on the USB‑debugging prompt.device, you are ready to push files.Tip: If the device does not appear, try switching the USB mode to “File Transfer (MTP)” or reinstalling the platform‑tools.
adb shell "mkdir -p /sdcard/Notifications"
adb push "C:\Sounds\my_alert.wav" /sdcard/Notifications/
(Replace the Windows path with your actual location; on macOS/Linux omit the drive letter.)
adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d file:///sdcard/Notifications/my_alert.wav
adb shell ls -l /sdcard/Notifications/
You should see my_alert.wav listed.
If the ls output shows the file but it does not appear in the UI later, repeat step 3c to trigger the media scan.
my_alert (or the filename you chose). Select it.After confirming, Android will play the new tone for any standard notification (messages, system alerts, etc.).
Some device manufacturers expose the system setting notification_sound as a writable key. You can try the following command; it works on many stock Android builds and on devices that accept a file‑URI.
adb shell settings put system notification_sound /sdcard/Notifications/my_alert.wav
If the command succeeds, you can verify the value:
adb shell settings get system notification_sound
The output should echo the same path. Some OEM skins (e.g., Samsung One UI) store the value in secure or global namespaces; you can try:
adb shell settings put secure notification_sound /sdcard/Notifications/my_alert.wav
adb shell settings get secure notification_sound
Why you might need this: When configuring many devices (e.g., in a small business) you can script the push and setting steps without touching each phone’s UI.
adb shell am broadcast -a android.intent.action.TEST_NOTIFICATION
(Note: not all devices implement this broadcast; the UI test is more reliable.)
.wav, .mp3, .ogg)./system/media/audio/notifications. In that case you need root access; without root you must rely on the UI method.notification_sound key. Use the UI method instead./sdcard/Notifications, never to /system unless you have a rooted device and know what you are doing.If you later decide to remove the custom tone, simply delete the file and clear the MediaStore cache:
adb shell rm /sdcard/Notifications/my_alert.wav
adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d file:///sdcard/Notifications/
After deletion, the tone disappears from the picker. You can also revert to the default system tone via Settings → Sound → Default notification sound.
Adding a custom notification sound with ADB gives you precise control, works on any Android version that supports USB debugging, and requires no rooting. By following the steps above you can prepare the audio file, push it safely, make it selectable via the UI, or set it programmatically for bulk configurations. Should any hiccups arise, the troubleshooting section offers quick fixes, and the safety notes keep your device secure.









