• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

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

Search This thread
I am using oneplus 7 pro with pixel experience rom.
This mod was working fine, then a new update to pixel ambient services came.
Unfortunately i didn't disable the auto update, but then i reverted "pixel ambient services" back to stock and disabled auto updates now.
But now the mod doesn't work. It just shows "Ambient music failed to start".
I have tried removing the mod from magisk and apk and then reinstalling, but still doesn't work.
Any way i could fix this?
Cause the mod was working perfectly fine.
 

Attachments

  • logcat.zip
    117.8 KB · Views: 1

Shen Ron

Senior Member
Oct 15, 2016
202
46
25
OnePlus 7
OnePlus 7 Pro
I am using oneplus 7 pro with pixel experience rom.
This mod was working fine, then a new update to pixel ambient services came.
Unfortunately i didn't disable the auto update, but then i reverted "pixel ambient services" back to stock and disabled auto updates now.
But now the mod doesn't work. It just shows "Ambient music failed to start".
I have tried removing the mod from magisk and apk and then reinstalling, but still doesn't work.
Any way i could fix this?
Cause the mod was working perfectly fine.
Did you reboot after reverting it back. If not then try follow the instructions again from the beginning and see if that helps. Sometimes you just have to start from scratch to get it working again
 
Nevermind, figured it out.
after reverting pixel ambient services to previous version, it got removed from lsposed. But the ambient music mod app showed that xposed module was working fine, so i thought it was all ok. Going back into lsposed and checking pixel ambient services again for ambient music mod did the trick.
 

Shen Ron

Senior Member
Oct 15, 2016
202
46
25
OnePlus 7
OnePlus 7 Pro
Nevermind, figured it out.
after reverting pixel ambient services to previous version, it got removed from lsposed. But the ambient music mod app showed that xposed module was working fine, so i thought it was all ok. Going back into lsposed and checking pixel ambient services again for ambient music mod did the trick.
Good that you figured it out👍
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,580
7,796
24
Salford, Greater Manchester, UK
quinny898.co.uk
Hello. I have problem on my LG V30 h930. If you can please help. Thank you
Code:
07-31 22:46:03.195  7761  7795 E AmbientMusicServiceMana: startRecognition failed
07-31 22:46:03.195  7761  7795 E AmbientMusicServiceMana: exf: startRecognition failed, error=-2147483648

No fix for this, sorry.
 

jehlo

New member
Oct 31, 2016
4
0
Code:
07-31 22:46:03.195  7761  7795 E AmbientMusicServiceMana: startRecognition failed
07-31 22:46:03.195  7761  7795 E AmbientMusicServiceMana: exf: startRecognition failed, error=-2147483648

No fix for this, sorry.
RIP ok thanks for the fast answer. Anyway, I was thinking about a new phone. I guess I'll buy a Pixel 6 but in my country isn't available
 
Aug 5, 2021
5
0
when i start test recognition it says pixel ambient music mod has failed to start not working for me
and also i saved dump logs bro help me 🥺
Screenshot_20210805-120308_Ambient_Music_Mod.png
 

Attachments

  • Screenshot_20210805-120314_Ambient_Music_Mod.png
    Screenshot_20210805-120314_Ambient_Music_Mod.png
    158.5 KB · Views: 6
  • ambient_music_mod_log_dump_2021-08-05T12_01_16.419.zip
    8.3 KB · Views: 4
Aug 5, 2021
5
0

Attachments

  • ambient_music_mod_log_dump_2021-08-05T17_38_30.736.zip
    8.3 KB · Views: 2

DJsushi123

Senior Member
May 16, 2017
54
26
Zvolen
Hello, I'm running HavocOS on my OnePlus 8T and it doesn't seem to work. It says "sound model incompatible". Since this is a OP device and this mod should work on OP devices, is there something I could do to fix this? I could report this to the developers of HavocOS but I'm not sure what to report to them. Do you need logs of something?
screenshot_20210809-155611_ambient_music_mod-png.5381647
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,580
7,796
24
Salford, Greater Manchester, UK
quinny898.co.uk
Hello, I'm running HavocOS on my OnePlus 8T and it doesn't seem to work. It says "sound model incompatible". Since this is a OP device and this mod should work on OP devices, is there something I could do to fix this? I could report this to the developers of HavocOS but I'm not sure what to report to them. Do you need logs of something?
screenshot_20210809-155611_ambient_music_mod-png.5381647
Yes, please provide a log dump, FAQ has steps.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 15
    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
    1
    It would be nice to have a list of compatible devices. I have a Poco F1 and it doesn't work because of drivers incompatibility issues
    It would have to be crowd sourced because there is no list of which devices have which sound trigger HALs. And crowd sourced incurs maintenance, checking for conflicts, figuring out why it works for someone but not someone else on the same device (instructions not followed correctly, system updates, etc.). It would basically become the same as this thread.