[APP][SHIZUKU][30/06] Ambient Music Mod - Pixel Now Playing port

Search This thread
Oct 28, 2009
11
0
I'm not able to set the on-demand option ...
I'm having an Oppo find X5 pro and of course I don't have a system-defined Music Recognition Service to set. Do I have a non - rooting alternative?
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,980
8,383
24
Salford, Greater Manchester, UK
quinny898.co.uk
I'm not able to set the on-demand option ...
I'm having an Oppo find X5 pro and of course I don't have a system-defined Music Recognition Service to set. Do I have a non - rooting alternative?
There's no non-root alternative for On Demand if the device does not have the service set already.
 

ghembuls

Senior Member
May 26, 2015
766
546
Jakarta
abientmusic.jpg

It worked great, able to recognize same song perform by various people. Tested using youtube on laptop.
 

Pyrus01

Member
Jul 8, 2014
31
4
Is there a way for the accessibility service for lockscreen information not to get disabled after every reboot? Also, whenever I reboot, the app keeps on loading, I have to force stop the app two times (for some reason) for it to load up.
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,980
8,383
24
Salford, Greater Manchester, UK
quinny898.co.uk
Is there a way for the accessibility service for lockscreen information not to get disabled after every reboot? Also, whenever I reboot, the app keeps on loading, I have to force stop the app two times (for some reason) for it to load up.
Your second issue is the cause of your first. Force stopping disables accessibility services.

Since the issue is in the system, there's nothing I can do.
 

googleygoggles

Senior Member
Dec 9, 2013
2,093
1,388
Thanks for this, works here on OnePlus 8T on Android 12 with Shizuku. Any chance for it to work on the AOD display? Anyways, here's my experience:
It's not as seamless as I thought it would be... The recognition seems to only work every other song sometimes though even when set to every 30 seconds and adaptive music disabled.
Also, one time the playback was extremely garbled and distorted and it still detected the right song so that was interesting. I enabled alternate encoding and upped the gain 2.0 and will test that and see how it goes.
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,980
8,383
24
Salford, Greater Manchester, UK
quinny898.co.uk
Thanks for this, works here on OnePlus 8T on Android 12 with Shizuku. Any chance for it to work on the AOD display? Anyways, here's my experience:
It's not as seamless as I thought it would be... The recognition seems to only work every other song sometimes though even when set to every 30 seconds and adaptive music disabled.
Also, one time the playback was extremely garbled and distorted and it still detected the right song so that was interesting. I enabled alternate encoding and upped the gain 2.0 and will test that and see how it goes.
Apps can't overlay on the Always on Display so no. Alternate encoding and gain 2x should fix your recognition issue.
 

googleygoggles

Senior Member
Dec 9, 2013
2,093
1,388
Apps can't overlay on the Always on Display so no. Alternate encoding and gain 2x should fix your recognition issue.
Yeah I was afraid of that, it would be amazing if you could xD. Is it possible to put on AOD with root? Also, alternate encoding and 2x gain seems to have helped a lot. I'll keep testing.
Edit: Definitely helped a lot. Songs are detected within 20 seconds of starting now.
 
Last edited:

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
15,023
34,064
Halifax
GT-i9250
Google Nexus 4
Thanks for this, works here on OnePlus 8T on Android 12 with Shizuku. Any chance for it to work on the AOD display? Anyways, here's my experience:
It's not as seamless as I thought it would be... The recognition seems to only work every other song sometimes though even when set to every 30 seconds and adaptive music disabled.
Also, one time the playback was extremely garbled and distorted and it still detected the right song so that was interesting. I enabled alternate encoding and upped the gain 2.0 and will test that and see how it goes.
I haven't been able to get it consistently working on my 8T. Alternate encoding seems to be necessary, but then I've tried 1.1x gain with some success, but it also seems like at times it still just doesn't record any sound at all when I test recognition.
 

googleygoggles

Senior Member
Dec 9, 2013
2,093
1,388
I haven't been able to get it consistently working on my 8T. Alternate encoding seems to be necessary, but then I've tried 1.1x gain with some success, but it also seems like at times it still just doesn't record any sound at all when I test recognition.
Try upping the gain to 2.0+. I read somewhere that alternate encoding needs a much higher gain to be heard.
 

osm0sis

Senior Recognized Developer / Contributor
Mar 14, 2012
15,023
34,064
Halifax
GT-i9250
Google Nexus 4
Try upping the gain to 2.0+. I read somewhere that alternate encoding needs a much higher gain to be heard.
I've tried it at 2 and 3 but over half the time the clip is just silence. Most luck I've had so far is with it at 1.1, but it only works randomly. Sometimes it picks up audio played by my 8T (using Poweramp) itself, which it's also not supposed to be able to do. 🤷‍♂️

I'm on OOS11 still, and while I have the now playing and ambient apps on the "don't optimize" battery list, I'm wondering if it's just typical OnePlus background process fu*kery or maybe OOS11 just isn't compatible enough.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    I've tried it at 2 and 3 but over half the time the clip is just silence. Most luck I've had so far is with it at 1.1, but it only works randomly. Sometimes it picks up audio played by my 8T (using Poweramp) itself, which it's also not supposed to be able to do. 🤷‍♂️

    I'm on OOS11 still, and while I have the now playing and ambient apps on the "don't optimize" battery list, I'm wondering if it's just typical OnePlus background process fu*kery or maybe OOS11 just isn't compatible enough.

    Yes that is weird. I tested this mod on a OnePlus Nord 2T (on Android 12) and the music detection works correctly. I had to enable alternative encoding. And I didn't have to mess with the gain setting
    But, unfortunately there's a problem on OnePlus devices that makes the Now Playing History crash :( so I can only see what the last detected song was.
  • 22
    Ambient Music Mod Banner

    Ambient Music Mod is a Shizuku or root app that ports Now Playing from Pixels to other Android devices.

    Requirements​

    • Android device running Android 9.0 or above (11+ recommended).
    • Shizuku (Android 12+) or root access (Android 9+).
      • Shizuku does not require root, instead needing an ADB command to be run every reboot.

    Features​

    • Full Now Playing support, based on the latest version from Pixel devices and the latest music databases
    • Automatic Ambient Music recognition, with settings to control how often recognition runs - finding the right balance between battery usage and convenience
    • Now Playing History and Favourites support
    • Support to trigger recognitions manually, including a homescreen widget
    • On Demand recognition on supported devices, using the Google Assistant-backed recognition engine for songs that are not in the local database (must be triggered manually)
    • Show Now Playing songs on the lock screen (accessibility service required)
    • View the full track list of recognisable songs, and change the database location if your taste does not match your device's locale

    Screenshots​

    Screenshots

    Changelog​

    2.0.5
    - Fixed an issue where on device recognition would not work on some devices using Shizuku

    2.0.4
    - Added the ability for On Demand recognitions to run without the Magisk overlay module, so long as the device is rooted. You must start Shizuku as root or use Sui to make use of this method, and the overlay is still preferred if it works on your device. Please read the Wiki page for more information.
    - Further improvements to the On Demand overlay, fixing issues on OnePlus devices
    - Fixed the Lock Screen overlay not appearing when Smart Lock is enabled
    - Fixed Alternative Encoding and Lock Screen Overlay colour options not being backed up

    2.0.3
    - Added armv7 support
    - Fixed crashes on Android 10
    - Fixed an issue where some tracks were not showing up in the track list or in the track count (US database is actually 69k tracks, not 53k)
    - Added an option to change the lockscreen overlay text colour
    - The lockscreen overlay text now has a slight shadow, improving visibility
    - Added caching for updates, which should prevent rate-limit issues. You can force an update check (ignoring cache) by swiping to refresh.
    - Enabled landscape orientation
    - Fixed background crashes in Now Playing, which may help download issues.
    - Improved Magisk On Demand module overlay installing, which may fix bootloops on some devices

    Note: Due to issues with the backend database update system, there have been two database updates in the last two days. This is now fixed, and future updates will be timely rather than all at once. Apologies for any inconvenience.

    2.0.2:
    - Added alternative encoding option, fixing distortion/crackling on some devices when enabled
    IMPORTANT: You must also update Now Playing to 1.0.1 for the alternative encoding option to work. Use the Updates page in the app to update Now Playing.
    - Increased max gain to 3.0 to cope with new encoding which requires a higher gain on some devices
    - Reduced the chance of audio recording errors
    - Removed "Timeout" notification as it was more useless than it was useful
    - Fixed unclickable Chips on Recognition Success page (eg. Ask Google)

    Installation​

    Download the latest APK from the GitHub Releases page and install it. Ambient Music Mod will download and install the latest Now Playing APK for you as part of the setup process.

    If you have any questions, please read the FAQ before opening a GitHub issue or replying to the thread.
    5
    Isn't android 12 OOS update been out for some time now? Which device the dev is using?
    7T Pro. It's in closed beta.

    I gave up waiting because it's ridiculous how long it's taken and am working on 12 support using an AOSP ROM.
    5
    Ambient Music Mod v2.0.4 & Now Playing v1.0.3 released:

    • Added the ability for On Demand recognitions to run without the Magisk overlay module, so long as the device is rooted. You must start Shizuku as root or use Sui to make use of this method, and the overlay is still preferred if it works on your device. Please read the Wiki page for more information.
    • Further improvements to the On Demand overlay, fixing issues on OnePlus devices
    • Fixed the Lock Screen overlay not appearing when Smart Lock is enabled
    • Fixed Alternative Encoding and Lock Screen Overlay colour options not being backed up
    Download from GitHub releases as usual
    4
    Ambient Music Mod 2.0 is here, with a complete overhaul including dropping the need for an Xposed module, and even root.

    Read more: https://medium.com/@KieronQuinn/now-playing-ambient-music-mod-v2-93cd4042cc11

    Download the latest release from GitHub releases

    Important: If you are upgrading from Ambient Music Mod 1.x, please uninstall the old version completely including the Xposed module and Pixel Ambient Services and reboot before installing this new version.

    -

    I've also asked this thread to be moved since it's no longer a Magisk module
    Moved, thanks Badger50!
    3
    Is it possible, to have multiple databases installed?
    Like Germany + US ?
    Not currently, although it might be in the future.