yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Mix 2 Guides, News, & Discussion] Karidas:
hello there mi mix 2 lovers

I have found a solution to a problem that most of you know. :laugh:

The problem of our beloved mi mix 2 device or any xiaomi phone recording low quality audio while recording video.

possibly it's because of the agressive noise cancelation

While recording on the default app on miui (I think on every rom too but I am not sure tell me if I am wrong)

Anyway there is a trick to get that good audio

1) Download a free app called (Hi-Q free) it's a recording audio app

2) Download open camera it's a camera app

3) Mute audio in open camera settings

4) In Hi-Q app set it to +15 db gain (but it depends) , wav format and mic selection unprocesed raw.

5) tap record on Hi-Q and the record with open camera

6) then synchronize them in post with any video editing program I used premiere pro on PC but kinemaster on Android is my favorite for editing on the go but you can use whatever you like

7) enjoy the good quality

It's alot of work for recording a video on your phone but the quality you get it's amazing and if you're into recording musical instruments or videos on YouTube it's a must

I have prepared a video comparison showing the default camera app and open camera muted with (Hi-Q free) recording app.

https://drive.google.com/file/d/1pjdBeByA3ejYDT4z44RIF_WUCdlLjiGv/view?usp=drivesdk

If xiaomi will ever update fix this bug it would be awesome.

I speak in Greek there but who cares :silly:
[Xiaomi Mi Mix 2 Guides, News, & Discussion] hypern0va:
Hi, thank you for the workaround!

I would like to understand if the low audio quality is due only to a bad noise cancellation algorithm or if microphones aren't that great either: I listened to the audio in your samples and it seems much better with the workaround, but since you mentioned "recording musical instruments", did you try to test it in a very loud environment like a concert? Many phones with low quality microphones just get their audio saturated in these occasions and the result is awful, could you tell anything about it related to the Mi Mix 2?

Thank you
[Xiaomi Mi Mix 2 Guides, News, & Discussion] reapy0815:
That is a very good workaround.

However, I was wondering if the official MIUI devs care about the problem and are working on it. I am on the stock global ROM and happy so far, I dont want to flash Lineage just to bypass this problem.

Maybe I will open up a thread at the official MIUI site, there have to be a lot of people with this problem and maybe they will work on it then.

I had this problem too on my Redmi 4 Pro. It seems like this is a problem of MIUI itself?
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
Solution for bad audio recording

Hi, testing a lot i find how to rec very good audio with the mi mix 2, works on every app that i trying to record videos.

my english is very bad, i will try the help you guys.

I try this in latest global rom and latest lineage OS.

This only work with ROOT.

Step 1.

with a root file explorer Delete all media_profile and mixer_path files in System/etc and System/vendor/etc

Step 2.

Global ROM

Place in System/Vendor/etc the atached files mixer_paths_tasha.xml and media_profile_vendor.xml

Lineage OS

Place in System/Vendor/etc the atached files mixer_paths_tasha.xml and media_profile_v1_0.xml

Change the permissions of both files to rw- r-- r--

Step 3

Edit your /System/build.prop file like i did in te file "cambio.jpg" compare with your build.prop and change to "true" all the lines that you find different. i mark in red the important ones, but i change others lines of false to true.

I dondt attach that file because in every update you will have to change again that lines in build.prop, and make again step 1 and step 2.

Step.4

Reboot the phone and enjoy

if the audio is too quiet for you, you can edit the mixer_path_tasha.xml, find this lines at the begining of the file

<ctl name="DEC5 Volume" value="86" />

<ctl name="DEC6 Volume" value="86" />

change 86 to a higher value and test by yourself, this is for my own use, i like to rec rock concerts and loud envoirements

If someone with better english want to make a better guide i have no problem, i figure this solution testing a lot of times with a lot of smartphones. the only thing, thanks me haha
[Xiaomi Mi Mix 2 Guides, News, & Discussion] reapy0815:
Looks promising. But its not a thing for me since I am on a locked bootloader and dont want to unlock it yet.

But the best solution would be if Xiaomi would simply fix this, and I dont understand whats the problem there or if they just dont care (which i cant imagine).
[Xiaomi Mi Mix 2 Guides, News, & Discussion] colorado_al:
YES!!!!

This totally works!

Thank you!!!!

This has been my main complaint with this phone.

Thanks for the fix!
[Xiaomi Mi Mix 2 Guides, News, & Discussion] 3o3ulka76:
Also for me works good:svetius:...thanks
[Xiaomi Mi Mix 2 Guides, News, & Discussion] colorado_al:
To adjust the sound level is it just

<ctl name="DEC5 Volume" value="86" />

<ctl name="DEC6 Volume" value="86" />

or also DEC 0 thru 8?
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
DEC5 And DEC6 are specific for right and left mic when recording a video
[Xiaomi Mi Mix 2 Guides, News, & Discussion] Baronex:
Hey,

I'm unable to delete files you mentioned. I'm getting error whilst trying to delete them.

My device is rooted and i have granted SU permissions for root explorer.

Any ideas what to do ?
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
Try with ES File Explorer, i use that app without problems
[Xiaomi Mi Mix 2 Guides, News, & Discussion] emime12:
How i can add more volume for the speaker?
[Xiaomi Mi Mix 2 Guides, News, & Discussion] Baronex:
Using Es File Explorer i'm getting "device or resource busy" error. I've tried restarting the phone and try again but still no succes.

It seems like these files are being used at the moment and i can't delete them.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
I never had that problem, what root method do you use? I have magisk v16

---------- Post added at 12:40 AM ---------- Previous post was at 12:36 AM ----------

sorry, i never try to gain more volume on the speaker, i thing it will sound distorted
[Xiaomi Mi Mix 2 Guides, News, & Discussion] Baronex:
Same here, sitting on miui 9, 8.5.8

Maybe is there a way to delete these files through ADB?
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
Same miui version here, if you try to uninstall magisk and reinstall? same with ES File Explorer
[Xiaomi Mi Mix 2 Guides, News, & Discussion] Baronex:
Nevermind, I've managed to delete them using TWRP recovery file manager.

Everything's alright, video sound quality is now much better.

Thank you :)
[Xiaomi Mi Mix 2 Guides, News, & Discussion] Mackay53:
Install busybox
[Xiaomi Mi Mix 2 Guides, News, & Discussion] reapy0815:
Seems that I have to unlock the bootloader and root the phone. Nothing I am happy about, since the phone ran awesome out of the box and now the tinkering starts again, like in the good old days with all the other android phones I owned :D

This device is so great, even with the global official ROM, but why has it this one problem?

I found another workaround, you can use openCamera and only set the audio channel to mono and the recording device to standard/default. Then the audio is a lot better.

The MIUI recording app can also record in high quality if you set it to Music. Noise cancellation seems to be disabled then.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] Karidas:
where do you find Music setting in the MIUI recording app?
[Xiaomi Mi Mix 2 Guides, News, & Discussion] Karidas:
I did not try it in a very loud environment but the recording app has levels build in and you can set it to -20db and it will work i think
[Xiaomi Mi Mix 2 Guides, News, & Discussion] hypern0va:
Did anyone test the microphone in very loud environment like a concert? I would like to have an evaluation of the microphone quality, does it saturates when dBs go high?
[Xiaomi Mi Mix 2 Guides, News, & Discussion] kancrutt:
it works! would be nice if someone make Magisk module
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
I try with my mod, and sounds pretty good in a concert on a club
[Xiaomi Mi Mix 2 Guides, News, & Discussion] reapy0815:
Sorry for the late reply.

There is a small chainwheel symbol in the upper right corner. You can change the recording mode to something different, if you choose music the noise cancellation seems to be completely turned off. Didnt test the other options, but music works just fine for both voice and music.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] ssojyeti2:
say no more :D

now available from the magisk repo
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
In my next rom i will use this module! :D haha
[Xiaomi Mi Mix 2 Guides, News, & Discussion] colorado_al:
This is a great fix!

Here's a recording I made a few nights ago

https://youtu.be/YjKfjn3PfrU

Here's another from last night

https://photos.app.goo.gl/5Fw1Lp7K8qw5ILaz2
[Xiaomi Mi Mix 2 Guides, News, & Discussion] kancrutt:
my phone have no sound after using this module, even after removed module & reboot
[Xiaomi Mi Mix 2 Guides, News, & Discussion] ssojyeti2:
huh.. what rom are you running? I tested it on miui 8.5.11 build
[Xiaomi Mi Mix 2 Guides, News, & Discussion] kancrutt:
RR-O-v6.0.0-20180521

i ended up with reflash the Rom
[Xiaomi Mi Mix 2 Guides, News, & Discussion] ssojyeti2:
Yeah maybe I f*cked up something cuz I only tested it on miui
[Xiaomi Mi Mix 2 Guides, News, & Discussion] reapy0815:
I unlocked my bootloader and installed the magisk root module now. I will test the solution as soon as I configured the phone.

Do I have to do this everytime I get an update for MIUI?
[Xiaomi Mi Mix 2 Guides, News, & Discussion] ssojyeti2:
If u keep the magisk module installed then no
[Xiaomi Mi Mix 2 Guides, News, & Discussion] reapy0815:
Great!

I installed the module via Magisk Manager, but the recording sound in a video (both rear and front camera) hasn't changed. Do I have to do something else?

Thank you for your great work, I thought I am stuck with this bad quality until I flash Lineage (which I dont have to do now!).
[Xiaomi Mi Mix 2 Guides, News, & Discussion] ssojyeti2:
To check if the quality increased, download VLC player and look at the audio bitrate on the video to see if it's recording at 256 kB/s. Without the module it will only record at 92 kB/s
[Xiaomi Mi Mix 2 Guides, News, & Discussion] reapy0815:
It records at 256kB/s, but it still sounds like I am under water :(
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
Follow the instructions in my post, edit the build.prop like i did
[Xiaomi Mi Mix 2 Guides, News, & Discussion] zdravke:
Anyone tried this on OmniROM? I don't have exact filenames listed to be replaced, so I don't want to mess something up.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
hi, go to /system/vendor/etc and look the files with the names media_profiles_*** and mixer_paths_** and show me.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] zdravke:
Just wondering - if HI Q app does not need this tweak to make 256kb recordings, why cameras need it? Is this going to affect voice calls too?
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
i don't have any trouble with voice calls. others users don't report troubles till now
[Xiaomi Mi Mix 2 Guides, News, & Discussion] zdravke:
Thanks, works like a charm. And exposes xiaomi devs as bunch of monkeys at the same time.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] zdravke:
It seems lows and highs are way too exaggerated in recordings.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] TheInfiniteAndroid:
Hey man I've got a few questions if you have a few mins I'd really appreciate it

1. Will this work on the Mi Mix 2s as that's the phone I'm getting.

2. Will this work on MIUI 10 or Android P Beta's?

3. Each time the phone gets a OTA do you have to follow the steps again?

Thanks :highfive:
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
Hi, i don't if gonna work on mi mix2s because the files can be different. Bit if it works, yes, the same preocess after OTA
[Xiaomi Mi Mix 2 Guides, News, & Discussion] TheInfiniteAndroid:
If it doesn't work on the Mix 2s is there anyway you can PM me and help me solve it once my device arrives? I'd really appreciate it man
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
Se can try, just do a backup before change any file while testing
[Xiaomi Mi Mix 2 Guides, News, & Discussion] TheInfiniteAndroid:
Thank-you so much man, I'll be sure to PM when it gets here
[Xiaomi Mi Mix 2 Guides, News, & Discussion] ssojyeti2:
Updated the module with the new build.prop tweaks. Hopefully it works better now
[Xiaomi Mi Mix 2 Guides, News, & Discussion] zdravke:
What is this module doing exactly? Overwriting files or editing them?
[Xiaomi Mi Mix 2 Guides, News, & Discussion] reapy0815:
Seems to work now, but have to test it in different environments :D

Thank you!

Edit: Camera recordings seem to work fine now, but what can be done to increase the quality of the recording app? So far, only the music mode works, which would be fine, if the volume wouldnt be so low.

Voice messages via WhatsApp are still at very low volume.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] ssojyeti2:
Hopefully [MENTION=1279373]manuerduarte[/MENTION] can look into that, since I'll be away for the next few weeks.

People who call me have been noticing a voice echo after I installed my most recent module V2.5. It must be being caused by one of the build.prop edits, so I'm gonna try and fix that before I go
[Xiaomi Mi Mix 2 Guides, News, & Discussion] reapy0815:
Great, thank you both for your good work!

I dont understand why Xiaomi just doesnt care about this, but this is the only problem with this awesome phone and Im very happy that it is mostly fixed now :)
[Xiaomi Mi Mix 2 Guides, News, & Discussion] zdravke:
Try the speakerphone while in the call. I think it's broken with this fix. It's the volume of DAC5 and DAC6 actually - it's too weak at 84, and if you make it normal in video recording, it's too loud in speakerphone.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
hello, as I said this mod I made for my use and shoot noisy environments, but with your answers I will try to make it work in all scenarios
[Xiaomi Mi Mix 2 Guides, News, & Discussion] ssojyeti2:
removing this line ro.vendor.audio.sdk.fluencetype=none from the build.prop edits took away my call echo. Speakerphone works as well
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
Need too test with loud audio now

Edit: testing in home looks like recording loud music with camera works well ?, i cant test with the miui audio recorder, im using lineage
[Xiaomi Mi Mix 2 Guides, News, & Discussion] zdravke:
It doesn't make a difference for me. Speakerphone mic is too loud and unusable.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
Try with this file, now dec1 and dec2 are the volumes of video recording, change it the way you like, and try change dec 5 or dec6 for speakerphone, tell me if this solve your problem
[Xiaomi Mi Mix 2 Guides, News, & Discussion] zdravke:
Sorry, it doesn't. I see you increased dec5 and dec6 to 200 - this is causing echo and very loud mic in speakerphone. It has to go back to 84, but then recordings volumes are too low.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
I think it is another problem that you have, equal 200 is very high, you should try the dec5 and dec6 to a volume like 111 and also the dec1 and dec2 a value near 100
[Xiaomi Mi Mix 2 Guides, News, & Discussion] zdravke:
I did not set it to 200, it was in your file;). When I set it back to 84 speakerphone works fine, but then audio in video recordings is too low. Dec1 and dec2 do nothing in my case. For now, I have set ro.vendor.audio.sdk.fluencetype=fluence which still gives me 256k quality but with agc on, which fluctuates the sound level in recordings, but at least it's audible.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
??? I never put a value like 200, its insane, do you try the last file i share? The mixer_path_tasha? With that file the speakerphone and video recording are separates volumes, using fluencetype:none.

Dec1 and dec2 for video recording, dec5 and dec6 for phone. I dont know if it dec5 or dec6 for speakerphone. I upload again the file here if you wanna try, for me its working fine.

Edit: now i see the file i share before, there's no 200 in the file, volumes are 84 and 86, i thing you use a wrong file
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
Hi man, try with this file, dec1 and dec2 are the volume of video recording, dec5 and dec6 are for everything else, you can edit but dont go to high, test dec5 and dec6 about 100-110
[Xiaomi Mi Mix 2 Guides, News, & Discussion] Karidas:
Can any MIUI 10 user check their video quality sound? maybe they have fixed it...
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
Looks like the audio still bad
[Xiaomi Mi Mix 2 Guides, News, & Discussion] Karidas:
I think that's on MIUI 9 bro. mi mix 2s did not get MIUI 10 yet.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] reapy0815:
Interesting idea. Isnt the Mix2 signed up for Android P testing?

Anyway, since the Snapchat module is on V2.8, recorded audio is weird again.

I will try to edit the files myself and see what I can do about it :)
[Xiaomi Mi Mix 2 Guides, News, & Discussion] manuerduarte:
Hi, try the file i uploaded a posts before this and edit the build.prop like i did in my first post with the instructions, now dec1 and dec2 in mixer_paths_tasha are the volumes of video recording and dec5 and dec6 is volume of phone mix and audio recording in other apps, use the media_profiles if the first post
[Xiaomi Mi Mix 2 Guides, News, & Discussion] SoulRipper:
I also noticed that. v2.5 is fine, though.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] ssojyeti2:
Recorded audio from camera and voice recorder seems fine for me on miui 9 using V2.8. Weird in what way?
[Xiaomi Mi Mix 2 Guides, News, & Discussion] reapy0815:
Sorry for the late reply.

It has this "underwater" sound again, like it has on stock.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] :
It even got worse since the last update. Before that, Open camera recorded good audio in mono mode and the standard audio recorder worked aswell when set to music. Now both have the underwater sound like the stock camera...seems Like there's no way to avoid rooting :(

Does the workaround still work? And does it fix the low volume of Instagram and Snapchat top?
[Xiaomi Mi Mix 2 Guides, News, & Discussion] attachsnow:
Hello [MENTION=1279373]manuerduarte[/MENTION], I have a question:

I am using Lineage Official ROM and the speaker sounds very bad.

How can I do if I want to improve like stock MIUI ROM?

Please help me. Thank you.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] stoshie:
Thanks to manuerduarte, I played around with his files and instructions for a few hours to try to get better audio with my GCam video on MIUI 10. I was able to improve the sound for video by editing his mixer_paths_tasha.xml file in post #65, (don't use the one in post #4, they are different).

Then change <ctl name="DEC1 Volume" value="86" /> to <ctl name="DEC1 Volume" value="110" /> & <ctl name="DEC2 Volume" value="86" /> to <ctl name="DEC2 Volume" value="110" /> Save the file & change it's attributes to rw-r--r--

Follow all the previous instructions including editing the build.prop file, also save all your original files to a different folder so you can revert to stock if you mess up. Then reboot. You must have root to do all of this.

If you use Magisk there is a module by ssojyeti2 that will do this for you but I use SuperSU so I can't vouch for what it does.

https://github.com/Magisk-Modules-Repo/mix-2-audio-quality-volume-fix

Note: Sound with this method is better but not great. Xiaomi should really have fixed this by now.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] Chris155v6:
My mix 2 records sound just fine after the MIUI10 update. It's 100% stock.

Seems they have been working on it.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] reapy0815:
Can anybody else confirm this? Because under MIUI9 some people didn't have the issue too.

I think about going back from Lineage to stock.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] korekore1:
download cinema fv5 camera and disable AGC from audio settings.

fixed.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] Chris155v6:
Mine had the issue with MIUI 9
[Xiaomi Mi Mix 2 Guides, News, & Discussion] colorado_al:
How do you switch to front camera with Cinema Fv5?
[Xiaomi Mi Mix 2 Guides, News, & Discussion] :
Just updatetd my Mi Mix 2 to MIUI 10. Video sound on stock camera is perfectly fine now. Nevertheless, Snapchat and Instagram videos both still have very low volume
[Xiaomi Mi Mix 2 Guides, News, & Discussion] xumixu:
Why was the magisk module deleted?
[Xiaomi Mi Mix 2 Guides, News, & Discussion] zsolthajdu:
Can't find it in magisk anymore

Can you please upload the magisk module somewhere? I'm still using it but after a clean install I can't find it anymore in Magisk Downloads. You'd save my life :D
[Xiaomi Mi Mix 2 Guides, News, & Discussion] ssojyeti2:
Shoot, I didn't realize the module still worked so I never updated it. I'll try and see if I can get a new version working sometime next week.
[Xiaomi Mi Mix 2 Guides, News, & Discussion] zsolthajdu:
Thanks! I'm using this module on my Pocophone and it drastically improves the audio quality in video recordings, so it is really essential for me ? Thank you for your work!
[Xiaomi Mi Mix 2 Guides, News, & Discussion] ssojyeti2:
Module should be added to the repo soon. In the meantime, you can download the new version from this link:

Download

Enjoy and let me know if it works :)
[Xiaomi Mi Mix 2 Guides, News, & Discussion] zsolthajdu:
The new version does not install, see the picture attached. But the old version installs and works on my Pocophone just fine ;). What's the difference between the old and new by the way?

Thanks for your work!
[Xiaomi Mi Mix 2 Guides, News, & Discussion] ssojyeti2:
Oooops, I had an error in the install script! Since I don't have the device anymore, I won't test it. Let me know if this one works :)

Download
[Ascend Mate 7 Q&A, Help & Troubleshooting] mohamedmohsenk:
Hello every one,

i own mate 7 with kitkat 4.4.2

with build : MT7-TL10V100R00B131

i downloaded lollipop MT7-TL10C900B326 gives me error when updating..

also i tried Marchmello C185B560 gives me the same error

is there any recommended firmware or steps i must do to update the device to latest firmware ??

please help guys i am stuck on 4.4.2