[Android Software Development] carlosorta:
Xiaomi Mi A1 Dolby Atmos Standard

Yes, it does. I made some test and I change "post-fs-data.sh", this is the steps I made:

1.- Oreo version official in Mi Roms

2.- Patched boot and magisk 15.3 installed

3.- Magisk modules: ADB & Fastboot, AirAudio, Android Mic Fix, Audio Modification Library, BusyBox for android, ExSDCard Access Enabler, Magisk Manager for Recovery Mode (mm), Mi A1 Camera Lag Fix Oreo, Mi A1 Gcam Mod, Nano for Android, Sony Apps Enabler(Alternate), Sudo4Droid, Unified Hosts Adblock, Volume Steps Increase Enabled and ViPer4Android FX, Xposed Framework and Xposed Framework (SDK 26) installed but inactive, all this modules in Update Channel Beta

4.- Boot in fastboot

5-. Boot TWRP "fastboot boot recovery.img" I used 3.1.2-1

6.- With ADB Sideload in TWRP, install twrp-mia1-installer-tissot-3.2.1.0 "adb sideload twrp-mia1-installer-tissot-3.2.1.0.zip" DON'T REBOOT

7.- Go to TWRP main menu and reboot recovery

7.1.- BACKUP THE SYSTEM PARTITION AND BOOT PARTITION (if it necessary)

8.- Go to ADB Sideload again and install Dolby Atmos Standard Version (I installed DolbyAtmos_for_Oreo_20180209-1.zip) DONT REBOOT

9.- When it finished and installed in magisk module, goto TWRP main menu and reboot in bootloader

10.- flash the patched boot again to recover the official recovery (if you want to know if all works boot the patched boot instead of flashing)

11.- Boot the system and get lucky to the boot, if after 5 minutes doesnt respond, force reboot and wait again, if not boot reinstall TWRP if you flashed the original recovery

12.- if all work, put the dolby atmos apk inside your device.

13.- With adb shell go to /magisk/dolbyatmos and copy post-fs-data.sh to /storage/emulated/0 and edit the file in your PC (with notepad, gedit, whatever) and change the file, after this:

"if [ -e /system_root/init.rc ]; then

root=/system_root

elif [ -e /system/init.rc ]; then

root=/system

else

root=""

fi"

and insert this line:

root=""

then after this

"chcon -R u:object_r:dts_data_file:s0 $dolby

chcon -R u:object_r:dts_data_file:s0 $dts"

change this lines like this:

odm=/odm #$root

audio1=/system_root/system/vendor/etc/audio #$root

etc0=/system_root/system/etc #$root

etc1=/system_root/system/vendor/etc #$root

then after this line

"mount -o ro,remount /system"

insert this line

setenforce 0

Save the file and copy to the internal storage again "/storage/emulated/0"

14.- when you edited the file, copy post-fs-data.sh to /magisk/dolbyatmos and replace the original file

15.- try if works executing this command inside the path "/magisk/dolbyatmos", "sh post-fs-data.sh", without quotes and if you dont get error, youre lucky

16.- install the apk manually or go to the apk and install with ppm install dolbyatmos.apk (the apk contained in the zip file of DolbyAtmos)

17.- Restart and open the DolbyAtmos, works like charm with effects <3

IF YOU DON'T ADD THE LINE SETENFORCE 0, THE APPLICATION DOESNT WORK AND YOU DONT HAVE SOUND PROCESSING, IS VERY IMPORTANT TO EXECUTE THIS COMMAND EVERY BOOT, THATS THE REASON TO ADDED IN POST-FS-DATA.SH

try and tell me if it works :D :cool: Im going to try to install the new patched version to improve the new changes of this module.