KieronQuinn / AmbientMusicMod

Port of Now Playing from Pixels to other Android devices
GNU General Public License v3.0
1.82k stars 40 forks source link

Now playing not working on grapheneos #235

Closed Alundert closed 4 months ago

Alundert commented 4 months ago

When installed with shizuku and the ambient music mod working it puts out this error when trying to start:

type: crash
osVersion: google/raven/raven:14/AP1A.240305.019.A1/2024030900:user/release-keys
package: com.kieronquinn.app.pixelambientmusic:133
process: com.kieronquinn.app.pixelambientmusic
processUptime: 576 + 91 ms
installer: com.android.packageinstaller

java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/~~a69dAWNU0Y_DJ8REdaYJJA==/com.kieronquinn.app.pixelambientmusic-EIhoHTcc3Xo4nMGeIuxrMQ==/lib/arm64/libaliuhook.so"
    at java.lang.Runtime.loadLibrary0(Runtime.java:1082)
    at java.lang.Runtime.loadLibrary0(Runtime.java:1003)
    at java.lang.System.loadLibrary(System.java:1765)
    at de.robv.android.xposed.XposedBridge.<clinit>(XposedBridge.java:29)
    at com.kieronquinn.app.pixelambientmusic.xposed.Xposed.deoptimizeMethod(Xposed.kt:101)
    at com.kieronquinn.app.pixelambientmusic.xposed.XposedHooks.hookMethod(XposedHooks.kt:150)
    at com.kieronquinn.app.pixelambientmusic.xposed.XposedHooks.setupHooks(XposedHooks.kt:145)
    at com.kieronquinn.app.pixelambientmusic.xposed.XposedHooks.init(XposedHooks.kt:109)
    at com.kieronquinn.app.pixelambientmusic.xposed.XposedHooks$Companion.setupHooks(XposedHooks.kt:96)
    at com.kieronquinn.app.pixelambientmusic.Injector.attachBaseContext(Injector.kt:32)
    at android.app.Application.attach(Application.java:352)
    at android.app.Instrumentation.newApplication(Instrumentation.java:1350)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1467)
    at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1399)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7299)
    at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2344)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8532)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:894)

Is there a way I can fix that?

KieronQuinn commented 4 months ago

This I believe should be inadvertently be fixed in 1.3.4 of Now Playing since it updates hook to include this fix: https://github.com/Aliucord/hook/pull/9, which supports stripped libart. This was the actual issue, and they also are now maintaining a LSPlant fork which should keep it going in the future :)

If you're unable to update Now Playing due to not being able to access the Updates tab, you can either uninstall both Ambient Music Mod & Now Playing and start a fresh (which will install the new version during setup), or download the APK manually from https://github.com/KieronQuinn/NowPlaying/releases and install it