fix(YouTube/Hide ads): Hide ads patch does not work on YouTube 18.29.38

This commit is contained in:
inotia00
2024-05-13 14:20:01 +09:00
parent 1edae35081
commit 24cc5e4808
3 changed files with 2 additions and 5 deletions

View File

@ -96,8 +96,7 @@ object AdsPatch : BaseBytecodePatch(
addInstructionsWithLabels(
0,
"""
move-object v0, p2
invoke-static {v0}, $FULLSCREEN_ADS_CLASS_DESCRIPTOR->hideFullscreenAds(Ljava/lang/Object;)Z
invoke-static/range {p2 .. p2}, $FULLSCREEN_ADS_CLASS_DESCRIPTOR->hideFullscreenAds(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :show
return-void

View File

@ -57,8 +57,7 @@ object AdsBytecodePatch : BytecodePatch(
addInstructionsWithLabels(
0,
"""
move-object v0, p2
invoke-static {v0}, $ADS_CLASS_DESCRIPTOR->hideFullscreenAds(Ljava/lang/Object;)Z
invoke-static/range {p2 .. p2}, $ADS_CLASS_DESCRIPTOR->hideFullscreenAds(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :show
return-void

View File

@ -5,6 +5,5 @@ import app.revanced.util.fingerprint.LiteralValueFingerprint
internal object ShowDialogCommandFingerprint : LiteralValueFingerprint(
returnType = "V",
parameters = listOf("[B", "L"),
literalSupplier = { SlidingDialogAnimation }
)