FORUMS

XDA Picks: Best Apps of the Week (Apr 17 – 24)

Apps are at the front and center of any smartphone experience, and with over a … more

Glimpse Notifications: Easier Lockscreen Notifications

Lollipop brought a revamp to the lockscreen, taking away custom widgets but … more

What Are the Best Looking Apps on Android?

As more developers are updating their apps with Material Design elements, we’re … more

Cyngn Explained: Who’s Cyanogen, What’s Cyanogen OS?

While Cyanogen, Inc has been the source of many headlines lately, there … more
Post Reply Subscribe to Thread Email Thread

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

30th November 2013, 12:38 AM |#1  
OP Member
Thanks Meter: 31
 
More
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.
Last edited by jbergler; 3rd December 2013 at 10:16 AM.
The Following 9 Users Say Thank You to jbergler For This Useful Post: [ View ]
 
 
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: 31
 
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 ]
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: 31
 
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 ]
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
Last edited by ice_prophecy; 30th November 2013 at 09:56 AM.
30th November 2013, 10:17 AM |#7  
OP Member
Thanks Meter: 31
 
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 ]
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.
Last edited by ice_prophecy; 30th November 2013 at 10:25 AM.
30th November 2013, 10:27 AM |#9  
OP Member
Thanks Meter: 31
 
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.
Last edited by jbergler; 30th November 2013 at 10:31 AM.
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.
Last edited by ice_prophecy; 30th November 2013 at 10:47 AM.
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes