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

Search This thread

luckyn111

New member
Mar 5, 2020
4
0
Hi there, thanks for the amazing app but now when I press recognize the animation just keeps on going without finishing so I can't tell if the app is working or if something I've done is wrong. Can you help me?
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,990
8,386
24
Salford, Greater Manchester, UK
quinny898.co.uk

yee-yee

New member
Jun 30, 2022
2
1
Hi there,
Version 2.0.5 fixed recognition for me, thanks! However, when I try to view the Now Playing history, the app crashes. I'm using a Oneplus Nord (AC2003) on OxygenOS12 with Shizuku. From what I can see, this is the part where it crashes, but I've also attached the full log. Let me know if you need any more information or logs.
Code:
FATAL EXCEPTION: main
Process: com.kieronquinn.app.pixelambientmusic, PID: 13375
java.lang.UnsatisfiedLinkError: dlopen failed: library "libSchedAssistJni.so" not found
    at java.lang.Runtime.loadLibrary0(Runtime.java:1088)
    at java.lang.Runtime.loadLibrary0(Runtime.java:998)
    at java.lang.System.loadLibrary(System.java:1656)
    at java.lang.reflect.Method.invoke(Native Method)
    at de.robv.android.xposed.XposedBridge.invokeMethod(XposedBridge.java:243)
    at de.robv.android.xposed.XposedBridge.-$$Nest$sminvokeMethod(Unknown Source:0)
    at de.robv.android.xposed.XposedBridge$HookInfo.callback(XposedBridge.java:369)
    at LSPHooker_.loadLibrary(Unknown Source:8)
    at com.oplus.uifirst.OplusUIFirstManager.<init>(OplusUIFirstManager.java:90)
    at com.oplus.uifirst.OplusUIFirstManager.getInstance(OplusUIFirstManager.java:112)
    at oplus.android.OplusFrameworkFactoryImpl.getOplusUIFirstManager(OplusFrameworkFactoryImpl.java:629)
    at oplus.android.OplusFrameworkFactoryImpl.getFeature(OplusFrameworkFactoryImpl.java:321)
    at android.common.OplusFeatureCache.getOrCreate(OplusFeatureCache.java:53)
    at android.view.ChoreographerExtImpl.doFrameStartHook(ChoreographerExtImpl.java:234)
    at android.view.Choreographer.doFrame(Choreographer.java:897)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1213)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:233)
    at android.os.Looper.loop(Looper.java:344)
    at android.app.ActivityThread.main(ActivityThread.java:8210)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
 

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,990
8,386
24
Salford, Greater Manchester, UK
quinny898.co.uk
Hi there,
Version 2.0.5 fixed recognition for me, thanks! However, when I try to view the Now Playing history, the app crashes. I'm using a Oneplus Nord (AC2003) on OxygenOS12 with Shizuku. From what I can see, this is the part where it crashes, but I've also attached the full log. Let me know if you need any more information or logs.
Code:
FATAL EXCEPTION: main
Process: com.kieronquinn.app.pixelambientmusic, PID: 13375
java.lang.UnsatisfiedLinkError: dlopen failed: library "libSchedAssistJni.so" not found
    at java.lang.Runtime.loadLibrary0(Runtime.java:1088)
    at java.lang.Runtime.loadLibrary0(Runtime.java:998)
    at java.lang.System.loadLibrary(System.java:1656)
    at java.lang.reflect.Method.invoke(Native Method)
    at de.robv.android.xposed.XposedBridge.invokeMethod(XposedBridge.java:243)
    at de.robv.android.xposed.XposedBridge.-$$Nest$sminvokeMethod(Unknown Source:0)
    at de.robv.android.xposed.XposedBridge$HookInfo.callback(XposedBridge.java:369)
    at LSPHooker_.loadLibrary(Unknown Source:8)
    at com.oplus.uifirst.OplusUIFirstManager.<init>(OplusUIFirstManager.java:90)
    at com.oplus.uifirst.OplusUIFirstManager.getInstance(OplusUIFirstManager.java:112)
    at oplus.android.OplusFrameworkFactoryImpl.getOplusUIFirstManager(OplusFrameworkFactoryImpl.java:629)
    at oplus.android.OplusFrameworkFactoryImpl.getFeature(OplusFrameworkFactoryImpl.java:321)
    at android.common.OplusFeatureCache.getOrCreate(OplusFeatureCache.java:53)
    at android.view.ChoreographerExtImpl.doFrameStartHook(ChoreographerExtImpl.java:234)
    at android.view.Choreographer.doFrame(Choreographer.java:897)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1213)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:233)
    at android.os.Looper.loop(Looper.java:344)
    at android.app.ActivityThread.main(ActivityThread.java:8210)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
That looks like OnePlus are injecting something into the app, I can't do anything about that.
 

chrisrj28

Senior Member
Apr 26, 2008
3,304
692
Sacramento, CA
Was stuck downloading for days but uninstalled and installed the latest version. Got it working now.

Samsung has some aggressive background management that I had to disable for ambient app and now playing and it all works now.
 
Oct 28, 2009
11
0
Afternoon all.
I'm excited to test the app but I have some issue with the database.
I live in Switzerland and as first I defined the Swiss database, which I suddenly discovered was little poor not containing quite a lot of songs I was searching.

I switched to Italian db (I am Italian and I listen also Italian authors) but it's been hours that is trying to download it with pretty much no results.

Unfortunately there are also no details on the running topic and no chances to do anything else but wait.

For the records I already re-started the phone with no results.

I'll be very grateful if you can help me
 

Attachments

  • Screenshot_2022-07-01-15-51-50-47_432e703e4eb809fda47320666283546a.jpg
    Screenshot_2022-07-01-15-51-50-47_432e703e4eb809fda47320666283546a.jpg
    377.2 KB · Views: 27

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
8,990
8,386
24
Salford, Greater Manchester, UK
quinny898.co.uk
Afternoon all.
I'm excited to test the app but I have some issue with the database.
I live in Switzerland and as first I defined the Swiss database, which I suddenly discovered was little poor not containing quite a lot of songs I was searching.

I switched to Italian db (I am Italian and I listen also Italian authors) but it's been hours that is trying to download it with pretty much no results.

Unfortunately there are also no details on the running topic and no chances to do anything else but wait.

For the records I already re-started the phone with no results.

I'll be very grateful if you can help me
Plug the phone in and/or wait, there's no further advice for this.
 

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.
    1
    Sorry for troubling but when i am doing the option turn off on lockscreen is directing me to the accessibility settings to turn off the mod. Am i doing it right?View attachment 5687193
    The accessibility service is not the mod. Yes, disable it. The owner info option is an alternative to the Show on Lock Screen option, as it says.
  • 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.