[AUDIOPHILE] aptX Bluetooth - Flashable ZIP! - for Lineage based ROM's - Google Pixel XL Themes, Apps, and Mods

EDIT JUNE 2018: This thread is no longer needed. If you're on the latest versions of AOSP/LOS then all you need is Magisk to install APTx and have it working.
Original thread continues below.
================================
This post will help you add aptX Bluetooth capability to your Pixel XL.
NOTE: This mod is only for ROM's using the Qualcomm Bluetooth stack, such as 14.1+ Cyanogen/Lineage OS.
Does not work in ROM's using the AOSP Bluetooth stack, such as Stock Pixel, Dirty Unicorns/Pure Nexus.
Apt-X and Apt-X HD are officially supported in Lineage OS based ROM's
https://www.xda-developers.com/late...port-for-aptx-and-aptxhd-caf-rebase-and-more/
For the moment, this thread only deals with non-HD aptX.
aptX HD is still rarely supported by headphones & other devices.
I'll research and add appropriate files for HD soon.
-------------------------------
-------------------------------
KNOWN COMPATIBLE ROMs:
CRDroid
Hexa-Project
Lineage OS
OctOS
Resurrection Remix
Tesla
Tipsy
-------------------------------
-------------------------------
DIRECTIONS TO INSTALL MOD:
Just go to this post and flash the zip in TWRP.
Please make sure to give @Namelesswonder many thanks for creating the zip for us!!!
https://forum.xda-developers.com/showpost.php?p=72267710&postcount=104
-------------------------------
-------------------------------
VERIFY MOD IS WORKING
To verify the mod is working, you should only need your ears and a HIGH QUALITY audio file.
Otherwise, you can use search your logcat for the string "aptx" to verify it's being enabled.
Such as in the output you see below.
Code:
01-14 18:57:40.539 1457 1625 I bt_btif_media: btif_a2dp_encoder_init Selected Codec [b]aptX[/b]
01-14 18:57:40.646 1457 4089 W bt_osi_thread: run_thread: thread id 4089, thread name [b]aptx[/b]_media_worke started
-------------------------------
-------------------------------
Have you heard of aptX Bluetooth?
It lets your Bluetooth connection deliver cleaner, fuller sounding audio to aptX supported devices (headphones, car stereo, etc).
Your Pandora may not sound any better, but your FLAC and other high end MP3 type files should sound cleaner, slightly more sparkly highs and better defined lows.
Think of it as the difference between listening to FM radio vs. a CD.
While it's not that drastic a difference, a capable ear should be able to enjoy what aptX delivers.
Same goes for HD voice calls if you have access to that. There may be more clarity noticed on these types of calls when using an aptX supported audio chain.
The aptX mod should not interfere with Viper or any other Android audio mod.
It's simply a codec, such as A2DP using SBC. But instead of SBC, you'll be using aptX.
Please give a big thanks to @dh.harald for coming up with this particular solution.
https://forum.xda-developers.com/oneplus-3/themes/mod-aptx-codec-t3521228
Here is my original aptX thread from 2013 containing dated discussions leading to our current status.
https://forum.xda-developers.com/showthread.php?t=2531440
Bluetooth® is limited by a maximum available bandwidth so it’s not always suitable for delivering high quality audio
Click to expand...
Click to collapse
Qualcomm aptX audio enables CD-like quality wireless audio because it solves the problem of sending the full music bandwidth over Bluetooth
Click to expand...
Click to collapse
Compression ratio: 4:1
Audio Format: 16-bit, 44.1kHz (CD-Quality)
Data Rates: 352kbps
Frequency Response: 10Hz to 22kHz
Algorithmic Delay: <1.89ms @ Fs 48KHz
Dynamic Range: 16-bit: >92dB
THD+N: -68.8dB
Click to expand...
Click to collapse
What are head-fi members views on apt-x lossless codec (over bluetooth)?
How good is bluetooth audio at its best?
-------------------------------
-------------------------------

Will this work with pure nexus ROM?

kirschdog1 said:
Will this work with pure nexus ROM?
Click to expand...
Click to collapse
Unlikely. I think they use AOSP Bluetooth stack.
You can try though, it won't break anything to put the files in the same location.
But I'm fairly sure it'll be a waste of time.
Someone with a Nexus 6 said it didn't work on their pure nexus ROM.

CZ Eddie said:
Unlikely. I think they use AOSP Bluetooth stack.
You can try though, it won't break anything to put the files in the same location.
But I'm fairly sure it'll be a waste of time.
Someone with a Nexus 6 said it didn't work on their pure nexus ROM.
Click to expand...
Click to collapse
I have it in my stock ROM, rooted with a custom kernel. I haven't tested it out yet. But I feel like these files do what I usually do manually in system/etc/a2dp_audio_policy_configuration.xml set the values to "96000,192000" and Bluetooth dramatically increases in depth and clarity almost the same as setting your computer audio to 24bit 192000 it's just a driver. I don't know why Google doesn't make this code part of Android it really makes a difference!
It should look like this:
<?xml version="1.0" encoding="UTF-8"?>
<!-- A2dp Audio HAL Audio Policy Configuration file -->
<module name="a2dp" halVersion="2.0">
<mixPorts>
<mixPort name="a2dp output" role="source">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="96000,192000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort>
<mixPort name="a2dp input" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="96000,192000"
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
</mixPort>
</mixPorts>
<devicePorts>
<devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="96000,192000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</devicePort>
<devicePort tagName="BT A2DP Headphones" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="96000,192000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</devicePort>
<devicePort tagName="BT A2DP Speaker" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="96000,192000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</devicePort>
<devicePort tagName="BT A2DP In" type="AUDIO_DEVICE_IN_BLUETOOTH_A2DP" role="source">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="96000,192000"
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
</devicePort>
</devicePorts>
<routes>
<route type="mix" sink="BT A2DP Out"
sources="a2dp output"/>
<route type="mix" sink="BT A2DP Headphones"
sources="a2dp output"/>
<route type="mix" sink="BT A2DP Speaker"
sources="a2dp output"/>
<route type="mix" sink="a2dp input"
sources="BT A2DP In"/>
</routes>
</module>

Will this work on stock n rooted?

moosc said:
Will this work on stock n rooted?
Click to expand...
Click to collapse
My mod or the mod above?
My mod will work with stock rooted, and a custom kernel. Use ES file explorer and a text editor to modify th .XML file and restart. You will notice the difference with good audio. Also WETA audio adds a significant audio gain with the addition of Sony and HTC audio libraries. You don't have to use Dolby Atmos or viper4android that ar included to get these gains. I'm one for not to processed audio viper tends to make the sound signature sound to digital but some of its settings are good for certain situations. That's the link for the WETA mod.
https://www.androidfilehost.com/?fid=745425885120694195

I'm pretty sure I tried aptX mod on stock and it didn't work. You're welcome to try though, it won't break anything.
Sachi, you might want to make a separate thread for your mod and leave it out of this thread.
aptX will increase bandwidth but I'm sure your mod has its merits too.

I did this mod on my Pixel xl rooted with elementalx kernel 1.03 and stock ROM. Worked fine but for some reason when ever the phone went to sleep it would not wake back up.

drzprettyboy30 said:
I did this mod on my Pixel xl rooted with elementalx kernel 1.03 and stock ROM. Worked fine but for some reason when ever the phone went to sleep it would not wake back up.
Click to expand...
Click to collapse
I cannot think of a single reason why that would happen.
I'll try to duplicate this afternoon.

Thanks bro I really loved this mod! Makes my BT headphones Sound so crispy. I know it's the mod causing it because after reverting back it stopped dong it, but will keep testing. Oh I forgot to mention I do have viper audio mod and the dolby Atmos on my Pixel XL. Could that be that issue?

drzprettyboy30 said:
Thanks bro I really loved this mod! Makes my BT headphones Sound so crispy. I know it's the mod causing it because after reverting back it stopped dong it, but will keep testing. Oh I forgot to mention I do have viper audio mod and the dolby Atmos on my Pixel XL. Could that be that issue?
Click to expand...
Click to collapse
I flashed back to stock "V" 7.1.1 image which is the latest.
Then rooted with SuperSU 2.79 SR2.
Then installed ElementalX 1.03.
Then installed the .so aptX files and connected to my aptX headphones.
I am only connecting via A2DP, as expected. aptX does not engage/work at all.
I did verify this via my headphones blue LED which flashes a certain times to indicate A2DP vs. aptX as well as reviewed my catlog which did not indicate aptX was in use.
I also verified no issues with phone going into or waking up from deep sleep.

CZ Eddie said:
I flashed back to stock "V" 7.1.1 image which is the latest.
Then rooted with SuperSU 2.79 SR2.
Then installed ElementalX 1.03.
Then installed the .so aptX files and connected to my aptX headphones.
I am only connecting via A2DP, as expected. aptX does not engage/work at all.
I did verify this via my headphones blue LED which flashes a certain times to indicate A2DP vs. aptX as well as reviewed my catlog which did not indicate aptX was in use.
I also verified no issues with phone going into or waking up from deep sleep.
Click to expand...
Click to collapse
So.. You're saying this mod doesn't work? I'm starting to get impatient with ARISE and this seemed like a great, easy alternative to tide me over.

Alcolawl said:
So.. You're saying this mod doesn't work? I'm starting to get impatient with ARISE and this seemed like a great, easy alternative to tide me over.
Click to expand...
Click to collapse
This mod is for Roms that use the Qualcomm BT stack which stock uses AOSP stack. So no this will not work on stock ROM
Sent from my Pixel XL using Tapatalk

Alcolawl said:
So.. You're saying this mod doesn't work? I'm starting to get impatient with ARISE and this seemed like a great, easy alternative to tide me over.
Click to expand...
Click to collapse
It doesn't work on stock or other ROM's with AOSP bluetooth stack.
It DOES work on ROM's with Qualcomm Bluetooth stack, though so far there is only one to test & verify this with.
Here is Lineage OS ROM and it works on this ROM:
https://forum.xda-developers.com/pixel-xl/help/try-lineage-xl-t3537898

Wouldn't it be possible to simply "copy"/port the Qualcomm BT Stack onto regular AOSP roms? I'm talking replace the libs and confs type of deal...

bmg1001 said:
Wouldn't it be possible to simply "copy"/port the Qualcomm BT Stack onto regular AOSP roms? I'm talking replace the libs and confs type of deal...
Click to expand...
Click to collapse
That would be nice.
Click the link in my signature to monitor the [mostly non-existent] development towards this goal.
Btw, there is a new LineageOS based ROM in the dev forum.
This aptX mod should work on it too.
The ROM is still in Alpha testing though.
https://forum.xda-developers.com/pixel-xl/development/rom-hexa-project-t3544204

CZ Eddie said:
That would be nice.
Click the link in my signature to monitor the [mostly non-existent] development towards this goal.
Btw, there is a new LineageOS based ROM in the dev forum.
This aptX mod should work on it too.
The ROM is still in Alpha testing though.
https://forum.xda-developers.com/pixel-xl/development/rom-hexa-project-t3544204
Click to expand...
Click to collapse
Running it right now and it's pretty nice. Few little nitpicks here and there but amazing for an Alpha.
Sent from my Pixel XL using XDA Labs

Is this apt-x or the new apt-x HD?

scoobydu said:
Is this apt-x or the new apt-x HD?
Click to expand...
Click to collapse
aptX.
I think one of the LG devices has the new HD but it doesn't work on our device.

Does Qualcomm's BT seem more stable or better than stock Android?
Sent from my Pixel XL using Tapatalk

Related

|AUDIO MOD|01-11|ZUK Z2|DAC HAX|DUAL SPEAKERS|shox AUDIO MOD V3.0|

Hey guys...
ScreaMySkrillEX here..
This is an audio mod made specifically for the ZUK Z2(all variants) on the request of @devabhi..
I currently have made this mod for the Xiaomi Redmi Note 3(kenzo) and this is gonna be my 2nd device..
Coming back to the mod, this is purely based on hardware tweaks and modding rather than software mods like Dolby atmos, viper4android, etc. which make changes at software-level.
This mod globally enhances the music experience.
What does it do(currently)?
This mod actually enables the earpiece speaker also along with the bottom-firing speakers. So you have a dual speaker config like the HTC10 has where the purpose of the speakers are same. The loudspeaker is untouched but the earpiece behaves like a mid-range booster and adds some more detail for the speaker audio output. I have also some minor tweaks to the headphone audio also. This mod enables CLS_H_HIFI mode during headphone audio playback which should make your listening experience better than stock.
Install Instructions:
1) Download the latest release of shox Audio Mod.
2) Reboot to recovery.
3) Flash the zip.
4) Reboot.
5) Magic.
This mod supports all other software mods like Dolby atmos, viper4android, etc without breaking their functionality and supports all ROMs.
Read the second post for download link, more info and tips.
Thanks to:
@chdloc - Has thought me many things. I learnt most of the tweaking from his advice's and suggestions.
@UltraM8 - For his Ainur SAURON audio mod.
@zhuhang - For his Viper4Android and IRS samples.
@ZeroInfinity - For his contribution to the android community. Has done many great works in audio modding section. His works were the inspiration for me.
@devabhi - For PMing me to add support this device too. This mod is here because of him.
@ahh988 - For being a prominent tester for this mod. Most of the testing has been done by him. This mod is alive thanks to him.
Link to the google drive folder which contains flashable zip of all releases:
https://drive.google.com/folderview?id=0B5ratNhH-7mGa1I4VW5wMXlmYjg
Recommended tips:
1)This mod works(should work) on all ROMs and kernels. If there is any compatibility issues or other requests, please post a reply. I will definitely respond to it.
2)Flash Ainur Sauron audio mod made by @UltraM8 along with this mod for a much better experience.This is currently the best audio mod which is the cleanest..Please thank him for his great work...
Link here: https://forum.xda-developers.com/android/software/soundmod-ainur-audio-t3450516
3)Users who need more tweaking to the audio can use Viper4Android.
Link here:http://vipersaudio.com/blog/?page_id=25
4)I have included some of the best IRS samples for viper4android(according to me). So try it out if you are using viper4android for complete control over your music. Extract the zip and place the contents in viper4android/kernel directory of your internal storage.(the zip provided is not recovery flashable).
5)People who use MX player for videos can enable SW audio boost which will further increase the sound levels through speakers without any distortions..
It is recommended not to listen through speakers at full volume for longer periods.. Keep the volume low by 1 or 2 steps from the max.
6)People who think that the present max volume through headphones isn't enough can install viper4android and increase output gain to 6dB in master gate..
My personal Viper4Android settings:
Master power - on
Playback gain control - off
FET compressor - off
Viper DDC - on, set to sennheiser hd558
Spectrum extension - on, set to 1.0
Firequalizer - off
Convolver - off
Differential surround, field surround, headphone surround+, reverberation - all set to off
Dynamic system - off
Viper bass - off
Viper clarity - off
Tube sound simulator - off
AnalogX - on, set to extreme
My earphones :
1) Sennheiser cx180 street-II - daily outdoor use.
2) Skullcandy Ink'D - used rarely.
3) Sony MDR-ED12LP - used when I'm at home.
Changelogs:
V1 - *initial release.
*increased amp gain for more headphone volume and decreased DAC gains to remove distortions.
*added dual speaker config like htc10.
V1.1 - *added support to flyme OS(thanks to @sonictrain for reporting)
V1.2 - *enabled compander for headphone audio to increase the amp gain to the max.
*readjusted earpiece and loudspeaker audio for both htc10 and stereo version.
*added a new version called stereo version
*htc10 version is the default dual speaker config which I had made in the initial release of the mod.
*stereo version enables stereo playback through speaker audio. Earpiece behaves as left speaker and loudspeaker behaves as the right speaker. Its a true stereo effect. You can check it out with stereo test music or app.
V1.3 - *added support for stock ZUI ROM (thanks to @ahh988)
*added a new version called stock version which only makes changes to audio through headphone jack without touching anything else. So now you have three versions:
1)stock version
2)htc10 version
3)stereo version
*made some changes to volumes of all streams from 87(ZUK stock) to 84(hardware stock value). I don't know why did ZUK people kept it at 87. This will remove distortions in headphone e audio.
*added an impedance selection for people who use headphones with high or low impedance. The installer configures the amp settings appropriately to give you the best audio experience possible.
*Increased amp volume from stock value 12 to 16 for low impedance and 20 for high impedance to boost headphone jack output volume without causing any distortions.
*added ota survival script for the mod.
*finally, integrated the mod into an aroma installer.(thanks to @MOVZX)
*Retuned stereo version to balance the audio and give a perfect sound (thanks to @ahh988)
*added 24-bit audio rendering through headphone jack output to increase sound quality.
Need more testers people.
I currently don't own the device so you guys should help me in making this mod more featured.
And you all are most welcome for your suggestions..
Please test the mod and tell me what's missing and what's wrong with your device audio outputs.
Reserved
Waiting for someone brave to come along.... Looks promising though!
danbrown162 said:
Waiting for someone brave to come along.... Looks promising though!
Click to expand...
Click to collapse
Hello there!
Tried the mod?
Can you be a tester for this please?
ScreaMySkrillEX said:
Need more testers people.
I currently don't own the device so you guys should help me in making this mod more featured.
And you all are most welcome for your suggestions..
Please test the mod and tell me what's missing and what's wrong with your device audio outputs.
Click to expand...
Click to collapse
Hi there!
Flashed "shox_Audio_Mod_Dual_ZUKZ2_V1.zip", rebooted, but I'm missing the last step I can't see the magic!
Am I forgetting some step?
I'm on Zuk z2 Plus with twrp 3.1 by Fedor and FlymeEU 1.5 by JJ17 with Darkmoon kernel.
sonictrain said:
Hi there!
Flashed "shox_Audio_Mod_Dual_ZUKZ2_V1.zip", rebooted, but I'm missing the last step I can't see the magic!
Am I forgetting some step?
I'm on Zuk z2 Plus with twrp 3.1 by Fedor and FlymeEU 1.5 by JJ17 with Darkmoon kernel.
Click to expand...
Click to collapse
Does the earpiece play sound??
ScreaMySkrillEX said:
Does the earpiece play sound??
Click to expand...
Click to collapse
Nope, I'm not getting sound from the earpiece.
sonictrain said:
Nope, I'm not getting sound from the earpiece.
Click to expand...
Click to collapse
I need your help then.
Goto /system/etc and copy files starting with mixer to your storage and send me those files.
ScreaMySkrillEX said:
I need your help then.
Goto /system/etc and copy files starting with mixer to your storage and send me those files.
Click to expand...
Click to collapse
May I attach a Mega link?
sonictrain said:
May I attach a Mega link?
Click to expand...
Click to collapse
No problem. Put it..
ScreaMySkrillEX said:
No problem. Put it..
Click to expand...
Click to collapse
Here it is: https://yadi.sk/d/saOExZ4X3Khd24
sonictrain said:
Here it is: https://yadi.sk/d/saOExZ4X3Khd24
Click to expand...
Click to collapse
V1.1 uploaded to drive folder.
Flash it and see once...
@sonictrain
Flyme OS which you use has mixer_paths_tasha_z2_plus.xml also along with the original one. Seems like the ROM uses the z2 plus xml.
So my mod wasn't working..
Please check v1.1.
I have uploaded it to google drive folder.
ScreaMySkrillEX said:
@sonictrain
Flyme OS which you use has mixer_paths_tasha_z2_plus.xml also along with the original one. Seems like the ROM uses the z2 plus xmp.
So my mod wasn't working..
Please check v1.1.
I have uploaded it to google drive folder.
Click to expand...
Click to collapse
Thanks mate! It works now
Guys New update is here..
Its v1.1 now..
Changes:
*added support to flyme OS(thanks to @sonictrain for reporting)
nice work,keep going
Thanks for the mod! But what's new on version 1.2_stereo and 1.2_htc10?
What's is the difference between them?
And I think the earpiece volume could be a little higher.
I'm on AEX 4.3 with ARISE Sound Mod (Dolby Plus + ICE)
jhobc said:
Thanks for the mod! But what's new on version 1.2_stereo and 1.2_htc10?
What's is the difference between them?
And I think the earpiece volume could be a little higher.
I'm on AEX 4.3 with ARISE Sound Mod (Dolby Plus + ICE)
Click to expand...
Click to collapse
Sorry there, forgot to update the changelog.
Check the second thread, now its updated.

|AUDIO MOD|MiMAX|04-07|DAC HAX|DUALSPEAKERS|AROMA|HIFI AUDIO|shox AUDIO MOD v2.3|

Hey guys...
ScreaMySkrillEX here.
This is an audio mod made for the redmi note 3(kenzo/Kate) which also works on mi max(hydrogen/helium) as both the devices share the same audio codec and streams.
What does my mod do?
It enables dual speaker config on your device and has two variants(htc10/stereo). And there's also a stock version which only tweaks the headphone audio output.
Htc10 version uses both earpiece and loudspeaker for audio output. The output is mono and hence earpiece acts like a mid-range booster and adds more detail to the speaker audio.
Stereo version also uses both speakers for audio output but earpiece behaves as left speaker and loudspeaker behaves as the right speaker.
Instructions.
1) Download the latest zip from the drive folder link below:
https://drive.google.com/folderview?id=0B5ratNhH-7mGU3AtTVFmekE4VG8
2)Reboot to recovery.
3)Flash shox Audio Mod zip.(while flashing the file shows that its made for kenzo/Kate. Don't worry, it will work for your device also xD)
4)Reboot.
5)Feel the shox effect!
Enjoy the music...
If you have any requests or problems, feel free to ask.
I will definitely help you.
And you guys are most welcome for your suggestions.
Read the 2nd post for more info and recommended tips.
Thanks to:
@chdloc - For his biquads app and support. He has thought me many things. A brilliant dev.
@UltraM8 - For his Ainur Sauron audio mod.
@zhuhang - For his viper4android app and IRS samples.
@Albertkuba - For actually informing that this mod works for mi max too. This thread is because of him
@ZeroInfinity - He is the inspiration for me. His works are really brilliant.
Recommended tips:
1)Flash Ainur Sauron audio mod made by @UltraM8 along with this mod for a much better experience.This is currently the best audio mod which is the cleanest..Please thank him for his great work...
Link here: https://forum.xda-developers.com/android/software/soundmod-ainur-audio-t3450516
2)Users who need more tweaking to the audio can use Viper4Android.
3)I have included some of the best IRS samples for viper4android(according to me). So try it out if you are using viper4android for complete control over your music. Extract the zip and place the contents in viper4android/kernel directory of your internal storage.(the zip provided is not recovery flashable).
4)People who use MX player for videos can enable SW audio boost which will further increase the sound levels through speakers without any distortions..
It is recommended not to listen through speakers at full volume for longer periods.. Keep the volume low by 1 or 2 steps from the max.
5)People who think that the present max volume through headphones isn't enough can install viper4android and increase output gain to 6dB in master gate..
My personal Viper4Android settings:
Master power - on
Playback gain control - off
FET compressor - off
Viper DDC - on, set to sennheiser hd558
Spectrum extension - on, set to 1.0
Firequalizer - off
Convolver - off
Differential surround, field surround, headphone surround+, reverberation - all set to off
Dynamic system - off
Viper bass - off
Viper clarity - off
Tube sound simulator - off
AnalogX - on, set to extreme
My earphones :
1) Sennheiser cx180 street-II - daily outdoor use.
2) Skullcandy Ink'D - used rarely.
3) Sony MDR-ED12LP - used when I'm at home.
List of smartphones I own right now:
1) Xiaomi Redmi Note 3(kenzo)
2) Samsung Galaxy S(i9000)
3) Xiaomi Redmi Note 4(Mido)
4) Samsung Galaxy Note(n7000)
CHANGELOGS:-
V1 - initial release.
V1.1 - tweaked the values a bit to further remove the hissing noise as reported by @MurdererFight.(thanks bro for being the first tester and reporting me)
V1.2 - added some tweaks which will truly enable HiFi audio through DAC with the help of a magisk module..now the DAC detects the impedance of the earphone or the headphone connected.this ensures proper voltage levels through the amp for the earphones/headphones.
V1.3 - Merged surround audio mod along with hifi audio..
Enjoy stereo-like sound on your kenzo (earpiece speaker also outputs sound now xD, videos feel more alive to watch now).Thanks to @AgentBuBu for the soundmod.
I just merged his mod with mine..
V1.4 - Changed the earpiece thresholds to remove the crackling sound and readjusted both the speaker sound to the same level. Now enjoy stereo like never before on your kenzo's speakers. Thanks to @Androbots for reporting this.Also made the mod universal by making a magisk and SuperSU version..
V1.45 - Readjusted the values again for both earpiece and loudspeaker to remove distortion completely, increased audio volume through headphone jack without disturbing the quality. So, now there's a very little drop in the audio but the quality is absolute eargasm.
v1.5 - Readjusted and increased the volume of both earpiece and speaker without inducing distortions. The sound level is more than stock now.
And further pushed the volume through headphones for louder volume..Now the stereo feel is amazing..
And included biQuads support for headphones for expert users. Now you can correct the frequency response of your beloved cans, IEMs.
Link for biQuads is here:
https://forum.xda-developers.com/showpost.php?p=70194192&postcount=226
v1.6 - This time made sure to keep the audio levels same at the earpiece and loudspeaker to increase the stereo and ambience.
Very little changes to headphone volume again. Removed some unused codes. Its true stereo now. Enjoy the stereo on speakers like never before
v1.7 - Fixed the messed up headphone gain as reported by @AravindhStanley and now has 2 new versions...
1) Stereo Version - The present version which you guys are using..earpiece acts as the left speaker and loudspeaker acts as the right speaker. The speaker volume and earpiece volume is balanced
2) HTC 10 Version - The new one!!!! it is based on the new HTC 10 loudspeaker audio output.. Its mono but still uses earpiece for sound. But here the earpiece acts as a mid range and bass booster and significantly increases the detail of sound heard through speakers. Here, the loudspeaker is louder than the earpiece. The earpiece just adds detail here. So don't complain about unbalanced audio levels as its kept unbalanced.
This version removes all the audio libs to disable audio offloading to the dsp..Now the audio goes straight to the DAC untouched..
So please flash your audio mods once again after flashing the mod to get them back working.
Now biQuads is fixed by the founder @chdloc himself..So its finally working now....
I recommend all the users to try both the version and keep the ones which you like.
The link to new biQuads is here:
https://forum.xda-developers.com/showpost.php?p=70194192&postcount=226
v1.7fix - This is only for HTC 10 version...Many users would have experienced no audio from the loudspeaker after flashing v1.7(it wasn't intended to work like that). This issue has been fixed. Now enjoy audio on both earpiece and loudspeaker. Loudspeaker has louder volume than earpiece as earpiece just acts like a mid range and bass booster like before.. Enjoy the sound now..
v1.8 - Made significant changes to headphone audio....
Now the audio is decoded at 24bit 192khz..but still the output is 16bit 48khz..wait for the Poweramp to fix it or if anyone knows how to edit audioflinger please pm me...if audioflinger is hacked, 24bit 192khz audio can be made systemwide....
And enabled hardware Dolby and DTS-HPX support...
Use any of the sound mod which has support for them...you will feel a difference..
Nothing much changed in speaker audio..
Reflash your audio mods again....dirty flash
v1.9 - Rebased with the stock mixer_paths.XML and edited it from the start again..its much clean and removed useless codes from the file..
Fixed the bug - in-call voice through speakers even though the phone was in earpiece mode as reported by @AravindhStanley
Finally the mod is universal! One flashable zip for all ROMs and kernels so no hustle of magisk or su versions.
Dropped the HTC10 version as I dint see much potential in it..It will be continued only on demand..
Temporarily removed biQuads support as it requires an in-depth inspection..will include it in the next build..
V2.0 - *Fixed low audio volume on headphones as reported by many....
*Introducing a stock version, which only tweaks the headphone audio leaving the speakers untouched(stock config)
*Reincarnated the HTC10 version as requested by @mahmoudthassan
V2.1 - *added bass filter for earpiece in both htc10 and stereo version to protect the speaker..
*added a bass filter for headphones also to improve bass range which also reduces distortion..
*created an uninstaller for the mod..
V2.2 - *renamed the mod from HI-FI AUDIO PATCH to shox Audio Mod.
*finally implemented biQuads and added my sound signature to the headphone audio output.
*increased the amp volume to 16 to increase output volume.
*included patched kernels also for the mod as it is mandatory.
This is a guide for creating your own biQuads which replaces the existing ones in the mod.
As you all know, biQuads is a set of 5 IIR filters which can be used to enhance the music and also correct the frequency response of the headphones/earphones which you use.
Continue from here only if you know what sampling rate, bit width, lowpass, highpass, peak filters mean. Otherwise google those terms and learn what they are and what they do
So here's how to design your own biQuads and listen the music in your way:
1) Download biQuads flashable zip from the XDA thread here:
https://forum.xda-developers.com/android/software/reference-qualcomm-audio-codec-iir-t3093000
Thank @chdloc for this great work.
2) Flash the zip in recovery and reboot.
3) You will see an app named biQuads in the apps drawer.
4) Open the app and give it root access.
5)As I told earlier, there are biQuads numbering from 1 to 5
6)After every filter you create for every number, tap design biQuad and wait for 20-30sec. You will be redirected to another window where the app check whether the filter is designed correctly or not with a spectrum graph. After that, increase the biQuad number
7) Do the same step 6 again and again from 1 to 5 until your biQuads is ready.
8)Finally, select review filter where you get a final graph and parameters of different IIR filters.
9)Then select save and give your biQuads a name(make sure there are no spaces included in the name). Click accept and the file gets saved in the internal sdcard with the filename you specified.
10)Open the *.coeffs where * is the name you specified for the biQuads in a text editor.
11) Replace IIR2 with IIR0 wherever found and change INP1 to INP2 wherever found.
12) Finally copy everything from the file and replace the contents in the mixer paths(present in /system/etc) under path name headphones. You will find similar lines there which are my biQuads already implemented.(make sure that you file editor has root access)
13) Replace those lines perfectly and align the lines as they were. Save the file when you are done and reboot.
14) Magic.
Hi! I can't download from the gDrive link, it seems not working now...
Kamaal said:
Hi! I can't download from the gDrive link, it seems not working now...
Click to expand...
Click to collapse
Try again..
Thanks. I've been waiting for a dual speakers mod for a long time.
HTC 10 mod version makes the sound output like it's coming out of a can. But the stereo mod is great.
ScreaMySkrillEX said:
Try again..
Click to expand...
Click to collapse
No luck: it's me?
ERR_CONNECTION_REFUSED
Edit: weird, the problem was only accessing from my Mi Max.
Thanks, i'm gonna to try your mod.
Is there a way to make the earpiece speaker louder that default? On the Mi Max, mine at least, it's far quieter than the main speaker, meaning it, doesn't seem like it does much.
This also means that in Stereo mode, the left channel is far more underpowered when stereo content is playing, and it's noticeable.
Cooly568 said:
Is there a way to make the earpiece speaker louder that default? On the Mi Max, mine at least, it's far quieter than the main speaker, meaning it, doesn't seem like it does much.
This also means that in Stereo mode, the left channel is far more underpowered when stereo content is playing, and it's noticeable.
Click to expand...
Click to collapse
Maybe htc10 version is more suitable for this device..
If you have a kernel with sound control, try increasing microphone volume.
ScreaMySkrillEX said:
Maybe htc10 version is more suitable for this device..
If you have a kernel with sound control, try increasing microphone volume.
Click to expand...
Click to collapse
Was the same with the HTC10 version, and I'm not sure if I have a kernel that can do that, and even if I did, how would I go about doing that?
Discovered a bug with this mod. Installing this would disable mic thus any video you record has no audio. Worse uninstalling this mod would not remove the bug. So I had to reflash ROM.
Cocoyg said:
Discovered a bug with this mod. Installing this would disable mic thus any video you record has no audio. Worse uninstalling this mod would not remove the bug. So I had to reflash ROM.
Click to expand...
Click to collapse
I have the mod installed and do not have this issue. my recorded videos all have sound
Mod is working great, but i feel unsafe, any side effect after using call's speaker for a long time?
MM.626 said:
Mod is working great, but i feel unsafe, any side effect after using call's speaker for a long time?
Click to expand...
Click to collapse
Nope, as far as the speaker doesn't distort
????????
hello and kudos for this feat.
but forgive me for asking a stupid question, will this work with bluetooth stereo headphones?
-------
UPDATE
tried it... worked! muchos gracias!
Working but it have a bugs which video recording has no sound and it also break Hi-Res audio playback on PowerAmp alpha build 704. IEM/Headphone left channel volume sometime really quiet while right channel was too loud. I have to unplug and replug audio jack to make both channels working again.
Tested with Mi Max hydrogen 6.0.1 + Audio Technica ATH-IM50/ATH-M40X/Trinity Delta
For anyone who suffer same bugs, replace mixer_paths_wcd9326.xml and mixer_paths.xml in /system/etc and set permission to 0644
thanks for the heads up.
mine is hydrogen on GlobeROM 7.7.20 + Viper4Arise
did not loose audio on video recording.
nougat
Hi,
Will this work on stock rooted nougat based rom 8.5 ? please revert as i m finding it impossible to install viper on nougat for mi max prime helium
satankid said:
Hi,
Will this work on stock rooted nougat based rom 8.5 ? please revert as i m finding it impossible to install viper on nougat for mi max prime helium
Click to expand...
Click to collapse
Viper4Arise is only used to further tweak the settings that this MOD offers.
so i think its just but OK not to install Viper.
also, if you already have a 3rd-party recovery, you can easily flash this.

How to get Bluetooth HCI log? See what codec BT is using?

I enable the BT HCI snoop Log option in Dev options...but the Pixel XL does not produce a log file. (My Moto X Pure did fine)
I am trying to get the log file or some app that can read BT info to see what codec it is using to stream media.....
I have read that Pixel doe snot support AptX yet....but I want to see for myself how and what it is using to connect to my devices.
Is there an app that can give that info? with out root...
Anyone?
speedingcheetah said:
I enable the BT HCI snoop Log option in Dev options...but the Pixel XL does not produce a log file. (My Moto X Pure did fine)
I am trying to get the log file or some app that can read BT info to see what codec it is using to stream media.....
I have read that Pixel doe snot support AptX yet....but I want to see for myself how and what it is using to connect to my devices.
Is there an app that can give that info? with out root...
Click to expand...
Click to collapse
Get an iPhone.
speedingcheetah said:
Anyone?
Click to expand...
Click to collapse
I have no idea about Android N, but O does.
Pixel only uses the SBC codec until android O. O supports aptX and a few other high definition Bluetooth codecs.
This I know. But doesn't help the issue of no log. My v10 also will not make a log with option checked and I k ow it supports those codecs.
On Android O....is there an Auto detecting codec setting? or if u manually select codec to use, say LDAC...and if the device does not support it, while it fall back to AptX or SBC?
I ask for anyone on the dev preview to try this and report on it.
I have Sony headphones that support LDAC...but my car headunit only supports AptX.
So would be good to know if i need to switch the setting based on device.
speedingcheetah said:
On Android O....is there an Auto detecting codec setting? or if u manually select codec to use, say LDAC...and if the device does not support it, while it fall back to AptX or SBC?
I ask for anyone on the dev preview to try this and report on it.
I have Sony headphones that support LDAC...but my car headunit only supports AptX.
So would be good to know if i need to switch the setting based on device.
Click to expand...
Click to collapse
It's an auto detect, as my car uses a low level codec, whist my headphones use AptX and it switches itself mate
DaveHTC200 said:
It's an auto detect, as my car uses a low level codec, whist my headphones use AptX and it switches itself mate
Click to expand...
Click to collapse
Still would be great to have a way to detect and see what codec is in use.
No idea why the V10 or Pixel won't produce the log file.
speedingcheetah said:
Still would be great to have a way to detect and see what codec is in use.
No idea why the V10 or Pixel won't produce the log file.
Click to expand...
Click to collapse
I agree.
Take a look here as they did log which codec was used I believe https://forum.xda-developers.com/showthread.php?t=2531440
DaveHTC200 said:
I agree.
Take a look here as they did log which codec was used I believe https://forum.xda-developers.com/showthread.php?t=2531440
Click to expand...
Click to collapse
My Moto X Pure has the files for aptx and aptX hd....but not LDAC. I can confirm via the log and wireshark method that both Aptx/HD work.
I don't think the Moto rom and the Pixel is ASOP based...thats a separate form of android like CM and MIUI....i think. could be wrong...been too long...lol.
speedingcheetah said:
My Moto X Pure has the files for aptx and aptX hd....but not LDAC. I can confirm via the log and wireshark method that both Aptx/HD work.
I don't think the Moto rom and the Pixel is ASOP based...thats a separate form of android like CM and MIUI....i think. could be wrong...been too long...lol.
Click to expand...
Click to collapse
Lol, I can't help much more than that I'm afraid lol
I know O switches but I couldn't tell you about logs etc I'm sorry

Serious bluetooth audio output issue?

I have observed that the bluetooth audio quality in aosp 10 and 9 both roms really sucks it's far more inferior to miui.When the bass is increased the sound becomes supressed and you can hear crackles after every bass punch.Whereas in miui it's powerful and amazing,I have tried everything i can i have changed firmwares china global it;s still the same , i have used several mods viper,dts hpx,dts ultra,james dsp,dolby digital etc. it;s still the same.I hve used music players like poweramp,player pro etc. but the issue persists.Does anyone know what is the cause of this issue and how can it be resolved.The audio quality feels like gingerbread?
Can"t confirm anything like that. I"m currently running a very outdated Superior OS build (August 2019) and listening to the music on my loudspeaker using BT (SBC HD) and wired connection feels the same. No distortions or anything like that (im using retro music player and yt).
I suggest you clean flash the ROM you are currently using and try again without any sound equalisers and boosters
Sent from my whyred using XDA Labs
There is a Magisk module that can change bluetooth bitrate, just search for bluetooth and you will find it in magisk repo. Try that but I don't have a problem with bluetooth audio on AOSP.
MikiGry said:
Can"t confirm anything like that. I"m currently running a very outdated Superior OS build (August 2019) and listening to the music on my loudspeaker using BT (SBC HD) and wired connection feels the same. No distortions or anything like that (im using retro music player and yt).
I suggest you clean flash the ROM you are currently using and try again without any sound equalisers and boosters
Sent from my whyred using XDA Labs
Click to expand...
Click to collapse
actually the problem lies with bluetooth earphones and the problem occurs when the bass is increased not when there are no effects applied.
Gabenoid said:
There is a Magisk module that can change bluetooth bitrate, just search for bluetooth and you will find it in magisk repo. Try that but I don't have a problem with bluetooth audio on AOSP.
Click to expand...
Click to collapse
i have used that i increased it to 482kbits but there was no change. I m well aware of the fact that the bitrate in miui is 48 nd in aosp its 44.1.
somilgupta49 said:
i have used that i increased it to 482kbits but there was no change. I m well aware of the fact that the bitrate in miui is 48 nd in aosp its 44.1.
Click to expand...
Click to collapse
I think you are mistaking sampling rate (44,1kHz for ex) and bitrate (in kb/s)
While first one can"t be changed, second one depends on the BT codec which your speaker uses. SBC for allows 340kb/s bitrate. In comparison - Spotify non-premium streams in 128kb/s
Sent from my whyred using XDA Labs

Question Regarding AOSP and Dolby Atmos (or "Am I indeed limited to Xiaomi.eu?")

I've done few searches in the forum, just to affirm my thoughts, but I found only the points that lead to the other title of the thread, but I'll ask this frankly and clearly:
As a hardcore Arcaea player:
Am I indeed limited to Xiaomi.eu?
Or it could happen that an AOSP ROM can feature MIUI Dolby Atmos?
I'm pretty sure this is a "pick your poison" situation, as going AOSP (crDroid, to be frank, many thanks raystef66!) kills Atmos but going MIUI instead screws the UX, but I'm kind of unsure of which to pick.
If unsure, even with Moto Audio and external equaliser "Wavelet" kind of "patching" the audio quality a bit, it does not help the audio latency resulted from missing the proper audio drivers (a stark difference of 142ms just from losing Atmos), to which Arcaea is extremely sensitive, enough to urge a switch.
I'm sure I'll get some words saying I could just try this myself, and I'll agree beforehand; I just need to know how to manage a custom ROM and I could figure out MIUI Atmos. And then the licences for the ROMs, including my current selection.
If there's nothing I can do about this, feel free to autolock the thread if you must along with a Xiaomi.eu recommendation, since it just will be yet another "Dolby Atmos" thread on top of the existing pile...
alioth 12.5.6
crDroid ver8.4 (Android 12.1) 2022.04.08
TWRP 3.6.1-unofficial
(Special note: If I must be rooted for any potential solution, I could use methods to bypass CrackProof in Princess Connect! Re: Dive since I am also hardcore in that one. As of now CrackProof does not complain with the current crDroid setup, since I refused to install Magisk until required for good reason.)
EDIT: Auto-converts to emoji, yikes. I may re-edit again as I test.
i remember seeing dolby atmos on crDroid
3zozHashim said:
i remember seeing dolby atmos on crDroid
Click to expand...
Click to collapse
Moto Audio sadly. It doesn't help--the latency is still there.
The problem is specifically about MIUI Dolby Atmos.
Hey, have you found a solution?
I'm in the same boat. Have you found an Non-MIUI Custom ROM with good Dolby Atmos?
It sucks that no one has ported MIUI Dolby Atmos yet. I wonder how much effort this would take. And if the audio driver or MIUI Dolby Atmos is proprietary.
I used to be on ArrowOS (which is lovely clean btw!), but I cannot deal with Default Sound. I got wayy too used to MIUI Dolby Atmos in Video Mode. But holy shít man, MIUI itself sucks major *ss...
I'm now flashing Xiaomi.eu 13 Stable until I find an AOSP ROM with actually good Dolby Atmos. Not the trash Moto Dolby or Razer Moto.
Baka Tenshi said:
Moto Audio sadly. It doesn't help--the latency is still there.
The problem is specifically about MIUI Dolby Atmos.
Click to expand...
Click to collapse
How's the Razer version (flashed with Magisk)?
theoneofgod said:
How's the Razer version (flashed with Magisk)?
Click to expand...
Click to collapse
It seems the reply above you has the same thoughts so I'm probably better off shaving some gigabytes sticking to Xiaomi.eu until MIUI Dolby Atmos is good to go...
Baka Tenshi said:
It seems the reply above you has the same thoughts so I'm probably better off shaving some gigabytes sticking to Xiaomi.eu until MIUI Dolby Atmos is good to go...
Click to expand...
Click to collapse
How about trying ainur magisk mod? After trying it myself on miui to compare I never wanna use Dolby again.
Personally it's the best one I ever used - audio becomes much more crisp. It's distorted on miui implementation of dolby so I really don't think you'll get any further by yourself...
Rstment ^m^ said:
How about trying ainur magisk mod? After trying it myself on miui to compare I never wanna use Dolby again.
Personally it's the best one I ever used - audio becomes much more crisp. It's distorted on miui implementation of dolby so I really don't think you'll get any further by yourself...
Click to expand...
Click to collapse
The problem isn't the crisp audio, but rather the resulting offset in Arcaea; an astounding 142ms latency. I kind of got the audio "patched" in crDroid with Wavelet before switching to Xiaomi.eu, but after I switched I noticed the horrid difference in audio latency in crDroid, gone/fixed in Xiaomi.eu. That's where the problem is.
Baka Tenshi said:
The problem isn't the crisp audio, but rather the resulting offset in Arcaea; an astounding 142ms latency. I kind of got the audio "patched" in crDroid with Wavelet before switching to Xiaomi.eu, but after I switched I noticed the horrid difference in audio latency in crDroid, gone/fixed in Xiaomi.eu. That's where the problem is.
Click to expand...
Click to collapse
This is what it's like on gsi
You will have to figure out how to adjust the app to use full screen tho... And the bottom but of screen is taken by the gesture pill.
Both are fixable via magisk modules
This is not headphones BTW , I have no idea what it's like with them
Another worthy mention is latest unofficial lineage 19.1 or try arrow tho idk if either stack well against audio latency... I'd try lineage tbh, I feel like it's more likely to be better audio wise and if the touch actually got fixed on the latest release like the dev said it probably should be decent.
For me the only problem with AOSP Sound effects were the Sound itself.
I didn't notice the latency being a problem, I didn't focus on that, but it may actually be a problem if you say so.
I use Bluetooth Headphones which naturally have a bit of latency, even on AptX Codex. As far as games are concerned I only play games like Dead By Daylight Mobile etc..
Dolby Atmos is a Surround Sound feature (Spacial Sound feature) and in my opinion Razer and Moto Dolby sounded like they *try* to make it spacial but instead make it sound virtualised. As if the Sound-bitrate got reduced.
MIUI Dolby is miles better, it can make music sound like it's more around your head (and not inside your head), when you select the Video-Mode. It's more immersive and emotional.
I also tried Wavelet and its paid features but I still wasn't happy.
With MIUI Dolby distortion is no problemo, at least for me. xd

Categories

Resources