ReVanced / revanced-patches

🧩 Patches for ReVanced
https://revanced.app
GNU General Public License v3.0
2.25k stars 262 forks source link

bug: Youtube Music Revanced does not work with Android Auto #1182

Closed hax4dazy closed 6 months ago

hax4dazy commented 1 year ago

Type

Error at runtime

Bug description

Youtube Music Revanced does not work with Android auto. This got "fixed" in ReVanced/revanced-patches-template#2279 but it doesn't seem like its fixed. I'm using the latest pre-release patches as of 5/4/2023 (that's Europe date format).

Steps to reproduce

Step 1: Patch YouTube music using the latest pre-release patches while including MicroG support Step 2: Verify that the app works by starting it on your phone Step 3: Use the Android's SDK DHU app to launch Android Auto on your PC Step 4: Open the YouTube Music Revanced app on android auto

Relevant log output

FATAL EXCEPTION: main
04-05 19:13:10.733 23637 23637 E AndroidRuntime: Process: com.google.android.projection.gearhead:projection, PID: 23637
04-05 19:13:10.733 23637 23637 E AndroidRuntime: java.lang.IllegalArgumentException: No matching component for intent: Intent { cmp=app.revanced.android.apps.youtube.music/com.google.android.apps.youtube.music.mediabrowser.MusicBrowserService (has extras) }
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at isd.a(SourceFile:3)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at ixb.p(SourceFile:1)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at isp.x(SourceFile:9)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at kdf.cp(SourceFile:1)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at fjl.a(SourceFile:13)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at drx.a(SourceFile:29)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at dqg.j(SourceFile:1)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at dqg.e(SourceFile:1)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at fjm.i(SourceFile:39)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at fjm.h(SourceFile:1)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at fkj.c(SourceFile:16)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at nog.onClick(SourceFile:38)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at android.view.View.performClick(View.java:7488)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at android.view.View.performClickInternal(View.java:7464)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at android.view.View.access$3700(View.java:841)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at android.view.View$PerformClick.run(View.java:28911)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:938)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:99)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at android.os.Looper.loopOnce(Looper.java:233)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:344)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:8212)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
04-05 19:13:10.733 23637 23637 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)

Screenshots or videos

image

Solution

No response

Additional context

No response

Acknowledgements

fobi87 commented 1 year ago

It doesn't work for me either in my car. After importing the Developer Jason file, a Youtube Music Bypass point is not displayed when selecting patches. Managers 0.0.57 Youtube Music Version 5.39.52

pacho2 commented 1 year ago

Now it seems it can work if you start to play songs from the phone.. then you can skip them and so from the car controls. The problem appears when you try to click on YT Music through the car screen... only a wheel icon is shown and, as soon as I click it, the error about it not working reappears.

The old Vanced player was there showing some basic controls for going to the next and previous songs (even if other things as playlists weren't working)

fobi87 commented 1 year ago

Now it seems it can work if you start to play songs from the phone.. then you can skip them and so from the car controls. The problem appears when you try to click on YT Music through the car screen... only a wheel icon is shown and, as soon as I click it, the error about it not working reappears.

The old Vanced player was there showing some basic controls for going to the next and previous songs (even if other things as playlists weren't working)

.... yeah .... thats right. I hope the Team can make the music app 100% android auto compatible.

radical4ever commented 6 months ago

Is there been any improvements on this issue, on the part of using the app on car screen directly without having to use the phone?

LisoUseInAIKyrios commented 6 months ago

Moving to https://github.com/ReVanced/revanced-patches/issues/652