5,594,221 Members 45,626 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] [CODEC] APT-X to 4.4 AOSP .... for the first time in history! HiDef Bluetooth

Tip us?
 
CZ Eddie
Old
(Last edited by CZ Eddie; 6th December 2013 at 07:45 PM.)
#1  
CZ Eddie's Avatar
Senior Member - OP
Thanks Meter 633
Posts: 3,019
Join Date: Sep 2011
Location: Austin, TX
Audio [MOD] [CODEC] APT-X to 4.4 AOSP .... for the first time in history! HiDef Bluetooth

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.

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

Great news everyone, I've attached a recovery flashable zip to this thread that gives your 4.4 AOSP based ROM the APT-X high-definition Bluetooth codec.
This is something that has NEVER been available on any AOSP type ROM's before.

THIS IS NOT for 4.2 or 4.3!!

What is APT-X?
It's Bluetooth for "Audiophiles".
This is the next step beyond A2DP and it delivers a "high definition" sound. APT-X Lossless supports high-definition audio up to 96 kHz sampling rates and sample resolutions up to 24 bits. See the graph below for a visual indication of how much better APT-X Bluetooth sounds compared with normal Bluetooth.




Many thanks to:

DEVELOPMENTAL ADVICE:
  • WERTY100
  • glycolysis

DEVELOPMENTAL BREAKTHROUGH:
  • SPLESH

Development history:
http://forum.xda-developers.com/show...7#post48183337


Directions:

ONLY flash this on a 4.4 ROM. So far, Omni 4.4 has been tested: omni-4.4-20131202-jflteatt-HOMEMADE.zip
This does not work in 4.1, 4.2 or 4.3.
If you are on TouchWiz or Google Play Edition, then you can ignore this thread because it offers nothing for you.

Also, if you don't have an APT-X compatible receiving devices such as headphones, then APT-X codecs won't do anything for you. So don't flash it.
  1. Reboot to recovery.
  2. Flash zip.
  3. Wipe cache & dalvik.
  4. Fix permissions.
  5. Reboot.
Attached Files
File Type: zip APTXtoAOSP.zip - [Click for QR Code] (805.9 KB, 83 views)
AT&T Galaxy S4
Rooted Google Play Edition 4.4 ROM
Ktoonsez AOSP 4.4 kernel
  • Xposed Mods
  • Tasker
  • Utter

**** Visit my XDA thread to help get APT-X High Definition Bluetooth working in AOSP ROM's!

http://forum.xda-developers.com/show....php?t=2531440
The Following 4 Users Say Thank You to CZ Eddie For This Useful Post: [ Click to Expand ]
 
CZ Eddie
Old
#2  
CZ Eddie's Avatar
Senior Member - OP
Thanks Meter 633
Posts: 3,019
Join Date: Sep 2011
Location: Austin, TX
Btw, flash at your own risk, may break phone, etc etc.
Please let me know how it works out so I can feel safer about releasing it to the rest of the XDA community.
The idea is to let all phones that shipped with APT-X have this zip so they can still run AOSP ROM's and have the APT-X that they already paid for (licensing).
AT&T Galaxy S4
Rooted Google Play Edition 4.4 ROM
Ktoonsez AOSP 4.4 kernel
  • Xposed Mods
  • Tasker
  • Utter

**** Visit my XDA thread to help get APT-X High Definition Bluetooth working in AOSP ROM's!

http://forum.xda-developers.com/show....php?t=2531440
 
dligon
Old
#3  
dligon's Avatar
Senior Member
Thanks Meter 496
Posts: 1,569
Join Date: Oct 2010
Location: TEXAS
so this will make this http://www.youtube.com/watch?v=kfVsfOSbJY0 sound awesome
 
CZ Eddie
Old
(Last edited by CZ Eddie; 6th December 2013 at 06:30 PM.)
#4  
CZ Eddie's Avatar
Senior Member - OP
Thanks Meter 633
Posts: 3,019
Join Date: Sep 2011
Location: Austin, TX
Hahah, believe it or not, that actually made me smile.

Okay, forgot to mention. How do you know if APT-X is working?!?
Easy! Right now on AOSP, if you connect Bluetooth you will NOT see any mention in log cat about "APTX".
After flashing this zip, whenever you connect Bluetooth you'll now see "APTX" mentioned in log cat, like what you see below.

Here is my favorite free log cat app:
https://play.google.com/store/apps/d...n.logcat&hl=en

Just install the app. Give it root permissions.
Then click your menu button capacitive button. Then click on "record". Then initiate your Bluetooth connection and start playing some music. After a few moments, stop the log cat recording.
Then open the log in the app.
And type "aptx" in the search window at the top.
If you see any results, then aptx is working for you!

Quote:
4.4 AOSP LOG CAT:

12-05 19:35:16.614 I/audio_a2dp_hw( 300): start_audio_datapath: state 5
12-05 19:35:16.614 W/bt-btif ( 3433): audio_set_codec_aptx_transcoding : freq 44100
12-05 19:35:16.614 W/bt-btif ( 3433): audio_set_codec_aptx_transcoding: num channels 2
12-05 19:35:16.614 W/bt-btif ( 3433): bta_dm_rm_cback:1, status:7

12-05 19:35:25.522 I/audio_a2dp_hw( 300): start_audio_datapath: state 5
12-05 19:35:25.532 W/bt-btif ( 3433): audio_set_codec_aptx_transcoding : freq 44100
12-05 19:35:25.532 W/bt-btif ( 3433): audio_set_codec_aptx_transcoding: num channels 2
12-05 19:35:25.532 W/bt-btif ( 3433): bta_dm_rm_cback:1, status:7


12-05 19:34:39.277 E/bt-btif ( 3433): bta_av_rc_create ACP handle exist for shdl:0
12-05 19:34:39.588 D/CODEC_IF( 3433): codec_if_open: opening libbt-codec_aptx.so...
12-05 19:34:39.598 W/linker ( 3433): libbt-aptx-4.0.3.so has text relocations. This is wasting memory and is a security risk. Please fix.
12-05 19:34:39.598 D/CODEC_IF_MOD( 3433): codec_open: codec_open
12-05 19:34:39.598 D/CODEC_IF_MOD( 3433): codec_open: apt-x encoder initialized successfully
12-05 19:34:39.598 D/CODEC_IF_MOD( 3433): codec_open: version : 1.0.1.0
12-05 19:34:39.598 D/CODEC_IF_MOD( 3433): codec_open: build : AND2.3-000
12-05 19:34:39.598 D/CODEC_IF( 3433): codec_if_open: codec module opened (v0.1
12-05 19:34:39.598 D/CODEC_IF( 3433): codec_if_close: codec_if_close hdl 1990877188
12-05 19:34:39.598 D/CODEC_IF_MOD( 3433): codec_close: codec_close
12-05 19:34:39.608 D/CODEC_IF_MOD( 3433): codec_close: freed apt-x encoder
12-05 19:34:39.898 W/bt-btif ( 3433): bta_dm_rm_cback:0, status:0
12-05 19:34:39.898 W/bt-btif ( 3433): new conn_srvc id:18, app_id:0
12-05 19:34:39.898 W/bt-btif ( 3433): bta_dm_pm_ssr conn_srvc id:18, app_id:0
12-05 19:34:39.898 W/bt-btif ( 3433): bta_dm_pm_ssr:2, lat:1200
12-05 19:34:39.898 I/BluetoothA2dpServiceJni( 3433): bta2dp_connection_state_callback
AT&T Galaxy S4
Rooted Google Play Edition 4.4 ROM
Ktoonsez AOSP 4.4 kernel
  • Xposed Mods
  • Tasker
  • Utter

**** Visit my XDA thread to help get APT-X High Definition Bluetooth working in AOSP ROM's!

http://forum.xda-developers.com/show....php?t=2531440
 
CZ Eddie
Old
#5  
CZ Eddie's Avatar
Senior Member - OP
Thanks Meter 633
Posts: 3,019
Join Date: Sep 2011
Location: Austin, TX
After more testing, I'm not really satisfied with the results I'm getting.
Yeah, the APT-X codec is working on OMNI 4.4 AOSP ROM. But now that I'm getting into some softer, more quiet music... I'm hearing some static in the background. Ugh.
AT&T Galaxy S4
Rooted Google Play Edition 4.4 ROM
Ktoonsez AOSP 4.4 kernel
  • Xposed Mods
  • Tasker
  • Utter

**** Visit my XDA thread to help get APT-X High Definition Bluetooth working in AOSP ROM's!

http://forum.xda-developers.com/show....php?t=2531440
 
Catchpen
Old
#6  
Catchpen's Avatar
Senior Member
Thanks Meter 90
Posts: 262
Join Date: Dec 2011
Havent tried it but it looks like a good start. IMHO Bluetooth needs more attention on android, seems to be always the buggiest feature.

Sent from my GT-I9505 using XDA Premium 4 mobile app
 
abogrhen
Old
#7  
Junior Member
Thanks Meter 0
Posts: 26
Join Date: Jul 2012
Location: jubail

 
DONATE TO ME
I try the mod on my s3 with
CM11 and it did not work
It is actually bricked my Bluetooth and I had to reflash
My rom

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...