AlsaMixer for Android

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

    Install ALSA


    From here you can download the archive with alsa, copy the system folder from it to the phone without replacing files, or be sure to save existing files, this can be done through Root Explorer , for example. Grant permissions to 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


    To get started, look at what controls are present on your phone. To do this, do the following: If the result is, then it will be something like the following:
    $ adb shell
    $ su
    # alsa_amixer



    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 alsu (for example, HTC Desire).

    Each device will have its own controls, so I can not give a universal example. For example, for my Samsung Galaxy R, the volume of the main speaker is responsible for:
    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 (do not forget about # alsa_amixer -help):
    # alsa_amixer sset 'Playback Spkr' '63'

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

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

    Alsa mixer


    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 will install alsou for you, display a list of controls and let you change their values.

    Also popular now: