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

Search This thread
Nothing useful in that log unfortunately, make sure you have launched the Ambient Music app and have whitelisted the correct apps in EdXposed if you're using whitelist mode.
I missed Device Personalization Services, rebooted and its working Awesome :D thanks man!

For anyone else with a POCO X3 NFC, this is not on a Miui Rom. I'm rocking ArrowOS
 
Last edited:

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,507
7,746
23
Salford, Greater Manchester, UK
quinny898.co.uk
Hi all,

I installed the mod on my Oneplus 9 Pro, ignoring the warnings that it was unsupported to get the installer. Using LSPosed and the v1.1.1 apk. I have System Framework, Android System, Ambient Services, and Device Personalization Services and all of the others mentioned in this thread enabled for the mod using LSPosed with battery optimisation disabled.

On a restart, after starting the app, the first "test recognition" listens for a while, awaits a response, then I get "No response from Ambient Music" error. I have uploaded a log dump of this failure.

Any subsequent "test recognition"s before I next restart result in the "recognition failed to start" error that other posters have. I've also attached a log dump of one of these failures.

Let me know if there's anything else I can do to troubleshoot or help work out what's going on because this looks really cool!

Thanks
Your error is
exf: startRecognition failed, error=-2147483648
Nothing that can be done.
 

Tathagata Nandi

Senior Member
Oct 27, 2016
117
20
Try rebooting, and make sure Xposed is actually working on your device (it will show a warning on the main Xposed screen if not)
Screenshot_2021-04-20-17-57-48-616_org.meowcat.edxposed.manager.jpg

Xposed is installed properly
 

ioneng

Senior Member
Mar 29, 2005
205
13
That's odd, is your Magisk up to date? For a while there was a bug with Magisk and OP devices where product modules didn't work, you may also want to try moving the APK & lib in the module to /system/priv-app rather than /system/product/priv-app.
Hi, I have this same problem on my samsung note 10+. All the files are inside adb/modules folder, there is nothing in system/priv-app folder, not even empty directories. I'm using latest canary version of magisk. I want to try and copy them into priv-app but I don't know which files and folders to copy.
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,507
7,746
23
Salford, Greater Manchester, UK
quinny898.co.uk
Hi, I have this same problem on my samsung note 10+. All the files are inside adb/modules folder, there is nothing in system/priv-app folder, not even empty directories. I'm using latest canary version of magisk. I want to try and copy them into priv-app but I don't know which files and folders to copy.
The files should be in /system/product/priv-app, not /system/priv-app.
 

shadowstep

Forum Moderator
Staff member
  • Jun 6, 2014
    5,181
    10,489
    30
    Ambala
    OnePlus 5
    @Quinny899 Everything checked out when it came to compatibility and the installation went on smoothly, but unfortunately I got hit by "exf: startRecognition failed, error=-61" (on my OnePlus 5, running OxygenOS 9.0.11 Pie), for which there doesn't seem to be a workaround yet (judging from having read the thread). Nonetheless, thanks for your hardwork and all that you do for the community!
    @Quinny899 Just a question, is the Device Personalisation Services apk absolutely needed to be present/installed? I just realized I don't have that.
     

    Tathagata Nandi

    Senior Member
    Oct 27, 2016
    117
    20
    If you have the Sound Model error then I wouldn't even bother trying to fix EdXposed, it's almost definitely not compatible.
    Screenshot_2021-04-20-19-12-50-232_com.kieronquinn.app.ambientmusicmod.jpg

    I tried with Lsposed instead of edxposed, now it's showing compatible, that exposed error doesn't appear as well. But songs doesn't recognise yet. Test recognition option keeps on loading untill it shows 'ambient music failed to start'. Would you like to take a look at the logs ?
     

    RokCruz

    Senior Member
  • Nov 18, 2014
    285
    84
    Mexico
    OnePlus 7 Pro
    Installed on my OP 7Pro in OB4 and runs perfect

    Used LSPosed instead edxposed(ended in a black screen after booting)

    In LSPosed after enabling the module I selected the apps as @NateDev said here

    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.
     

    Attachments

    • Screenshot_20210420-075835.jpg
      Screenshot_20210420-075835.jpg
      347.2 KB · Views: 52
    • Screenshot_20210420-085617.jpg
      Screenshot_20210420-085617.jpg
      330.4 KB · Views: 52
    • Screenshot_20210420-080132.jpg
      Screenshot_20210420-080132.jpg
      468.9 KB · Views: 53
    Last edited:

    Quinny899

    Recognized Developer / Recognized Contributor
    Jan 26, 2011
    8,507
    7,746
    23
    Salford, Greater Manchester, UK
    quinny898.co.uk
    @Quinny899 Just a question, is the Device Personalisation Services apk absolutely needed to be present/installed? I just realized I don't have that.
    Nope, not required. It needs to be hooked if you have it to stop it interfering with the model loading but if it's not there in the first place, even better.
    View attachment 5285065
    I tried with Lsposed instead of edxposed, now it's showing compatible, that exposed error doesn't appear as well. But songs doesn't recognise yet. Test recognition option keeps on loading untill it shows 'ambient music failed to start'. Would you like to take a look at the logs ?
    You can do another log dump if you want, yes
     
    • Like
    Reactions: shadowstep

    nicesoni_ash

    Senior Member
    May 26, 2012
    6,090
    10,950
    127.0.0.1
    There's nothing in the Pixel Ambient Services logs in your dump (like nothing at all, not "nothing useful"), so it looks like you've not launched the Ambient Music app which you need to do before it works. If that doesn't work, make sure you've whitelisted the required apps in EdXposed/lsposed if you are using the whitelist mode.
    Hi,

    I dod try to do this before getting the logs. Anyway, this time I removesd xposed white list condition and enabled it for all.

    Repeated all steps again and start tesring recognition but it atill failed so I got new logs, hopefully they will be helpful.
     

    Attachments

    • ambient_music_mod_log_dump_2021-04-20T20_22_56.379.zip
      12.7 KB · Views: 2

    elmkzgirxp

    Senior Member
    May 16, 2013
    723
    235
    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.
     

    Quinny899

    Recognized Developer / Recognized Contributor
    Jan 26, 2011
    8,507
    7,746
    23
    Salford, Greater Manchester, UK
    quinny898.co.uk
    Hi,

    I dod try to do this before getting the logs. Anyway, this time I removesd xposed white list condition and enabled it for all.

    Repeated all steps again and start tesring recognition but it atill failed so I got new logs, hopefully they will be helpful.
    java.util.concurrent.ExecutionException: java.lang.SecurityException: GoogleCertificatesRslt: Package signed with unknown certificate (go/gsrlt)
    Never seen it do that. Are you running any gapps-related mods like MicroG or a custom signed build of something? This will cause it to not be able to load the databases, so beyond that no idea if it'll work or not.
     

    FrodoToto

    New member
    Oct 13, 2020
    2
    0
    OnePlus 8 Pro here on Oxygen 10!

    The app installs perfectly but everytime I try to test recognition, it says that Ambient music service failed to start... Anything I can do?
     

    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