Magisk Based APTX & APTXHD Driver Installation

aer0zer0

Recognized Contributor
Sep 20, 2013
3,273
2,486
253
Cortland NY
I have created a Magisk based APTX & APTXHD driver port for our PH-1 Phones.

Prerequisites:

Oreo Beta 1, 2, 3, Oreo 8.1 Beta 1
Magisk 15.0 or newer (Uses 1500 template)

What it does:

It replaces libaptX_encoder.so in system/lib & system/lib64 : aptx
It adds libaptXHD_encoder.so in system/lib & system/lib64 : aptx HD
It adds libldacBT_enc.so in system/lib & system/lib64: bluetooth dac

I had been just manually placing these files by hand, and modding build.prop and having it work, im trying to make my life systemless, this is the next step. This is a free-for-all zip, meaning i dont care if you modify it, pass it off to other groups, help anybody else, etc. I am not responsible if you get your phone messed up, it works for me, and for others. I will help as much as i can. Its a work in process, hopefully, it will make life easier for everybody.

to test: pair your aptx BT headphones to your phone, press the gear next to the paired device. You should see checked "Use high quality audio: QualComm aptX audio"
to check: open dev options while playing something paired with your aptx enabled headphones, you should see aptx as the bluetooth audio codec.

Link v1

https://www.androidfilehost.com/?fid=817906626617957077

Link v2

https://www.androidfilehost.com/?fid=673956719939813585

Link v3 for 8.1 only

https://www.androidfilehost.com/?fid=962187416754460777

Enjoy Folks
 
Last edited:

caballon

Senior Member
Jul 23, 2010
557
80
58
Puerto Rico
Error
- Copying zip to temp directory
- Installing APTX+and+APTXHD+for+PH1.zip
- A/B partition detected, current slot: _b
- Mounting /system, /vendor
- Device skip_initramfs detected
update-binary[73]: unzip: not found
! Unable to extract zip file!
Failed!
! Installation failed
 

aer0zer0

Recognized Contributor
Sep 20, 2013
3,273
2,486
253
Cortland NY
Error
- Copying zip to temp directory
- Installing APTX+and+APTXHD+for+PH1.zip
- A/B partition detected, current slot: _b
- Mounting /system, /vendor
- Device skip_initramfs detected
update-binary[73]: unzip: not found
! Unable to extract zip file!
Failed!
! Installation failed
How did you flash I?
 

12paq

Senior Member
Aug 16, 2010
1,150
361
113
Colorado
www.DonAshcraft.com
Thank you for this!

After successfully flashing this, do I need to make any changes to the bluetooth settings in System > Developer Options > Networking ?
When I do change these settings, they always revert back to default after turning bluetooth off or on.
 

aer0zer0

Recognized Contributor
Sep 20, 2013
3,273
2,486
253
Cortland NY
Thank you for this!

After successfully flashing this, do I need to make any changes to the bluetooth settings in System > Developer Options > Networking ?
When I do change these settings, they always revert back to default after turning bluetooth off or on.
As long as your headphones are aptx enabled, should switch by default. Check the headphones under the pairing tab and see if the aptx box is there.
 
  • Like
Reactions: 12paq

sarcoptic

Senior Member
Jul 10, 2008
184
66
0
So installed beta 3 yesterday and noticed in Developer Options under Bluetooth Audio Codec we can select aptx or aptxhd....does this mean we don't need this module anymore?