yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] RabbitType99:
I tried that but that still did not fix the issue. I dumped the logs regarding the ambient music app and the now playing app maybe that helps.
[Android Apps and Games] Quinny899:
There's nothing useful in those logs unfortunately. If poking the job scheduler doesn't even unblock it, I don't have any more suggestions. The mod is reliant on the system to schedule the downloads, if that is not happening then nothing can be done.
[Android Apps and Games] user2000kk:
is it possible to recognize device audio?
[Android Apps and Games] Quinny899:
Not currently no. I may add that as an option in the future, if I can bypass the Cast requirement since that would be very intrusive. Would need to be on device recognition only too.
[Android Apps and Games] ymyinfinity:
I have everything installed on my S22 and i can click the musical note in the app to figure out what's playing, however with everything enabled, it still doesn't tell me what's playing in the background if the song changes.

I've searched the database and the songs are present, and clicking the note icon detects the song again but it won't do it in the background.

I've set it to 1 minute refresh and refresh on screen wake as well. Is there anything that could be preventing the functionality in the background? Thank you!
[Android Apps and Games] Quinny899:
Samsung

Hey Android vendors, don’t kill my app!

dontkillmyapp.com
[Android Apps and Games] ymyinfinity:
Thank you for such a quick reply! I had already put these settings to unrestricted, the website you linked me didn't have for my android version but I've attached screenshots of my settings. Please let me know if there is anything i could have missed?
[Android Apps and Games] Quinny899:
I don't have a recent Samsung device to test so I can't provide any more info. It does work for others on Samsung devices though so it must be possible.
[Android Apps and Games] flaxx187:
Hey thanks for this wonderfull app.

How can I see the song automatically on the lock screen?

By my side it search and shows the music only if I am click on the button "recognise", but is doesn't do it automatically.

After I recognise and start a new one, the old stay on the lockscreen.

Setting:

Recognition Period - Adaptive Recog.. is on

Period is on 1 Minute.

Trigger when Screen on is on.

I root my device and installed shizuku.

shall I install onDemand?

Edit:

This could be my solution

Enabling On Demand

Port of Now Playing from Pixels to other Android devices - KieronQuinn/AmbientMusicMod

github.com
[Android Apps and Games] Quinny899:
The old one will stay until either it was projected to end (so if you skip or pause the song it will not disappear immediately), or a new recognition finishes with any result - replacing it if successful or clearing it if not.

On Demand is not the same as regular recognitions and should not be used like you are suggesting, unless the track is genuinely not in the database. It sounds like you are getting failed on device recognitions, so either the song is not in the database or you should check your recognition config to make sure it's audible.
[Android Apps and Games] flaxx187:
Thanks for this very fast response!

I have updatet google apps.

The Error is going away, but the automatically the music arent pop up on my lockscreen.

I start with cherri cherri lady or be my lover. but It doesn't show me up.

In my case the period doesn't work.

thank you for your time and nervous, god bless you

ps: is it possible to have everytime the button on the lockscreen to get the music song?

For Demond, I think I should going for this tutorial: https://github.com/KieronQuinn/AmbientMusicMod/wiki/Enabling-On-Demand ( update Google apps )

Because I get the following error, that I should update google apps.

the latest stable-version is: https://www.apkmirror.com/apk/google-inc/google-search/google-search-14-21-14-release/

At the bottom I see the newest version ends with .28 not with .29 ( like on the tutorial )

Or it has to be .29 ?

View attachment 5927695

View attachment 5927691

View attachment 5927689
[Android Apps and Games] Quinny899:
That is build .28 and is an APK, not a bundle. Read the guide, it tells you to use .29 and needs to be a bundle.

As for why music isn't recognising, it's probably because you don't have the database downloaded. Let it sit and download first, before messing with on demand.
[Android Apps and Games] Quinny899:
Ambient Music Mod version 2.3.1 + Now Playing version 1.3.1 now available

Download from GitHub releases as usual
[Android Apps and Games] VIPLightning:
Working okay on WSA build 2304.40000.5.0. Some songs are recognizable. Other songs it's a miss. Might still be a new thing Google is doing but could also be the mic that I own too. View attachment 5934939
[Android Apps and Games] awgneo:
I was wondering if Tidal support could be added to this port? Cheers :)
[Android Apps and Games] Quinny899:
That's up to Google. They provide the data.
[Android Apps and Games] awgneo:
Apologies, I should have been more specific. I was referring to a Tidal button link to the recognized song in this modal, if it is possible. I wasn't sure if this modal was Google controlled.

View attachment 5935637
[Android Apps and Games] Quinny899:
Yes, I know. Google provide that data. I cannot magic Tidal links out of thin air.
[Android Apps and Games] Fatmonk8:
Is it a known issue for it not to show on the lock screen of Samsung devices running OneUI 5.1?
[Android Apps and Games] Quinny899:
No, it should work. Do you have Adaptive Lock Screen Overlay enabled? Disable it if you do.
[Android Apps and Games] Fatmonk8:
That was it! Thank you!
[Android Apps and Games] Shirotaku:
Is it possible to install on S23 Ultra without triggering Knox?
[Android Apps and Games] Quinny899:
Yes, Shizuku does not trigger Knox.
[Android Apps and Games] Quinny899:
That's not related to Ambient Music Mod, the package is android.process.media
[Android Apps and Games] AI_Synex:
Oh my bad,

where can I find my crashlog for Ambient Music Mod?
[Android Apps and Games] Quinny899:
adb logcat -s AndroidRuntime

should show it
[Android Apps and Games] AI_Synex:
I found this

07-15 03:23:47.409 23712 23731 E AndroidRuntime: FATAL EXCEPTION: FinalizerWatchdogDaemon
07-15 03:23:47.409 23712 23731 E AndroidRuntime: Process: com.kieronquinn.app.ambientmusicmod, PID: 23712
07-15 03:23:47.409 23712 23731 E AndroidRuntime: java.util.concurrent.TimeoutException: android.database.BulkCursorToCursorAdaptor.finalize() timed out after 60 seconds
[Android Apps and Games] Quinny899:
Looks like something not working with the comms between Ambient Music Mod and Now Playing. Try uninstalling both and reinstalling Ambient Music Mod.
[Android Apps and Games] AI_Synex:
I've tried that several times but it didn't work
[Android Apps and Games] Quinny899:
Nothing I can do then, a timeout like that is caused by the system
[Android Apps and Games] AI_Synex:
Can the crashing be caused by Sui?
[Android Apps and Games] Quinny899:
No, this is around Content Providers, which are part of the framework.
[Android Apps and Games] AI_Synex:
I think I figured out why it keeps crashing

I had to go to settings, and had to turn off Limit background process for Now Playing
[Android Apps and Games] Quinny899:
That would be it. Xiaomi (and others) mess with the framework, for absolutely no reason.
[Android Apps and Games] Quinny899:
Looks like this: https://github.com/LSPosed/LSPlant/issues/32

Not something under my control.
[Android Apps and Games] cubzfan68:
Thx for the app, everything works except for album artwork, any help would be appreciated.
[Android Apps and Games] Quinny899:
What exactly isn't working, is it not loading any at all?
[Android Apps and Games] cubzfan68:
I have the list of songs that are detected, just don't get album art
[Android Apps and Games] Quinny899:
You'll need to send logs then, it's working on my test devices.
[Android Apps and Games] cubzfan68:
Ok, 1 question please, when I go to history, it asks if I want to open with "Now Playing" or " Android system intelligence" I've never seen that
[Android Apps and Games] Quinny899:
You're presumably using a Pixel. ASI is the Pixel Now Playing, "Now Playing" is Ambient Music Mod. Make sure you pick the right one, because ASI will not show album art.
[Android Apps and Games] cubzfan68:
I'm on the OnePlus 11, the rom I'm on was originally for the Pixel, I'm guessing that's why they are both showing up, Thx for the help, I appreciate it, have a great day
[Android Apps and Games] oZZxx:
when i start recognition and then press playback this is what i hear why it cannot record clear sounds?
[Android Apps and Games] Quinny899:
Enable alternative encoding in the advanced options, as the app tells you to if it's distorted.
[Android Apps and Games] osm0sis:
Not a bug report, just wanted to comment how odd it is how often Google's algorithm mistakes my bathroom fan for deadmau5. 😆
[Android Apps and Games] Quinny899:
Mine on an actual Pixel detected the sound of an Airbus A319's engines at takeoff thrust as this song, so it's certainly not perfect 😂

View attachment 5969979
[Android Apps and Games] cubzfan68:
On stock OnePlus I get album artwork, doesn't work on custom roms, any thoughts?
[Android Apps and Games] Quinny899:
The ROM might be breaking the content provider or blocking some network access. Nothing I can really do about that, it's both standard Android stuff - which should work (and does for everyone else)
[Android Apps and Games] cubzfan68:
Ok thx, might just stay on stock, Love the mod, thx
[Android Apps and Games] KakoFed:
I installed Ambient Music Mod and Now Playing but it isn't working. That's what I got (Android 10)
[Android Apps and Games] Quinny899:
If you've just installed both and reinstalling both doesn't fix it, then it's something in the system blocking it. Given your status bar style, it's probably something like MIUI "Optimisation" or similar. Disable that.
[Android Apps and Games] KakoFed:
I disabled battery optimization for both apps and it doesn't work. I reinstalled both and it still doesn't work, I don't know what might be blocking it in the system
[Android Apps and Games] Quinny899:
It's not battery optimisation, it's stupid blocks that firmware (often the ones from Chinese OEMs) put in place for no apparent reason. One person had success with some option around limiting background processes, which is actually an AOSP option, so maybe it's that you too? https://xdaforums.com/t/app-shizuku...-pixel-now-playing-port.4260761/post-88762091
[Android Apps and Games] KakoFed:
I tried it now, it didn't work. Is there any other things that could block it?
[Android Apps and Games] Quinny899:
I don't run any firmware with the blocks in place, so I don't know, sorry.
[Android Apps and Games] piemanXD:
My app is stuck at downloading song databse and even after multiple reboots it's not working
[Android Apps and Games] Quinny899:
If you've let it sit overnight, follow these steps:

https://xdaforums.com/t/app-shizuku...-pixel-now-playing-port.4260761/post-88592233
[Android Apps and Games] DiCap37:
I'm sorry if this was already answered but why does it say this? I'm not repoducing music or anything like that and i don't think that any app is using the microphone rn.

I have a xiaomi mi 9 lite rooted with MIUI 12.5.3 android 11

View attachment 6007605
[Android Apps and Games] Quinny899:
That message comes directly from the system, so something is playing sound. Sound playing also prevents the mic from working, so even if the message was not there, it would still not work.
[Android Apps and Games] ronnie1978:
Install yesterday on stock S10+ and everything is working just fine. For me it was a tiny bit tedious process to setup all correctly but is definitely worth it. Also no battery drain!

Thank you! 🙂
[Android Apps and Games] therealashish:
Thanks for this great mod.

Can someone point the latest google bundle compatible with 'On Demand'? I downloaded a bunch of (.29) bundles, but none had the 'sound split' functionality.
[Android Apps and Games] Quinny899:
Yeah whoever's been uploading them doesn't have the split at the moment for some reason. Latest is probably this one, but I'm currently on a train and the WiFi won't like a 180MB download.

The general rule is the more splits it has, the more likely it is to have the sound search split. Unfortunately APKmirror doesn't display splits before you download, so it requires manually downloading and checking builds.
[Android Apps and Games] therealashish:
Thanks for your prompt response. I think your attachment may take time to upload due to you being on train.

If you can share the app version, that will help.
[Android Apps and Games] Quinny899:
Nah I'm just dumb and forgot to send the link. Got 5G briefly while I'm stopped at a station so I can send an image at least.

Google App 14.38.21.29 beta (arm64-v8a) (320-640dpi) (Android 10+) APK Download by Google LLC - APKMirror

Google App 14.38.21.29 beta (arm64-v8a) (320-640dpi) (Android 10+) APK Download by Google LLC - APKMirror Free and safe Android APK downloads

www.apkmirror.com

If it's not got the split, check this section and work your way down, check all the ones with higher bundle counts (the green tags like 8S = 8 splits). You can open the downloaded bundles as zips with any old file manager to check, rather than having to load them into the APKmirror app, the required split is called like sound_fingerprinter or something
[Android Apps and Games] therealashish:
Google App 14.37.22.29 (arm64-v8a) (320-640dpi) (Android 10+) Bundle has the sound split.

APKmirror link

Thanks. So, we also need to keep the app updates disabled for Google app I assume?
[Android Apps and Games] Quinny899:
Yes, unfortunately. Manual updating only or it will revert.

I did see a telegram post yesterday about how you can get the Samsung build of Messages by adding a system feature, so I need to look into whether this is controlled by a similar one (perhaps one of the PIXEL_YEAR ones), in which case it could be included in the overlay to enable automatic updates
[Android Apps and Games] osm0sis:
Something in NikGapps makes it prefer .29 with the sound split, could check there.
[Android Apps and Games] Quinny899:
Perfect, cheers

I also asked Artem about making it display which files are in a split before downloading and it turns out you already can - the button "what's in this split" (of course!) lists them and their signature hashes, so check for the sound split in that
[Android Apps and Games] DiCap37:
I assure u that my phone speaker is not speaking anything, and sometime if i reboot the phone for a bit it works
[Android Apps and Games] Quinny899:
Like I said, that message comes from the system. It will not work even if the message was disabled, there is nothing I can do.
[Android Apps and Games] DiCap37:
a no, i understand there is no issue with the app but j was wondering if you know how i could fix it
[Android Apps and Games] Quinny899:
The only way is to find whatever app is doing it and stop it, but this app cannot help you with that as it does not have sufficient permissions to do so (nor does ADB)
[Android Apps and Games] DiCap37:
mm ok thx
[Android Apps and Games] megabyte24:
Okay, so I thought the issue was sound quality (every recording I make, with tests of a TV playing YouTube videos, like 10 feet away, sound very far away/muffled, compared to what I hear right next to the phone. Example attached; require removing .zip from the filename) but then one song finally matched, and the playback quality was similar.

So now my theory is the database isn't updated, and hence can't find some of the more modern songs I listen to. I have already read that the 16k songs are the initial database, that needs to be updated to the one that contains 69k-odd. But how? App says it is up to date. I have turned of the me-set auto update, but that doesn't expose a manual update button. Force closed the app (swipe off app list) and still no manual update. I have the task scheduled poker available, but clicking that several times doesn't show any activity in the attached screen. Hoping to not have to remove the app and reinstall, if there is other things I can try?
[Android Apps and Games] Quinny899:
You are correct, the database hasn't downloaded. This is rare, but it happens sometimes - try uninstalling both Ambient Music Mod and Now Playing and starting fresh
[Android Apps and Games] megabyte24:
Thanks for the ultra fast reply! Using the export button from within Ambient Music Mod, can I get back the list of songs it has recognized on odd occasions over the past several months? If needing to strip other settings, what format is this file in?

And will I need to go through authorizing Skizuku with ADP again?
[Android Apps and Games] Quinny899:
You can just run a backup and restore it afterwards yeah! And yes, it will require authorizing with Shizuku but that's only a single permission prompt.
[Android Apps and Games] megabyte24:
Seems something is going on here. Uninstalled both, reinstalled both, clicked update which was ?cancelled? between when I initiated it and came back to the app, still running in background to check. Another go of this, and now it shows up to date again with on 16k songs. For the life of me I cannot find the export logs, or similar, option in the Ambient Music Mod, or the Now Playing app, or in the app settings of the OS, or in the FAQ on GitHub, or in AMM app, so I can supply what I assume is the next step in troubleshooting.
[Android Apps and Games] Quinny899:
There isn't an option to export logs, the verbose logging option just increases how much is sent to the logcat. I'm not sure what's happening on your device, but it looks like the download is failing catastrophically and Now Playing is reporting it's 'done' when in fact it is not.
[Android Apps and Games] megabyte24:
Okay, so just export logcat, or other logs via ADB also, if you can help establish what is going on that is?
[Android Apps and Games] Quinny899:
Possibly, but I can't guarantee anything.
[Android Apps and Games] megabyte24:
I can't see anything from *Ambient* around the time of my last attempt in this log (even if the timestamps are UTC and not local, or something). Can you?

If not, confirming there is no way to manually download the database and have AAM pick it up?
[Android Apps and Games] Quinny899:
Nope, nothing in there unfortunately. There's no way to manually download or the mod would've been doing it all along. There's a lot of places the data has to be perfect for the original Android System Intelligence setup to work, so it was easier to let it download and make its own setup rather than trying to replicate it.
[Android Apps and Games] phpbb3:
Would kernelsu support be considered as part of your roadmap for Ambient Music Mod as an alternative to Magisk or Shizuku?

Thank you for sharing your work with the community!
[Android Apps and Games] osm0sis:
I think the SUI (Shizuku API for root) module already supports KernelSU as long as Zygisk for KernelSU is installed.
[Android Apps and Games] phpbb3:
Right you are. I could never get it to recognize zygisk so I assumed they weren't compatible. Likely a problem on my end.

UPDATE: I did get this working with KSU+zygisk+sui after. Not sure why I couldn't get everything working before but this time I just made certain to have the modules installed and active + root to the ambient app before the first time I opened it. Even have on demand working with 14.38.23.29. Thank you for the extra push to try again and thank you @Quinny899 for publishing this for us non-pixel folks to enjoy 😁
[Android Apps and Games] Thisis_shon:
Hello, I'm having this one song stuck on my lockscreen even though other songs are being Recognized and listed. I tried uninstalling the app, it still dosent go away. What can I do to fix this? Tried restart, data reset for the app, and uninstalling. Currently it's Uninstaller but still doesn't work. Kindly help.
[Android Apps and Games] Andrea2001:
Hi, I have two S23 Ultra and with one updated to the stable One UI 6.0 Android 14, the database remains stuck in the download state during installation while with One UI 5.1 Android 13 it works perfectly, the database is regularly downloaded.

can you solve it? A thousand thanks
[Android Apps and Games] Quinny899:
Leave it overnight and it will probably download.
[Android Apps and Games] Andrea2001:
Okay i'll try and then i tell you, but with s23 with one ui 5.1 the download is immediate!

So i think that android 14 have broken somethings
[Android Apps and Games] Quinny899:
You don't want to hide Ambient Music Mod from EdXposed, that would break it. If you have the blacklist (Xposed Hide) enabled, you don't need to do any messing with the hide stuff.

Post a log dump if it fails to start.
[Android Apps and Games] Quinny899:
@emime12

Your error is

Which means it won't work and likely never will, sorry.
[Android Apps and Games] TrippyEngine:
Not starting recognition on my Poco F1 on miui 12 android 10, with a snapdragon 845
[Android Apps and Games] Quinny899:
Is your error code. No known solution for this one either.
[Android Apps and Games] chickenmatt5:
On a OnePlus 7 Pro, I got all the way up to Test Recognition and I get "Ambient Music failed to start". I made sure mic permissions were allowed and I haven't touched any EdXposed hiding options before. Logs attached, would appreciate any suggestions!
[Android Apps and Games] :
I also have a 7 Pro, same error here. Are you able to disable battery optimization for Pixel Ambient Services? It is stuck on Intelligent Control for me, and the icon is just the generic teal APK icon with the Android logo.

EDIT: I grepped for com.google.intelligence.sense and it seems like its not installed for me.

EDIT2: Got it working, might not be too helpful to you as I also installed TotallyAnxious mod and I now have the app installed, even though I don't remember seeing Ambient Services inside the zip. But either way its working now (maybe it was the reboot, idk)
[Android Apps and Games] GalaxyWhy:
Poco X3 NFC (Snapdragon 732G) not working, attached log
[Android Apps and Games] chickenmatt5:
I'm unable to even see optimisation options for that app.View attachment 5284577
[Android Apps and Games] :
I remember you could only change optimization of system apps on the A10 open betas, not stable, but are you on stable A11? Maybe they didn't bring it over from the betas yet...

Either way should be possible with adb shell, idk the command tho
[Android Apps and Games] chickenmatt5:
I'm on A10 build 10.3.8 no beta if that clarifies or helps.
[Android Apps and Games] :
Ah, yeah that's the reason. OOS doesn't allow you to change battery optimization on system apps. You'll need to either find a way to do it with ADB, flash A10 Open Beta, A11 Open Beta, or *maybe* A11 stable.
[Android Apps and Games] chickenmatt5:
I was able to use ADB and I no longer see the notification to disable battery optimization, but I still get "Ambient Music failed to start". Would more logs be potentially useful, or is there just too much incompatibility with A10?
[Android Apps and Games] :
Idk I'm not the dev, but I'd take logs and attach them here anyways because now u have a different issue (before it was battery optimization now probably something else) and hopefully Quinn can look at them and solve them.
[Android Apps and Games] chickenmatt5:
Is TotallyAnxious a ROM? I was able to use adb shell dumpsys deviceidle whitelist +com.google.intelligence.sense to get battery optimisation disabled for it, so I assume it's installed for me. Still not working for me however, many reboots later.
[Android Apps and Games] chickenmatt5:
Ah, my mistake. Thanks for the suggestions!

Here's hoping