Fix Stereo Audio and increase Audio Bitrate in Video Recording and some info - Xiaomi Redmi 4X Themes, Apps, and Mods

Hi. It's just a simple edited file, just for daily use, nothing of extra famous things. I took this file from our good device source, and modified the audio bitrate from 96Kb/s to 128Kb/s (I think it's enough for aac). Also has stereo audio only for ROMs, "which records mono audio in video recording" (should be in only audio recording too). Tested on RR Luis, and Havoc Oreo Final.
Replace this file in -
/vendor/etc (if the file is here)
/system/etc (if the file is here)
Should work for any ROM made for Redmi 4X, not tested Android Pie.
I will not point any ROM with those issue here. Just remember that this is only for them, who have mono audio (some ROM) and/or want better bitrate in audio, and nothing more.
Backup your stock file in case something goes wrong. Also you can modify it any way you want, but it's up to you only.
[October]
Few things to be noted: Dolby bug on official LOS 15.1, and all the ROMs following that vendor(Chinese fingerprint in build.prop, to easily match). SW Dolby is working fine, normal HW bugs.
You can try Magisk 16.0 for Dolby in those builds, not sure. I hope all dev should use newest vendor sources or update existing source. Also, many modules and things have issues on that vendor.
You can check Dolby again after using this file, not tested.
Believe me or not, I've reported this first in several ways, seemed like no one cares. ?

Related

[patch] hdmi multichannel

with this patch you can have multichannel output over hdmi, it is based on ffmpeg to decode the multichannel sound and send it as pcm. Also Apollo can bitstream the sound file (dts/ac3 wav files, maybe flac too as multichannel pcm).
on my AVR the center is swapped with LFE, please test and let me know if is working for you.
the sourcecode is on cyanogenmod gerrit but until now is no merged so I compiled the files, this patch also contains ffmpeg 2.2.2 vs 2.1.4
01.07.2014 - updated for cm nightlies 4.4.4, still LFE bug
Regards
Thanks lucize...amaizing!!! I'll try it this weekend!
Hello, I have a Motorola atrix 2 running an unofficial version of slimkat. based on android 4.4.3, and I have two questions
1. have you fixed the swapped center/lfe channels yet?
2. did you mean cyanogenmod that is 4.4.2 based or an older version.
I'm gonna test it now, I've got backups of my system already, gonna flash it seeing that the droid 4 is the same chipset and slightly faster. I'll report back whether or not multichannel partially works, if at all.
Gizoid1337 said:
Hello, I have a Motorola atrix 2 running an unofficial version of slimkat. based on android 4.4.3, and I have two questions
1. have you fixed the swapped center/lfe channels yet?
2. did you mean cyanogenmod that is 4.4.2 based or an older version.
I'm gonna test it now, I've got backups of my system already, gonna flash it seeing that the droid 4 is the same chipset and slightly faster. I'll report back whether or not multichannel partially works, if at all.
Click to expand...
Click to collapse
is for images that already have ffmpeg in them (i made the patch small, didn't include all the files so it would be functional for earlier versions), if hdmi is working the multichannel should work, didn't had the time to investigate further about center/LFE but I think ffmpeg extractor is the fault.
I'll make a 4.4.4 patch ASAP
Regards
lucize said:
is for images that already have ffmpeg in them (i made the patch small, didn't include all the files so it would be functional for earlier versions), if hdmi is working the multichannel should work, didn't had the time to investigate further about center/LFE but I think ffmpeg extractor is the fault.
I'll make a 4.4.4 patch ASAP
Regards
Click to expand...
Click to collapse
Thanks for great work
so based on this
http://www.spinics.net/lists/linux-omap/msg108750.html
quote: " Also there is still probably something wrong with
speaker mapping of multi-channel streams."
there is hope that channel mapping will be fixed sometime in the near future.
Regards
so will this patch let me use my hdmi cable from my droid 4 to my tv running a aosp rom?
the patch isnt required
edit: cm11 m12 has working hdmi already, didnt test cm12 but im assuming it does as well

Audio [MOD][2016.02.15] - HK - BS - JBL / Aroma Switcher 5.0.3 / ADSP v62.2.2

Aroma HK / BS / JBL Switcher
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Features:
- Flash the Harman/Kardon function of the Harman/Kardon Sprint M8 to stock GSM, VZW, and Sprint phones
- Flash the BoomSound function back to all phones, make the Sprint H/K Phone a BoomSound phone (theoretically working, untested).
- Flash the JBL Audio function of the Butterfly 2 to stock GSM and Sprint phones (much like H/K, mostly a cosmetic difference)
- Each function being selectable in a neat Aroma UI, flashable via recovery.
Requirements:
- S-OFF is mandatory - do NOT try to flash the ADSP to S-ON Phones - the risks are unexplored. Damage might be inflicted!
- S-ON and S-OFF Harman/Kardon Phones can use this mod too to restore their HK functionality on ROM's that only come with BoomSound like e.g. ViperOneM8!
- Recovery to flash: needs to be a current TWRP! NO Philz, NO CWM please!
- HTC Marshmallow Sense ROM! No AOSP, AOKP, Cyanogen, GPE or whatever Senseless...
Changelog:
5.0.4
Updated files for JBL option from the Official Butterfly 2 4.10.709.2 MM release, including the addition of the JBL ADSP
Reverted to v5.0.3 for now
5.0.3
Updated the ability to flash the JBL Audio function of the Butterfly 2 from last update to now include the Verizon M8 as well
5.0.2
Added the ability to flash the JBL Audio function of the Butterfly 2 to stock GSM and Sprint phones
(much like H/K, mostly a cosmetic difference and not yet working for Vzw)
Made edits to installer script to change the value for the effect manager id for each audio option chosen
Updated Verizon logo/icon in aroma (cosmetic change only)
5.0.1
Removed Beta tag/considered stable
Fixed some file duplicates from Beta 2 upload
Added HTC Audio Configuration from HK and stock configs for return to BS
5.0.0
Updated to Android 6.0.0 and latest ADSP’s for both HK and BS.
Updated BoomSound files to 6.12.401.4, HK files to 6.20.654.3
Executing shell scripts from TMP again rather than RAM - the ram method stopped working for some reason.
Previous:
4.3.1
Added Sprint HK "Stagefright" vulnerability patch to mod (source: Sprint HK security OTA) - unlocks 192KHz/24Bit files on Boomsound too, unexpected side-effect.
Added all other HK related files that were updated by HTC/Sprint with 4.25.654.18 OTA
4.3.0
Reworked the whole file setup with Santod040's diffing job (MASSIVE thanks) and my own humble clean-up job. Should fix BT stutter.
4.2.0
Corrected Harman/Kardon Lollipop files. Seems, I had an unclean source.
4.1.0
replaced the script to edit settings with the universal version from @EarlyMon to hopefully fix some carriers not changing settings (THX!)
Executing said shell scripts from RAM rather than /tmp - minimize copy fails
4.0.0
Updated to Android 5.0.1 and latest ADSP’s for both HK and BS.
Updated BoomSound files to 4.16.401.10, HK files to 4.20.654.10
Replaced Verizon HK and BS Settings with mod from @santod040 (THANKS!)
Tested on: see post #2!
Known issues:
On 5.0.x: With ViperOneM8, there is a sporadic Settings-FC when enabling Bluetooth for the first time after changing to Harman/Kardon
Some release notes:
- People on Lollipop ROM's please refer to 4.3.1 Version! 5.0.x is Marshmallow only!
- Harman/Kardon ADSP 6.2.2 seems to be serving BoomSound just as well, again. So, you actually only need to swap to HK ADSP once, and leave that one in, even when going back to BoomSound.
- The new 5.0.x switcher works with Marshmallow files for GSM and Sprint. On VZW it works with ported MM ROM's, but not with older LP ROM's.
Additional Info for interested people
The logic of the File setup can be seen here: https://docs.google.com/spreadsheets/d/1xxXC00mpjq8cBgZUz0jOLx20qrC5W4JY0ZrbbBmG81M/pubhtml It has been updated to reflect the current 5.0.0 (Mod) version.
A little disclaimer:
We take no responsibility for any damage done to your device following a flash of the ADSP image with our flasher. You are aware that flashing firmware partitions always carries a risk of damaging your phone. You agree to not hold us responsible for damage arising out of you yourself deciding to flash this after we have clearly pointed out the attached risks. ​
Credits:
Go to everyone who contributed to porting the Harman/Kardon feature from the original Sprint HK M8, on both original threads from Scrosler and Baadnewz. I wish to express my gratitude for this community effort. Some names that stood out most and whose work was directly or indirectly put into the Aroma version of the mod:
scottsroms.com - for maintaining the original mod - THANKS!
@Steve0007 - for digging through the files and finding stuff
@santod040 - for doing the major workload by now (Version 5) and all the help before - THANKS!
@benny3 - for providing files originally on Scrosler's and Baadnewz threads.
@O.M.J - for providing files originally on Scrosler's and Baadnewz threads.
@EarlyMon for original shell scripting - thanks a ton!
@Captain_Throwback - universal wizardry, know-it-all, professional attitude
@baadnewz - the great initiator
@lyapota - the great initiator part two, and for scripting.
@ivicask - for the idea and being a very capable file monkey
@nkk71 - for double checking and advising on scripts in version 5
Thank you, Guys!
Download:
Marshmallow version 5.0.3 (or check DevDB download tab)
Lollipop Version 4.3.1 is here or check downloads tab of DevDB.
Optional Kernel: (Marshmallow only)
This will take care of any issues with High BitRate Flac audio files that don't play properly.
This is a stock Harman Kardon kernel which uses the AnyKernel method of install, so it won't touch your current ramdisk.
Harman-Kardon_HD-Audio-Enabled_Stock-Kernel_Multi-Variant.zip
Viper4Android Aroma Installer - Compatible with HK/BS/JBL Switcher:
See My V4A Mod Posted Here
XDA:DevDB Information
Audio [MOD][2016.02.15] - HK - BS - JBL / Aroma Switcher 5.0.3 / ADSP v62.2.2, ROM for the HTC One (M8)
Contributors
Sneakyghost, Santod040, Captain_throwback
ROM OS Version: 6.0.x Marshmallow
Version Information
Status: Testing
Current Stable Version: 5.0.4
Stable Release Date: 2016-02-15
Current Beta Version: 5.0.0
Beta Release Date: 2016-01-31
Created 2015-02-20
Last Updated 2016-02-16
Notice to everyone:
I would like this thread to be kept short and simple. It only serves the purpose of "uncluttering" the original HK Audio Mod thread and should help get this Aroma based mod some proper discussion without me feeling constantly like i actually hijacked another thread.
I will ask other members to refrain from discussing audio quality in here as best as you can, because that is pretty pointless with this mod. The files are mostly set and not much we can further find out about the composition of the Harman/Kardon functionality. Modifications to sound-relevant files are NOT done here. All HTC standard files.
What i want to discuss:
- Scripts (Aroma/Shell)
- File composition (did you really find that one file i missed or are you audio hallucinating)
- Other aspects of the mod.
HOW TO WORK WITH DEV DB
In order to have this clean and tidy, XDA had the brilliant idea to introduce the "Dev DB" feature. That is the black bar at the top - it has several headers.
Disucussion - this main thread. It is not for Off-Topic, obviously, but it has a broader spectrum.
Screenshots - i will not be using that!
Downloads - thinking of putting all downloads there
Feature Requests - feel free to drop feature requests here, yet be aware there is not very much to be added.
Bug reports - in future, please drop PROPER bug reports there ("It doesn't work" doesn't count as one!) Logfile, getvar all output, ROM version, recovery version.
In order to achieve this handling, i might be reporting a fair number of posts, so please don't feel offended, just accept that i might not want every discussion in here.
Tapatalk Users: please be aware that some or all of those Dev DB features might not be available for you. I believe this is, for now, only accessible through the web interface.
Confirmed working bases to use this mod on
ATTENTION: This is mostly old stuff. I won't be doing the intensive testing and report collecting anymore for the newer versions. Pretty pointless. I don't know why I even started this part.
Testing device: my 32GB Dev Edition M8 changed to a 0P6B10000 HTC__001 (HTC-WWE)
ViperOneM8 4.0.0; 4.1.0; 4.2.0; 4.3.0; 4.5.x; 4.6.x without other mods, GSM, Sprint, VZW
HK ADSP with HK libs: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
HK ADSP with Boomsound: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
BS ADSP with HK libs: all functions (even HD Audio) work, no stutter, settings entries correct. (BT, Speaker Wired headset)
BS ADSP with BoomSound (our Mod): all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
--> Should you encounter errors with this setup, please verify if and which other mods have been installed (Xposed modules, Kernel, Audio mods etc.)
ARHD 34.1 without other mods
HK ADSP with Boomsound: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
HK ADSP with HK libs: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
BS ADSP with BoomSound: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
--> Should you encounter errors with this setup, please verify if and which other mods have been installed (Xposed modules, Kernel, Audio mods etc.)
LeeDrOiD One M8 L - V1.0.8 without other mods, built-in HK mod NOT flashed.
HK ADSP with Boomsound: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
HK ADSP with HK libs: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
BS ADSP with BoomSound: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
--> Should you encounter errors with this setup, please verify if and which other mods have been installed (Xposed modules, Kernel, Audio mods etc.)
LeeDrOiD One M8 L - V1.0.8 without other mods, built-in HK mod flashed.
HK ADSP with HK Mod LeeDroid: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
BS ADSP with HK Mod LeeDroid: all functions (even HD Audio) work, no stutter, settings entries correct. (BT, Speaker Wired headset)
BS ADSP with BoomSound (our Mod): all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
HK ADSP with HK libs (our mod): all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
--> Should you encounter errors with this setup, please verify if and which other mods have been installed (Xposed modules, Kernel, Audio mods etc.)
Stock Android 5 Lollipop (4.16.401.10) without other mods
HK ADSP with HK libs: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
HK ADSP with Boomsound: all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
BS ADSP with HK libs: all functions (even HD Audio) work, no stutter, settings entries correct. (BT, Speaker Wired headset)
BS ADSP with BoomSound (our Mod): all functions work, no stutter, settings entries correct. (BT, Speaker Wired headset)
Testing device: 32GB TMUS M8 0P6B13000 T-MOB010
Stock Android 5 Lollipop (4.20.531.4) T-Mobile US version without other mods (@Behold_this) device
BS ADSP with HK libs: all functions (even HD Audio) work, no stutter, settings entries correct. (Speaker. Wired headset)
BS ADSP with BoomSound: all functions work, no stutter, settings entries correct. (Speaker, Wired headset)
Missing: HK ADSP and BT
Test-Files used: http://www.linnrecords.com/linn-downloads-testfiles.aspx
Choose 24bit / 192KHz FLAC Studio Master to truly find out if HK is enabled (BoomSound will NOT play this file).
Testing app is the reference HTC Music app. Apps that play such files on BoomSound are using the CPU to emulate decoding. Its not a native Hexagon-DSP decode and as such not suitable to test the HK mod.
Mine.
First, some basics . . .
This is what BoomSound looks like in Settings:
The adsp version can be found in the bootloader (HBOOT). The current BoomSound adsp information can be found below:
This is what Harman Kardon looks like in Settings:
The current Harman Kardon Edition adsp information can be found below:
NOTE: The adsp version can also be found in /firmware/adsp in the file adspver.cfg. See below:
So, what is this HD Audio support in the kernel everyone's talking about?
In kernel source, the HD Audio flag can be found in sound/soc/msm/Kconfig. According to the Kconfig for the "HD_AUDIO" flag:
Code:
config HD_AUDIO
tristate "HD Audio"
default n
help
To add support for 64/88.2/96/176.4/192kHz Audio.
This additional codec support, along with the HK files allow 24-bit, 192KHz FLAC file playback with the stock HTC Music app.
Most (if not all) custom kernels have this flag enabled. My kernel is just here as an option for people that want a close-to-stock alternative with it included, without all of the extra "bells and whistles" that the other custom kernels feature.
Current Version: BeyondStockᵀᴹ M8 Kernel v3.2.1
Features:
HTC system write protection disabled
Dirty file record disabled
kexec-hardboot for MultiROM support
HD audio support
NTFS RW support
F2FS support (added with v3.2.0)
Ondemand governor set as default
Compiled with Linaro 4.9 Toolchain (optimized for cortex-a15)
Kernel Source (github)
Is my recovery really that important? Why can't I just use PhilZ, CWM, etc. instead of TWRP?
Well first of all, TWRP is the most actively developed of the custom recoveries, with the most robust features. PhilZ and ClockworkMod are no longer being maintained. I also know for a fact that TWRP for the M8 works on all M8 variants, regardless of Carrier, and was built using the latest Lollipop kernel and with Lollipop source. This makes it the most compatible with this mod, which is made for Lollipop.
The official TWRP works fine for this, but I also have a custom build of TWRP for M8, which uses the stock kernel module for exFAT support. This seems to be more reliable than TWRP's exfat-fuse implementation, and allows support for AROMA File Manager as well. NOTE: Starting with 2.8.6.0, my TWRP build uses the Samsung Open Source exfat-nofuse implementation, rather than the stock module, and adds F2FS support.
My TWRP thread is here.
This is my download folder with my latest versions (current version is 2.8.6.0).
I also HIGHLY recommend this theme for TWRP. It makes using recovery a completely new experience .
Thank you for the new thread, that was really necessary!
The current 4.1.0 version is supposed to fix the not showing HK entries in Settings.
This has had some users affected with different CID's which i call exotic because i haven't seen many of them.
One report i remember is HTC__J15 (HTC-GCC) Middle East, which seems to somehow be using a carrier specific default.xml.
This is what @EarlyMon's shell script is addressing.
We would like to know if it worked. Short report of a stock HTC__J15 phone will probably suffice.
Great to see a new thread!
Well, I'm a little confused now. I don't know should I report here or Q&A, yet, I will leave here and I can delete if you believe this doesn't belong here.
I don't have stuttering sound while playing music with screen-off. However, I have experienced stuttering issue while using Bluetooth with H/K.
I'm using ViperOne M8 4.1.0 with elemantalX or @Captain_Throwback's universal BeyondStock Kernel, both didn't fix the stuttering sound. The only way I've found is turning off H/K effect (Clari-Fi) and the stuttering sound was gone. Does anyone have any idea? I can't remember very well but we might faced bt issues back to android 4.4.4 with H/K 6/7.
tommy0411 said:
Great to see a new thread!
Well, I'm a little confused now. I don't know should I report here or Q&A, yet, I will leave here and I can delete if you believe this doesn't belong here.
I don't have stuttering sound while playing music with screen-off. However, I have experienced stuttering issue while using Bluetooth with H/K.
I'm using ViperOne M8 4.1.0 with elemantalX or @Captain_Throwback's universal BeyondStock Kernel, both didn't fix the stuttering sound. The only way I've found is turning off H/K effect (Clari-Fi) and the stuttering sound was gone. Does anyone have any idea? I can't remember very well but we might faced bt issues back to android 4.4.4 with H/K 6/7.
Click to expand...
Click to collapse
That likely means there's a file (or files) missing from the Mod, making it incomplete.
We need to determine what error the device is experiencing when this occurs, which requires a log. I don't see one attached to your post.
Does this require a Sense based ROM? I notice its not in the pre-requisite.
Great job and thanks for the efforts.
https://docs.google.com/file/d/0B75JXxRAhUwlOGNpeExza3F2NXM/edit?usp=docslist_api
Here we go.
Hope this does some help.
Sent from HTC One M8 powered by ViperOne M8
As I didn't get an answer in the old topic, is the HK audio as quiet as before? I mean boomsound is still louder using earphones and BT?
Sent from my HTC One_M8 using XDA Free mobile app
miffymiffy said:
Does this require a Sense based ROM? I notice its not in the pre-requisite.
Great job and thanks for the efforts.
Click to expand...
Click to collapse
It does require sense, yes.
miffymiffy said:
Does this require a Sense based ROM? I notice its not in the pre-requisite.
Great job and thanks for the efforts.
Click to expand...
Click to collapse
Yes, it does.
As HK is only for sense based rom, it require it.
vegetaleb said:
As I didn't get an answer in the old topic, is the HK audio as quiet as before? I mean boomsound is still louder using earphones and BT?
Click to expand...
Click to collapse
Probably, I haven't tried it as I did for KK, but probably yes.
vegetaleb said:
As I didn't get an answer in the old topic, is the HK audio as quiet as before? I mean boomsound is still louder using earphones and BT?
Sent from my HTC One_M8 using XDA Free mobile app
Click to expand...
Click to collapse
I don't think so. HK seems just as loud as Boomsound to me now, and considerably clearer, imo.
@Sneakyghost Hey I attached my install log, was wondering if you could look at it and let me know if you think the install was successful, not sure how to interpret some of it. Thanks so much
https://docs.google.com/file/d/0B4AuVacvrEMCaHY1ZHZxbjQ2dzA/edit?usp=docslist_api
Natas82 said:
@Sneakyghost Hey I attached my install log, was wondering if you could look at it and let me know if you think the install was successful, not sure how to interpret some of it. Thanks so much
https://docs.google.com/file/d/0B4AuVacvrEMCaHY1ZHZxbjQ2dzA/edit?usp=docslist_api
Click to expand...
Click to collapse
Wouldn't it just be easier to just check your adsp version in HBOOT and your Settings for HK? That's the surefire way to know if it worked. The log doesn't necessary provide enough information to determine that. But if your adsp is updated, the Settings are there, and audio works, what additional evidence/reassurance do you need?
Didn't work for me. Latest viper rom, ee network in the UK and checked options for full install but still on boomsound and no options to change it
Captain_Throwback said:
Wouldn't it just be easier to just check your adsp version in HBOOT and your Settings for HK? That's the surefire way to know if it worked. The log doesn't necessary provide enough information to determine that. But if your adsp is updated, the Settings are there, and audio works, what additional evidence/reassurance do you need?
Click to expand...
Click to collapse
It shows v56.2.2-00564-M8974_HM.1212, is that the correct one?
Edit: nevermind I found it in the open post I am just being silly thanks for the help mod is working thank you so much
andywright1982 said:
Didn't work for me. Latest viper rom, ee network in the UK and checked options for full install but still on boomsound and no options to change it
Click to expand...
Click to collapse
S-OFF?
Please provide log file also.
[EDIT]
I see a LeeDroid figure in your signature. I am not sure. I take it, you are using that ROM? Is it using some modified Settings.apk? Is it using Xposed Modules? All this can break the mod.
Please provide specific information!
We have figured out, why the Switcher does not show HK in Verizon VipeOneM8 beta. The reason was, the Viper settings.apk for Verizon was not yet modified to include the required code. Jan wasn't around at the time of testing, else i had known earlier.
All non-verizon Vipers should show the HK settings though. So if it does not for you, i would like as much info as possible in order to be able to figure this out.
Regards,
Sneaky

[Module] aptx (HD) for Android 12/11/10/9/8 LineageOS 18.1/19.0

Hi there,
This is a magisk module compatible with any android device (except x86) running at least android oreo up to latest and greatest Android 11!
It was tested on lineage based roms but should work on all AOSP and some stock roms just fine.
Changelog, Compatibility list and everything else can be found via the download link below at the github page.
Some users already reported compatibility with some stock ROMs so feel free to let me know if it works or not.
If i find the time, i´ll update the compatibility list on github.
Note:
Since Android 10, arm64 devices (everything since 2015 will be arm64) needed updated libs which I didn´t test on oreo and pie so it is possible, android oreo and pie in combination with a more recent device will no longer work.
I didn´t test it so we don´t know until someone is willing to try it out for us!
ARM/armv7 (ooold devices!) will work just fine, the same old libs from oreo still work until android 11.
But now have a great listening experience!
Download here
Credits:
- topjohnwu for magisk
- Qualcomm for aptx
[email protected] for directing me to the right github repo for updated blobs (arm64/android10)
Some Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Very good contribution, is there a possibility that you can make a version compatible with arm64? What happens is that the existing modules are not compatible with Android 10. And the only reason I downgraded Android 9 on my Redmi Note 8 Pro is exactly to be able to use the module that enables aptX support.
sinrequilorios said:
Very good contribution, is there a possibility that you can make a version compatible with arm64? What happens is that the existing modules are not compatible with Android 10. And the only reason I downgraded Android 9 on my Redmi Note 8 Pro is exactly to be able to use the module that enables aptX support.
Click to expand...
Click to collapse
Thanks
I was always using "APTX for android oreo and pie" which still works fine on my htc one m9 running android 10 (arm64).
The module has more complexity in it and maybe even unnecessary stuff.
I'll have a look into the libs my oneplus 3t uses (arm64).
In the meantime you can do a backup of your rom, download the module, extract the system/lib/ files to the exact same directory on your device using twrp file manager (system can't be mounted rw anymore in android).
Maybe it works idk.
Btw are you on stock?
multiwirth said:
Thanks
I was always using "APTX for android oreo and pie" which still works fine on my htc one m9 running android 10 (arm64).
The module has more complexity in it and maybe even unnecessary stuff.
I'll have a look into the libs my oneplus 3t uses (arm64).
In the meantime you can do a backup of your rom, download the module, extract the system/lib/ files to the exact same directory on your device using twrp file manager (system can't be mounted rw anymore in android).
Maybe it works idk.
Btw are you on stock?
Click to expand...
Click to collapse
Yes, I am currently on MIUI 11, Android 9. I use the module "Bluetooth stack audio bitrate changer for SBC + aptX & aptX-HD enabler" and it works without problems in Android 9 under MIUI 11. But I had upgraded to Android 10 and it stopped working (it totally broke the audio via Bluetooth), so I made a downgrade and it is working again.
sinrequilorios said:
I use the module "Bluetooth stack audio bitrate changer for SBC + aptX & aptX-HD enabler" and it works without problems in Android 9 under MIUI 11. But I had upgraded to Android 10 and it stopped working
Click to expand...
Click to collapse
Try the module i mentioned, it will install all the libs for arm64 and should work.
I've checked the libs on my oneplus 3t which has aptx hd out of the box and it looks identical to what this module comes with.
You can find it via magisk manager, search for aptx.
Have a nice day
multiwirth said:
Try the module i mentioned, it will install all the libs for arm64 and should work.
I've checked the libs on my oneplus 3t which has aptx hd out of the box and it looks identical to what this module comes with.
You can find it via magisk manager, search for aptx.
Have a nice day
Click to expand...
Click to collapse
Thanks again for your prompt response, that module I also took the time to test it (when both were in the repo), but it didn't work either, have you recently tried it with any device that is on Android 10? In a 4pda forum nobody manages to make the module work on Android 10. And in the repo of the indicated module they mention that it is incompatible with Android 10. Any additional help I will be eternally grateful, greetings!
sinrequilorios said:
Thanks again for your prompt response, that module I also took the time to test it (when both were in the repo), but it didn't work either, have you recently tried it with any device that is on Android 10? In a 4pda forum nobody manages to make the module work on Android 10. And in the repo of the indicated module they mention that it is incompatible with Android 10. Any additional help I will be eternally grateful, greetings!
Click to expand...
Click to collapse
Hmm yes i've Lineage 17.1 on my HTC One M9 and this module installed and it works fine as far as i remember.
I think i haven't actually tested it yet i may do it later when I'm at home.
I could also try extracting the libs from my daily driver.
It's also possible miui doesn't load the libs even if they're present.
I will talk back later when I'm at home.
multiwirth said:
Hmm yes i've Lineage 17.1 on my HTC One M9 and this module installed and it works fine as far as i remember.
I think i haven't actually tested it yet i may do it later when I'm at home.
I could also try extracting the libs from my daily driver.
It's also possible miui doesn't load the libs even if they're present.
I will talk back later when I'm at home.
Click to expand...
Click to collapse
Thanks for your support, I will be attentive in such case! As for MIUI, in Android 9 / MIUI 11 it works, I don't know if it will be Android 10's problem .
sinrequilorios said:
Thanks for your support, I will be attentive in such case! As for MIUI, in Android 9 / MIUI 11 it works, I don't know if it will be Android 10's problem .
Click to expand...
Click to collapse
The module does work on my HTC M9, at least it loads the libs and enables aptx-HD.
But Bluetooth keeps crashing so i'm not sure if it's an device specific issue or an issue with Android 10.
It also seems like it loads the libs from /system/lib64/ but same results with crashes.
Logcat doesn't help don't understand the issue.
So i can only offer you to test it on your device.
I've hacked together a magisk zip which will add aptx libs to /system/lib/ /system/lib64/ and vendor/lib64/
Just to make sure that your rom will load the libs at all.
If it works for you, maybe i will make a clean release for it aswell.
Don't have any other arm64 device left for testing and on my oneplus 3t aptx is already included and working fine.
multiwirth said:
The module does work on my HTC M9, at least it loads the libs and enables aptx-HD.
But Bluetooth keeps crashing so i'm not sure if it's an device specific issue or an issue with Android 10.
It also seems like it loads the libs from /system/lib64/ but same results with crashes.
Logcat doesn't help don't understand the issue.
So i can only offer you to test it on your device.
I've hacked together a magisk zip which will add aptx libs to /system/lib/ /system/lib64/ and vendor/lib64/
Just to make sure that your rom will load the libs at all.
If it works for you, maybe i will make a clean release for it aswell.
Don't have any other arm64 device left for testing and on my oneplus 3t aptx is already included and working fine.
Click to expand...
Click to collapse
Thank you for your effort. I went back to Android 10 again to test. But I could not make it work, I tried the experimental module that you included here. And it does detect the device as an aptX, but when playing audio it gives an error and the bluetooth fails. I also tried the module that you indicated downloaded from Magisk, but with that module it only detects the device as AAC (as if it were not installed).
Is there a way to manually add the libraries and it works? It does not matter that it is not for a magisk module (that is, it does not matter that it is a little more laborious). Thanks in advance again.
sinrequilorios said:
Is there a way to manually add the libraries and it works? It does not matter that it is not for a magisk module (that is, it does not matter that it is a little more laborious). Thanks in advance again.
Click to expand...
Click to collapse
The issue with android 10 is, you can't mount /system as rw in android anymore due to system-as-root.
But aptx libs are stored in /vendor usually (on arm64).
So i've put together a module with libs from my oneplus3t but jo idea if it will work.
If you have a backup of your rom, extract the contents of the zip and put all the files from /system/vendor/rfsa/adsp/* in /vendor/lib/rfsa/adsp/ to your phone (create folder if it does not exist)
If it does not work, try to to the same thing with the files in /vendor/etc/acdbdata.
Copy file by file, then reboot and try.
For this step begin with the files labeled with bluetooth or bt since there might be existing files you'll have to override and may break other stuff.
And please don't forget to do a backup before you directly write to your partitions!
Good luck
multiwirth said:
The issue with android 10 is, you can't mount /system as rw in android anymore due to system-as-root.
But aptx libs are stored in /vendor usually (on arm64).
So i've put together a module with libs from my oneplus3t but jo idea if it will work.
If you have a backup of your rom, extract the contents of the zip and put all the files from /system/vendor/rfsa/adsp/* in /vendor/lib/rfsa/adsp/ to your phone (create folder if it does not exist)
If it does not work, try to to the same thing with the files in /vendor/etc/acdbdata.
Copy file by file, then reboot and try.
For this step begin with the files labeled with bluetooth or bt since there might be existing files you'll have to override and may break other stuff.
And please don't forget to do a backup before you directly write to your partitions!
Good luck
Click to expand...
Click to collapse
Thanks again for your effort to help me. I checked both directories under "root / vendor", and neither "rfsa / adsp" existed within "lib", nor did "acdbdata" exist within "etc".
I had to create both directories (so no files were replaced), but when I rebooted the device everything I copied through MiXplorer disappeared... as if he had never copied it. I had to add the files via TWRP to keep them that way on reboot. But likewise no change happened, the codec was kept AAC. Then I tried the Magisk module in the repository again, but it stayed in AAC the same way. Finally I tried the experimental module again that you added here. And like the previous time, it was displayed as aptX, but the Bluetooth stopped working.
If it's any use, I'll indicate the similar folders that my device includes:
root/system/vendor/etc
root/system/vendor/lib
root/system/vendor/lib64
root/system/etc
root/system/lib
root/system/lib64
root/vendor/etc
root/vendor/lib
root/vendor/lib64
And also attached the module that I used in Android 9, in case it is of any use. Thank you very much, greetings!
sinrequilorios said:
Thank you for your effort. I went back to Android 10 again to test. But I could not make it work, I tried the experimental module that you included here. And it does detect the device as an aptX, but when playing audio it gives an error and the bluetooth fails. I also tried the module that you indicated downloaded from Magisk, but with that module it only detects the device as AAC (as if it were not installed).
Is there a way to manually add the libraries and it works? It does not matter that it is not for a magisk module (that is, it does not matter that it is a little more laborious). Thanks in advance again.
Click to expand...
Click to collapse
Bad news
I've tested various things on my htc m9 including using the weird libs from my oneplus 3t from what i believe was for aptx but none of them seem to work.
Also the last module you shared comes with various aptx libs in various directories.
The stuff on my oneplus looks like some proprietory stuff and a friend of mine doesn't have any of those files at all (but working aptx in android 10, oneplus6)
So what i guess, it seems like android 10 needs more low level patches to get aptx to work (at least now?) until someone comes up with "generic libs" like we was using previously.
Those generic libs do load on my htc m9 but forces bluetooth to crash (same result on yours)
Seems like they're too old and incompatible and i can't find a source for updated libs.
Maybe i can find a way to talk to the lineageos dev for oneplus3 to find out what he did or what i missed.
Seems like armv7 roms/devices handle this much easier, those old libs do still work perfectly.
Maybe we can get arm64 to use arm 32bit libs but i really don't know how.
Sorry about that, would've been great to fix this but it is a bigger issue as it seems :/
multiwirth said:
Bad news
I've tested various things on my htc m9 including using the weird libs from my oneplus 3t from what i believe was for aptx but none of them seem to work.
Also the last module you shared comes with various aptx libs in various directories.
The stuff on my oneplus looks like some proprietory stuff and a friend of mine doesn't have any of those files at all (but working aptx in android 10, oneplus6)
So what i guess, it seems like android 10 needs more low level patches to get aptx to work (at least now?) until someone comes up with "generic libs" like we was using previously.
Those generic libs do load on my htc m9 but forces bluetooth to crash (same result on yours)
Seems like they're too old and incompatible and i can't find a source for updated libs.
Maybe i can find a way to talk to the lineageos dev for oneplus3 to find out what he did or what i missed.
Seems like armv7 roms/devices handle this much easier, those old libs do still work perfectly.
Maybe we can get arm64 to use arm 32bit libs but i really don't know how.
Sorry about that, would've been great to fix this but it is a bigger issue as it seems :/
Click to expand...
Click to collapse
Don't worry, you did what you could and I really appreciate it. In the same way I will be attentive to the subject, to see if you or someone else finds the solution. It would be great! Greetings and thanks for your contributions!
Guys, I can confirm that there is definitely some problem with the aptx libraries on 10, I was using the same libraries hacked to my build in 14.1, 15.1, now in 17.1 it seems first that aptx is working, but bluetooth then crash. Its not problem of library paths in 10 or something like that, since these libraries based on its filename were from android sdk21, there are pretty old and was working fine on many old android versions, but for 10, we need some updated binaries. I'll try to find some (that's how I got here).
torukk said:
Guys, I can confirm that there is definitely some problem with the aptx libraries on 10, I was using the same libraries hacked to my build in 14.1, 15.1, now in 17.1 it seems first that aptx is working, but bluetooth then crash. Its not problem of library paths in 10 or something like that, since these libraries based on its filename were from android sdk21, there are pretty old and was working fine on many old android versions, but for 10, we need some updated binaries. I'll try to find some (that's how I got here).
Click to expand...
Click to collapse
Yeah those libs also get loaded on my htc m9 (arm64) but BT crashes, the arm (32 bit) libraries are still working fine on such old devices running android 10.
If i remember right, the most used libs in various aptx ports were extracted from a stock OOS from a oneplus3 device but more recent firmwares on other oneplus devices no longer have the aptx encoders as libs and so it is in LineageOS 17.1 for my oneplus 3t which is aptx(hd) enabled out of the box but doesn't have the libs.
Probably integrated to the bluetooth driver itself.
Anyways if you find anything, i would appreciate it if you can share it with us
hey, I've downloaded blobs from google 'blueline' device, these blobs are for 10, and I can confirm that they works in 17.1, there are only 64b libs, in my system both placed to vendor/lib64, from TWRP:
suzuran:/system_root/system/vendor/lib64 # md5sum libaptX*
59d896f337f570eaf54a480261f50ccc libaptXHD_encoder.so
18e6569d5bf4e3b1124e9f95e1b1df4a libaptX_encoder.so
link:
https://github.com/Aqua-devices/vendor_google/tree/x/blueline
Deleted duplicate-post
torukk said:
hey, I've downloaded blobs from google 'blueline' device, these blobs are for 10, and I can confirm that they works in 17.1, there are only 64b libs, in my system both placed to vendor/lib64, from TWRP:
suzuran:/system_root/system/vendor/lib64 # md5sum libaptX*
59d896f337f570eaf54a480261f50ccc libaptXHD_encoder.so
18e6569d5bf4e3b1124e9f95e1b1df4a libaptX_encoder.so
link:
https://github.com/Aqua-devices/vendor_google/tree/x/blueline
Click to expand...
Click to collapse
Thanks for sharing, will have a loom on it this evening and maybe update the module to make it also compatible with arm64 after some testing
Hi, how i can download libs fron GIT?
ÇThanks.
torukk said:
hey, I've downloaded blobs from google 'blueline' device, these blobs are for 10, and I can confirm that they works in 17.1, there are only 64b libs, in my system both placed to vendor/lib64, from TWRP:
suzuran:/system_root/system/vendor/lib64 # md5sum libaptX*
59d896f337f570eaf54a480261f50ccc libaptXHD_encoder.so
18e6569d5bf4e3b1124e9f95e1b1df4a libaptX_encoder.so
link:
https://github.com/Aqua-devices/vendor_google/tree/x/blueline
Click to expand...
Click to collapse

AptX-HD with LOS17.1?

The new LOS 17.1 for the P2 is amazing. However, the old aptX-HD Mod, which worked on LOS 16 doesn't seem to work on this rom. Is there any special Mod for Android 10, that enables it?
Warning! I did not test this myself as I did not yet upgrade to LOS17!
Based on devices that support aptx I think you have to place the blobs in /system/product/lib64 (instead of /system/vendor/lib64 in LOS 16).
I'm not sure if the blob itself changed.
Source: proprietary-files.txt of other devices
I'm not allowed to post links but search for proprietary-files.txt in LOS 17 repositories of devices that support aptx.
thanks,
so far i tried to copy the old mod files (aptx-enabler.zip) to the /system/product/lib64 folder. That did not work. I will try to search the LOS 17 repositories. But i am afraid that is a little beyond my capabilities. However, if i find something i will post here.
so i spent a lot of time to get this to work. copying the old aptx binaries to the /system/product/lib64 folder did in fact enable aptx hd for my headphones. however, the bluetooth app crashes when trying to play anything. i am not able to find any binaries for android 10 (LOS 17).. i searched on github without any success. if someone could provide a source for a binary for android 10, i guess it would work.
So far i will downgrade to LOS 16
Excuse me for my question but really what is aptx hd I didn't heard about it before
Some repositories use the aptx binary from crosshatch. You should be able to find them online. Maybe they work for our phone?
@HACKIMTOSH It is a Bluetooth audio codec by Qualcomm. Both the phone and the headset need to support it.
rayvw said:
Some repositories use the aptx binary from crosshatch. You should be able to find them online. Maybe they work for our phone?
@HACKIMTOSH It is a Bluetooth audio codec by Qualcomm. Both the phone and the headset need to support it.
Click to expand...
Click to collapse
Aha now i see , thank u
P2 friend said:
so i spent a lot of time to get this to work. copying the old aptx binaries to the /system/product/lib64 folder did in fact enable aptx hd for my headphones. however, the bluetooth app crashes when trying to play anything. i am not able to find any binaries for android 10 (LOS 17).. i searched on github without any success. if someone could provide a source for a binary for android 10, i guess it would work.
So far i will downgrade to LOS 16
Click to expand...
Click to collapse
Did you find a way to make it work? I'm searching for a rom / phone that actually has aptx hd functionality over Android 10. I'm curious if you ever found a way of making it work.
Thanks.
P2 friend said:
so i spent a lot of time to get this to work. copying the old aptx binaries to the /system/product/lib64 folder did in fact enable aptx hd for my headphones. however, the bluetooth app crashes when trying to play anything. i am not able to find any binaries for android 10 (LOS 17).. i searched on github without any success. if someone could provide a source for a binary for android 10, i guess it would work.
So far i will downgrade to LOS 16
Click to expand...
Click to collapse
I have duplicated this on my P2. AptX did not work at all and AptXHD linked to the Fiio but then wouldn't play - bluetooth kept crashing. Could this be an SELinux issue? I just copied the files across to the mounted system partition but I don't know how to set SELinux context from TWRP.
I bought tws Bluetooth with aptx support
I'm on havoc 2.9 android 9 , can you plz give me guide how to enable aptx suppirt in my p2 with the download link
HACKIMTOSH said:
I bought tws Bluetooth with aptx support
I'm on havoc 2.9 android 9 , can you plz give me guide how to enable aptx suppirt in my p2 with the download link
Click to expand...
Click to collapse
On Android 9 use this: https://forum.xda-developers.com/apps/magisk/port-aptx-aptxhd-oreo-8-0-update-jan-t3731151
rayvw said:
On Android 9 use this: https://forum.xda-developers.com/apps/magisk/port-aptx-aptxhd-oreo-8-0-update-jan-t3731151
Click to expand...
Click to collapse
Is it working on pie because he said its for oreo did u tested it on pie ? Does Bluetooth crashed?
Yes, I used the flashable zip on LOS 16 without any problems. I am on LOS 17.1 currently , but haven't found a working method for Android 10 yet.
rayvw said:
Yes, I used the flashable zip on LOS 16 without any problems. I am on LOS 17.1 currently , but haven't found a working method for Android 10 yet.
Click to expand...
Click to collapse
Thanks for the help , ok I'll go with flashable zip
I managed to enable AptX on LOS 17.1 using the binaries locaties here: https://github.com/Flex1911/aptx-libs-android10
The GitHub repo is actually a Magisk module, but I installed the binaries using ADB.
Just remount de system so that you can copy the two binaries to /system/product/lib64. Then change the permissions to 644 and restart the phone. AptX is now enabled.
Please be careful when remounting your system partition!
any recommended guide to follow? or if possible detail steps!
rayvw said:
I managed to enable AptX on LOS 17.1 using the binaries locaties here: https://github.com/Flex1911/aptx-libs-android10
The GitHub repo is actually a Magisk module, but I installed the binaries using ADB.
Just remount de system so that you can copy the two binaries to /system/product/lib64. Then change the permissions to 644 and restart the phone. AptX is now enabled.
Please be careful when remounting your system partition!
Click to expand...
Click to collapse
Does los 17.1 support LDAC codec?

[MODULE] Mega Audio Mod - A collection of mods to give you the best audio experience.

Before I start, I'd like to apologize if you don't understand something I say. English isn't my native language
Mega Audio Mod​Overview​
Improve your audio experience
Install Audio Modification Library
Install DTS:X Ultra
Install ViPER4Android
A wide majority of you are probably already familiar with most of what happens here, in fact this module happens to be a collection of pre-existing Magisk modules helping keep your audio experience the best your device can provide. I earlier had to go through the pain of installing all of these modules every time I changed a ROM. (Which happened once or twice everyday) I, thus decided to make a module that automates the process for me and installs everything I need. I plan to keep updating this and learn even more magisk development in the future
To do:
Add some presets to the viper directory in Android folder (once I figure out how to write to /data via magisk modules)
Add some more audio associated improvements
Add some more modules
If you happen to have any idea on how to write to /data via magisk modules please reply to the thread..
If you have any suggestions please reply to the thread.
Credits​ @Team_DeWitt \ ViPer4Android
@UltraM8 @Nemuritor01 @JohnFawkes @LazerL0rd \ DTS:X Ultra
@Zackptg5 \ Audio Modification Library
I am not able to post links for some reason so please cope with me and copy and paste what I type below
Download:
Source: github.com/Maitreya29/Mega-Audio-Mod
Download: sourceforge.net/projects/mega-audio-mod/files/
reserved
reserved2
Can't get Viper driver to install. Even in permissive Selinux. DTS works. On Pixel 5
Your Android version is and have you a custom rom with custom kernel on your device or using stock rom?A lil bit more info where great.Cheers!!!
-CALIBAN666- said:
Your Android version is and have you a custom rom with custom kernel on your device or using stock rom?A lil bit more info where great.Cheers!!!
Click to expand...
Click to collapse
Android 11 stock rom
Magisk canary
Pixel 5

Categories

Resources