revanced-patches icon indicating copy to clipboard operation
revanced-patches copied to clipboard

bug(YouTube Music - Bypass certificate checks): YT Music does not work with some vehicles Android Auto

Open LisoUseInAIKyrios opened this issue 1 year ago • 24 comments

Type

Error at runtime

Bug description

If patching the newest release that was initially supported (5.48.52), or the latest release (6.08.50) YouTube Music is not available on Android Auto.

I've confirmed unpatch YouTube Music works correctly, but no matter what I've tried the patched Music app will not function on YouTube Auto.

Maybe this only works for root installations? Or maybe YouTube changed something, because this definitely does not work for non-root installations.

Steps to reproduce

  • Patch and install YT Music
  • Verify YT Music is not hidden in device Android Auto settings
  • Connect device to car with Android Auto (there is also an Android Auto developer emulator, but I haven't tried it)
  • Start Android Auto from car controls
  • Patched YT Music does not show up as an available app from the car display

Installing the same APK but unpatched it works correctly and can use YT Music from the car display.

Previous issue Additional information

Update

This patch works for some automobile head units, but not all. It appears this still works with some aftermarkets head units and vehicles with early versions of Android Auto. But with newer vehicle this patch most likely will not work. The patch description could be updated to mention this.

Acknowledgements

  • [X] I have searched the existing issues and this is a new and no duplicate or related to another open issue.
  • [X] I have written a short but informative title.
  • [X] I filled out all of the requested information in this issue properly.

LisoUseInAIKyrios avatar Jul 02 '23 13:07 LisoUseInAIKyrios

This depends on the OS. The patch bypassed checks that prevented the app from working when launched. If the patched app does not show up, it might be because of the changed package name

oSumAtrIX avatar Jul 02 '23 13:07 oSumAtrIX

Inside the same certification check class is some code that references the default YT Music package name. I changed that to the revanced package, but Android Auto still failed.

It might be a package name check somewhere else in the code.

LisoUseInAIKyrios avatar Jul 02 '23 14:07 LisoUseInAIKyrios

This might be an issue with Android auto itself, and the Android auto app is verifying the YT Music.

I tried using an older version of Android auto (8.3 from December 2022), but it either gives an update app prompt or a Google play services error.

This patch original fixed a problem with YT Music not launching correctly, but right now it's not even getting that far because YT Music is not showing as Android auto that can be launched.

Maybe this patch still works with root, or maybe with an older version of Android.

LisoUseInAIKyrios avatar Jul 02 '23 15:07 LisoUseInAIKyrios

@LisoUseInAIKyrios I don't have Android Auto so I don't know how exactly it works, but considering that it is still an Android operating system, it should allow installing and using any Android app. I don't know why the app does not show up for you, but that sounds like an issue and not like an intended system, because you should be able to install and use any kind of Android app on it

oSumAtrIX avatar Jul 02 '23 15:07 oSumAtrIX

Android auto functions as an external touch screen for a car, and YT Music is still installed and runs only on the phone. So the issue here is after patching/resigning YT Music it's no longer detected as Android auto compatible.

I don't use YT Music, so I'm not going to spend anymore time on this. But if enough time goes by and nobody can confirm this patch still works in some form, then the patch should be deleted.

LisoUseInAIKyrios avatar Jul 02 '23 15:07 LisoUseInAIKyrios

Why would Android Auto whitelist apps? The Android ecosystem should allow any app to be installed. That doesn't exclude Android Auto.

oSumAtrIX avatar Jul 02 '23 15:07 oSumAtrIX

It might be an issue with google services that's used by Android auto.

LisoUseInAIKyrios avatar Jul 02 '23 15:07 LisoUseInAIKyrios

GMS or any other Android app is not authorized to hide other apps on Android. Considering the vanced-microt-support patch may be used, I doubt this is really the issue

oSumAtrIX avatar Jul 02 '23 15:07 oSumAtrIX

It could be the android auto support for vanced microg is outdated.

It's not hiding the apps, per say, because android auto only supports apps designed for it. Of the 30 apps on my device, only 4 support Android auto. The other 26 apps will not show up and cannot be used with Android auto.

LisoUseInAIKyrios avatar Jul 02 '23 15:07 LisoUseInAIKyrios

Quick update. Apparently this patch still works, but only for older car head units and also works with some aftermarket stereos.

Could update the patch description to mention the patch works for some, but not all vehicles.

LisoUseInAIKyrios avatar Aug 22 '23 20:08 LisoUseInAIKyrios

Of the 30 apps on my device, only 4 support Android auto. The other 26 apps will not appear and cannot be used with Android auto.

Is the official YouTube Music app supported? Because if it is, then the package name change is the problem.

oSumAtrIX avatar Aug 22 '23 20:08 oSumAtrIX

Yes official unpatched YouTube music app works without any problems.

It might be more than just the package name. It's unclear how the head unit and the phone itself are validating the apk before it allows using the Android auto feature the apk declares support for.

There is an Android auto emulator for development purposes, and it could show if a rooted install would fix it. But I don't care enough to try.

LisoUseInAIKyrios avatar Aug 22 '23 20:08 LisoUseInAIKyrios

If Android Auto whitelists as you described, the package name must be YouTube Music.

oSumAtrIX avatar Aug 23 '23 00:08 oSumAtrIX

#1182 can be closed in favor of this one, right?

So, i've got free youtube music premium for 1 month and now the patched varsion works on android auto, i dont know if this is related to this

radical4ever avatar Apr 21 '24 22:04 radical4ever

Opening the app from the car display just shows a blank screen with a search icon and cog wheel at the top right. Pressing the cog wheel on the car display crashes the app. Search icon does not return any results.

If music is selected on the phone, a "now playing" icon at the bottom right of the car display shows up when in the YT music app. Clicking on this icon, shows all relevant data of music being played along with the album art and a button to show songs next in queue.

Prasana-sys avatar May 01 '24 21:05 Prasana-sys

issue not fixed or have anyone an other solution?

yasars avatar Jul 07 '24 05:07 yasars

@yasars a root installation may fix the issue, buy nobody has confirmed if that works.

Otherwise there is no solution.

LisoUseInAIKyrios avatar Jul 07 '24 08:07 LisoUseInAIKyrios

i found an solution :D:D:D:D non root ...

You need to activate Developer Options in Android Auto app settings...

After that, in Developer Options check Unknown Sources.

Restart Android Auto. go to settings --- launcher -- and set youtube music (patched) and voilla you can it see in your car and it works :D

yasars avatar Jul 07 '24 09:07 yasars

what version of yt music did you use? for me after doing this on the car it says "this feature requires premium", but i can hear whatever is playing on the car's speakers if i play something using my phone's screen.

yoni30 avatar Jul 09 '24 19:07 yoni30

what version of yt music did you use? for me after doing this on the car it says "this feature requires premium", but i can hear whatever is playing on the car's speakers if i play something using my phone's screen.

Look in xda apps thread... I use latest but i have test 7.03, 7.06, 7.08 (use)...

yasars avatar Jul 09 '24 19:07 yasars

It does not work for me. After enabling the "unknown sources" option, YT Music Revanced appears in the launcher. I can launch it but, when I try to interact with it (like jumping to the next song, for example), it tells me that Premium is required.

The old YT Music Vanced still works... but I don't know how they managed to bypass this issue :/

pacho2 avatar Jul 09 '24 20:07 pacho2

Try patching an older version of YT Music.

6.45.54 is the oldest supported version, but most patches should work with much older versions of 6.x (need to turn off version check setting in Manager to try).

LisoUseInAIKyrios avatar Jul 09 '24 20:07 LisoUseInAIKyrios

i found an solution :D:D:D:D non root ...

You need to activate Developer Options in Android Auto app settings...

After that, in Developer Options check Unknown Sources.

Restart Android Auto. go to settings --- launcher -- and set youtube music (patched) and voilla you can it see in your car and it works :D

This worked for me, at least showing the option on my phone to tick the box. Not sure if it will give pop up error saying "Premium required" will send another comment letting y'all know if it does work or not

SleepDaemon avatar Aug 01 '24 12:08 SleepDaemon