[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
Yes i did here is another log will it help

Still nothing useful in there. Only thing I can suggest is if you are using App Whitelist mode in EdXposed to make sure you have whitelisted Pixel Ambient Services, Device Personalization Services, Android and Ambient Music Mod & reboot

Here's the log... Thanks for the work so far an help

Code:
exf: startRecognition failed, error=-61

is your error. I've never seen that code before, and it doesn't show up in the sound_trigger source code as far as I can see. Can you send /system/vendor/etc/sound_trigger_platform.xml please? The dump should contain it but the app is corrupting the zips (fixed in next version)
 

pankspoo

Senior Member
  • Jun 27, 2013
    1,438
    854
    in front of ENCHILADA
    OnePlus 6
    Still nothing useful in there. Only thing I can suggest is if you are using App Whitelist mode in EdXposed to make sure you have whitelisted Pixel Ambient Services, Device Personalization Services, Android and Ambient Music Mod & reboot



    Code:
    exf: startRecognition failed, error=-61

    is your error. I've never seen that code before, and it doesn't show up in the sound_trigger source code as far as I can see. Can you send /system/vendor/etc/sound_trigger_platform.xml please? The dump should contain it but the app is corrupting the zips (fixed in next version)
    Yes start recognition failed.
    Ok uploaded

     

    dr0idik4

    Member
    Feb 6, 2021
    12
    1
    Still nothing useful in there. Only thing I can suggest is if you are using App Whitelist mode in EdXposed to make sure you have whitelisted Pixel Ambient Services, Device Personalization Services, Android and Ambient Music Mod & reboot



    Code:
    exf: startRecognition failed, error=-61

    is your error. I've never seen that code before, and it doesn't show up in the sound_trigger source code as far as I can see. Can you send /system/vendor/etc/sound_trigger_platform.xml please? The dump should contain it but the app is corrupting the zips (fixed in next version)
    No as it doesn't seem to exist

    Screenshot_20210415-210131_Termux.png
     

    Quinny899

    Recognized Developer / Recognized Contributor
    Jan 26, 2011
    8,507
    7,746
    23
    Salford, Greater Manchester, UK
    quinny898.co.uk
    😂😂😂 U asked someone and i given this to you.
    Ok i have doesn't enabled any whitelist mode in edxposed please help i didn't understood whats the issue
    No, I didn't ask you for it. I asked dr0idik4 for it (read the reply again), you are not the only one in this thread.

    If you aren't using app mode / whitelist mode, I can't help anymore. The logs don't show anything and your sound_trigger_platform_info.xml file is fine.
     

    Quinny899

    Recognized Developer / Recognized Contributor
    Jan 26, 2011
    8,507
    7,746
    23
    Salford, Greater Manchester, UK
    quinny898.co.uk
    There you go
    Looks like the forum has eaten your XML, you'll need to zip it and send it. I've reported the disappearing XML issue to the admins, hopefully it gets fixed (at least an error before sending would be nice)

    Edit: The xml has arrived, thanks. I think, looking at your XML, that the firmware doesn't seem to support it. There's a notable lack of triggers in there (there's not even the Qualcomm generic one), so I don't think it'll be compatible, sorry
     
    Last edited:

    dr0idik4

    Member
    Feb 6, 2021
    12
    1
    Looks like the forum has eaten your XML, you'll need to zip it and send it. I've reported the disappearing XML issue to the admins, hopefully it gets fixed (at least an error before sending would be nice)

    Edit: The xml has arrived, thanks. I think, looking at your XML, that the firmware doesn't seem to support it. There's a notable lack of triggers in there (there's not even the Qualcomm generic one), so I don't think it'll be compatible, sorry
    That's odd... I think Qualcomm 835 is the processor of my phone.
    Is there a clean uninstall mode?
     

    Quinny899

    Recognized Developer / Recognized Contributor
    Jan 26, 2011
    8,507
    7,746
    23
    Salford, Greater Manchester, UK
    quinny898.co.uk
    New version now available:

    1.1 Changelog said:
    • 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.

    Download on the GitHub releases page here
     

    TrippyEngine

    Senior Member
    Jun 2, 2017
    278
    73
    I tried the model compatibility test on my Poco F1 running miui 12 and the result was model incompatible and the code -2147483648. Is there anything I can do to make it compatible, taking the result code into account?
     

    Quinny899

    Recognized Developer / Recognized Contributor
    Jan 26, 2011
    8,507
    7,746
    23
    Salford, Greater Manchester, UK
    quinny898.co.uk
    I tried the model compatibility test on my Poco F1 running miui 12 and the result was model incompatible and the code -2147483648. Is there anything I can do to make it compatible, taking the result code into account?
    You're welcome to try it anyway, the test isn't 100% and does have false positives, but it may not work.
     

    RyanCr7

    Senior Member
  • Aug 3, 2018
    100
    46
    Zürich
    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​


    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.
    Can't hide Ambient Music Mod from Edxposed. App warns me that "one or more settings is preventing me from hiding the app"

    The rest is all green mark and test recognition fails to start.
     
    • Like
    Reactions: emime12

    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