[Samsung Galaxy S 5 Unified Development] curiousrom:
S5 Main Mic Recording Boost & Survival Script - WhatsApp

I did not see any sounds related LineageOS changes for the S5 since a very long time.

The main mic hole is located next to the USB port & I burned a hole for it in my thin silicone cover. Check also if yours is clean. I use a vacuum cleaner once in a while including for cleaning the USB port.

To boost the main mic recording volume, using a root enabled file explorer you can navigate to /system/vendor/etc/mixer_paths.xml & open it with a root enabled editor like the awesome QuickEdit for example and in this part only: 95 can be changed to 118 or lower if you hear distortions in a recording. Don't forget to Save in QuickEdit > Folder icon then reboot & test.

<!-- Recording Scenario -->

<path name="rec-main-mic">

<path name="main-mic" />

<ctl name="DEC2 Volume" value="95" /

</path>

Note: mods to mixer_paths.xml will not survive an update.

***

I made the attached TWRP flashable zips for myself & have been using them since 3 months to boost the recording volume of audio Messages in WhatsApp & other apps on my Galaxy S5 G900M LineageOS 16.0 klte build 2019-11-14 + Open GApps Pico + LineageOS AddonSU.

mixer_paths_rec-main-mic_118_curiousrom.zip boost "DEC2 Volume" to 118.

mixer_paths_Stock_S5_16.0.zip to return to stock LineageOS 16.0 & 15.1 settings.

mixer_paths_Survival_script_curiousrom.zip is an update survival script that I made by modifying the LineageOS 50-lineage.sh & naming it 52-mixer_paths.sh.

LineageOS supports the /system/addon.d/ folder where you can find update survival scripts for Open GApps, Magisk, etc.

So if you modify yourself /system/vendor/etc/mixer_paths.xml and want to preserve your mods you can use mixer_paths_Survival_script_curiousrom.zip.

If you like the mic boost to 118, you can flash the survival script so you will not have to flash the 118 mod every time you update.

If you want to disable the survival script delete /system/addon.d/52-mixer_paths.sh. If not rooted you can use TWRP > Advanced > File Manager to delete it.

****

For testing before & after mixer_paths.xml mic modifications you could use the built-in Recorder > Audio or use an app like Easy Voice Recorder which can record at a higher quality. (screenshot)

Also attached is a crazy bird that sings once in a while at 3~4h am in front of my house. Recording made with Easy Voice Recorder on my S5 using the main mic & the 118 boost.

***

TWRP App Causing Fail To Boot

Glad you fixed it & Thanks :good::cool: for reporting back.

That awful TWRP app. :eek: Maybe that's why [MENTION=7474219]Oshuhso[/MENTION] could not clean install LineageOS.

Several users on different devices reported fail to boot if you select install the TWRP app when asked in TWRP. That app is fluff, wants to start at boot, run in the background, collect data & is not necessary anyway because the TWRP updates are not frequent & it's easy enough to update manually.

Also several users reported fail to boot after updating TWRP using that TWRP app as you can see in the Official TWRP App reviews in the Play Store.

By coincidence I added a warning about the TWRP app a couple of days ago in the S5 super clean install post.

***