"AUDIOVIDEOFIX"
Why does our LG LEON has such an awful quality sound in Whatsapp, audio recordings, and stuff? This is a mix between: Low gain for main mic, terrible noise reduction, and (for some apps like Whatsapp voice messages) low bitrate and frequency for the acc encoder.
So, the "AUDIOVIDEOFIX" will: put more gain (dB) to the main mic - set the min bitrate and frequency for the acc encoder higher, so apps like Whatsapp are forced to record in better quality (REALLY BETTER QUALITY). Cameras has also slightly higher video bitrate, which means less compression noise, and audio quality, for both frontal and main camera. Set volume a little higher for headset and speaker. Also, we will enable panorama mode and HDR for the main camera app.
How to do it?
- You need to be rooted
- Download attached AUDIOVIDEOFIX.zip file and unzip it
- Use root explorer or another file explorer that supports root and setting permissions to files
- Go to /system/etc and backup the original files before replacing them. You can copy them to your sdcard.
- Now replace those original 3 .xml with these you have downloaded from this thread.
- SET PERMISSIONS of those files as rw-r--r-- (If you don't do this, the phone might not boot again! bootloop warning)
- re-check, and be sure that the permissions are correct, same as any other file in the same folder, and everything is correct
- reboot and done!
If you are a whatsapp voice messages guy like me, smash that microphone icon and send a voice note. You will instantly notice the difference!
Camera sound quality workaround: After applying this patch, camera app will record with more volume, bitrate and frequency. But noise reduction will still be active. To avoid that, after applying this fix, download Open Camera from PlayStore and select default audio source ( should be the 3rd option in the list) in audio source, inside video recording settings. Use that new app to record videos.
---------------------------
"MULTITHREADFIX"
The "MULTITHREADFIX" will prevent the system to be SO agressive with background processes. Again using whatsapp as an example, if you put it on background while hearing some voice note, and you open other app, the audio may stop because of the process being killed by the system. LG setted up a REALLY TOO MUCH aggressive method for OOM. Also, zRam is setted too high in this device (half of physical RAM). That's why I made (thanks to the help of @Filip98 here) a FIX on init.lge.zramswap.sh located on /system/etc
How to fix?
PART A:
- You need to be rooted
- Go to /system and backup the file "build.prop" just in case of failure
- Now edit the build.prop under /system with root explorer OR use build prop editor from Play Store
Find these lines:
- check that permissions has not changed and that you didn't mess up any other line in build prop.
- reboot and done!
PART B:
Stock zRam is setted to around 450Mb, half of instaled memory. That's why I made the attached MULTITHREADFIX, which will set zram to A THIRD of available memory (that will be 300MB actually) instead of 450MB.
- You need to be rooted
- Download attached MULTITHREADFIX.zip file and unzip it
- Use root explorer or another file explorer that supports root and setting permissions to files
- Go to /system/etc and backup original file before replacing it. You can copy the original one to your sdcard.
- Now replace the original .sh script with the one you have downloaded from this thread.
- SET PERMISSIONS as rw-r--r-- (If you don't do this, the phone might not boot again! bootloop warning)
- re-check, and be sure that the permissions are correct, same as any other file in the same folder, and everything is correct
- reboot and done!
DISCLAIMER: I'm not responsible of what you do with these fixes. Be careful. If you feel you don't really understand what you're doing, read, read read, and read. Follow instructions carefully. Tested on Leon LTE H340AR running stock Lillipop 5.0.1. But should work for all LG Leon and maybe others like Spirit. If it did, tell me.
Why does our LG LEON has such an awful quality sound in Whatsapp, audio recordings, and stuff? This is a mix between: Low gain for main mic, terrible noise reduction, and (for some apps like Whatsapp voice messages) low bitrate and frequency for the acc encoder.
So, the "AUDIOVIDEOFIX" will: put more gain (dB) to the main mic - set the min bitrate and frequency for the acc encoder higher, so apps like Whatsapp are forced to record in better quality (REALLY BETTER QUALITY). Cameras has also slightly higher video bitrate, which means less compression noise, and audio quality, for both frontal and main camera. Set volume a little higher for headset and speaker. Also, we will enable panorama mode and HDR for the main camera app.
How to do it?
- You need to be rooted
- Download attached AUDIOVIDEOFIX.zip file and unzip it
- Use root explorer or another file explorer that supports root and setting permissions to files
- Go to /system/etc and backup the original files before replacing them. You can copy them to your sdcard.
- Now replace those original 3 .xml with these you have downloaded from this thread.
- SET PERMISSIONS of those files as rw-r--r-- (If you don't do this, the phone might not boot again! bootloop warning)
- re-check, and be sure that the permissions are correct, same as any other file in the same folder, and everything is correct
- reboot and done!
If you are a whatsapp voice messages guy like me, smash that microphone icon and send a voice note. You will instantly notice the difference!
Camera sound quality workaround: After applying this patch, camera app will record with more volume, bitrate and frequency. But noise reduction will still be active. To avoid that, after applying this fix, download Open Camera from PlayStore and select default audio source ( should be the 3rd option in the list) in audio source, inside video recording settings. Use that new app to record videos.
---------------------------
"MULTITHREADFIX"
The "MULTITHREADFIX" will prevent the system to be SO agressive with background processes. Again using whatsapp as an example, if you put it on background while hearing some voice note, and you open other app, the audio may stop because of the process being killed by the system. LG setted up a REALLY TOO MUCH aggressive method for OOM. Also, zRam is setted too high in this device (half of physical RAM). That's why I made (thanks to the help of @Filip98 here) a FIX on init.lge.zramswap.sh located on /system/etc
How to fix?
PART A:
- You need to be rooted
- Go to /system and backup the file "build.prop" just in case of failure
- Now edit the build.prop under /system with root explorer OR use build prop editor from Play Store
Find these lines:
- Change them to:ro.sys.fw.mOomMinFree1=73728
ro.sys.fw.mOomMinFree2=92160
ro.sys.fw.mOomMinFree3=122880
ro.sys.fw.mOomMinFree4=204800
ro.sys.fw.mOomMinFree5=266240
ro.sys.fw.mOomMinFree6=327680
- Save the file build.propro.sys.fw.mOomMinFree1=10240
ro.sys.fw.mOomMinFree2=20480
ro.sys.fw.mOomMinFree3=40960
ro.sys.fw.mOomMinFree4=81920
ro.sys.fw.mOomMinFree5=122880
ro.sys.fw.mOomMinFree6=163840
- check that permissions has not changed and that you didn't mess up any other line in build prop.
- reboot and done!
PART B:
Stock zRam is setted to around 450Mb, half of instaled memory. That's why I made the attached MULTITHREADFIX, which will set zram to A THIRD of available memory (that will be 300MB actually) instead of 450MB.
- You need to be rooted
- Download attached MULTITHREADFIX.zip file and unzip it
- Use root explorer or another file explorer that supports root and setting permissions to files
- Go to /system/etc and backup original file before replacing it. You can copy the original one to your sdcard.
- Now replace the original .sh script with the one you have downloaded from this thread.
- SET PERMISSIONS as rw-r--r-- (If you don't do this, the phone might not boot again! bootloop warning)
- re-check, and be sure that the permissions are correct, same as any other file in the same folder, and everything is correct
- reboot and done!
DISCLAIMER: I'm not responsible of what you do with these fixes. Be careful. If you feel you don't really understand what you're doing, read, read read, and read. Follow instructions carefully. Tested on Leon LTE H340AR running stock Lillipop 5.0.1. But should work for all LG Leon and maybe others like Spirit. If it did, tell me.
Attachments
-
1.2 KB Views: 1,084
-
7.5 KB Views: 1,370
Last edited by a moderator: