Skip to content

Commit 17a5a6c

Browse files
fix(YouTube Music - Bypass certificate checks): Add a recommended target version (ReVanced#4104)
1 parent 5897a1c commit 17a5a6c

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
package app.revanced.patches.music.misc.androidauto
22

3-
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
43
import app.revanced.patcher.patch.bytecodePatch
4+
import app.revanced.util.returnEarly
55

66
@Suppress("unused")
77
val bypassCertificateChecksPatch = bytecodePatch(
88
name = "Bypass certificate checks",
99
description = "Bypasses certificate checks which prevent YouTube Music from working on Android Auto.",
1010
) {
11-
compatibleWith("com.google.android.apps.youtube.music")
11+
compatibleWith("com.google.android.apps.youtube.music"("7.29.52"))
1212

1313
execute {
14-
checkCertificateFingerprint.method.addInstructions(
15-
0,
16-
"""
17-
const/4 v0, 0x1
18-
return v0
19-
""",
20-
)
14+
checkCertificateFingerprint.method.returnEarly(true)
2115
}
2216
}

0 commit comments

Comments
 (0)