📜 ⬆️ ⬇️

AlsaMixer for Android

Sometimes it is necessary to increase the volume of the phone, but what if the volume is already at the maximum? If the phone has root-rights, then you can try to contact the driver directly via ALSA .

ALSA installation


From here, you can download an archive with alsa, copy the system folder from it to your phone without replacing files, or be sure to save existing files, this can be done through the Root Explorer , for example. Grant the copied 644 files for /system/lib/libasound.so, the / system / usr / share / alsa folder and 755 for the alsa_ * files in / system / xbin. Congratulations, ALSA is installed.

Work with ALSA


For starters, see what controls are on your phone. To do this, follow these steps:
$ adb shell
$ su
# alsa_amixer


If the result is, then it will be about the following:
Simple mixer control 'Speaker Function', 0
Capabilities: enum
Items: 'On' 'Off'
Item0: 'On'
Simple mixer control 'FM Volume Control', 0
Capabilities: enum
Items: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9' '10' '11' '12' '13' '14' '15'
Item0: '0'

and a bunch of other similar controls. If alsa_amixer does not display such a list, then most likely your phone does not support alsa (for example, HTC Desire).
')
Each device will have its own controls, so I cannot give a universal example. For example, for my Samsung Galaxy R for the volume of the main speaker is responsible:
Simple mixer control 'Playback Spkr', 0
Capabilities: volume penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 63
Front Left: 60 [95%]
Front Right: 60 [95%]

As you can see, the current value is 60, the maximum is 63. To change the current value, use the command (don't forget about # alsa_amixer -help):
# alsa_amixer sset 'Playback Spkr' '63'

And if you do this while listening to music on your phone, then the increase in volume will be noticeable.

I also want to say that this is not quite a universal way, there may not be an alsa or a necessary control on the phone. In any case, try, test and experiment, and write in the comments about your experience.

Alsamixer


For those who are too lazy to do everything on their own, I wrote a small program that can be downloaded for free from Google Play . She sets an alsu for you, displays a list of controls and allows you to change their values.

Source: https://habr.com/ru/post/140529/


All Articles