[Redmi Note 8 Pro Themes, Apps, and Mods] Dr.Ritshi Amchi:
-----(ENABLE DUAL SPEAKER IN REDMI NOTE 8 PRO)------

------ENABLES EARPICE AS A SECONDARY SPEAKER [BUT THE VOLUME FROM EARPICE IS LOW COMPARED TO BOTTOM SPEAKER DUE TO HARDWARE LIMITATIONS]------

----------PLEASE READ CAREFULLY BEFORE FLASHING THIS [MAGISK MODULE]-----------

-----REQUIRMENTS-----

1. MAGISK INSTALLED (v18 above)

2. WORKS ON BOTH [MiUi] AND OTHER [A.O.S.P ROMS]

3. REMOVE "ALL OTHER SOUND MOD" BEFORE INSTALLING THIS (MODULE) OTHERWISE IT MAY CONFLICT🤯 WITH OTHER MODULES.

4. DON'T USE🤯 "audio_modification_libary" AND "audio_compatibility_patch" WITH THIS MODULE.

5. DON'T USE🤯 [DOLBY_ATMOS_MODULE] WHICH REQUIRED "audio_modification_libary" TO WORK.

THERE ARE FEW DOLBY_ATMOS_MODULE(e.g dolby atmos module imported from 'ZTE AXON' AND 'RAZER PHONE' WHICH DOES'T REQUIRED "audio_modification_libary" TO WORK)🙂

6. YOUR BRAIN AND SOME COMMON SENSE😅

--------PROCESS--------[METHOD]

1. DOWNLOAD THE "dual speaker mod redminote8pro.zip" (size 11.33Kb)

2. REMOVE ALL OTHER SOUND MOD I REPEAT REMOVE ALL OTHER MOD

3. FLASH THE "dual speaker mod redminote8pro.zip" IN MODULE SECTION OF MAGISK AND REBOOT.

...THATS IT..🙂----NOW YOUR EARPICE WILL WORK AS A SECONDARY SPEAKER BUT THE DIFFERENCE CAN BE ONLY HEARED ON 80% ABOVE VOLUME

...FOR TESTING WEATHER IT'S WORKING OR NOT TRY PLAYING A SONG AND MAXOUT THE VOLUME ABOVE 80% AND COVER THE BOTTOM LOUDSPEAKER WITH FINGER...NOW LISTEN THROUGH THE EARPICE..I'M SURE YOU WILL BE ABLE TO HEAR IT

---------[ADDITIONAL/ OPTIONAL]-----------

------THIS IS AN OPTIONAL ONE-----

IF YOU WANT YOUR SOUND TO BE CLEAR AND OPTIMISED THEN YOU CAN FLASH NL-SOUND MEDIATEK DRIVERS AFTER FLASHING THE DUEL SPEAKER MAGISK MODULE

THESE MEDIATEK DRIVERS WILL ONLY WORK FOR ANY MEDIATEK BASED ANDROID DEVICE NOT FOR QUALCOM

SOURCE CODE AND PROCESS TO BUILD THE MOD

I HAVE PROVIDED THE FILE NAMED AS "audio_device.xml" WHICH I HAVE MODIFIED TO ENABLE EARPICE AS A SECONDARY SPEAKER ANYONE CAN DOWNLOAD THE FILE OR EXTRACT FROM THE dual speaker redminote8pro.zip AND MODIFIED IT ACCORDING TO THEIR OWN TASTE AND REPACK IT TO ZIP AND USE IT...

UNLIKE QUALCOM AND EXYNOS WHICH USES mixer_path.xml FILE TO DEFINE THE PATH AND AUDIO PLAYBACK CHANELS, HERE MEDIATEK USES ANOTHER FILE NAMED AS audio_device.xml WHICH IS LOCATED IN /system/vendor/etc/audio_device.xml

"RCV"means RECIEVER

"SPK" means SPEAKER

I ADD A LINE IN EXTERNAL_SPEAKER OUTPUT SECTION

i.e kctl name="Ext_Reciver_Amp Switch" value="1" />

1 means turn on and 0 means turn off

THIS COMMAND FORCE THE EARPICE TO ACT AS A SECOND PATH WAY FOR AUDIO OUTPUT CHANEL

YOU NEED TO ADD AN TURN ON AND TURN OFF COMMAND IN EACH COMMAND

EXAMPLE-

<!--external_speaker output-->

<path name="ext_speaker_output" value="turnon">

<kctl name="Ext_Speaker_Amp Switch" value="1" />

<kctl name="Ext_Reciver_Amp Switch" value="1" /> (turn on command)

</path>

<path name="ext_speaker_output" value="turnoff">

<kctl name="Ext_Speaker_Amp Switch" value="0" />

<kctl name="Ext_Reciver_Amp Switch" value="0" /> (turn off command)

NOW,

YOU NEED TO DEFINE LEFT AND RIGHT CHANELN [ EARPICE IS ALWAYS DEFINED AS LEFT CHANEL]

YOU NEED TO ADD THIS LINES IN EXTERNAL_SPEAKER OUTPUT SECTION

<!--external_speaker output left-->

<path name="ext_speaker_output_left" value="turnon"> (defines left out put turn on)

<kctl name="Ext_Speaker_Amp Switch" value="0" /> (left chanel off for spk)

<kctl name="Ext_Reciver_Amp Switch" value="1" /> (left chanel on for rcv)

</path>

<path name="ext_speaker_output_left" value="turnoff"> (defines left out put turn off)

<kctl name="Ext_Speaker_Amp Switch" value="0" /> (left chanel off for spk)

<kctl name="Ext_Reciver_Amp Switch" value="0" /> (left chanel off for spk)

</path>

<!--external_speaker output right-->

<path name="ext_speaker_output_right" value="turnon">

<kctl name="Ext_Speaker_Amp Switch" value="1" />

<kctl name="Ext_Reciver_Amp Switch" value="0" />

</path>

<path name="ext_speaker_output_right" value="turnoff">

<kctl name="Ext_Speaker_Amp Switch" value="0" />

<kctl name="Ext_Reciver_Amp Switch" value="0" />

THE OVERALL WILL LOOK LIKETHIS

<!--external_speaker output-->

<path name="ext_speaker_output" value="turnon">

<kctl name="Ext_Speaker_Amp Switch" value="1" />

<kctl name="Ext_Reciver_Amp Switch" value="1" />

</path>

<path name="ext_speaker_output" value="turnoff">

<kctl name="Ext_Speaker_Amp Switch" value="0" />

<kctl name="Ext_Reciver_Amp Switch" value="0" />

</path>

<!--external_speaker output left-->

<path name="ext_speaker_output_left" value="turnon">

<kctl name="Ext_Speaker_Amp Switch" value="0" />

<kctl name="Ext_Reciver_Amp Switch" value="1" />

</path>

<path name="ext_speaker_output_left" value="turnoff">

<kctl name="Ext_Speaker_Amp Switch" value="0" />

<kctl name="Ext_Reciver_Amp Switch" value="0" />

</path>

<!--external_speaker output right-->

<path name="ext_speaker_output_right" value="turnon">

<kctl name="Ext_Speaker_Amp Switch" value="1" />

<kctl name="Ext_Reciver_Amp Switch" value="0" />

</path>

<path name="ext_speaker_output_right" value="turnoff">

<kctl name="Ext_Speaker_Amp Switch" value="0" />

<kctl name="Ext_Reciver_Amp Switch" value="0" />

</path>

I AM NOT RESPONSIBLE FOR ANY DAMAGE