Skip to content

Commit

Permalink
fix(YouTube Music - Bypass certificate checks): Add a recommended tar…
Browse files Browse the repository at this point in the history
…get version (#4104)
  • Loading branch information
LisoUseInAIKyrios authored Dec 11, 2024
1 parent 5897a1c commit 17a5a6c
Showing 1 changed file with 3 additions and 9 deletions.
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)
}
}

0 comments on commit 17a5a6c

Please sign in to comment.