Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,772,106 Members 40,679 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][XPOSED] SpotifyAVRCP - Bluetooth track info from Spotify

Tip us?
 
jbergler
Old
(Last edited by jbergler; 3rd December 2013 at 10:16 AM.)
#1  
Member - OP
Thanks Meter 30
Posts: 55
Join Date: Jan 2011
Default [MOD][XPOSED] SpotifyAVRCP - Bluetooth track info from Spotify

SpotifyAVRCP:
Spotify doesn't send track information via bluetooth, in the past there have been patched versions of Spotify floating around to add media metadata over bluetooth. This is an xposed module that does the same thing, it hooks into an internal track change function and broadcasts a standard android media intent.

The Spotify APK is run through proguard so method names are likely to change - which means this may not work with all versions and future updates could break it - in which case I will try and fix asap and upload a new version.

Requirements:
1) Have Xposed Framework Installed

Instructions to install SpotifyAVRCP:
1) Download & Install SpotifyAVRCP from bintray or in the Xposed Installer Downloads section
2) Enable SpotifyAVRCP in Xposed Installer
3) Restart device
4) Play Music

Changelog
Latest: 1.0.0 Beta - 30/11/13 (Download)
  • Initial Release
  • Support for Spotify Version 0.7.3.636

Notes
It seems that this mod might only be useful for bluetooth info on android 4.2.x and below. 4.3 introduces AVRCP support and should handle things properly. However this mod might still be useful if you have other legacy applications which rely on the old broadcasts to get track information - this seems to be the case for both Pebble and Gear smartwatches.


If you're reporting problems, please include the Device, OS Version and end device you're trying to get to work.
HTC One mini [m4] / Stock Rooted [4.2.2]
Galaxy S4 [i9505] / ParanoidAndroid 3.99-RC2 [4.3.1]
The Following 8 Users Say Thank You to jbergler For This Useful Post: [ Click to Expand ]
 
ice_prophecy
Old
#2  
Member
Thanks Meter 0
Posts: 37
Join Date: Nov 2009
Location: Brisbane
Works a treat on my Note 3 Now just the album art hahah!

Show me where to deposit beer money for you?
 
jbergler
Old
#3  
Member - OP
Thanks Meter 30
Posts: 55
Join Date: Jan 2011
Quote:
Originally Posted by ice_prophecy View Post
Works a treat Now just the album art hahah!

Show me where to deposit beer money for you?
I'll get the album art working and then think about accepting beer money.
HTC One mini [m4] / Stock Rooted [4.2.2]
Galaxy S4 [i9505] / ParanoidAndroid 3.99-RC2 [4.3.1]
The Following User Says Thank You to jbergler For This Useful Post: [ Click to Expand ]
 
ice_prophecy
Old
#4  
Member
Thanks Meter 0
Posts: 37
Join Date: Nov 2009
Location: Brisbane
So just further feedback:

When I said it was working a treat, I only tested it on my Galaxy Gear (which displays Media Information) in the media control centre.

I tried it in my Toyota Altara S (2012) and the media head displays

(No Data) for each field.
 
jbergler
Old
#5  
Member - OP
Thanks Meter 30
Posts: 55
Join Date: Jan 2011
Quote:
Originally Posted by ice_prophecy View Post
I tried it in my Toyota Altara S (2012) and the media head displays

(No Data) for each field.
Is there a media player which does work in your Toyota? If so, I can grab it and check which intents its sending. At the moment I'm sending the default android "com.android.music.metachanged" intent which, as far as I understand it, is what the os reads to generate the avrcp data.
HTC One mini [m4] / Stock Rooted [4.2.2]
Galaxy S4 [i9505] / ParanoidAndroid 3.99-RC2 [4.3.1]
The Following User Says Thank You to jbergler For This Useful Post: [ Click to Expand ]
 
ice_prophecy
Old
(Last edited by ice_prophecy; 30th November 2013 at 09:56 AM.)
#6  
Member
Thanks Meter 0
Posts: 37
Join Date: Nov 2009
Location: Brisbane
Quote:
Originally Posted by jbergler View Post
Is there a media player which does work in your Toyota? If so, I can grab it and check which intents its sending. At the moment I'm sending the default android "com.android.music.metachanged" intent which, as far as I understand it, is what the os reads to generate the avrcp data.
Yes, the default android music player. I'm running the stock Samsung TouchWiz ROM for Note 3 n9005:


Music 6.0.1
I've also attached the APK made from a TitaniumBackup com.sec.android.app.music-58e673dbcbf733750a580d16571af5d4.apk

I'll try re coupling the devices again in the meantime
 
jbergler
Old
#7  
Member - OP
Thanks Meter 30
Posts: 55
Join Date: Jan 2011
Quote:
Originally Posted by ice_prophecy View Post
Yes, the default android music player. I'm running the stock Samsung TouchWiz ROM for Note 3 n9005
Out of curiosity does it support album art in the car? Or just to the gear?
HTC One mini [m4] / Stock Rooted [4.2.2]
Galaxy S4 [i9505] / ParanoidAndroid 3.99-RC2 [4.3.1]
The Following User Says Thank You to jbergler For This Useful Post: [ Click to Expand ]
 
ice_prophecy
Old
(Last edited by ice_prophecy; 30th November 2013 at 10:25 AM.)
#8  
Member
Thanks Meter 0
Posts: 37
Join Date: Nov 2009
Location: Brisbane
Quote:
Originally Posted by jbergler View Post
Out of curiosity does it support album art in the car? Or just to the gear?

Yes, when using the default music app:
I am able to see the album art and all tag information on both the Car and on the Galaxy Gear. (Edit: Give me 2 seconds to run out and double check)
I am only able to see tag information in the Car. The Gear however displays album art and tag information.

Annoyingly, the car will always autostart the Default Music app over Spotify.... it brings annoyance to no end...

There is one unrelated caveat, which is probably more related to the car's shortcomings is the lack of Unicode-8 for foreign characters. The Gear does not have this issue.
 
jbergler
Old
(Last edited by jbergler; 30th November 2013 at 10:31 AM.)
#9  
Member - OP
Thanks Meter 30
Posts: 55
Join Date: Jan 2011
Quote:
Originally Posted by ice_prophecy View Post
I've also attached the APK made from a TitaniumBackup Attachment 2423632
You're on an odexed rom, can you grab the Music.odex from the app directory on your phone as well?

Actually nevermind - I can't deodex it without grabbing the whole rom, what build are you running, ill download a deodexed copy of your rom and grab the apk.
HTC One mini [m4] / Stock Rooted [4.2.2]
Galaxy S4 [i9505] / ParanoidAndroid 3.99-RC2 [4.3.1]
 
ice_prophecy
Old
(Last edited by ice_prophecy; 30th November 2013 at 10:47 AM.)
#10  
Member
Thanks Meter 0
Posts: 37
Join Date: Nov 2009
Location: Brisbane
As requested:
com.sec.android.app.music-5fa6d510e8cc2d8c98a6c1947cf90481.odex.gz

EDIT: I'm running a completely stock Samsung Note 3 Rom. I've only rooted it, but have never flashed any recovery/rom.

Tags
avrcp, bluetooth, spotify, xposed
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes