[Magisk] AptX & AptX-HD for Oreo - ONE Android Development

Hi, guys!
I wasn't able to find a working Magisk module that would enable AptX and AptX-HD for bacon with LineageOS 15.1 so I've made my own one.
I've tested it only with LineageOS 15.1, but it may work with other ROMs.
Update: works with LOS 16.0 too.
Required Magisk version: 17.0+
Sources: https://github.com/monosoul/bacon-aptx-module

1st blood.. thanks

Whoa I just installed it on TugaPower 9.0 and it actually works! There is a significant difference! I didn't even know you could do this in software. AptX was actually one of the main reasons I was looking out for a new phone. I can't thank you enough!!!

Nope, It ain't work for me.
https://imgur.com/a/jzz1tIk

pat99 said:
Nope, It ain't work for me.
https://imgur.com/a/jzz1tIk
Click to expand...
Click to collapse
What headset do you use? Maybe it doesn't support AptX?

monosoul said:
What headset do you use? Maybe it doesn't support AptX?
Click to expand...
Click to collapse
Yeah mate. That could be the reason.
The one I tried on was Insignia NS-CAHBTSPORT though I have another one called Fiil Carat which I know has Aptx.
I'll give update you soon.

Thumbs up!
And I thought OnePlus crippling the phone without Apt-X, FM radio, QuickCharge and VoLTE (lest it should cannibalize the higher end variants) with the SnapDragon 801 supporting all natively (correction: from Qualcomm's spec page, looks like the OPO doesn't natively support Apt-X on hardware), would be the last of this phone.
You sir, deserve an applause! :victory:

monosoul said:
Hi, guys!
I wasn't able to find a working Magisk module that would enable AptX and AptX-HD for bacon with LineageOS 15.1 so I've made my own one.
I've tested it only with LineageOS 15.1, but it may work with other ROMs.
Required Magisk version: 17.0+
Sources: https://github.com/monosoul/bacon-aptx-module
Click to expand...
Click to collapse
Could this mod works on Lineage OS 16?

NikaidoKagai said:
Could this mod works on Lineage OS 16?
Click to expand...
Click to collapse
Yep, using it with LOS 16.0 right now.

monosoul said:
Yep, using it with LOS 16.0 right now.
Click to expand...
Click to collapse
But when I connect to my shanling M2S (A MP3 player which supports Aptx),in the developer mode,it still show the coder is SBC

monosoul said:
Yep, using it with LOS 16.0 right now.
Click to expand...
Click to collapse
can it be flash from twrp recovery ?

NikaidoKagai said:
But when I connect to my shanling M2S (A MP3 player which supports Aptx),in the developer mode,it still show the coder is SBC
Click to expand...
Click to collapse
AFAIK shanling M2S can work both as a receiver and as a transmitter. So maybe Apt-X available only when it is used as a transmitter? Or maybe you installed the module, but didn't enable it?
Bunty1924 said:
can it be flash from twrp recovery ?
Click to expand...
Click to collapse
I haven't tried it, if it's possible with any other magisk modules then it should be possible with this one too.

monosoul said:
AFAIK shanling M2S can work both as a receiver and as a transmitter. So maybe Apt-X available only when it is used as a transmitter? Or maybe you installed the module, but didn't enable it?
I haven't tried it, if it's possible with any other magisk modules then it should be possible with this one too.
Click to expand...
Click to collapse
I tried to flash it with TWRP it failed im using POSP 9.0

Bunty1924 said:
I tried to flash it with TWRP it failed im using POSP 9.0
Click to expand...
Click to collapse
Well then, it means you can only install it using Magisk manager.

Unfortunately, it doesn't work for Samsung S9+.
I've tried it on native OS 9 and Ultimate 8.1.
Is there a way to adapt it for S9?

monosoul said:
Hi, guys!
I wasn't able to find a working Magisk module that would enable AptX and AptX-HD for bacon with LineageOS 15.1 so I've made my own one.
I've tested it only with LineageOS 15.1, but it may work with other ROMs.
Update: works with LOS 16.0 too.
Required Magisk version: 17.0+
Sources: https://github.com/monosoul/bacon-aptx-module
Click to expand...
Click to collapse
I have just installed lineage15.1 on sony Xperia sp phone. Kindly tell me how to install this module alongwith magisk. Thanks.

But you need hardware support for Aptx HD.

Related

aptX for OOS 4.1.X

OnePlus seems to have enabled aptX codecs in the new OB5/14 for the OnePlus 3/T.
For those of you who don't want to wait until the stable release and also would rather not flash the open beta, @Chaosgod27 has extracted the related files for use in the stable release. These files can be placed within OOS 4.1.X to enable aptX mode. These files are different from the old aptX-enabling files that were broken in OOS since updating to 7.1.1.
Edit: It seems there's some issues with the stacks. Playback does use aptX, but music is playing at a slightly higher pitch and faster than it should be.
I've dug around through the files in the new open beta and found the files myself. It seems there were a few missing before. The issue with the raised pitch and fast playback should be gone now.
Flashable Zip (through custom recovery, does not require Magisk): View attachment 4121507
Magisk Module (same thing, just systemless): View attachment 4121508
There was an issue before with some missing files that caused playback to run too fast and with a higher pitch. That has been fixed now. If anyone flashed the old Magisk module, I would advise you to download the new one in the OP and flash over it. I've also included a flashable zip for those of you who aren't using Magisk.
Anova's Origin said:
There was an issue before with some missing files that caused playback to run too fast and with a higher pitch. That has been fixed now. If anyone flashed the old Magisk module, I would advise you to download the new one in the OP and flash over it. I've also included a flashable zip for those of you who aren't using Magisk.
Click to expand...
Click to collapse
Thanks a million
Thank you, I have installed it but it seems to have a lot more problems (noise/cracking as in packets lost or something) than the previous version that I was using and which I got from here:
https://forum.xda-developers.com/oneplus-3/themes/mod-aptx-codec-t3521228
Is there any way to uninstall this version and return to "old default" (from where I can get back to the aptx version from above)?
xclub_101 said:
Thank you, I have installed it but it seems to have a lot more problems (noise/cracking as in packets lost or something) than the previous version that I was using and which I got from here:
https://forum.xda-developers.com/oneplus-3/themes/mod-aptx-codec-t3521228
Is there any way to uninstall this version and return to "old default" (from where I can get back to the aptx version from above)?
Click to expand...
Click to collapse
If you used the Magisk module, simply delete the module and reboot.
If you flashed the regular zip, you'll have to dirty flash your ROM to restore to default.
Hi @Anova's Origin, how do i know if this mod is working or not?
Vixiebalistic said:
Hi @Anova's Origin, how do i know if this mod is working or not?
Click to expand...
Click to collapse
Use a logcat app (Catlog / Matlog) and search for an aptx entry in the recorded logs after you connected your aptx capable device via Bluetooth to your aptx enabled phone...
You should be able to find something if it's working, otherwise it wouldn't show any aptx entry
Sent from my OnePlus3T using XDA Labs
Edit 2: Nevermind, it's working now. Idk what the problem was.
Didn't work for me on OOS 4.1.6 on Oneplus 3T I can't turn on Bluetooth. Anyone else having this problem? Also, have the drivers been updated in a newer OB?
Edit: I am using magisk v13.3
vini2710 said:
Didn't work for me on OOS 4.1.6 on Oneplus 3T I can't turn on Bluetooth. Anyone else having this problem? Also, have the drivers been updated in a newer OB?
Click to expand...
Click to collapse
Nope... Working fine here with op3t 4.1.6. Did u make back up before flashing?
Vixiebalistic said:
Nope... Working fine here with op3t 4.1.6. Did u make back up before flashing?
Click to expand...
Click to collapse
I used magisk so no worries (v13.3)
Edit: It's working. Yay! Thank you for the good work with this module!
how about op3T 4.1.7? Is it work?
qwealan said:
how about op3T 4.1.7? Is it work?
Click to expand...
Click to collapse
It works flawlessly for me on OOS 4.1.7 on my op3t
Sent from my ONEPLUS A3003 using Tapatalk
Anyone, test Magisk module with lineageOS Rom ?
vinicentus said:
It works flawlessly for me on OOS 4.1.7 on my op3t
Sent from my ONEPLUS A3003 using Tapatalk
Click to expand...
Click to collapse
I use Magisk Module on OOS4.1.7 but i cant use aptX (use catlog search "aptx" ). are you use zip flash or use Magisk too?
qwealan said:
I use Magisk Module on OOS4.1.7 but i cant use aptX (use catlog search "aptx" ). are you use zip flash or use Magisk too?
Click to expand...
Click to collapse
I am using magisk (v14)
Working on OP3T with OOS 4.5.1 + Magisk 14.0. Those libs where updated to show battery for devices in OB15, update needed.
Thanks very much! Looking for this about a week long and finally solved
My device is OP3T, with H2OS V3.5 stable, no magisk
can I share this to oneplusbbs.com?

[Magisk] FMRadio for Pie roms (Magisk Module)

I created a Magisk module based off the FMRaido PIE fix, this Magisk module will allow you to use the FM Raido under pie roms that don't support it, it should work with other Xiaomi devices too but I can only test on my RN3P.
I'm not sure who created the original flashable recovery zip / modules (FMRadioFixPiE.zip), I just converted it to Magisk so we don't need to modify the system or vendor partitions.
Edit
No longer needed for Havoc OS since it comes with the radio app on latest updates.
Enjoy.
Use at own risk...etc..etc.
Needs
Magisk 17.0+
Android 9 (PIE)
Not working with Havoc pie.
No playback.. Radio found channels correctly.
anurag86 said:
Not working with Havoc pie.
No playback.. Radio found channels correctly.
Click to expand...
Click to collapse
It's work well for me. It's a module for Magisk.
Magisk 18.0
Havoc pie.
Redmi Note 3 using Tapatalk
I am trying to install this on Citrus-CAF but even though I can see the app under the system/app directory for some weird reason the app is not installed. It might have to do with enforcing selinux since it was working great on Havoc OS.
It works great
otyg said:
I created a Magisk module based off the FMRaido PIE fix, this Magisk module will allow you to use the FM Raido under pie roms that don't support it, it should work with other Xiaomi devices too but I can only test on my RN3P.
I'm not sure who created the original flashable recovery zip / modules (FMRadioFixPiE.zip), I just converted it to Magisk so we don't need to modify the system or vendor partitions.
Edit
No longer needed for Havoc OS since it comes with the radio app on latest updates.
Enjoy.
Use at own risk...etc..etc.
Needs
Magisk 17.0+
Android 9 (PIE)
Click to expand...
Click to collapse
It works great on nitrogen os pie 9 and redmi notes 3. Thanks
ronkanor said:
It's work well for me. It's a module for Magisk.
Magisk 18.0
Havoc pie.
Redmi Note 3 using Tapatalk
Click to expand...
Click to collapse
Got FM radio in updated Havoc Build. :good:
Nos 9 work great
I instal this module for j7 pro j730GM rom PrometheusOneUI_V1.0_jxy17lte. But phone stuck in samsung logo so i restore backup. Plz update your module for work PrometheusOneUI_V1.0_jxy17lte. Rom.
Xxxnano said:
I instal this module for j7 pro j730GM rom PrometheusOneUI_V1.0_jxy17lte. But phone stuck in samsung logo so i restore backup. Plz update your module for work PrometheusOneUI_V1.0_jxy17lte. Rom.
Click to expand...
Click to collapse
Unfortunately I don't own that device, this module is only for Xiaomi devices.
fm for nitrogen os pie [2019-03-09]
Installed the module on nos for redmi note 3 kenzo
app opens but audio playback is missing and can't tune it.
Any pointers...
rahulh0785 said:
Installed the module on nos for redmi note 3 kenzo
app opens but audio playback is missing and can't tune it.
Any pointers...
Click to expand...
Click to collapse
same problem here.... im using Nos9Pie but it opens and nothings happens
someone can help me?

[Magisk Module] Automatic Camera retraction on custom ROM

I made a magisk module that automaticly retracts the popup camera of the K20 Pro on startup if you have that problem on custom roms.
Link: https://mega.nz/#!fIoSVCBa!OvKbNRthBG2S4agel_A5zfQksczM2EjGlq6IZg2sCZ4
Dercubaton said:
I made a magisk module that automaticly retracts the popup camera of the K20 Pro on startup if you have that problem on custom roms.
Link: https://mega.nz/#F!yZoz0ara!Q0s10kewsNTKZJ4O6TRCTA
Click to expand...
Click to collapse
Thank you. I use Havoc GSI, and after I install this module the camera popup and down then popup during boot. And at last it's up.
knift said:
Thank you. I use Havoc GSI, and after I install this module the camera popup and down then popup during boot. And at last it's up.
Click to expand...
Click to collapse
Yeah i had the same issue after some more testing, i updated the code, should work now
Working perfectly on K20/Mi 9T (non Pro).
Tested on: Havoc OS 2.7 (gsi)
Thanks.
Dercubaton said:
Yeah i had the same issue after some more testing, i updated the code, should work now
Click to expand...
Click to collapse
I just re-downloaded and installed it. Now it works great, thank you.
@AndyYan is this good enough to be merged into LOS?
ermacwins said:
@AndyYan is this good enough to be merged into LOS?
Click to expand...
Click to collapse
If you mean mine, then I'll look at it (not around my PC right now). Meanwhile LOS official already has their own motorized cam hook implementation thanks to Zenfone 6.
EDIT: As you can see TingyiChen's build is already here. Probably don't need this anymore?
AndyYan said:
If you mean mine, then I'll look at it (not around my PC right now). Meanwhile LOS official already has their own motorized cam hook implementation thanks to Zenfone 6.
EDIT: As you can see TingyiChen's build is already here. Probably don't need this anymore?
Click to expand...
Click to collapse
You're right and I read your other response. Thanks for your work though.
Dercubaton said:
I made a magisk module that automaticly retracts the popup camera of the K20 Pro on startup if you have that problem on custom roms.
Link: https://mega.nz/#!fIoSVCBa!OvKbNRthBG2S4agel_A5zfQksczM2EjGlq6IZg2sCZ4
Click to expand...
Click to collapse
Would you happen to how to fix the camera not popping out or retracting for some gsi ROMs please? Possibly a magisk fix?
Don't work on ROM MSM Xtended
Dont work on Lineage 17 9t pro
Hi, same problem here, LOS 17, K20 Pro. Please guys, point me in the right direction.
I used GCam to switch to front cam, then switched to video, GCam glitched and switched to back cam but never retracted the front cam. I have no idea how to retract it now, reboots, the magisk module from this thread, using other camera apps to switch back and forth -- none of the approaches worked. Maybe I can issue something through ADB to retract it?
Dercubaton said:
I made a magisk module that automaticly retracts the popup camera of the K20 Pro on startup if you have that problem on custom roms.
Link: https://mega.nz/#!fIoSVCBa!OvKbNRthBG2S4agel_A5zfQksczM2EjGlq6IZg2sCZ4
Click to expand...
Click to collapse
Could you update this module to work on GSI's based on Android 10?

[MOD] [MAGISK] [10.01.2020] Dual Speaker Mod for OnePlus 3/3T (OOS, Pie and 10)

Hi guys. I managed to enable Dual Speaker Mod on OnePlus 3/3T on OxygenOS and Android 9 and 10.
Changelog:
v1.0
- First release for Pie
v2.0
- fixed for OxygenOS Pie
- support for custom Android 9 & 10
- Magisk Module
LINK (MIRROR): Google Drive
or Magisk Repo!
Installing:
1. Install module in Magisk Manager
2. Reboot and profit
Please test and report if you having issues here or on Telegram
Reserved
Thank you ! A Magisk module is possible ?
lutherkingmartin said:
Thank you ! A Magisk module is possible ?
Click to expand...
Click to collapse
Soon!
Sent from my OnePlus3T using XDA Labs
Tested it on latest havoc ROM with OP3. Sadly it doesn't work
mrfrantastic said:
Tested it on latest havoc ROM with OP3. Sadly it doesn't work
Click to expand...
Click to collapse
hello, yes doesn't work havoc os latest version. OP3T.
@mrfrantastic @acceslevel are you using another mods like Viper4Android, Dolby or both combined with AML?
For me is working even with Viper4Android installed.
Sent from my OnePlus3T using XDA Labs
IonutGherman said:
@[email protected] are you using another mods like Viper4Android, Dolby or both combined with AML?
For me is working even with Viper4Android installed.
Click to expand...
Click to collapse
Nope, none of them or anything audio related. Also no EdXposed.
Maybe someone else with OP3 can confirm my report.
IonutGherman said:
Hi guys. I managed to enable dual speaker mod on OnePlus 3T (didn't tested on OnePlus 3, but I think is working) with HavocOS 2.7 build 01.08.2019 and is working good. It should work with ROMs based on LineageOS, didn't tested on OxygenOS since LOS team changed some things in mixer_paths_tasha.xml.
Version 1.0
- first release for Pie
LINK (MIRROR): URL
Installing:
1. First backup your original mixer_paths_tasha.xml by renaming it to mixer_paths_tasha.xml.bak
2. Copy mixer_path_tasha.xml (modded one) to /system/vendor/etc
3. Reboot and profit
Please test and report if you having issues!
Magisk version coming soon!
Click to expand...
Click to collapse
In my custom rom already have this file ??? don't know why ( skydragon OS )
baba duy said:
In my custom rom already have this file ??? don't know why ( skydragon OS )
Click to expand...
Click to collapse
Replace mixer_paths_tasha.xml with the modded one.
Sent from my OnePlus3T using XDA Labs
IonutGherman said:
Replace mixer_paths_tasha.xml with the modded one.
Sent from my OnePlus3T using XDA Labs
Click to expand...
Click to collapse
i can't dowload it dead link
baba duy said:
i can't dowload it dead link
Click to expand...
Click to collapse
Try downloading from XDA
Sent from my OnePlus3T using XDA Labs
What are the lines you have changed/ added to the xml?
Ofcourse I can compare, but it would help me for making a script to modify the original xml without replacing it.
Hope you are willing to share your knowledge!
Not working on my OnePlus 3, any media won't play after replacing this with my original xml file.
One of my two sim cards also stopped working.
Workings on oneplus 3 with havoc latest version. Thanks
ShayantanS said:
Workings on oneplus 3 with havoc latest version. Thanks
Click to expand...
Click to collapse
I am also on latest HavocOs. Are you sure it's working?
mrfrantastic said:
I am also on latest HavocOs. Are you sure it's working?
Click to expand...
Click to collapse
Yes bro... 100%. I covered the bottom speaker to check and also brought the earpiece close to ears, it worked.
Only thing which I did was didn't do the .bak option and instead copied the original to main folder and replaced the original with modified one.
ShayantanS said:
Yes bro... 100%. I covered the bottom speaker to check and also brought the earpiece close to ears, it worked.
Only thing which I did was didn't do the .bak option and instead copied the original to main folder and replaced the original with modified one.
Click to expand...
Click to collapse
I used a different file explorer and now it works. I used Total Commander before, fyi.
mrfrantastic said:
I used a different file explorer and now it works. I used Total Commander before, fyi.
Click to expand...
Click to collapse
I will improve the script and will make a Magisk module, but now I don't have time because I work 2 jobs and I am all the time tired and not in the mood to script something.
Confirm that using a root file explorer application, any media content will fail to load, but using the TWRP inbuilt file manager it works just fine. Havoc 2.8
Thanks a lot!

[KERNEL] SpiderBlood NetHunter for Xiaomi Poco X3 NFC

* Your warranty is now void.
* Im not responsible for anything that may happen to your phone by installing any custom ROMs and/or kernels.
* You do it at your own risk and take the responsibility upon yourself and you are not to blame me or XDA and its respected developers.
SpiderBlood Kernel for Poco X3 NFC​
Features:
Atheros adapters suppport
Realtek adapters support (including 88XXAU and 8188EUS)
Ralink adapters support
Bluetooth USB adapters support
Internal bluetooth support
Ethernet adapters support
SDR support
Injection
HID
USB Arsenal
NetHunter supported wireless cards: https://www.kali.org/docs/nethunter/wireless-cards/
Tested wireless cards: AWUS1900, WN722N v3
Supported android version: 13 (PixelOS tested), most of the other custom roms should work too...
Kernel base source: https://github.com/PixelOS-Devices/kernel_xiaomi_surya
Kernel source: https://github.com/cr4sh-me/kernel_xiaomi_surya
Installation steps​
Disable forced encryption using this
Now we can flash kernel in TWRP
You need to flash wireless firmware from here
If you want to use latest nethunter terminal app that is based on neoterm instead of crappy nh terminal you need to build terminal and nethunter apps in android studio and install them on your phone
Navigate to nethunter chroot manager now, and install full kalifs
That's it! You have working nethunter device with all features supported now!
dt2w not use bro
Hi.. I'm new to pen testing. I manage to work the nethunter on my POCO X3 NFC.. can i ask?
Do i need an external WiFi adapter to pen test any WiFi?
pls made for poco x3 pro
rasid369 said:
pls made for poco x3 pro
Click to expand...
Click to collapse
If you can test it, I will build it
cr4sh-lab said:
If you can test it, I will build it
Click to expand...
Click to collapse
yep, I know a little about building kernels but I always fail
rasid369 said:
yep, I know a little about building kernels but I always fail
Click to expand...
Click to collapse
You will need to only flash it.
Mod. edit: social media reference removed. alecxs
Hi good Day.
I manage to work NetHunter but the problem is wifite can't capture any handshakes. How to solve this?
TIA
guren95 said:
Hi good Day.
I manage to work NetHunter but the problem is wifite can't capture any handshakes. How to solve this?
TIA
Click to expand...
Click to collapse
By the way I'm using Derpfest latest A13, poco x3 NFC
TL-WN725N support too
Kernelsu support?
If my rom encrypted I Cant use?
reemar said:
Kernelsu support?
If my rom encrypted I Cant use?
Click to expand...
Click to collapse
You can, but you gonna have problems with chroot
Hi, can you rebuild kernel on newer source code like stratosphere kernel (https://github.com/Stratosphere-Kernel/android_kernel_xiaomi_surya), because spiderblood kernel has old sources
is this good for gaming?
cyborgtxd said:
is this good for gaming?
Click to expand...
Click to collapse
I didn't make any changes for gaming optimization so it's probably like stock
cr4sh-lab said:
I didn't make any changes for gaming optimization so it's probably like stock
Click to expand...
Click to collapse
so what's special about this kernel?
cyborgtxd said:
so what's special about this kernel?
Click to expand...
Click to collapse
Like it's said in description, this kernel have nethunter features support
cr4sh-lab said:
Like it's said in description, this kernel have nethunter features support
Click to expand...
Click to collapse
cool
Thanks a lot for adding Nethunter features to stock kernel, it's a great addition !
Tested on latest MIUI 14 stock Android (Android 13) and the installer says "unsupported OS version". Can you do something ?
Its because my kernel doesn't support mui based roms
Howell said:
Thanks a lot for adding Nethunter features to stock kernel, it's a great addition !
Tested on latest MIUI 14 stock Android (Android 13) and the installer says "unsupported OS version". Can you do something ?
Click to expand...
Click to collapse

Categories

Resources