Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
LisoUseInAIKyrios opened this issue Jul 2, 2023 · 24 comments
Labels
Bug report Something isn't working

Comments

@LisoUseInAIKyrios
Copy link
Contributor

LisoUseInAIKyrios commented Jul 2, 2023

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

  • I have searched the existing issues and this is a new and no duplicate or related to another open issue.
  • I have written a short but informative title.
  • I filled out all of the requested information in this issue properly.
@LisoUseInAIKyrios LisoUseInAIKyrios added the Bug report Something isn't working label Jul 2, 2023
@oSumAtrIX
Copy link
Member

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

@LisoUseInAIKyrios
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

@oSumAtrIX
Copy link
Member

@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

@LisoUseInAIKyrios
Copy link
Contributor Author

LisoUseInAIKyrios commented Jul 2, 2023

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.

@oSumAtrIX
Copy link
Member

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

@LisoUseInAIKyrios
Copy link
Contributor Author

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

@oSumAtrIX
Copy link
Member

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

@LisoUseInAIKyrios
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

@oSumAtrIX
Copy link
Member

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.

@LisoUseInAIKyrios
Copy link
Contributor Author

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.

@oSumAtrIX
Copy link
Member

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

@oSumAtrIX oSumAtrIX transferred this issue from ReVanced/revanced-patches-template Dec 14, 2023
@oSumAtrIX oSumAtrIX transferred this issue from another repository Dec 14, 2023
@LisoUseInAIKyrios LisoUseInAIKyrios changed the title bug(youtube-music/bypass-certificate-checks): YT Music does not work with Android Auto bug(YouTube Music - Bypass certificate checks): YT Music does not work with all Android Auto for all vehicles Jan 20, 2024
Slenderman00 pushed a commit to Slenderman00/revanced-patches-grindr that referenced this issue Jan 31, 2024
@ILoveOpenSourceApplications
Copy link
Contributor

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

@LisoUseInAIKyrios LisoUseInAIKyrios changed the title bug(YouTube Music - Bypass certificate checks): YT Music does not work with all Android Auto for all vehicles bug(YouTube Music - Bypass certificate checks): YT Music does not work with some vehicles Android Auto Apr 2, 2024
@radical4ever
Copy link

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

@Prasana-sys
Copy link

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.

@yasars
Copy link

yasars commented Jul 7, 2024

issue not fixed or have anyone an other solution?

@LisoUseInAIKyrios
Copy link
Contributor Author

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

Otherwise there is no solution.

@yasars
Copy link

yasars commented Jul 7, 2024

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

@yoni30
Copy link

yoni30 commented Jul 9, 2024

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.

@yasars
Copy link

yasars commented Jul 9, 2024

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)...

@pacho2
Copy link

pacho2 commented Jul 9, 2024

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 :/

@LisoUseInAIKyrios
Copy link
Contributor Author

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).

@SleepDaemon
Copy link

SleepDaemon commented Aug 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants