[MODULE][Magisk & Xposed][19/04] Ambient Music Mod - Pixel Ambient Music port for other, compatible devices

Search This thread

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,507
7,746
23
Salford, Greater Manchester, UK
quinny898.co.uk
I'm located in germany (probably something like de_DE)
There is a progress bar, but it doesn't show me a progess. It's just like.. loading

Yeah the indeterminate progress bar (the one that just spins) shows until it finishes parsing the first database, if it doesn't show progress after like 5 minutes then it's probably failing to parse it somewhere, looks like I'll need to write some unit tests
 

dr0idik4

Member
Feb 6, 2021
12
1
Hi, would like to join in, but don't seem to get it running properly. I installed it via magisk, acrivated the module in edxposed but it always fails to start ambient music which is open in the next window...i am on lineage 17.1 with microg on an xperia xz 1 compact. I'm not quite sure, if the microphone permission is set correctly.
 

McFlypants

Senior Member
Mar 22, 2013
335
114
Tap the microphone prompt in Ambient Music, you have to grant it manually via the app info (not sure why Google didn't just implement a prompt like everyone else does). I have also found that sometimes when you've just granted it access it doesn't immediately respond to test recognition, if you find it still sits loading after that then kill Ambient Music via the recents, reopen it via Ambient Music Mod, return to Ambient Music Mod and try running the recognition again.
I can't do this in miui, there is no Option for this in the App settings of this App. All others have the Option!!
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,507
7,746
23
Salford, Greater Manchester, UK
quinny898.co.uk
Hi, would like to join in, but don't seem to get it running properly. I installed it via magisk, acrivated the module in edxposed but it always fails to start ambient music which is open in the next window...i am on lineage 17.1 with microg on an xperia xz 1 compact. I'm not quite sure, if the microphone permission is set correctly.
Please provide a log dump (instructions in the FAQ)
I can't do this in miui, there is no Option for this in the App settings of this App. All others have the Option!!
Very strange. In a root shell you should be able to do:
Code:
pm grant com.google.intelligence.sense android.permission.RECORD_AUDIO
which will grant the permission manually
 

McFlypants

Senior Member
Mar 22, 2013
335
114
Very strange. In a root shell you should be able to do:
Code:
pm grant com.google.intelligence.sense android.permission.RECORD_AUDIO
which will grant the permission manually
I was able to do this with another App, now everything is granted and it worked some times.

But it is loading the database forever! Doing it since 2 hours but it doesn't finish!
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,507
7,746
23
Salford, Greater Manchester, UK
quinny898.co.uk
I was able to do this with another App, now everything is granted and it worked some times.

But it is loading the database forever! Doing it since 2 hours but it doesn't finish!
Yeah it sounds like the parser has a bug somewhere. I'm running a unit test of it against all 375 databases, but that'll take some time.

The database isn't required for ambient music to work though. If you're looking for a song to test with, this old list from 2017 should still be valid for a list of songs that will work (though many more are supported now) http://quinny898.co.uk/resources/pixel-songs/
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,507
7,746
23
Salford, Greater Manchester, UK
quinny898.co.uk
Ok its installed all things activated like magisk module and xposed installer but still In test recognition its showing ambient music failed to start. Tried several time same error and on lock screen no ambient music icon and not recognizing songs
Do a log dump and post that, instructions in the FAQ.
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,507
7,746
23
Salford, Greater Manchester, UK
quinny898.co.uk
Yes i did all things under developers option i didn't get that option like logging
So you don't get the option in here:

YcMZIZB.png

?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    Important: YOU MUST HAVE BOTH XPOSED AND MAGISK INSTALLED TO USE THIS MODULE. READ THE FAQ FOR MORE INFO.

    Ambient Music Mod​

    A hybrid Xposed & Magisk module that ports Pixel Ambient Music to other, compatible devices. If you don't know what Pixel Ambient Music is, it's the feature that recognises music that's playing in the background (ie. not from your phone) automatically. It does this locally, without a connection, and doesn't send any data to Google servers for recognition.

    The aim of this feature is simple - you'll never wonder "what's that song" again when around the house or out and about - as your phone will tell you without you even having to ask.

    Please read the FAQ before asking questions or reporting issues

    Features​

    • Full Ambient Music support, including downloading the latest databases from Google
    • Music recognition when the device is idle or in use (exclusions apply, see the FAQ for more details)
    • Now Playing History built in, and support for third party history apps
    • The ability to display the current now playing track on the lock screen using an Accessibility overlay service
    • Manual recognition on demand in the Ambient Music Mod app
    • Settings to control the amplification, how often recognition should be triggered, whether to run on the small CPU cores and what to do when a song recognition notification is tapped
    • View all the recognisable track in your locally downloaded database via the Track List option

    Requirements​

    • Magisk
    • Xposed
    • A device with a Snapdragon processor that supports Sound Trigger 2.1 or above (the app will tell you if it's compatible)

    Installation Instructions​

    • Install the latest release APK from the GitHub releases page
    • Open the app, check your device is compatible and build the module using the Build Installer option
    • Install the built Magisk module using the Magisk app
    • Enable the Xposed module in Xposed Manager
    • Reboot

    Changelog​

    1.1.1
    Fixed an issue where the Xposed warning dialog continue button did not work

    1.1
    • Added a new compatibility checker that checks if getModelState() [and therefore hopefully the module] is supported. This isn't 100% perfect so a bypass is also available
    • Tweaked sound trigger injection to include an XML line that's required for some devices
    • Fixed track list not loading for some people
    • Hopefully fixed log dump zips
    • Newly built modules will now also keep a copy of your original sound trigger XML. This change allows for comparison in the log dumps, and may help updates in the future.
    IMPORTANT: When updating the module (which will force you to uninstall/disable the current module and reboot), the module name will change. Therefore, you are advised to uninstall the previous module as part of this process.

    Screenshots​

    Ambient Music Mod displaying the currently playing track on the lock screen of a OnePlus 7T Pro running Oxygen OS 11:



    Settings, Installer, standard Ambient Music settings & Now Playing history



    You can verify that the songs displayed in these screenshots were being played at the time by viewing a screenshot of the playlist from the radio station being listened to at the time here

    1,270 days, stop the clock.
    2
    So this is a weird one. Installed on 7t OOS 11.0.0.2, but doesn't work.
    After some digging I realized that Magisk doesn't mount the pixel ambient services app into /system/product/priv-app, as in the folder gets created, but the apk and lib folder inside isn't there. They are there though under the /data/adb/modules/AmbientMusicMod folder. Tried installing manually, but I guess it needs to be a system app to function. What kind of logs should I even send for this one?
    Initially had this issue, but solved it by installing Zackptg5's Overlay Mount Fix. You can find it in Magisk Manager module downloads.
    2
    Sorry for the second question: when I try to enable the mod in LSPosed manager, it asks to me to select an app. I don't know which app to select and the Ambient Music apps don't appear on the list. If I don't select an app the mod doesn't get enabled. Not sure what to do about that.
    I selected System Framework, Android System, Ambient Services, and Device Personalization Services.

    For some reason this mods own app doesn't show up tho, otherwise I would've enabled it as well like mentioned.
    1
    App keeps asking to update and there is no update
    My bad, forgot to knock the internal version back down after testing the update dialog. I've "updated" the APK on GitHub, it's exactly the same build with the correct internal version, and will install on top :)
    1
    The font works fine (just using Magisk to place the fonts in the system). Making it be used on the system elements on the other hand was difficult, as overlays are partially broken on Oxygen OS 11. I made a custom Xposed module do it instead, which I won't be releasing as I don't want another thing to have to maintain.

    different person, same topic. just adding that another person would appreciate having this module lol, even if it was just a post and forget type thing with no support/updates. greatly appreciate all the work you do.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone