[FIX] Use your headset button to control music playing on miui rom!
Use the RE Explorer (remember change the folder read-only permissions to read and write) into the / system / usr / keylayout folder, in qwerty.kl file, add a few lines of code:
key 113 MUTE
key 163 MEDIA_NEXT
key 164 MEDIA_PLAY_PAUSE
key 165 MEDIA_PREVIOUS
key 226 HEADSETHOOK WAKE
key 231 CALL WAKE_DROPPED
Now it can control music playing!
One click- play, pause music, answer/ end the call
long press- play the next music
double click- play the previous music
|