• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[AML+Magisk+TWRP][MOD][26/08][v8] Stereo Speaker Mod For Oneplus 6

Search This thread

chrisaw

Senior Member
Jun 12, 2007
306
235
Stereo Speaker Mod

I've been working on adapting the Stereo Mod to be easier to work with and have converted it to a Unity module (meaning it now supports both Magisk and standard recovery ZIP install.) I have also added full AML support meaning it will work seamlessly with or without other sound mods and with or without the AML module itself.

If you plan to use the module with other sound mods - I recommend you flash AML (from Magisk - you will find it in the downloads section of the app) and this version of the mod. It will automatically be detected as an AML mod and should work with all other sound mods.

Feel free to adapt my code as you see fit!

Links

Download: Releases
Source Code: Repo

Install Steps

  1. Download ZIP
  2. Install ZIP through either Magisk (will install as a module) or TWRP (will install as a system mod.)
  3. (optional) If you plan to use AML - please install (or reinstall) it at this point. If already installed - you will need to reinstall it twice - once to remove, again to reinstall.
  4. Reboot

Uninstall Steps
  • Download ZIP
  • Flash ZIP through either Magisk or TWRP and this will trigger an uninstall.
  • Reboot

Problems?

If you have any problems with the mod - please tell me the following:

- What's not working properly?
- What ROM are you using?
- What vendor version are you using? (if on OOS - this will be your actual OOS version)

Credits

This is entirely based on the hard work of acervenky - all I've done here is improve on his already incredible work! You can find his original post here.
 
Last edited:

fantomrik

Member
Jun 21, 2014
9
4
Thanks for your work!
There are applications that output sound depending on the proximity sensor (for example, watsapp, telegram). You turn on the voice message, bring the phone to your ear and the sound from the external speaker switches to conversational (that could be heard in public places).
Is it possible to implement it in your fashion or is it technically impossible?
 
  • Like
Reactions: fuarkgl3

chrisaw

Senior Member
Jun 12, 2007
306
235
Sorry to say this but providing any form of GUI or additions to the mod isn't really in the scope of what I set out to achieve here.

The code, however, is freely available on GitHub using the link from the main post - I'm more than happy for anyone to fork the code and add any additional functionality they wish to.

My aim here is simply to provide AML support so things like Atmos, ViPER, etc. can be used seamlessly alongside the mod. I also converted the mod to use "patch" instead of just overwriting the file and switched to Unity so that it could support being flashed directly for those not wishing to run Magisk.
 
Last edited:
  • Like
Reactions: dr.guru

chrisaw

Senior Member
Jun 12, 2007
306
235
  • Like
Reactions: vtec303

xxBrun0xx

Senior Member
Jan 1, 2012
2,261
702
CT
Samsung Galaxy Z Fold2
Do any of these audio mods actually improve speaker quality? The speaker crackles at high volumes right out of the box. Would love to improve it, but wiping to unlock bootloader only seems worth it if there's a noticeable difference
 

chrisaw

Senior Member
Jun 12, 2007
306
235
Do any of these audio mods actually improve speaker quality? The speaker crackles at high volumes right out of the box. Would love to improve it, but wiping to unlock bootloader only seems worth it if there's a noticeable difference

Some of the mods can have a considerable amount of effect on the audio quality but things like Atmos are not going to resolve any audio "popping" or distortion. ViPER may be able to help mitigate the issue.

The purpose of this mod, however, is actually just to enable the earpeace speaker as a secondary speaker so instead of just the one mono speaker at the button - you have a kind of stereo effect (i.e. 2 audio sources.)

I'm sure others can guide better on which specific ViPER settings may help with the issue you're facing but it may be worth tinkering if you're passionate about resolving the issue. That having been said - unlocking the bootloader and rooting does lose you OTA functionality so it's something to keep in mind.
 
  • Like
Reactions: xxBrun0xx

Vevee

Member
Aug 10, 2018
6
0
I have installed the v5 of stereo mod along with AML and Vioer4Amdroid. How do i control the volume and gain levels of earpiece? I am not able to find the control settings anywhere.
 

Vevee

Member
Aug 10, 2018
6
0
You can change these values in a kernel manager. Also i think you'll need a custom kernel.

Ohh thanks. Can you please let me know which kernel works the best for it?

---------- Post added at 12:15 PM ---------- Previous post was at 12:09 PM ----------

Which kernel manager to use to control the sound settings of earpiece?
 

chrisaw

Senior Member
Jun 12, 2007
306
235
A kernel manager can do this for you - Kernel Aduitor is probably a good option.

Any kernel though mate - they all have that option as far as I'm aware.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 35
    Stereo Speaker Mod

    I've been working on adapting the Stereo Mod to be easier to work with and have converted it to a Unity module (meaning it now supports both Magisk and standard recovery ZIP install.) I have also added full AML support meaning it will work seamlessly with or without other sound mods and with or without the AML module itself.

    If you plan to use the module with other sound mods - I recommend you flash AML (from Magisk - you will find it in the downloads section of the app) and this version of the mod. It will automatically be detected as an AML mod and should work with all other sound mods.

    Feel free to adapt my code as you see fit!

    Links

    Download: Releases
    Source Code: Repo

    Install Steps

    1. Download ZIP
    2. Install ZIP through either Magisk (will install as a module) or TWRP (will install as a system mod.)
    3. (optional) If you plan to use AML - please install (or reinstall) it at this point. If already installed - you will need to reinstall it twice - once to remove, again to reinstall.
    4. Reboot

    Uninstall Steps
    • Download ZIP
    • Flash ZIP through either Magisk or TWRP and this will trigger an uninstall.
    • Reboot

    Problems?

    If you have any problems with the mod - please tell me the following:

    - What's not working properly?
    - What ROM are you using?
    - What vendor version are you using? (if on OOS - this will be your actual OOS version)

    Credits

    This is entirely based on the hard work of acervenky - all I've done here is improve on his already incredible work! You can find his original post here.
    5
    It literally says EXACTLY what the differences are in the main post dude!

    - AML support
    - Unity support

    This basically means:

    - This can work flawlessly with other audio mods.
    - This can work with or without Magisk.
    3

    Yay, I found out the problem thanks to your suggestion. I was using this "package" Magisk Module: V4A, Ainur Sauron, AML and Stereo Speaker Mod.
    After trying WETAmod (Audio), the Stereo Speaker Mod did not work, so I think the mistake must be on my side.
    I was following this order: Flash V4A -> Flash AML -> Reboot -> Flash Ainur Sauron -> Reboot -> Flash Stereo Speaker Mod -> Reboot ===> Stereo Speaker Mod wont work this way
    Turn out, the issue was the Ainur Sauron blocking Stereo Speaker Mod from AML.
    The correct order is: Flash V4A -> Reboot -> Flash Stereo -> Flash AML -> Reboot -> Flash Ainur Sauron -> Reboot ===> Now, I got bluetooth & Stereo Speaker Mod working

    Thanks for your kind support, Bigs1985 :D:D:D
    3
    Yes flash weta dual speaker