Magisk-DUAL SPEAKER MOD REALME 7(rmx2161 and rmx2151) - Realme 7 Themes, Apps, and Mods

WARNING : USE THIS MOD AT YOUR OWN RISK..I AM NOT RESPONSIBLE ANY DAMAGE OR LOSS​
This MAGISK-MODULE Enables EARPICE To Work As A Secondary Speaker .... Unlike "QUALCOM" AND "EXYNOS" Uses "mixer_path.xml" and "mixer_path_tavil.xml".....I Found That "MEDIATEK" Uses A File Name "audio_device.xml" Located inside /system/vendor/etc/audio_device.xml...It Contains All The Possible Path Of Audio Playback Controls But The Codes Are Different From (SNAPDRAGON AND EXYNOS)
YOUTUBE VIDEO TUTORAL-https://youtu.be/zKvcCQc8YVg
IF U LIKE MY WORK COMMENT AND SHARE

Dr.Ritshi Amchi said:
WARNING : USE THIS MOD AT YOUR OWN RISK..I AM NOT RESPONSIBLE ANY DAMAGE OR LOSS​
This MAGISK-MODULE Enables EARPICE To Work As A Secondary Speaker .... Unlike "QUALCOM" AND "EXYNOS" Uses "mixer_path.xml" and "mixer_path_tavil.xml".....I Found That "MEDIATEK" Uses A File Name "audio_device.xml" Located inside /system/vendor/etc/audio_device.xml...It Contains All The Possible Path Of Audio Playback Controls But The Codes Are Different From (SNAPDRAGON AND EXYNOS)
YOUTUBE VIDEO TUTORAL-https://youtu.be/zKvcCQc8YVg
IF U LIKE MY WORK COMMENT AND SHARE
Click to expand...
Click to collapse
Can you share us a review about this mode .. I am excited

Dr.Ritshi Amchi said:
WARNING : USE THIS MOD AT YOUR OWN RISK..I AM NOT RESPONSIBLE ANY DAMAGE OR LOSS​
This MAGISK-MODULE Enables EARPICE To Work As A Secondary Speaker .... Unlike "QUALCOM" AND "EXYNOS" Uses "mixer_path.xml" and "mixer_path_tavil.xml".....I Found That "MEDIATEK" Uses A File Name "audio_device.xml" Located inside /system/vendor/etc/audio_device.xml...It Contains All The Possible Path Of Audio Playback Controls But The Codes Are Different From (SNAPDRAGON AND EXYNOS)
YOUTUBE VIDEO TUTORAL-https://youtu.be/zKvcCQc8YVg
IF U LIKE MY WORK COMMENT AND wow finally I tried.. this module has unlock my earpiece speaker has dual speaker on my realme 7 rmx2151 Android 10.. very nice work.. it would better if this module also supports Dolby Atmos. Hoping for better version.. thanks anyway
Click to expand...
Click to collapse

Dr.Ritshi Amchi said:
WARNING : USE THIS MOD AT YOUR OWN RISK..I AM NOT RESPONSIBLE ANY DAMAGE OR LOSS​
This MAGISK-MODULE Enables EARPICE To Work As A Secondary Speaker .... Unlike "QUALCOM" AND "EXYNOS" Uses "mixer_path.xml" and "mixer_path_tavil.xml".....I Found That "MEDIATEK" Uses A File Name "audio_device.xml" Located inside /system/vendor/etc/audio_device.xml...It Contains All The Possible Path Of Audio Playback Controls But The Codes Are Different From (SNAPDRAGON AND EXYNOS)
YOUTUBE VIDEO TUTORAL-https://youtu.be/zKvcCQc8YVg
IF U LIKE MY WORK COMMENT AND SHARE
Click to expand...
Click to collapse
Upgrade for Dolby atmos. Thank you. Waiting for better version

dual Speaker more offpen

Related

Sound Fix For LOS and All LOS Base ROMS

Hi All. The sound is fixed as you know but not on all ROM. So i've made a Fix zip. Tried on US and G version.
Edit: working on A2017 (Chinese version)
IMPORTANT: I'm not responsible for anything which could be happen. I suggest to make a backup from TWRP.
First of all i didn't fix it. Thanks @Unjustified Dev , @DrakenFX and Anynomous Dev
Instruction:
Flash zip via TWRP.
Download:
v4.1
https://www.androidfilehost.com/?fid=457095661767153882
v4
https://www.androidfilehost.com/?fid=457095661767152958
v2
https://www.androidfilehost.com/?fid=529152257862718359
WesTD said:
Hi All. The sound is fixed as you know but not on all ROM. So i've made a Fix zip. Tried on US and G versions.
IMPORTANT: I'm not responsible for anything which could be happen. I suggest to make a backup from TWRP.
First of all i didn't fix it. Thanks @Unjustified Dev , @DrakenFX and Anynomous Dev
Instruction:
Flash zip via TWRP.
Download:
uploading.
Click to expand...
Click to collapse
Thanks for that.
Do correct me if I'm wrong, but this still does not make use of the AKM DAC, right? This still uses the Qualcomm inbuilt DAC?
Thanks in any case!
joaste said:
Thanks for that.
Do correct me if I'm wrong, but this still does not make use of the AKM DAC, right? This still uses the Qualcomm inbuilt DAC?
Thanks in any case!
Click to expand...
Click to collapse
It's wired for it's AKM DAC the issue was we were dependent on ZTE crappy patch that made us bypass and force audio on. Now the amplifier HAL correctly calls to the NXP driver to properly calibrate and initialize audio in all usecases. It's more so the developer is trying to recreate how stock handles stuff like voice speaker, speaker reversing, mono + stereo, etc.
Unjustified Dev said:
It's wired for it's AKM DAC the issue was we were dependent on ZTE crappy patch that made us bypass and force audio on. Now the amplifier HAL correctly calls to the NXP driver to properly calibrate and initialize audio in all usecases. It's more so the developer is trying to recreate how stock handles stuff like voice speaker, speaker reversing, mono + stereo, etc.
Click to expand...
Click to collapse
How was this fix done exactly? Was it just fiddling with some configuration files or did you have to completely rewrite the way android works the audio so it calls the driver correctly? And if so, is it the same way Dolby does? I'm so curious how you guys and the anonymous dev managed to fix it
Also, I can't wait for this to upload. This + LOS based roms and this phone would be absolutely perfect. Too bad it's not mainstream enough to get more attention
If we flash this, will it cause any issues once it's officially merged into LOS and we update LOS on the phone?
WesTD said:
Hi All. The sound is fixed as you know but not on all ROM. So i've made a Fix zip. Tried on US and G versions.
IMPORTANT: I'm not responsible for anything which could be happen. I suggest to make a backup from TWRP.
First of all i didn't fix it. Thanks @Unjustified Dev , @DrakenFX and Anynomous Dev
Instruction:
Flash zip via TWRP.
Download:
uploading.
Click to expand...
Click to collapse
The download is not available.
Teet1 said:
How was this fix done exactly? Was it just fiddling with some configuration files or did you have to completely rewrite the way android works the audio so it calls the driver correctly? And if so, is it the same way Dolby does? I'm so curious how you guys and the anonymous dev managed to fix it
Also, I can't wait for this to upload. This + LOS based roms and this phone would be absolutely perfect. Too bad it's not mainstream enough to get more attention
Click to expand...
Click to collapse
Has nothing to do with dolby. There's a file libtfa9890.so stock audio hal calls this file does it's magic. On lineage we don't have the amp source which is packed into the audio hal on stock. We use an amplifier hal all this hal does it try to produce whatever the heck the stock audio hal did when it loaded libtfa9890.so. It basically allows you to instrument custom calls without touching the audio hal of the ROM therefore keeping it clean. ZTE gave us a patch that force loaded libtfa9890 and immediately said ignore all cases turn on the speaker. What the dev did is rewrite the patch to properly call all functions such as calibrate, set mode , speaker on , speaker off ,etc. This way we don't just force speaker we actually start saying if in call handle the speakers this way. If music is playing handle them this way. We don't just say if need sound ramp up the amp and make sound.
link added.
Has anyone who flashed it have a decrease in system performance?
Sent from my ZTE A2017U using Tapatalk
WesTD said:
link added.
Click to expand...
Click to collapse
Just installed this fix.
It works, it works, Hallelujah!.
Ya so this zip works on the Chinese version, so you can update the op
Also passed the stereo test. Left and right channels are both working independently and awesomely.
The distortion has nearly disappeared.
Calls work.
Thanks to all the devs especially unjustified dev and anonymous dev.
Thanks also to drakenfx and westd.
Also now that patch 3 is out, can we expect another zip in the future!
Unjustified Dev said:
Has nothing to do with dolby. There's a file libtfa9890.so stock audio hal calls this file does it's magic. On lineage we don't have the amp source which is packed into the audio hal on stock. We use an amplifier hal all this hal does it try to produce whatever the heck the stock audio hal did when it loaded libtfa9890.so. It basically allows you to instrument custom calls without touching the audio hal of the ROM therefore keeping it clean. ZTE gave us a patch that force loaded libtfa9890 and immediately said ignore all cases turn on the speaker. What the dev did is rewrite the patch to properly call all functions such as calibrate, set mode , speaker on , speaker off ,etc. This way we don't just force speaker we actually start saying if in call handle the speakers this way. If music is playing handle them this way. We don't just say if need sound ramp up the amp and make sound.
Click to expand...
Click to collapse
Genius. Didn't mean to say Dolby, meant zte I had Dolby Atmos on the mind. But if it's nothing to do with Dolby, how come they didn't release the source for a direct fix instead of releasing a half assed patch for devs to work with? Then there wasn't be an issue of it being closed or open source
WesTD said:
link added.
Click to expand...
Click to collapse
My latest Gerrit patch?
Sent from my ZTE A2017U using Tapatalk
FIGURES!!! I just went back to stock (but still have unlocked bootloader)....
Looks like I know what I'll be doing, at some point, this week!
GREAT WORK @DrakenFX
Unjustified Dev said:
My latest Gerrit patch?
Sent from my ZTE A2017U using Tapatalk
Click to expand...
Click to collapse
not latest, 2nd one. @DrakenFX will upload it soon.
WesTD said:
not latest, 2nd one. @DrakenFX will upload it soon.
Click to expand...
Click to collapse
Yeah, I sent him the libraries a few hours ago. Let me know if you need anything else.
Sent from my ZTE A2017U using Tapatalk
Unjustified Dev said:
Yeah, I sent him the libraries a few hours ago. Let me know if you need anything else.
Sent from my ZTE A2017U using Tapatalk
Click to expand...
Click to collapse
Okay man. thanks for your works.
TWRP Flashable Stereo Sound Patch 3.
https://www.androidfilehost.com/?fid=457095661767152906
Thanks to Anonymous Dev. & @Unjustified Dev for all of this.
DrakenFX said:
TWRP Flashable Stereo Sound Patch 3.
https://www.androidfilehost.com/?fid=457095661767152906
Thanks to Anonymous Dev. & @Unjustified Dev for all of this.
Click to expand...
Click to collapse
Can users that already have the audio fix install this (NucleaROM)??
aLexzkter said:
Can users that already have the audio fix install this (NucleaROM)??
Click to expand...
Click to collapse
Yep this would work on any rom that uses amplifier hal which is all of them
Sent from my ZTE A2017U using Tapatalk
What's the improvement of V3 over V2 ?
PS : THX to every1 involved who made this possible !

[REQUEST] Dual speaker mod for OPX

A mod that allows us to use both the call speaker and the media speaker.
Thanks
Here you can find a ROM with already built-in what you are looking for: https://forum.xda-developers.com/oneplus-x/development/rom-modified-oos-t3491602
Dinnerb0ne said:
A mod that allows us to use both the call speaker and the media speaker.
Thanks
Click to expand...
Click to collapse
If you're still requesting,
please consider visiting the thread in my signature...

Request: Stereo mod for our device

It is using front earpiece for media playback. I tried to gain this effect by using SoundAbout, but when i turned media on earpiece there was no sound from speaker, it was unable to use earpiece/speaker at the same time. It will be great if somebody port such mod to our device Waiting for your anwsers, guys.
Hi you can try using shox audio mod for our device , simply Google
Sent from my Redmi Note 3 using Tapatalk
VaibhavKumar07 said:
Hi you can try using shox audio mod for our device , simply Google
Click to expand...
Click to collapse
Can you share the link pls?
https://forum.xda-developers.com/redmi-note-3/themes/audio-mod-hardware-based-best-audio-t3598455
This is for Snapdragon
if you've only taken a view over the threads section of this device you would've noticed that there are already 2 mods regarding your desire, one which is mine, forgotten, based only on earpiece playback, and the other, still actively developed, which has more features and improvements. Good luck flashing.

[MOD] Dual Speakers Mod for N910K

This mod enables the Earpiece speaker to be used at the same time with the main rear speaker when using listening to music, and watching videos etc...
Updated
Now TRUE STEREO with Earpiece playing the LEFT channel and rear speaker playing the RIGHT channel. Test with app of your choice.
Click to expand...
Click to collapse
To install open the zip file and extract the "default_gain.conf" file and copy it to "/system/etc/default_gain.conf" using your preferred method.
Then set permissions to rw-r-r or 0644 ( e.g "chmod 0644 /system/etc/default_gain.conf" ) and REBOOT your device.
Volume levels are pushed to maximum possible without distortion with EQ on Earpiece speaker to remove low frequencies. Good luck.
Works on my SM-910K running MarshMallow 6.0.1.
WARNING!!!
THIS HAS ONLY BEEN TESTED ON THE DEVICE MENTIONED ABOVE. MAKE SURE TO BACKUP YOUR DEFAULT "default_gain.conf" FILE BEFORE INSTALLING THE NEW ONE.
(E.g "adb pull /system/etc/default_gain.conf [safe location here]" or "adb shell cp /system/etc/default_gain.conf /sdcard/default_gain.conf.bak" )
To be SAFE DO a NANDroid backup in Recovery.
Happy modding.
NOTE:
If you cannot find "/system/etc/default_gain.conf" file on your device then this MOD will NOT WORK for you. If that is the case you can try the other surround mods for other variants of the Note 4. This has only been tested to work on the N910K.
I created this one because the mods for the other variants didn't work on my phone since it uses the "default_gain.conf" file instead of the 'normal' "mixer_paths.xml" file.
Source
https://github.com/salvenose/dual_mod
Changelog
v1 -> Initial Dual Speaker Mod
v2 -> Upgrade to true stereo
v3 -> Fix for audio leak through earpiece while Headphone connected
Tried it on my N910F running 6.0.1 and seems like it works,but need to cover the main speaker to hear anything from the earpiece.
alexetna95 said:
Tried it on my N910F running 6.0.1 and seems like it works,but need to cover the main speaker to hear anything from the earpiece.
Click to expand...
Click to collapse
If there was a quick ON/OFF toggle you would notice that it makes quite a difference than with it turned off completely. Especially when you receive a notification etc... with your phone lying on a flat surface.
I haven't yet figured out how to manipulate the EQ settings for the front earpiece so that it only outputs mid-treble range without any bass.
Once I do, I'll be able to boost the volume without causing distortion. Otherwise it might damage the earpiece.
Where shoud I found that toogle ?
Actually I didn't find a "default_gain.conf" file in etc,so I just simply copied the one from your mod zip.
alexetna95 said:
Where shoud I found that toogle ?
Actually I didn't find a "default_gain.conf" file in etc,so I just simply copied the one from your mod zip.
Click to expand...
Click to collapse
If you didn't find a "default_gain.conf" file then the mod definitely won't work. It's not working for you.
Would this work on N910U?
It works on the 910C running Nemesis
Good job OP, this mod on 910C it is been hit and miss with a lot of distortion. This is the best implementation I have used. ?
Finaly N910c has this mod
It is working. Thank you very much :highfive::highfive:
Came from @mangui's post in NEMESIS REFINED V3.8.5 N7 Port by*ananjaser1211
Confirmed!!! This work good on 910C , thanks very good mod
Working, but after first call - microphone stop working
Fixed call microphone
alextalexus said:
Working, but after first call - microphone stop working
Click to expand...
Click to collapse
I've fixed it ?
Hi theres a bug
when I plug in earphones , sound still comes out of front mic
Here is the source pushed to GitHub
https://github.com/salvenose/dual_mod
Possible Fix
Ryuce said:
Hi theres a bug
when I plug in earphones , sound still comes out of front mic
Click to expand...
Click to collapse
Can you tell me if this fix works
https://raw.githubusercontent.com/salvenose/dual_mod/master/default_gain.conf
sVenose said:
Can you tell me if this fix works
https://raw.githubusercontent.com/salvenose/dual_mod/master/default_gain.conf
Click to expand...
Click to collapse
Thanks bro its fixed!
Ryuce said:
Thanks bro its fixed!
Click to expand...
Click to collapse
Alright. Just added v3 to the original post. Have a nice day and God bless you.
Wooooow
Thats awesome
V3 Working great on N910C ,
I found another bug
When i make phone call people i call cant hear me
Ryuce said:
I found another bug
When i make phone call people i call cant hear me
Click to expand...
Click to collapse
Yes i have the same problem,
I have to restart my phone, then it worka fine
Hi again,
After update to erobotrom v1.2, I have the same problem - microphone stop working. Somebody have the original mixer_path and default_gain or the other solution for this problem. Thx.

[MAGISK] Working (stock) EMUI sound-mod

Install "Ainur JamesDSP v1.7" Magisk module and choose the HQ 64bit driver
Install "Audio Modification Library v.1.8.1" Magisk module
Reboot
Configure JamesDSP app
Confirmed working (speakers & headphones (can't test bluetooth)) on my FIG-LX1 (L31) - EMUI 8.0.0.148(C432) - Magisk v17.1
Edit: If you don't want ringtones/notification-sounds to be processed, switch DSP registration from global to conventional. (3dot menu - top right, screenshot added)
Huge thanks to natanrosenfeld (he made a YT video, explaining a fix for previous version (now fixed with v1.7)) - and especially the JamesDSP dev team!
Great news I seen it on .android-hilfe.de myself
Messing around and cant seem to get it right, either too loud or doesnt work
Viper4android was much easier to setup, using Huawei DTS.irs or srs_2_1.irs then not much else and worked great
redultra82 said:
Great news I seen it on .android-hilfe.de myself
Messing around and cant seem to get it right, either too loud or doesnt work
Viper4android was much easier to setup, using Huawei DTS.irs or srs_2_1.irs then not much else and worked great
Click to expand...
Click to collapse
Have you tried using the same impulse response files with JamesDSP?
Copy the .irs (or .wav, .flac) to /storage/emulated/0/JamesDSP/Convolver and enable Convolver in JamesDSP.
Works great here.
Greetings from "androphil"
callmeWhiskers said:
Have you tried using the same impulse response files with JamesDSP?
Copy the .irs (or .wav, .flac) to /storage/emulated/0/JamesDSP/Convolver and enable Convolver in JamesDSP.
Works great here.
Greetings from "androphil"
Click to expand...
Click to collapse
I did thanks
Can you send screenshot of what you have, not sure on other settings
redultra82 said:
(...)Can you send screenshot of what you have, not sure on other settings
Click to expand...
Click to collapse
Even if we'd share the exact same setup (e.g. settings/IR xy sound great with my Shure SE425 in-ear headphones, but not so great with my AKG Q701) and preference of music, it would still be incredibly subjective and mainly based on taste. Certified sound-engineers would probably disagree, I guess
My suggestion is: leave every (other) option off, download a pack of different IRs (e.g. https://forum.xda-developers.com/zenfone2/general/collection-convolver-samples-389-t3140299) and try each one out. If you found one you like, (slightly) tune it with the EQ. At least that's my "non-pro" approach.
Mostly all I want is to make the phone louder, well the phone speaker, on Bluetooth speakers etc it's fairly OK
Next issue is echo sound on ringtone and notification
I'll try IRS out and maybe someday have Viper4android
It's a system-wide audio-mod, so yes, if you have e.g. Virtual Room Effect turned on or use a noticably "reverberating" impulse response file, you'll experience echo on ringtones/notification-sounds too.
I've managed to make the speakers slightly louder by choosing the highest IR Volume Level (30dB), but I think the device's speaker volume level/overall sound-quality is just physically limited. They are not the "best" speakers after all.
callmeWhiskers said:
It's a system-wide audio-mod, so yes, if you have e.g. Virtual Room Effect turned on or use a noticably "reverberating" impulse response file, you'll experience echo on ringtones/notification-sounds too.
I've managed to make the speakers slightly louder by choosing the highest IR Volume Level (30dB), but I think the device's speaker volume level/overall sound-quality is just physically limited. They are not the "best" speakers after all.
Click to expand...
Click to collapse
I noticed the room effect and turned it off, but just using Irs or some of them and seemed to be an echo,
Speaker is good enough, it is only a phone after all, there are small bluetooth speakers now that have great volume to help
A nice guy from the Telegram channel pointed out, that you can avoid processing system sounds (ringtones/notification) by switching DSP registration mode from global to conventional (screenshot added to OP).
YEEEES!!!! This mod is also working on Huawei P20Pro with EMUI8.1.. I just follow the same steps above. Thanks a lot man!
callmeWhiskers said:
Install "Ainur JamesDSP v1.7" Magisk module and choose the HQ 64bit driver
Install "Audio Modification Library v.1.8.1" Magisk module
Reboot
Configure JamesDSP app
Confirmed working (speakers & headphones (can't test bluetooth)) on my FIG-LX1 (L31) - EMUI 8.0.0.148(C432) - Magisk v17.1
Edit: If you don't want ringtones/notification-sounds to be processed, switch DSP registration from global to conventional. (3dot menu - top right, screenshot added)
Huge thanks to natanrosenfeld (he made a YT video, explaining a fix for previous version (now fixed with v1.7)) - and especially the JamesDSP dev team!
Click to expand...
Click to collapse
Hi do you know if I can change mixer path values without root and using adb on pc? , I'm trying to raise volume of WhatsApp calls, calls and maybe a bit of loud speaker volume but I'm trying to avoid root etc. Thanks any advice would be appreciated or a link to tutorials. I'm on psmart. Thanks again
jason13v8 said:
Hi do you know if I can change mixer path values without root and using adb on pc? , I'm trying to raise volume of WhatsApp calls, calls and maybe a bit of loud speaker volume but I'm trying to avoid root etc. Thanks any advice would be appreciated or a link to tutorials. I'm on psmart. Thanks again
Click to expand...
Click to collapse
Sorry - I'm not an expert, so don't take my word for it - but I don't think that's possible, since all these files are stored in locations, where (non root) users don't have write permissions. Even with a rooted and/or custom recovery device, I don't think it's possible to alter app-specific volumes by just changing mixer_paths.xml values.
callmeWhiskers said:
Sorry - I'm not an expert, so don't take my word for it - but I don't think that's possible, since all these files are stored in locations, where (non root) users don't have write permissions. Even with a rooted and/or custom recovery device, I don't think it's possible to alter app-specific volumes by just changing mixer_paths.xml values.
Click to expand...
Click to collapse
Sorry I know I mentioned whats app but really I just mean overall volume. With my moto g5 I was able to edit mixer path values which led to louder everything. But that was only with root as I'm new to adb. Thanks for your response
jason13v8 said:
Sorry I know I mentioned whats app but really I just mean overall volume. With my moto g5 I was able to edit mixer path values which led to louder everything. But that was only with root as I'm new to adb. Thanks for your response
Click to expand...
Click to collapse
In case your bootloader is unlocked, iirc you could theoretically fastboot flash TWRP - and use TWRP's "privileged" terminal (e.g. (mount /system), adb pull/push and edit the file(s)), and then (re)flash stock recovery again - without actually rooting the device.
Again, I'm not an expert (also didn't try it myself) and can't guarantee above mentioned procedure works, despite my inner-Sherlock-Holmes tells me, your bootloader is actually not unlocked.
callmeWhiskers said:
In case your bootloader is unlocked, iirc you could theoretically fastboot flash TWRP - and use TWRP's "privileged" terminal (e.g. (mount /system), adb pull/push and edit the file(s)), and then (re)flash stock recovery again - without actually rooting the device.
Again, I'm not an expert (also didn't try it myself) and can't guarantee above mentioned procedure works, despite my inner-Sherlock-Holmes tells me, your bootloader is actually not unlocked.
Click to expand...
Click to collapse
Yeah still locked dude, tried DC unlocker but they refunded as I'm on latest security patch and admitted there is nothing they can do right now.
Themes

Categories

Resources