File tree 1 file changed +3
-9
lines changed
patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
1
package app.revanced.patches.music.misc.androidauto
2
2
3
- import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
4
3
import app.revanced.patcher.patch.bytecodePatch
4
+ import app.revanced.util.returnEarly
5
5
6
6
@Suppress(" unused" )
7
7
val bypassCertificateChecksPatch = bytecodePatch(
8
8
name = " Bypass certificate checks" ,
9
9
description = " Bypasses certificate checks which prevent YouTube Music from working on Android Auto." ,
10
10
) {
11
- compatibleWith(" com.google.android.apps.youtube.music" )
11
+ compatibleWith(" com.google.android.apps.youtube.music" ( " 7.29.52 " ) )
12
12
13
13
execute {
14
- checkCertificateFingerprint.method.addInstructions(
15
- 0 ,
16
- """
17
- const/4 v0, 0x1
18
- return v0
19
- """ ,
20
- )
14
+ checkCertificateFingerprint.method.returnEarly(true )
21
15
}
22
16
}
You can’t perform that action at this time.
0 commit comments