[Xiaomi Mi Max 3 Guides, News, & Discussion] SUPERUSER:
Thanks for the tip about viper4android.

I will test this in the future if I decide to test a Pie rom again.

I think I have everything working now on Oreo...I am testing things during the day..

Right before I went to bed I made this discovery about the brightness fix.

I am on AICP-mordiford 181007, system-arm64-aonly-vanilla-nosu.img

Camera2 API Enabler magisk module causes the phone to act up in a bootloop around two to four times both on Oreo and Pie but the phone will boot eventually.

AICP-mordiford

The OP might be somewhat broken.

I noticed that now the vendor.xml file has less files included than before.

Without usb_audio_policy_configuration.xml on AICP-mordiford calling goes to speaker phone without the possibility to change to headphones or earpiece speaker.

usb_audio_policy_configuration.xml is not possible to replace due to some permission denied, so I replaced this file from twrp file manager

Files needed:

Download the zip file from this post: https://xdaforums.com/showpost.php?p=77963614&postcount=61

Direct link: https://xdaforums.com/attachment.php?attachmentid=4626197&d=1540382598

This archive includes the missing file in OP post "usb_audio_policy_configuration.xml"

Rom installation

recovery
[LIST]
[*]Wipe
Dalvik / ART Cache
Substratum Overlays
Cache
Data
Internal Storage
System
Vendor
[*]Reboot to recovery
[*]Mount all partitions
[*]Flash xiaomi.eu_multi_MIMAX3_8.10.18_v10-8.1.zip
[*]Reboot to recovery
[*]Wipe
Dalvik / ART Cache
Substratum Overlays
Cache
Data
Internal Storage
[*]Flash system-arm64-aonly-vanilla-nosu.img
[*]Flash Opengapps Pico (if you flash this later there will be force closes)
[*]Reboot
[/LIST]
recovery
[LIST]
[*]Flash Magisk
[*]Reboot
[/LIST]

Audio modification

[LIST]
[*]Extract "vendor-patch-18102401.zip"
If you are using Root Explorer the extracted files are placed in /sdcard/emulated/0/SpeedSoftware/Extracted/*

[*]Copy

a2dp_audio_policy_configuration.xml
audio_effects.xml
audio_platform_info_tavil.xml
audio_policy_configuration.xml
audio_policy_volumes.xml
media_codecs_google_audio.xml
r_submix_audio_policy_configuration.xml

From /sdcard/emulated/0/SpeedSoftware/Extracted/ to /vendor/etc/ and replace existing files.
[*]Set permissions for all files to 644
[*]Reboot
[/LIST]
recovery
[LIST]
[*]Mount Vendor
[*]Advanced
[*] File manager
[*] Copy sdcard/SpeedSoftware/Extracted/usb_audio_policy_configuration.xml to /vendor/etc
[*] Go to /vendor/etc/usb_audio_policy_configuration.xml
[*] Set permission
[*] Erase all 0000 and write 644 and confirm (do not write 0644 because the phone will not boot, twrp will add the 0 automatically when typing 644 and confirming)
[*]Reboot
[/LIST]

Brightness fix

You can either do this yourself by 1 editing default.prop or by 2 copying the file from "vendor-patch-18102401.zip"

The file framework-res__auto_generated_rro.apk is not needed on AICP-mordiford and the phone will bootloop if this file gets placed in /vendor/overlay.

1

[LIST]
[*]Edit /vendor/default.prop
[*]Add the line [B]persist.sys.qcom-brightness=4095[/B] at the end of the file
[*]Save the file
[*]Set permission to 600
[*]Reboot[/LIST]

2

[LIST]
[*]Extract "vendor-patch-18102401.zip"
If you are using Root Explorer the extracted files are placed in /sdcard/emulated/0/SpeedSoftware/Extracted/*

[*]Copy
Default.prop
From /sdcard/emulated/0/SpeedSoftware/Extracted/ to /vendor/ and replace existing files.
[*]Set permission to 600
[*]Reboot
[/LIST]

Google Camera port fix

[LIST]
[*]Enable Camera2 API by installing Camera2_API_Enabler-v1.0.0.zip in magisk
[*]Install GoogleCamera_6.1.009.215420794-beta2.apk from this thread
[url]https://xdaforums.com/redmi-note-5-pro/themes/gcam-pixel-3-device-android-pie-pixel-t3857388[/url]
[/LIST]

Viper4Android driver install prompt not going away fix

[LIST]
[*]Delete folder or rename /vendor/lib/soundfx
[*]Delete folder or rename /vendor/lib64/soundfx
[I][B]Thank you jngiag for this tip[/B][/I]
[url]https://xdaforums.com/showpost.php?p=77993333&postcount=112[/url]
[/LIST]
Extra tip:
If you installing magisk module [I]"Viper4Android_Fx created by Viper520, ZhuHang, Ahrion, Zackptg5"[/I]
[I]New version does not work and says not processing[/I]
Make sure you install the module with options:

Select Version -
Choose which V4A you want installed:
Vol+ = new (2.5.0.5). Vol- = older

[B]Choose:[/B][I] Vol- = older[/I]

Choose which older V4A you want installed:
2.3.4.0 V4A will install super quality driver
Vol+ = 2.4.0.1. Vol- = 2.3.4.0

[B]Choose: [/B][I]Vol- = 2.3.4.0[/I]