Changing the Lock/Unlock sound

Hi folks,

I just got my Fairphone 6 a few days ago and I’m really liking it so far. Coming from a Pixel 6, it’s a little bit of a bummer to be moving from Android 16 to 15, but being in a more conscientious hardware/software ecosystem more than makes up for that.

Anyways, I’d like to ask if there is a way to change the default screen lock / unlock sound. I know I can turn it off entirely by flipping the “Screen locking sound” switch in settings; what I’m looking for is a way to instead replace the sound with my own audio file.

Thanks in advance!

I was able to turn mine off by removing vibrations & haptics. Or maybe it’s because I have my phone on DND??

I’m not asking about how to turn off the screen locking sound, I’m asking about how to replace it with a different sound. Do you know of a way to do that?

There is a “camera sound” when I unlock the phone by fingerprint as well as by pin. I don’t want nearby people to think I’m taking pics of them when they accidentally hear that sound. However I would prefer to choose a sound when unlocking. But it seems like I would have to install an extra app to have that feature. I’m afraid my life is ruined … :wink:

The sounds are called “Lock.ogg” and “Unlock.ogg” and can be found under the following path:
/product/media/audio/ui
Because it’s on a write protected system partition there is no chance for you to modify the sound without having root access on your device.

Just Disable in settings-sound-sound when locking display (or similar) and all locking/unlocking sounds are gone

Just for future reference, I found this procedure which at least one person has used on Android 15 with an unrooted device: https://xdaforums.com/t/unrooted-or-rooted-change-lock-unlock-sounds.4778626/

Disclaimer: I have not yet tried this on my FP6. There is no guarantee it will work. Caveat emptor, yadda yadda. (But if it does work I’ll report back here.)

That procedure I linked works! Here’s what I did:

  1. Download the default Lock.ogg and Unlock.ogg from https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/data/sounds/effects/ (You can in theory use your own, but I like the mainline android ones)
  2. Enable USB debugging and plug my FP6 into my computer (with ADB already installed)
  3. Use ADB to push both files to /data/local/tmp/audio/ui (created as part of that linked XDA procedure).
  4. Set file permissions to 644 (they say 666 in the XDA writeup, but I don’t see any reason these files should be writeable)
  5. In a shell on the FP6, run settings put global lock_sound /data/local/tmp/audio/ui/Lock.ogg and mutatis mutandis for unlock_sound.
  6. Reboot. Now I have custom lock & unlock sounds!

Thank you for this information. According to the thread on XDA forums it will survive a reboot. Do you have any experience, if it will survive OTA update? I don’t mean the additional directory structure and sound files, but the link to the new global lock sounds that needs to set.

At this point I don’t know. We’ll just have to wait until the next update to find out. If this thread is still open when the next update rolls out, I’ll be sure to report back.

EDIT: I can confirm that it survives a reboot though.

After getting today’s OTA update, I can confirm that this persists across updates!

Or at least this update. Not going to guarantee that it works forever, of course. YMMV and all that.