FORUMS
Remove All Ads from XDA

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

55 posts
Thanks Meter: 32
 
Post Reply Email Thread
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.
The Following 10 Users Say Thank You to jbergler For This Useful Post: [ View ] Gift jbergler Ad-Free
 
 
30th November 2013, 08:40 AM |#2  
Member
Flag Brisbane
Thanks Meter: 0
 
More
Works a treat on my Note 3 Now just the album art hahah!

Show me where to deposit beer money for you?
30th November 2013, 08:41 AM |#3  
OP Member
Thanks Meter: 32
 
More
Quote:
Originally Posted by ice_prophecy

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.
The Following User Says Thank You to jbergler For This Useful Post: [ View ] Gift jbergler Ad-Free
30th November 2013, 09:26 AM |#4  
Member
Flag Brisbane
Thanks Meter: 0
 
More
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.
30th November 2013, 09:28 AM |#5  
OP Member
Thanks Meter: 32
 
More
Quote:
Originally Posted by ice_prophecy

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.
The Following User Says Thank You to jbergler For This Useful Post: [ View ] Gift jbergler Ad-Free
30th November 2013, 09:52 AM |#6  
Member
Flag Brisbane
Thanks Meter: 0
 
More
Quote:
Originally Posted by jbergler

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
30th November 2013, 10:17 AM |#7  
OP Member
Thanks Meter: 32
 
More
Quote:
Originally Posted by ice_prophecy

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?
The Following User Says Thank You to jbergler For This Useful Post: [ View ] Gift jbergler Ad-Free
30th November 2013, 10:19 AM |#8  
Member
Flag Brisbane
Thanks Meter: 0
 
More
Quote:
Originally Posted by jbergler

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.
30th November 2013, 10:27 AM |#9  
OP Member
Thanks Meter: 32
 
More
Quote:
Originally Posted by ice_prophecy

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.
30th November 2013, 10:39 AM |#10  
Member
Flag Brisbane
Thanks Meter: 0
 
More
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.
30th November 2013, 12:00 PM |#11  
Member
Thanks Meter: 1
 
More
Not working for me either using Nexus 4 with 4.4. As soon as my device connects is says "Nexus 4" and after that it's just empty. If I launch Google Play music it is sending metadata perfectly and if I switch to Spotify after that Spotify is also sending it perfectly. I had this exact behaciour before installing your module or Metafy or the modified Spotify app.
I also tried disabling Google Play music but that doesnt seem to have any effect except for that I cannot use mentioned workaround anymore. If theres anything I can do to help please let me knoe.
Post Reply Subscribe to Thread

Tags
avrcp, bluetooth, spotify, xposed

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes