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

Search This thread

Elzaa

Member
  • Dec 4, 2013
    25
    2
    Melbourne
    If you can boot without Magisk and it still does it, it's not caused by this mod. Without Magisk it can't replace any files and Xposed won't work, so the module can't do anything at all.
    That's what I thought... was pretty confused. Thanks for the advice, I gave up and factory reset to victory anyway.

    EDIT: Yeah nope, just did the same thing (after a factory reset) and the step that stops it booting properly is installing the magisk module built in the Ambient app. Realised immediately after I hit reboot that I didn't read the instructions properly - I installed the Ambient magisk module but didn't activate the module in LSPosed, rebooted and black screen.

    Though the first time I did it I think I activated the LSPosed module first and that allowed the sound model test to pass after a reboot. After I then installed the magisk module and rebooted I was to booting to a black screen.

    As before, tried uninstalling Magisk via twrp (bluspark) and get the same result when restarting.
     
    Last edited:

    ioneng

    Senior Member
    Mar 29, 2005
    205
    13
    That's the one I was trying to think of, thanks. If you are having the issue of the APK not appearing, this'll fix it.
    @Quinny899. I tried to install overlay mounts fix but it says no overlay mounts found and quit without installing. Can you think of any possible reason for this result? I have your module installed and enabled in Magisk.
     

    FoxyModder

    Member
    Mar 13, 2017
    10
    1
    João Pessoa
    Thanks for the great work, I can confirm it's working on mi 9 running latest mi.eu , although only with EdXposed.


    To make it work I had to Install everything and reboot the device then opened the mod
    launched Ambient Music App

    gave permission record permission via a root shell using the following command:
    Code:
    pm grant com.google.intelligence.sense android.permission.RECORD_AUDIO

    locked the app ( the lock icon after holding an app in the preview )

    Clicked Launch Ambient Music Mod for more settings

    and after a manual test it started working great in the lockscreen even with AOD
     
    • Like
    Reactions: Elzaa

    Quinny899

    Recognized Developer / Recognized Contributor
    Jan 26, 2011
    8,489
    7,725
    23
    Salford, Greater Manchester, UK
    quinny898.co.uk
    Out of topic: how did you get Products sans Font to work on Android 11. Please explain brother
    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.
     

    SynaTech

    Senior Member
    Feb 9, 2016
    250
    59
    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.
     
    • Like
    Reactions: nayhtoo

    deepdeepak

    New member
    Feb 5, 2014
    4
    0
    See
     

    Attachments

    • Screenshot_20210425-213653_Ambient_Music_Mod.png
      Screenshot_20210425-213653_Ambient_Music_Mod.png
      213.3 KB · Views: 27

    SynaTech

    Senior Member
    Feb 9, 2016
    250
    59
    seems to be working perfect on my op7pro. the only minor issue is that pixel ambient services MUST be open and locked in my recents for it to work, because the ambient services closes and does not recognize anything if it's not in my recents. is there anyway to make ambient services stay alive in the background forever while not being in recents?
     

    Quinny899

    Recognized Developer / Recognized Contributor
    Jan 26, 2011
    8,489
    7,725
    23
    Salford, Greater Manchester, UK
    quinny898.co.uk
    seems to be working perfect on my op7pro. the only minor issue is that pixel ambient services MUST be open and locked in my recents for it to work, because the ambient services closes and does not recognize anything if it's not in my recents. is there anyway to make ambient services stay alive in the background forever while not being in recents?
    Nope, locking it in recents is the only way on OnePlus devices. Blame their heavy handed "battery optimisation".
     

    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