jaysh / xposed-waze

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xposed-waze

Utilising the Xposed framework, this module adds tweaks to make Waze more useful to my. Currently, it only contains one tweak, but that could change as I get to use it more and more.

Audio Emphasis

I'll play music into my car using PowerAmp (which, in turn, passes through a FM Transmitter) which is great, because Waze will automatically quieten the music (take audio focus) when playing its messages. Unfortunately, they are not loud enough for me (when compared to the music).

This module is designed, very simply, to raise the volume of the music stream (which is the one PowerAmp and Waze play through) to maximum when Waze is saying something, and reducing it back the original level when it is done.

I hope the code is self-documenting in this respect as to how this works. If you find it is not clear, please do not hestitate to email me or file a pull request. I am not an Android/Java programmer by day, but I am always eager to learn how my code can be improved. At the heart, I was fortunate that Waze has two specific methods that are called directly before and directly after it is playing audio. Hooking those appropriately within Xposed gives us an easy opportunitiy to change the volume.

I have tested it on my HTC One M7, using Android Revolution HD, but I have no reason to suspect it shouldn't work on other devices.

Troubleshooting

If it feels like the module is doing nothing for you, please try enabling debugging mode from the settings. At that point, you should notice two things:

  • When you open shut down Waze and open it again, every time it emits audio, the updated volume levels should be displayed on-screen
  • The volumes are toggled between around 15% and and 100% - these values are fixed to try to make the changes as obvious as possible.

If this is not the case, please do email me and I'll do my best to help.

About

License:MIT License


Languages

Language:Java 100.0%