"settings put system volume_music_speaker (X_value)" only applies after reboot
If I run for example "settings put system volume_music_speaker 5" thought adb with SU and the current speaker volume is 0 this value wont update. Only after I do a reboot of the device this value changes to 5. Why is this command not updating the different volume levels (speaker and headset for example) in real time? Is there any way I can change this? Or is there perhaps a different command that I could use instead.
Suggestions are welcome.
"Why would you want to know this?" I want to make it so that if I leave from home that the speaker volume goes to 0 and the volume of my earphones goes to a level for music listing regardless of something is plugged in via the headphone jack. This would naturally be done with Tasker.
- Andriod 7.1.2, LOS based ROM