A hybrid Xposed & Magisk module that ports Pixel Ambient Music to other, compatible devices

Related tags

AmbientMusicMod
Overview

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 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

Screenshots

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

Ambient Music Mod on lock screen

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

Ambient Music Mod

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

Issues
  • Lockscreen overlay not working

    Lockscreen overlay not working

    This on an OnePlus 8 on Oxygen OS 11 App version 1.1.1

    It shows the notification from the correct guess, but doesn't show the overlay on the lockscreen.

    Here's the log dump: ambient_music_mod_log_dump_2021-04-20T13_58_01.967.zip

    If any other info is needed let me know.

    opened by duramato 9
  • Test recognition failed

    Test recognition failed

    Screenshot_20210420-141540

    Tried all the stuff mentioned in the trouble shooting guide.

    Handset redmi note 6 pro-tulip

    Rom Posp April, gapps nik gapps full latest

    Magisk latest, edxposed and riru installed

    Whitelisted the apps as said in troubleshooting guide and also disabled battery optimization for those apps

    invalid 
    opened by sanjeevstunner 7
  • Ruined my OnePlus 7 pro

    Ruined my OnePlus 7 pro

    When installed and rebooted my op I got bootloop and now after few bootlops my lock screen not working so I can't access my phone. Please help quick

    opened by MOOOOs 7
  • Audio on bluetooth and alarm breaks with Magisk module enabled

    Audio on bluetooth and alarm breaks with Magisk module enabled

    Device - Xiaomi Mi 10 Lite 5G Android version - 11 Rom - CrDroid

    I've followed the install instructions, everything is functional but bluetooth and alarm audio refuses to play. On bluetooth on top if you change the output device it always takes the phone, regardless of it being a bluetooth device or not. I've built the module according to instructions but can't replicate earlier errors (codes varied a lot) I had on Sound Model compatible. I do however get currently result code -8880 while it stating being compatible.

    opened by TheBluekr 7
  • Music is filtered out by NC

    Music is filtered out by NC

    When listening to musing, 99% of the music appears to be filtered out when testing with the "test recognition" feature. I've tried tweaking with amplification but it makes no difference. Screenshot_20210520-175343 Music input sample log dump

    wontfix 
    opened by incapable 5
  • BUG: Can't seem to recognize music

    BUG: Can't seem to recognize music

    opened by KarthikJay 5
  • Ambient Music Failed To Start

    Ambient Music Failed To Start

    My device : Redmi Note 9 Pro Max (Excalibur) Android -10 I have Magisk Installed And EdExposed module is also running.I tried other troubleshooting options but that doesn't seem to work.

    When I tested recognition it gave Ambient Music Failed To Start Error. Initially I tried to bypass the 'Sound Model Compatibility' but after a reboot It says that it is compatable.

    BTW here is the Log Dump :

    ambient_music_mod_log_dump_2021-04-20T17:10:12.463.zip

    opened by scientiac 3
  • Was working fine, then suddenly

    Was working fine, then suddenly "Ambient music failed to start"

    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.

    opened by milindpatel63 2
  • Adaptive notifications not working after enabling mod

    Adaptive notifications not working after enabling mod

    It seems that after enabling this module adaptive notifications stops working? It's even gone from the settings within android: Screenshoot

    Not sure of what other info I can provide regarding this and if there's any one else experiencing this.

    OnePlus 8 on Android 11 Mod: 1.1.1

    opened by duramato 2
  • [Future Request] Send to Last FM Audio Scrobble

    [Future Request] Send to Last FM Audio Scrobble

    Any chance we can have an option to send to AS?

    opened by MacsInSpace 1
  • Cant install magisk module

    Cant install magisk module

    After tapping on "choose location" the app crashes Screenshot_20210531-144904 Screenshot_20210531-144856 Also no requested permission for files and media

    opened by ForT4eHorde 1
  • Xposed Module not enabled You must enable the Xposed module for Ambient Music to work

    Xposed Module not enabled You must enable the Xposed module for Ambient Music to work

    My device is Redmi 4X, LianageOS 18.1. I have installed Edxposed, but it still shows "Xposed Module not enabled You must enable the Xposed module for Ambient Music to work"

    opened by hehedemuse 11
  • [bug] ambient music fails to start

    [bug] ambient music fails to start

    Handset:- redmi note 9 pro miatoll I use a los fork called sakura project with Nik gapps Screenshot_20210428-111653_Ambient_Music_Mod.png Logs http://0x0.st/-mRN.zip

    opened by mackdroid 4
  • 'Hey Google' issue

    'Hey Google' issue

    When the feature is on 'Hey Google' doesn't work. OnePlus 7 pro, android 11, Pixel epxeircen custom rom

    opened by karolpeszek 0
  • [Bug] Ambient music failed to start.

    [Bug] Ambient music failed to start.

    Device - Asus Zenfone Max Pro M1 (X00td) Android version - 10 Rom - Pixel Experience

    When i try to test recognition, the process fails with "Ambient music failed to start" ambient_music_mod_log_dump_2021-04-20T19_22_39.353.zip

    i found the lsposed logs to be interesting so attaching them as well

    LSPosed Log
    --------- beginning of information
    Manufacturer: asus
    Brand: asus
    Device: ASUS_X00T_2
    Product: X00TD
    Model: ZenFone Max Pro M1
    Fingerprint: google/coral/coral:11/RP1A.201105.002/6869500:user/release-keys
    ROM description: coral-user 11 RP1A.201105.002 6869500 release-keys
    Architecture: arm64-v8a
    Android build: QQ3A.200805.001
    Android version: 10
    Android sdk: 29
    LSPosed version: v1.3.5 (5551)
    Riru version: v25.4.2.r415.f42e9c3 (415)
    Riru api: 25
    Magisk: 1469b82a (21101)
    2021-04-20 17:03:44.044 E/?(1471-1471): de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.android.server.soundtrigger_middleware.SoundTriggerHw2Compat
    	at de.robv.android.xposed.XposedHelpers.findClass(Unknown Source:13)
    	at de.robv.android.xposed.XposedHelpers.findAndHookMethod(Unknown Source:0)
    	at com.kieronquinn.app.ambientmusicmod.xposed.apps.Android.setupSoundTriggerHooks(Android.kt:57)
    	at com.kieronquinn.app.ambientmusicmod.xposed.apps.Android.onAppHooked(Android.kt:41)
    	at com.kieronquinn.app.ambientmusicmod.xposed.Xposed.handleLoadPackage(Xposed.kt:25)
    	at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(Unknown Source:2)
    	at de.robv.android.xposed.callbacks.XC_LoadPackage.call(Unknown Source:6)
    	at de.robv.android.xposed.callbacks.XCallback.callAll(Unknown Source:28)
    	at X0.beforeHookedMethod(:1)
    	at de.robv.android.xposed.LspHooker.handleHookedMethod(Unknown Source:75)
    	at LspHooker_.startBootstrapServices(Unknown Source:8)
    	at com.android.server.SystemServer.run(SystemServer.java:516)
    	at com.android.server.SystemServer.main(SystemServer.java:359)
    	at java.lang.reflect.Method.invoke(Native Method)
    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:918)
    Caused by: java.lang.ClassNotFoundException: com.android.server.soundtrigger_middleware.SoundTriggerHw2Compat
    	at java.lang.Class.classForName(Native Method)
    	at java.lang.Class.forName(Class.java:454)
    	at z0.b(Unknown Source:49)
    	at de.robv.android.xposed.XposedHelpers.findClass(Unknown Source:5)
    	... 15 more
    Caused by: java.lang.ClassNotFoundException: com.android.server.soundtrigger_middleware.SoundTriggerHw2Compat
    	... 19 more
    
    

    Lsposed configuration

    opened by kriticalflare 27
  • Incorrect window insets

    Incorrect window insets

    Device - Asus Zenfone Max Pro M1 (X00td) Android version - 10 Rom - Pixel Experience

    Window insets aren't being applied properly, resulting in parts of UI falling under the navbar in 3 button navigation mode

    image image

    bug 
    opened by kriticalflare 0
  • [Future request] Specific time enable or disable

    [Future request] Specific time enable or disable

    I don't want it keeps on whole night even when I'm sleeping. Is it possible to set a time to enable(like 8am to 5pm) or disable(like 10pm to 7am) it?

    enhancement 
    opened by WewillChen 0
Releases(1.1.1)
  • 1.1.1(Apr 19, 2021)

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

    1.1: 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.

    • 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.
    Source code(tar.gz)
    Source code(zip)
    AmbientMusicMod-1.1.1.apk(65.72 MB)
  • 1.1(Apr 17, 2021)

    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.

    • 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.
    Source code(tar.gz)
    Source code(zip)
    AmbientMusicMod-1.1.apk(65.72 MB)
Owner
Kieron Quinn
Kieron Quinn
Lightweight and Material designed Music Player

Music Player Lightweight and Material designed Music Player Based on Phonograph Features: Settings: Active tabs management Themes: Light, Dark, Black

Max 253 Jul 29, 2021
🎶🎼 Very slim music player 👨‍🎤 100% made in Italy 🍕🌳🌞🍝🌄

Source code for the Android music player Music Player GO

Enrico D'Ortenzio 754 Jul 28, 2021
Music Player: From UI Proposal to Code

Some developers have difficult to code when the UI proposal is a bit “sophisticated” or “complex”. Many of them strip a lot of significant portion of the UI or even the Motion when they are coding, and the result ends up quite different of the original proposal.

André Mion 3.4k Jul 30, 2021
A clean music player with a customizable widget, stylish interface and no ads.

Simple Music Player A clean music player with a customizable widget. A music player easily controllable from the status bar, home screen widget or by

Simple Mobile Tools 659 Aug 1, 2021
Shuttle is an open source, local music player for Android.

Shuttle Music Player Shuttle is an open source, local music player for Android. Shuttle comes in two flavours: Shuttle (free) Shuttle+ The free versio

Tim Malseed 2.2k Aug 4, 2021
Odeon Music Player is a lightweight music player for Android.

Odeon ?? Odeon Music Player is a lightweight music player for Android. Get it on Google Play. We value your privacy, your battery life and your device

Thibault Seisel 42 Jul 30, 2021
Best material design music player for Android

Metro Material Design music player for Android music lovers Table of contents Downloads Differences between Metro and RetroMusicPlayer Screenshots App

Muntashir Al-Islam 276 Jul 26, 2021
Auxio - A simple, rational music player for android.

Auxio is a local music player with a fast, reliable UI/UX without the many useless features present in other music players. Built off of Exoplayer, Auxio has a much better listening experience compared to other apps that use the native MediaPlayer API. In short, It plays music.

OxygenCobalt 96 Aug 2, 2021
Odyssey music player

Odyssey This whole project is licensed under the GPLv3 or later license (see LICENSE) Screenshots Please check out the Frequently Asked Questions This

Gateship-One 164 Aug 1, 2021
A elegant and light weight music player for android

A elegant and light weight music player for android

Atul Patare 8 Aug 1, 2021
A material designed music player for Android

Vinyl Music Player A material designed local music player for Android. Forked from Phonograph; makes all Pro features free, as they used to be. Additi

Adrien Poupa 398 Jul 23, 2021
Permanently moved to http://github.com/Bilibili/ijkplayer

ijkplayer Platform Build Status Android iOS Video player based on ffplay Download Android: Gradle # required allprojects { repositories {

bbcallen 32 Jul 3, 2021
Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.

ijkplayer Platform Build Status Android iOS Video player based on ffplay Download Android: Gradle # required allprojects { repositories {

bilibili 29.2k Aug 3, 2021
Fire TV Sample App Android - Touch and D-Pad

Fire TV Sample App Android - Touch and D-Pad This sample Android project demonstrates how to build the main UI of a Fire TV application in order to su

Amazon 3 Jul 10, 2021