[Xiaomi Mi Max 3 Guides, News, & Discussion] SUPERUSER:
I hope I did it right.

The audio works fine when playing music.

But its when selecting a ringtone or alarm signal when the crackling sound is heard.

On Benzo Rom 9.0 this began even on the first boot without having modified anything.

I did not have a lot of time to play with the phone last night so I could not debug this further.

I will not have free time until Sunday when I will have a few days to play around with treble again.

I figured that the ringtones might just sound that way.

But it was not until I copied some of my own ringtones on to the internal storage and played them back in the settins app ringtone selector that the sound was the same as the stock ringtones.

If I did some of the steps wrong I apologize and I will make another try on Sunday when I have more time to sit down and experiment

One possible variable

I did not update the firmware from sourceforge.

I did flash this in the beginning of the month.

Perhaps this fixes some things.

I did not have enough time to do this yesterday.

Brightness fix worked out just fine.

So I will not mention this in my post.

AICP-mordiford

Works fine on sound volume and selecting a ringtone.

What is not working is inserting headphones into the 3.5mm jack.

Nothing happens. Music keeps playing from the speaker.

recovery
[LIST]
[*]Wipe
Dalvik / ART Cache
Substratum Overlays
Cache
Data
Internal Storage
System
Vendor
[*]Reboot to recovery
[*]Mount all partitions
[*]Flash ROS-MIUI-8.10.25_MIMAX3-8.1.0_v10.zip
[*]Reboot to recovery
[*]Wipe
Dalvik / ART Cache
Substratum Overlays
Cache
Data
Internal Storage
[*]Flash system-arm64-aonly-vanilla-nosu.img
[*]Reboot
[/LIST]
[/HIDE]

To modify the audio on Oreo i did the following.

[LIST]
[*]Download https://github.com/phhusson/treble_experimentations/files/2184721/Audio.XML.zip
I hope this is the correct file?
[*]Download https://xdaforums.com/attachment.php?attachmentid=4625902&d=1540346857
[*]Extract Audio.XML.zip
[*]Rename v3audio_policy_configuration.xml to audio_policy_configuration.xml
[*]Copy and replace your audio_policy_configuration.xml file with the existing downloaded from Audio.XML.zip
[*]Copy all files and replace existing /vendor/etc/ (I did not touch the /vendor/etc/audio folder).
[*]Set all file permissions to 644
[*]Reboot
[/LIST]
[/HIDE]

Results of the audio modification

The sound was fine.

But it was then I noticed that the sound did not switch to the headphone jack when I plugged in the headphones in the 3.5mm jack.

Havoc 2.0

Not working

Media plays fine but selecting notification sound sounds crackling.

What is not working here too is inserting headphones into the 3.5mm jack.

Nothing happens. Music keeps playing from the speaker.

MTP starts working after flashing the POST-sGSI_3_v0.5.zip

recovery
[LIST]
[*]Wipe
Dalvik / ART Cache
Substratum Overlays
Cache
Data
Internal Storage
System
Vendor
[*]Reboot to recovery
[*]Mount all partitions
[*]Flash ROS-MIUI-8.10.25_MIMAX3-8.1.0_v10.zip
[*]Reboot to recovery
[*]Wipe
Dalvik / ART Cache
Substratum Overlays
Cache
Data
Internal Storage
[*]Flash Havoc-OS-v2.0-20181018-GSI-ARM64-Aonly-Official.img
[*]Reboot
[/LIST]
[/HIDE]

There is a slight difference if you want to fix MTP in Pie.

When you flash the rom, flash the POST-sGSI_3_v0.5.zip before flashing Magisk, because this zip repacks the kernel.

Otherwise the rom will not boot again.

recovery
[LIST]
[*]Wipe
Dalvik / ART Cache
Substratum Overlays
Cache
Data
Internal Storage
System
Vendor
[*]Reboot to recovery
[*]Mount all partitions
[*]Flash ROS-MIUI-8.10.25_MIMAX3-8.1.0_v10.zip
[*]Reboot to recovery
[*]Wipe
Dalvik / ART Cache
Substratum Overlays
Cache
Data
Internal Storage
[*]Flash Havoc-OS-v2.0-20181018-GSI-ARM64-Aonly-Official.img
[*]Flash POST-sGSI_3_v0.5.zip
[*]Flash Magisk (if you want this)
[*]Reboot
[/LIST]
[/HIDE]

Benzo rom

Before I mentioned that quick charge did not work on this rom.

This seems to have been fixed.

And its the only Pie rom that I've tried this far that does work with inserting headphones into the 3.5mm jack.

MTP starts working after flashing the POST-sGSI_3_v0.5.zip

Bluetooth audio sounds weird when playing music.

Before modifying anything.

recovery
[LIST]
[*]Wipe
Dalvik / ART Cache
Substratum Overlays
Cache
Data
Internal Storage
System
Vendor
[*]Reboot to recovery
[*]Mount all partitions
[*]Flash ROS-MIUI-8.10.25_MIMAX3-8.1.0_v10.zip
[*]Reboot to recovery
[*]Wipe
Dalvik / ART Cache
Substratum Overlays
Cache
Data
Internal Storage
[*]Flash benzorom-9-unofficial-20181019-a-arm64.img
[*]Reboot
[/LIST]
[/HIDE]

There is a slight difference if you want to fix MTP in Pie.

When you flash the rom, flash the POST-sGSI_3_v0.5.zip before flashing Magisk, because this zip repacks the kernel.

Otherwise the rom will not boot again.

recovery
[LIST]
[*]Wipe
Dalvik / ART Cache
Substratum Overlays
Cache
Data
Internal Storage
System
Vendor
[*]Reboot to recovery
[*]Mount all partitions
[*]Flash ROS-MIUI-8.10.25_MIMAX3-8.1.0_v10.zip
[*]Reboot to recovery
[*]Wipe
Dalvik / ART Cache
Substratum Overlays
Cache
Data
Internal Storage
[*]Flash benzorom-9-unofficial-20181019-a-arm64.img
[*]Flash POST-sGSI_3_v0.5.zip
[*]Flash Magisk (if you want this)
[*]Reboot
[/LIST]
[/HIDE]

To modify the audio on Pie i did the following.

[LIST]
[*]Download https://github.com/phhusson/treble_experimentations/files/2184721/Audio.XML.zip
I hope this is the correct file?
[*]Download https://xdaforums.com/attachment.php?attachmentid=4625902&d=1540346857
[*]Extract Audio.XML.zip
[*]Rename v3audio_policy_configuration.xml to audio_policy_configuration.xml
[*]Copy and replace your audio_policy_configuration.xml file with the existing downloaded from Audio.XML.zip
[*]Copy all files and replace existing to /vendor/etc/audio/ (I did not touch the files in /vendor/etc folder)
[*]Set all file permissions to 644
[*]Reboot
[/LIST]
[/HIDE]

Results of the audio modification

The sound volume would now lower but the crackling sound is still there when selecting a ringtone or alarm signal.

If I can replicate the result I will upload a sound sample