yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] :
Ok so now I'm facing an issue as well. (I did switch from Edxposed to LSposed, not sure if that can cause any issues). Here's what happens.

I play a song for 45s, turn on the screen, nothing. I leave the screen on, play another 45s, nothing. I turn the screen on, login, and then turn the screen off. Pretty quickly (5,10s) the song will update on the lock screen. If I listen manually, it will also listen.

However, sometimes it will say "Failed to start" when doing it manually. Opening the app, waiting a bit, and just randomly it will start listening again. But I feel like its getting stopped a lot because half the time manually it says failed to start it feels like

So it seems kinda hit or miss, like it gets killed sometimes (or maybe it just isn't waking up, I have it on automatic?, but that wouldn't affect the manual listening, which is also affected occasionally - AND I have it on listen when screen on). I have all the battery optimizations off for the apps and also sleep standby disabled. I will get logs tomorrow and reattach them.

edit: Seems better on 1m interval but even still didn't detect a song 2mins in but showed up immediately once I hit the fp sensor and then locked the device again).

I wonder what the frequency of automatic is

EDIT: well after just leaving it on my desk screen off and playing 5 songs straight it got all of them, so seems to be working fine I guess for now? :P ill continue to see how it is, thanks this is a great mod, been waiting on a port since the pixel 2 release day haha
[Android Apps and Games] ock:
This may be obvious for some, but wasn't to me initially😛:

If you are not getting the recognition to start, check that the xposed module is applied on pixel ambient services.
[Android Apps and Games] autobulb:
It's been a while since I've used Xposed. Now I see there is EdXposed and LSPosed which seem newer than the original. Which is the best one to use? (OP5T with A10)
[Android Apps and Games] :
Both work. Don't think it should make a difference in terms of recognition and stuff but I *feel* like EdXposed was better. But ymmv, idk.
[Android Apps and Games] Andrea2001:
New update: I tried several times under 3G and never went, the first time I had a wifi connection it immediately downloaded regularly, there is probably a bug on Android 14 that doesn't allow you to download the databases with the data
[Android Apps and Games] Quinny899:
You have enabled the option to allow downloads on mobile data right? It's off by default.
[Android Apps and Games] Andrea2001:
yes obviously I did it otherwise it wouldn't even proceed during the installation but it still didn't work, the status remained in update, once connected to the wifi instead the entire database was downloaded correctly
[Android Apps and Games] Puki ber:
Hello, I'm facing crash when I'm unlocking my phone. Is there any way to fix it maybe?

Anyway, I have the crash Log from the system

View attachment 6031970

View attachment 6031969
[Android Apps and Games] Quinny899:
You have this: https://github.com/KieronQuinn/AmbientMusicMod/issues/146

In short, no there is no fix. It's not my problem to resolve.
[Android Apps and Games] Aszoi.kj:
Maybe Polish repo?
[Android Apps and Games] Quinny899:
If you're asking for a Polish music database, I don't make them. You need to ask Google.
[Android Apps and Games] dawn of wil:
So, I find out that automatic recognition isn't active when battery saver turned on. I believe there's supposed to be a setting that allows automatic recognition on when battery saver enabled, but I couldn't find it. Is there a way to show that setting?View attachment 6035257
[Android Apps and Games] Quinny899:
It was removed as it no longer works. I think it's disabled on a lower level (and can't be re-enabled) now.
[Android Apps and Games] whos31:
I can't get it to activate. I'm using a device with android 13 and chipset with arm v8.2 cpu, is is there any way to troubleshoot it?View attachment 6036316View attachment 6036317
[Android Apps and Games] Quinny899:
Which device is this? On some firmwares (mostly from Chinese OEMs) you have to allow stupid things like "background processes". Simply uninstalling & reinstalling both Now Playing & Ambient Music Mod may fix it too.
[Android Apps and Games] whos31:
I'm using Infinix hot 30, currently running android 13, I've tried uninstalling & reinstalling both now playing and ambient music mod 2 times and it still doesn't work
[Android Apps and Games] Quinny899:
Probably has something which has to be allowed in the settings somewhere then. I can't help with this, I don't have the device.
[Android Apps and Games] Injector287:
The music detection is sort of a hit or a miss. I tried changing the encoding and reduced to gain to remove all that excess noise but still it would only detect a few songs. My recognition period is set around 1min(default). Any help would be great
[Android Apps and Games] Dimitrov64:
this also happened to me. i also on android 14, selected the country and leave it like for a good 4 hours, the progress bar did move but when i checked my data consumption its not going anywhere, switch to wifi restart the app and it's done for 2-3 minutes. not a big deal tbh, just want to confirm something
[Android Apps and Games] Quinny899:
New version now available

Download from GitHub releases as usual
[Android Apps and Games] Ayle Kalani:
The application is crashing and forcing it to stop out of nowhere, it's normal at first but after a while it becomes an error on its own. and force a stop.
[Android Apps and Games] Quinny899:
Please get a log.
[Android Apps and Games] Ayle Kalani:
How can I get the log?
[Android Apps and Games] Quinny899:
How to take system logcats, kernel logs, and dmesg on Android

Wondering how to take logs on Android? In this guide, we tell you about the various common logs on Android and how to collect them.

www.xda-developers.com

A system log is required.
[Android Apps and Games] Quinny899:
New version available

Download from GitHub releases as usual
[Android Apps and Games] igorbs:
Great app, you can feel the effort to port this app. Unfortunately, the only problem was that On demand is not active due to firmware incompatibility, requiring rooting the device, as stated in the documentation on github. My device is a Samsung M54, exynos 1380, running Oneui 6 (android 14), without root. The app version is 2.3.3
[Android Apps and Games] Quinny899:
That isn't a problem, it's how it works. Your only option is to root.
[Android Apps and Games] igorbs:
Thanks for the answer . 👍🏽
[Android Apps and Games] Quinny899:
An updated version of Now Playing is available, although no update of the Ambient Music Mod app itself is required.

You can get this update in the Updates tab of Ambient Music Mod, or if you are using a device where it's currently unable to load due to Now Playing crashing, you can download the APK manually.
[Android Apps and Games] hareshswain:
Unable to update database. Progress bar is loading for a long time but not updating.

-S23 Ultra
[Android Apps and Games] Quinny899:
Leave it overnight, if that doesn't work try reinstalling
[Android Apps and Games] Quinny899:
New versions available

Download from GitHub releases as usual or update from in the app
[Android Apps and Games] osygen:
I can't update the database.
[Android Apps and Games] Quinny899:
Same as above, leave it overnight, if that doesn't work try reinstalling
[Android Apps and Games] dropinocean:
I don't have WiFi connection will download overnight on mobile data? (I have already disabled WiFi and Battery options)
[Android Apps and Games] Quinny899:
If you allowed downloads on anything, yes
[Android Apps and Games] dropinocean:
Hey Kieron, the music database still not downloaded I tried after reboot too but nothing worked even on WiFi it's not downloaded (didn't try overnight). What can I do now?
[Android Apps and Games] Quinny899:
All you can do is let it sit and download, it will do it eventually
[Android Apps and Games] dropinocean:
Generally, how much time it can take? I have no problem to wait
[Android Apps and Games] Quinny899:
It should be an immediate download but the download engine is entirely black box, so in short I have no idea
[Android Apps and Games] Dedicatednl:
I'm unable to show the song and artist on the lockscreen of my samsung flip 6 while having the accessibility setting enabled. Is there any way to enable this without rooting?
[Android Apps and Games] Quinny899:
There isn't currently but there's an open issue on the GitHub that I will get around to of making a widget version of the lock screen overlay for devices which allow lock screen widgets
[Android Apps and Games] autobulb:
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.
[Android Apps and Games] :
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.
[Android Apps and Games] autobulb:
Thanks for the help. Unfortunately it doesn't seem to be working on OnePlus 5T. The Compatibility check failed one item but I decided to try anyway, and the test recognition doesn't start. Just posting for any other other possible 5T users here.
[Android Apps and Games] Mr. Spandan:
What's up with the sound model? It said sound model not supported on my redmi note 9 pro max -miui 12
[Android Apps and Games] shadowstep:
@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!
[Android Apps and Games] hotelmariofan:
Running on a Oneplus 8 Pro. Everything installed without any issue. I'm able to run a test, but it didn't seem to recognize any songs. I listened to the audio, and it sounded like what you'd imagine audio that has been heavily noise filtered would sound like. i.e. The music is very faint and cuts in and out. I tested again just with my own speech. Listened back, heard it all very clearly. Turned the music on full blast with the phone right next to it. That made the song recording actually audible, but still distorted enough (i.e. noise canceled enough) to not be able to clearly make out the song.

I'm guessing this is some sort of noise canceling enforced by Oneplus? Not sure. Attached the log in case it's of any use.
[Android Apps and Games] Nightf0x_007:
Anybody tried this with mi11 or miui 12 ?

Shows me error-2147483648
[Android Apps and Games] nicesoni_ash:
This is really stupid to ask but I am unable to find the xposed module on either xposed repository or through edxposed app. Can anyone link me to it? Thanks.

Edit:

Ignore it pls. Module was installed and available after the reboot.
[Android Apps and Games] Karolpeszek:
I can't get it to work on my OnePlus 7 Pro running Pixel Experience 11. 'Hey Google's works just fine tho. I can send you all the logs if you want. Cheers,

Karol

Update: it works, but my phone has to be plugged. As soon as you unplug it it stops listening. I disabled all battery optimizations and adaptive battery.
[Android Apps and Games] nicesoni_ash:
Everything setup fine, sound model compatibility had some error but I override it as suggested and enabled everything else.

Magisk module/xposed module enabled. All required apps enabled in edxposed White listed.

But the mod failed to start recognition and presented with "Ambient music failed to start.".

I collected logs just after that and attached here. Would be great if that's of any help to a positive outcome.

I have a k20 pro with android 10 running RR custom rom.
[Android Apps and Games] ock:
Are you using OOS or a custom rom? I tried a recorder app and it seems there is some kind of noise cancelling ongoing, where the music picked up by one mic may be cancelled by another. Not sure if Google suppressed this noise cancellation in ambient services/ Now Playing, or if the Pixel phones only had one mic - sounds unlikely (pun unintended)
[Android Apps and Games] Peketr:
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?
[Android Apps and Games] Tathagata Nandi:
View attachment 5284943

View attachment 5284945

The module is active on xposed, i don't know what's the issue here. I'm running miui 12.5 android 10
[Android Apps and Games] Quinny899:
Try rebooting, and make sure Xposed is actually working on your device (it will show a warning on the main Xposed screen if not)
[Android Apps and Games] Quinny899:
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.
[Android Apps and Games] Quinny899:
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.
[Android Apps and Games] Quinny899:
That's pretty normal, it does that on mine and yet works fine. You may want to whack the amplification up even more (you can set a custom value in the advanced settings if the slider isn't enough)
[Android Apps and Games] Quinny899:
Don't spam it, basically.

It will 'fail to start' if it's already running a recognition (there's no way to cancel it, the cancel button really just dismisses the dialog and clears the memory of the recognition stuff in the app, Ambient Music is still recognising in the background regardless). So you need to wait the 8 - 10 seconds for it to run a recognition before trying again. This also includes automatic recognitions, be it from the device waking up or the periodic ones.

To answer your question on how long 'automatic' is, it depends. The recognition engine gives a 'next check' time that can be anything from 30 seconds to 5 minutes as far as I've seen.
[Android Apps and Games] Quinny899:
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.
[Android Apps and Games] TJS000:
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
[Android Apps and Games] GalaxyWhy:
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
[Android Apps and Games] Quinny899:
Your error is

Nothing that can be done.
[Android Apps and Games] Tathagata Nandi:
View attachment 5285023

Xposed is installed properly
[Android Apps and Games] Quinny899:
Are you using the whitelist mode?
[Android Apps and Games] TJS000:
Okay, that's a shame. Is the first "listening" stage just a UI bug or similar then? (The earlier log dump)
[Android Apps and Games] Tathagata Nandi:
Nope
[Android Apps and Games] Tathagata Nandi:
I have this error btw

Can anything be done about it?
[Android Apps and Games] ioneng:
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.
[Android Apps and Games] Quinny899:
If you have the Sound Model error then I wouldn't even bother trying to fix EdXposed, it's almost definitely not compatible.
[Android Apps and Games] Quinny899:
The files should be in /system/product/priv-app, not /system/priv-app.
[Android Apps and Games] shadowstep:
@Quinny899 Just a question, is the Device Personalisation Services apk absolutely needed to be present/installed? I just realized I don't have that.
[Android Apps and Games] Tathagata Nandi:
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 ?
[Android Apps and Games] RokCruz:
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
[Android Apps and Games] Quinny899:
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.

You can do another log dump if you want, yes
[Android Apps and Games] nicesoni_ash:
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.
[Android Apps and Games] elmkzgirxp:
Initially had this issue, but solved it by installing Zackptg5's Overlay Mount Fix. You can find it in Magisk Manager module downloads.
[Android Apps and Games] Quinny899:
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.
[Android Apps and Games] Quinny899:
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.
[Android Apps and Games] JudgeDread11:
For me too, the pixel ambient services seem to not be installed.

This did it for me too!

Works on OnePlus 7 (guacamoleb = not pro)
[Android Apps and Games] FrodoToto:
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?
[Android Apps and Games] Tathagata Nandi:
Here's the log. Hope it helps anything
[Android Apps and Games] munchy_cool:
No response from Ambient ...

using lsposed ...selected System Framework, Android System, Ambient Services, and Device Personalization Services.

logs attached
[Android Apps and Games] Quinny899:
Nothing that can be done, sorry.
[Android Apps and Games] munchy_cool:
thanks for your response...

am i correct in assuming this is device dependent and NOT rom dependent?
[Android Apps and Games] nicesoni_ash:
I am now in the same situation as

https://xdaforums.com/t/module-magi...ther-compatible-devices.4260761/post-84872237

Easier I had the error for model compatibility but lsposed fixed that but recognition still failing.

I am on a custom rom for Android 10 with minimum gapps package flashed. No microG or other custom signed package.

Packages I enabled the lsposed module for are- system framework/device personalisation Services/ Pixel ambient services but I couldn't find Ambient music mod apk in it.

I took the logs again if they are helpful somehow else I wouldn't know what else to try.

Thanls.
[Android Apps and Games] Quinny899:
Correct, the OEM has to change the vendor stuff as it's not usually tied to the ROM.
[Android Apps and Games] TrippyEngine:
Using EdXposed instead of LSposed the error I get at the same device as munchy_cool is exf: startRecognition failed, error=-61 instead of -2147483648.

I think both me and him are using Poco F1 to try this mod. I guess something else might be the issue.
[Android Apps and Games] ioneng:
Hey I tried to install overlay mount fix but it failed with error ”no overlay mounts detected”. I know that you didn't make that module but do you have any idea of why?
[Android Apps and Games] hotelmariofan:
OOS 11.0.5.5. It seems like the noise cancellation is just so that it is incredibly chopping, cutting out, being too quiet, with occasional unrecognizable peaks. There doesn't seem to be a good middle ground no matter how granularly I adjust the amplification. There is either a majority of dampened/inaudible sounds with minority blown out peaks or vice versa. Not sure if this is just the OS or the app, but I lean more towards OS. Though upon searching, I don't see much coverage for noise cancellation or any ability to disable it.
[Android Apps and Games] huztek:
I keep getting this error, "ambient music failed to start"View attachment 5285727
[Android Apps and Games] Gurcharan5:
I'm using a custom ROM on my Razer Phone 2. It says it's not for the correct device and to build it in the app. How do I build the module for me device?
[Android Apps and Games] Shen Ron:
The app itself can build the installer but it will also tell you whether your phone supports it
[Android Apps and Games] Quinny899:
The installer checks the device matches what it was built for, turn off any model spoofing you have enabled.
[Android Apps and Games] k073l:
Test Recognition fails to start, although installation went flawlessly.

Tried rebooting and double-checking that Magisk and Xposed modules are enabled but no luck.

I've also observed that Pixel Ambient Services keep crashing.

Is it fixable?

Attaching logdump
[Android Apps and Games] Karolpeszek:
I managed to get it running. I just had to disable adaptive battery feature. I'm running custom rom Pixel Experience 11.
[Android Apps and Games] gionny26:
Hi, I'm using a OnePlus 7T and I've encountered two problems. The first one is that it keeps saying my xposed module isn't enabled (I think it is but idk how to check, sorry I'm a beginner haha) and the second one is that I can't disable the optimisation of the pixel ambient services. If I press the blue button and then press the don't optimise option, as soon as I go back it resets it to intelligent control. (Note: I overrode the sound model compatible check)
[Android Apps and Games] Elzaa:
Got Riru+LSPosed installed and activated, Ambient installer app was happy (all compatibility checks showing green ticks). Built Magisk module, installed via Magisk and rebooted phone, phone booted to black screen after boot animation. Can access power menu only.

Any advice on restoring access before I do a factory reset? Have tried reinstalling ROM via TWRP with and without Magisk, same results (or it gets stuck on boot animation). Tried safe-mode via the power menu I can access - same deal (but shows "safe mode" text in bottom left)

OnePlus 6, Oxygen OS 10.3.9, Android 10.
[Android Apps and Games] Quinny899:
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.