Blog
Mobile Apps
UI Kits
Tutorials
About Us
Blog
Mobile Apps
UI Kits
Tutorials
About Us
Devlister » Tutorials » [Link] - sound quality improvement
[Link] - sound quality improvement
By TMarcelin Tutorials - April 18, 2022 Comments: 2 Views: 4 045
Almost everyone who has ever put ROOT rights on Android has heard about such a
file as [Link] and tweaks for it. In this article, we will look at all the lines of this file
with which you can improve the sound quality of your smartphone and enable useful
features that were disabled by default.
Many audio modifications in the form of a Magisk module have a considerable
number of sound tweaks in their [Link], but not every developer of a particular
module knows their meanings and scope. Below you can see a number of different
props (a line from [Link]) that can be used both individually and all together,
because each of them is responsible for a specific parameter that is not
interconnected with others. All props are taken from different devices, so it is possible
that some of them will not be applied correctly, or not applied at all. Props can have
numeric, string, or boolean values. All strings in the list have been tested by the
NLSound team and myself.
The [Link] file is located in the /vendor folder. The easiest way to edit [Link]
is by adding lines to the end of the file. For such actions, you definitely need ROOT
access and a file manager with support for root access.
Disable Deep Buffer.
Disabling this output will use the PRIMARY output, which is higher quality and does
not have extra processing compared to the deep_buffer output. It is not a complete
shutdown of the output, since applications that output sound through this output will
not stop using it. Only if the application can work through other outputs, these props
will remove deep_buffer from the status of the main one.
audio.deep_buffer.media=false
[Link].deep_buffer.media=false
[Link].deepbuffer_as_primary.enable=false
[Link].deep_buffer.media=false
[Link].deep_buffer.media=false
[Link].deep_buffer.media=false
Change the number of volume steps.
Set the value that you like and use.
[Link].media_vol_steps=25
Enabling Dirac processing
If you have a Dirac engine installed, these props will make Dirac the main "provider"
of effects and the main EQ, provided that this feature is supported by your firmware.
[Link]=true
[Link]=dirac
[Link]=true
Various improvements to audio processing codecs.
[Link].24bit=true
[Link]=true
[Link].24bit=true
[Link]=true
[Link].24bit=true
[Link].24bit=true
[Link]=true
[Link]=true
[Link]=true
[Link]=true
[Link]=false
[Link]=false
[Link]=false
media.aac_51_output_enabled=true
[Link]=262144
[Link].qcom_parser=63963135
Shutdown
Something from "low power", and the sound becomes more saturated.
[Link]=false
[Link]=false
[Link]-stagefright=false
[Link]=false
Removes the limitations of the AF resampler.
By ear, the effect is similar to the lines above.
[Link]=0
Dropping the sample rate.
[Link]=false
[Link]=false
[Link]=false
Features
Futures from about the middle of the [Link] file. Look in your firmware and make
sure that you have such lines, otherwise there will definitely be no point in using
them. Expansion of the capabilities of the DSP module, speaker output and TFA
amplifier, if available. Also turn off compression, bring the sound to its original form,
turn off power control.
[Link].dynamic_ecns.enable=true
[Link].external_dsp.enable=true
[Link].external_qdsp.enable=true
[Link].external_speaker.enable=true
[Link].external_speaker_tfa.enable=true
[Link].receiver_aided_stereo.enable=true
[Link].ext_hw_plugin=true
[Link].source_track_enabled=true
[Link].keep_alive.enable=true
[Link].compress_meta_data.enable=false
[Link].compress_in.enable=false
[Link].compr_cap.enable=false
[Link].compr_voip.enable=false
[Link].devicestate_listener.enable=false
[Link].thermal_listener.enable=false
[Link].power_mode.enable=true
[Link].hifi_audio.enable=true
HI-FI in the implementation of Android vendors.
Has nothing to do with HI-FI standards. A mechanism is activated to remove
distortion and improve the accuracy of sound reproduction. After applying these lines,
the sound becomes more pleasing to the ears.
[Link]=true
[Link]=true
[Link]=true
[Link]=true
[Link]=72
[Link].int_codec=true
[Link]=true
[Link].int_codec=true
Equalization settings.
Everything that makes the sound more saturated is turned on, and everything related
to the equalizer built into the system is turned off.
[Link]=1
[Link]=true
[Link]=true
[Link]=true
[Link]=false
[Link].keep_alive.disabled=false
[Link]=false
[Link]=false
[Link]=false
[Link]=false
[Link]=false
[Link]=false
[Link]=true
[Link]=true
[Link]=true
Improving the clarity of audio recording, scene correction and noise
removal.
[Link]=false
[Link]=true
[Link]=true
[Link]=true
[Link]=1
[Link]=true
Lines from devices that have good audio codecs.
If you have a good audio codec, these props will not be superfluous. Disable limiters,
disable power control, increase volume, enable 24-bit support, connect DSP on TFA
amplifiers where possible.
[Link]=0
[Link].enforce_legacy_copp_sr=true
[Link].snd_card.[Link]=50
[Link]=true
[Link]=true
[Link]=true
[Link]=false
[Link]=true
[Link]=true
[Link]=true
[Link]=true
[Link].ll_playback_bargein=true
[Link]=false
[Link].24bit=true
[Link].audio_hal.dsp_bit_width_enforce_mode=24
[Link]=true
Settings for Bluetooth.
Inclusion of APTX and AAC codecs, other improvements for bt.
[Link]=1
[Link]=1
[Link]=true
[Link]=true
[Link].use_aptx=1
[Link]=true
[Link].a2dp.aptx_disable=false
[Link].a2dp.aptx_hd_disable=false
[Link].a2dp.aac_disable=false
[Link].sbc_hd_enabled=1
[Link]=false
[Link].a2dp.aac_whitelist=false
[Link].aac_frm_ctl.enabled=true
[Link].aac_vbr_frm_ctl.enabled=true
[Link]=true
[Link]=true
[Link]=false
[Link].aac_frm_ctl.enabled=true
[Link].aac_vbr_ctl.enabled=true
[Link].twsp_state.enabled=false
[Link].sbc_hd_higher_bitrate=1
[Link].settings_bluetooth_hearing_aid=true
Also, there is a small list of problematic lines that can disrupt the device:
[Link].compress_in.enable=false
[Link].compr_voip.enable=false
[Link].audio_hal.dsp_bit_width_enforce_mode=24
[Link]=true
[Link]=true
[Link].aac_vbr_ctl.enabled=true
[Link]=true
[Link]=false
Don't forget to backup your [Link] file before installing props to avoid possible
problems.
If the application of the strings caused problems, then select the problematic ones
from the list and try without them. If the problems remain, then use the elimination
method to find the line that causes your problem. In the future, an article of this kind
about the mixer_paths.xml file is possible. Happy use.
Related Articles
Flutter: Everything you need to protect your data
This article will tell you in what general ways you can protect your application from
hacking or
April 10, 2022 Tutorials
The evolution of the Android security system or how the system is
protected today
How it all started The road to protecting Android has been thorny. At the end of 2021,
Android
March 16, 2022 Blog
Mobile sound - what determines the quality
When it comes to quality portable audio, hi-fi audio players immediately come to
mind. The
February 24, 2022 Blog
Comments(2)
Tim
29 June 2022 01:30
Thanks for all of this, I had never encountered a number of these. I've been trying for a
minute to find a 'comprehensive' (as much as is possible, at least) list of audio build
props with descriptions (and non-audio.... it'd be nice to know what already exists) and
this is definitely the best I've found -- I really appreciate them broken into categories
with general descriptions.
It would be nice if there were such a comprehensive list of build props with
descriptions in, say, the AOSP repos I've done quite a bit of looking, but not had
any luck. It's possible I've missed, though, given the AOSP source tree is rather large.
One thing I'm not sure I'm understanding correctly.... Are the values given throughout
the article recommended for best audio quality? I was under the impression this was
the purpose of the article, but then I got to the "...small list of problematic lines..." and
realized that the exact same lines are listed above, with the same values.
Reply
wyup
10 August 2022 00:51
Thanks for the tip.
One thing to note is checking /vendor/[Link] because it has precedence over
/system/[Link]. Sometimes the same [Link] property is overidden by
[Link].
About Deep Buffer, I'm not sure if it's onvenient to disable since it lowers battery
consumption by means of a big buffer, and Primary Outpud doesn't have better quality
since it is low latency by default (fast and worse quality).
Reply
Add Your Comment
Name: *
Comment:
All comments will be moderated before being published.
Trending Now
[Link]
Copyright © 2022 - [Link]. ❤️[Link]
Privacy Policy
DMCA
Disclaimer
Contact
Blog
Mobile Apps
UI Kits
Tutorials
OTHER SECTIONS