Silent startup sound workaround

by P. Andreas Schmidt, IVE

Version 7 (September 4, 2023)

Download (21 downloads)

Freemium
No root or ADB
No 3rd party stuff

This flow is for all who like me have a *@#&£ LG phone where you don't get a setting to turn on/off startup sounds, and you don't want to root your phone to rename the files...
This just tries to mute your phone before you reboot/shutdown, and un-mutes once boot is complete.
Since on my *#&@£ phone the reboot broadcast doesn't work, and shutdown comes after the power off sound, I also use 2 inspect blocks to catch when you open the power menu (pressing long power button). It aims only for the second step, when you're asked to press again before really rebooting/shutting down. Just in case you opened the menu by mistake or wanted one of the other options. This is done with 2 inspects to make sure it's this menu and not another. This is assuming that on all android versions it's the same, that the word below the button (i.e. reboot) reappears in the text below saying you have to hit it again. This in order to make it language independent, but it might not actually work that way. I might be further wrong in my assumptions, and it could be this will also trigger for something completely different... We'll have to find out. Or if someone who's better with xpath (I'm just guessing here) can come up with a better solution I'd be more than happy to hear it!

For this to work you need to activate automate setting to start flows on boot up (obviously).

What I still need to add is a way to figure out that you opened the menu but didn't hit the button and revert the DND ... Probably a fork with some delay with an inspect etc... To come.

I can't guarantee it'll work (perfectly) for your device, but it should be adaptable to make it work.

Any questions or suggestions in the comments below.