generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(YouTube Music - Bypass certificate checks): Add a recommended tar…
…get version (#4104)
- Loading branch information
1 parent
5897a1c
commit 17a5a6c
Showing
1 changed file
with
3 additions
and
9 deletions.
There are no files selected for viewing
12 changes: 3 additions & 9 deletions
12
...c/main/kotlin/app/revanced/patches/music/misc/androidauto/BypassCertificateChecksPatch.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
package app.revanced.patches.music.misc.androidauto | ||
|
||
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions | ||
import app.revanced.patcher.patch.bytecodePatch | ||
import app.revanced.util.returnEarly | ||
|
||
@Suppress("unused") | ||
val bypassCertificateChecksPatch = bytecodePatch( | ||
name = "Bypass certificate checks", | ||
description = "Bypasses certificate checks which prevent YouTube Music from working on Android Auto.", | ||
) { | ||
compatibleWith("com.google.android.apps.youtube.music") | ||
compatibleWith("com.google.android.apps.youtube.music"("7.29.52")) | ||
|
||
execute { | ||
checkCertificateFingerprint.method.addInstructions( | ||
0, | ||
""" | ||
const/4 v0, 0x1 | ||
return v0 | ||
""", | ||
) | ||
checkCertificateFingerprint.method.returnEarly(true) | ||
} | ||
} |