Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,888 Members 52,600 Now Online
XDA Developers Android and Mobile Development Forum

[STILL PROBLEMATIC] APT-X Bluetooth Codec zip for qualified AOSP ROM's [$275 so far]

Tip us?
 
CZ Eddie
Old
(Last edited by CZ Eddie; 27th May 2014 at 10:08 PM.)
#1  
CZ Eddie's Avatar
Senior Member - OP
Thanks Meter 928
Posts: 3,395
Join Date: Sep 2011
Location: Austin, TX

 
DONATE TO ME
Audio [STILL PROBLEMATIC] APT-X Bluetooth Codec zip for qualified AOSP ROM's [$275 so far]

EDIT: AFTER MORE TESTING, THE RESULTS SEEM TO BE FLAKEY.
DO NOT FLASH JUST YET (UNLESS YOU REALLY WANT TO). IT MAY REQUIRE RE-FLASHING YOUR ROM IF IT DOESN'T WORK.

-------------------------------------------------------------------------------------------------------------------------

Thanks to some helpful folks such as SPLESH & werty100 & glycolysis & others, we now have APT-X working in 4.4 AOSP ROM's for phones that originally shipped with the APT-X codec.
You'll find a list of those phones in the list further below.

To download a flashable zip that makes your phone use the APT-X high-def Bluetooth codec, then skip to post # 33below.
http://forum.xda-developers.com/show...5&postcount=33

Thanks to:


MORAL SUPPORT:
th4r
fedevd
Topfar
withmenilu
cx5
Oli28
mojonba
stephendt0
DeKey0
wooki

CONTRIBUTORS:
farfrommovin
emprize
BenG7
CZ Eddie

DEVELOPMENTAL ADVICE:
WERTY100
glycolysis


DEVELOPMENTAL BREAKTHROUGH:
SPLESH







PREVIOUS/OLD THREAD DETAILS:
=============================================

What is APT-X?
It's Bluetooth for "Audiophiles".
Basically, it's the next step beyond A2DP and it delivers a "high definition", "CD" type sound. It's Bluetooth without all the compression that A2DP suffers from.

APT-X Lossless supports high-definition audio up to 96 kHz sampling rates and sample resolutions up to 24 bits.

Platforms
The aptX Lossless technology is implemented as C and C++ code and has been verified on
the following processors:
  •  x86
     ARM 9E
     ARM Cortex M3
     Texas Instruments C64xxother processor cores and DSPs to be verified and announced
  • Key Features
  • 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

If I had to guess, normal A2DP Bluetooth might sound as good as a 96kbps music file. While APT-X Bluetooth sounds as good as a 320kpbs music file. Essentially, to the trained ears it is a HUGE difference in sound quality.

The problem is, it's not a widespread codec yet. AFAIK, only the HTC One, One X, and Samsung Galaxy lineup (S3 and newer) and proably some of the other superphones that are one year or newer, will have this Codec. It's a proprietary codec. So you're only "allowed" to have it on your phone if you bought a phone that came with it.

Because of this, it's not found in any AOSP ROM's. Just like you won't find any Google Apps in AOSP, you won't find APT-X codecs. So as with Google Apps, we just simply offer a flashable zip so the end user can add those items if he/she wishes.
So, the aim for this thread is to have the same option for APT-X codec. Because I for one am tired of running stock ROM's just because I want to use the APT-X codec that I paid for when I bought my phone.

I personally am putting up $100 to any developer who can provide a flashable zip, or similar method, of getting an AOSP ROM to use the APT-X codec.
If anyone else reading this thread wishes to add money to the pledge, just PM me or make a notation in this thread. I'll add your pledge to my own.

Pledgers so far:
  1. CZ Eddie - $100 (I paid off on my last pledge of $50 for USB audio on Galaxy S3)
  2. farfrommovin - $20
  3. emprize - $20
  4. BenG7 - $30
  5. Bom Simmons - $55
  6. tr2ride - $50

So, why can't we just copy & paste the codec into our existing AOSP ROM? Well, you can do that. But you still need to tell the ROM to actually use the codec. As of now, there is nothing that points to the codec so it gets used.

Attached to this thread are the four files that I assume are necessary. These were pulled from my AT&T Galaxy S4 running 4.3 Google Play Edition ROM.
I've also attached a logcat from my ROM using this codec. And am pasting below the logcat of an S3 ROM that is using the codec.

So, please dev community. Help us figure out how to get the APT-X Bluetooth codec integrated into any ROM we choose to run on the phone we bought that came with APT-X.

Thanks!


APT-X codec files:
- libbt-aptx-4.0.3.so
- libbt-codec-aptx.so

Possibly related codecs?
- libbluetooth_jni.so
- libbt-codec.so


Galaxy S3 logcat:
Quote:
V/18:43:16.142 BluetoothEventLoop.cpp( 3477)
event_filter: Received signal org.bluez.AudioSink:PropertyChanged from

/org/bluez/10835/hci0/dev_00_16_94_0C_7D_95
V/18:43:16.142 BluetoothEventLoop.cpp( 3477)
event_filter: Received signal org.bluez.AudioSink:PropertyChanged from

/org/bluez/10835/hci0/dev_00_16_94_0C_7D_95
V/18:43:16.142 BluetoothA2dpService.cpp( 3477)
... ignored
V/18:43:16.142 BluetoothEventLoop.cpp( 3477)
event_filter: Received signal org.bluez.AudioSink:Playing from

/org/bluez/10835/hci0/dev_00_16_94_0C_7D_95
D/18:43:16.142 A2DP ( 2084)
Received BT_RESPONSE - BT_NEW_STREAM
D/18:43:16.142 A2DP ( 2084)
Received BT_RESPONSE - BT_START_STREAM
D/18:43:16.077 A2DP ( 2084)
bluetooth_start
D/18:43:16.077 A2DP ( 2084)
end of bluetooth_a2dp_aptx_hw_btaptx_params()
D/18:43:16.077 A2DP ( 2084)
bluetooth_a2dp_aptx_hw_params called bluetooth_a2dp_aptx_setup(data)
D/18:43:16.077 A2DP ( 2084)
MTU: 895
D/18:43:16.077 A2DP ( 2084)
bluetooth_a2dp_aptx_hw_params called audioservice_expect()
D/18:43:16.077 A2DP ( 2084)
Received BT_RESPONSE - BT_SET_CONFIGURATION
D/18:43:16.077 A2DP ( 2084)
bluetooth_a2dp_aptx_hw_params called audioservice_send() from
D/18:43:16.077 A2DP ( 2084)
frequency: 44100
D/18:43:16.077 A2DP ( 2084)
channel_mode: STEREO
D/18:43:16.077 A2DP ( 2084)
bluetooth_a2dp_aptx_hw_params sending configuration:
D/18:43:16.077 A2DP ( 2084)
Received BT_RESPONSE - BT_OPEN
D/18:43:16.077 A2DP ( 2084)
We are in bluetooth_a2dp_aptx_hw_params()
D/18:43:16.077 A2DP ( 2084)
aptx frequency = 3
D/18:43:16.077 A2DP ( 2084)
aptx channel mode = 15
D/18:43:16.077 A2DP ( 2084)
aptx Vendor ID3 = 0
D/18:43:16.077 A2DP ( 2084)
aptx Vendor ID2 = 0
D/18:43:16.077 A2DP ( 2084)
aptx Vendor ID1 = 0
D/18:43:16.077 A2DP ( 2084)
aptx Vendor ID0 = 4f
D/18:43:16.077 A2DP ( 2084)
aptx codec ID1 = 0
D/18:43:16.077 A2DP ( 2084)
aptx codec ID0 = 1
D/18:43:16.077 A2DP ( 2084)
paptxcodec->length=14
D/18:43:16.077 A2DP ( 2084)
~~~~~~~~~~~~~ codec type set to aptx
E/18:43:16.077 A2DP ( 2084)
bluetooth_parse_capabilities() invalid codec capabilities length
D/18:43:16.077 A2DP ( 2084)
bluetooth_parse_capabilities:: detect APTX
D/18:43:16.077 A2DP ( 2084)
Received BT_RESPONSE - BT_GET_CAPABILITIES

And here is a list of currently supported smartphones:
  • Apple iPhone iOS 7
    Fujitsu ARROWS NX F-06E
    Fujitsu ARROWS X F-10D
    Fujitsu REGZA-T02D
    HTC Butterfly
    HTC Butterfly S
    HTC Desire 300
    HTC Desire 500
    HTC Desire 600 dual sim
    HTC Desire 601
    HTC Desire SV
    HTC Desire U
    HTC Desire X
    HTC Droid DNA
    HTC J
    HTC One
    HTC One S
    HTC One SV
    HTC One V
    HTC One X
    HTC One X Plus (X+)
    HTC One XL
    HTC One XT
    HTC One Max
    HTC One Mini
    HTC One M8
    LG G3
    Motorola DROID RAZR HD
    Motorola DROID RAZR M
    Motorola DROID RAZR MAXX HD
    Motorola RAZR
    Motorola RAZR MAXX
    Nokia none
    Panasonic Eluga P-03 Smartphone
    Samsung Galaxy Mega
    Samsung Galaxy Note II
    Samsung Galaxy S III (S3)
    Samsung Galaxy S III (S3) Mini
    Samsung Galaxy S IV (S4)
    Samsung Galaxy S IV (S4) Active
    Samsung Galaxy S IV (S4) Mini
    Samsung Galaxy Note III
    Samsung Galaxy S5
    Sharp 102SH
    Sharp 102SHII
    Sharp 106SH
    Sharp 107SH
    Sharp 203SH
    Sharp IS15SH
    Sharp IS17SH
    Sharp ISW16SH
    Sharp Pantone 200SH
    Sharp SH01D
    Sharp SH-05E
    Sharp SH07D
    Sharp SH09D
    Sharp SHL21
    Sharp SHL22
    Sony Xperia Z Ultra
    Vertu Constellation
Attached Thumbnails
Click image for larger version

Name:	apt-x_logcat.jpg
Views:	1697
Size:	18.4 KB
ID:	2398144  
Attached Files
File Type: 7z APT-X.7z - [Click for QR Code] (48.3 KB, 583 views)
TMO Galaxy Note 3 on ATT unlimited data plan

  • bri315317's Dynamic Kat 4.4.2 ROM
  • imoseyon's LeanKernel


  • Samsung Galaxy S5
  • Samsung Galaxy S4
  • Samsung Galaxy S3
  • Samsung Galaxy Skyrocket
  • Samsung Infuse
  • HTC Inspire


**** Check out my how-to DIY kickstand case!
http://forum.xda-developers.com/show...php?p=52585717
**** Visit my XDA thread to help get APT-X High Definition Bluetooth Audio working in AOSP ROM's!
http://forum.xda-developers.com/show....php?t=2531440
The Following 9 Users Say Thank You to CZ Eddie For This Useful Post: [ Click to Expand ]
 
stephendt0
Old
#2  
Senior Member
Thanks Meter 38
Posts: 214
Join Date: Apr 2012
Location: QLD, Australia

 
DONATE TO ME
I too am quite interested in APT-X in ASOP based devices. Bluetooth audio quality is just not up to scratch really. Will be paying close attention to this thread. Is bluetooth 4.0 a necessity for APT-X to work?
The Following User Says Thank You to stephendt0 For This Useful Post: [ Click to Expand ]
 
mojonba
Old
#3  
Junior Member
Thanks Meter 1
Posts: 13
Join Date: Sep 2007
The Following User Says Thank You to mojonba For This Useful Post: [ Click to Expand ]
 
CZ Eddie
Old
#4  
CZ Eddie's Avatar
Senior Member - OP
Thanks Meter 928
Posts: 3,395
Join Date: Sep 2011
Location: Austin, TX

 
DONATE TO ME
Quote:
Originally Posted by stephendt0 View Post
Is bluetooth 4.0 a necessity for APT-X to work?
I have googled around but haven't been able to find out. I do know however, that all phones with APT-X have at least Bluetooth 4.0.

Here is the Wikipedia on APT-X:
http://en.wikipedia.org/wiki/AptX

And this is the official webpage of APT-X:
http://www.csr.com/products/60/aptx

This is the APT-X technical whitepaper:
http://www.csr.com/sites/default/fil...hitepaper1.pdf
TMO Galaxy Note 3 on ATT unlimited data plan

  • bri315317's Dynamic Kat 4.4.2 ROM
  • imoseyon's LeanKernel


  • Samsung Galaxy S5
  • Samsung Galaxy S4
  • Samsung Galaxy S3
  • Samsung Galaxy Skyrocket
  • Samsung Infuse
  • HTC Inspire


**** Check out my how-to DIY kickstand case!
http://forum.xda-developers.com/show...php?p=52585717
**** Visit my XDA thread to help get APT-X High Definition Bluetooth Audio working in AOSP ROM's!
http://forum.xda-developers.com/show....php?t=2531440
The Following User Says Thank You to CZ Eddie For This Useful Post: [ Click to Expand ]
 
Oli28
Old
#5  
Oli28's Avatar
Member
Thanks Meter 9
Posts: 57
Join Date: Feb 2011
Location: Bern
would also like that feature and pay for it if it comes to the nexus devices
The Following User Says Thank You to Oli28 For This Useful Post: [ Click to Expand ]
 
cx5
Old
#6  
Senior Member
Thanks Meter 74
Posts: 339
Join Date: Apr 2009
Yeah, I support this request too.

See the de-facto measurement prove of it's improvement in this training video provided in this link. http://www.prismsound.com/test_measu...ars.php?wid=19

Click on the request download.

Then after I studied it, and listen to various headphones, headsets, BT speaker boxes with apt-x it's just too obvious of the improvement. My next phone gotto have apt-x.

---------- Post added at 05:17 PM ---------- Previous post was at 05:10 PM ----------

Not to worry that only BT4 can have apt-X.

See this BT2 also have apt-X. It's just codes and can be easily implemented with correct know-how.

PX-210-BT by Sennheiser

and see this friend who constantly update hardward listed with apt-X - http://www.jessebandersen.com/2012/0...e-devices.html


Quote:
Originally Posted by CZ Eddie View Post
I do know however, that all phones with APT-X have at least Bluetooth 4.0.
The Following User Says Thank You to cx5 For This Useful Post: [ Click to Expand ]
 
withmenilu
Old
#7  
Junior Member
Thanks Meter 3
Posts: 23
Join Date: Mar 2009
I support this request as well.
The Following User Says Thank You to withmenilu For This Useful Post: [ Click to Expand ]
 
Topfar
Old
#8  
Member
Thanks Meter 1
Posts: 64
Join Date: Apr 2008
+1 for Nexus compatibility.
Nexus 7
The Following User Says Thank You to Topfar For This Useful Post: [ Click to Expand ]
 
farfromovin
Old
#9  
farfromovin's Avatar
Senior Member
Thanks Meter 381
Posts: 1,819
Join Date: Aug 2011
I'll add $20 for a flashable .zip or other workaround that brings APT-X to cm or AOSP.
Tmobile Note 2- powered by XDA magic.
The Following User Says Thank You to farfromovin For This Useful Post: [ Click to Expand ]
 
fedevd
Old
#10  
fedevd's Avatar
Senior Member
Thanks Meter 1104
Posts: 658
Join Date: Jan 2011
Location: ▂ ▃ ▅ ▆ █

 
DONATE TO ME
So, you want a flashable zip to install and enable this "apt-x" feature on any AOSP, of course, if the device are able to use it?

Enviado desde mi C6603 mediante Tapatalk

The Following User Says Thank You to fedevd For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes