fix(Threads - Hide ads): Constrain patch to the last working app target (#5189)
This commit is contained in:
parent
a9235d6b62
commit
e138501657
4 changed files with 32 additions and 14 deletions
|
|
@ -958,6 +958,10 @@ public final class app/revanced/patches/swissid/integritycheck/RemoveGooglePlayI
|
||||||
public static final fun getRemoveGooglePlayIntegrityCheckPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
public static final fun getRemoveGooglePlayIntegrityCheckPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final class app/revanced/patches/threads/HideAdsPatchKt {
|
||||||
|
public static final fun getHideAdsPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
|
}
|
||||||
|
|
||||||
public final class app/revanced/patches/ticktick/misc/themeunlock/UnlockThemePatchKt {
|
public final class app/revanced/patches/ticktick/misc/themeunlock/UnlockThemePatchKt {
|
||||||
public static final fun getUnlockProPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
public static final fun getUnlockProPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,16 @@
|
||||||
package app.revanced.patches.instagram.ads
|
package app.revanced.patches.instagram.ads
|
||||||
|
|
||||||
import app.revanced.patcher.patch.bytecodePatch
|
import app.revanced.patcher.patch.bytecodePatch
|
||||||
|
import app.revanced.patches.meta.ads.adInjectorFingerprint
|
||||||
|
import app.revanced.util.returnEarly
|
||||||
|
|
||||||
@Deprecated("Patch was moved to different package: app.revanced.patches.meta.ads.hideAdsPatch")
|
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
val hideAdsPatch = bytecodePatch {
|
val hideAdsPatch = bytecodePatch(
|
||||||
dependsOn(app.revanced.patches.meta.ads.hideAdsPatch)
|
name = "Hide ads",
|
||||||
|
) {
|
||||||
|
compatibleWith("com.instagram.android")
|
||||||
|
|
||||||
|
execute {
|
||||||
|
adInjectorFingerprint.method.returnEarly(false)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,18 +3,9 @@ package app.revanced.patches.meta.ads
|
||||||
import app.revanced.patcher.patch.bytecodePatch
|
import app.revanced.patcher.patch.bytecodePatch
|
||||||
import app.revanced.util.returnEarly
|
import app.revanced.util.returnEarly
|
||||||
|
|
||||||
|
@Deprecated("Instead use the Instagram or Threads specific hide ads patch")
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
val hideAdsPatch = bytecodePatch(
|
val hideAdsPatch = bytecodePatch {
|
||||||
name = "Hide ads",
|
|
||||||
) {
|
|
||||||
/**
|
|
||||||
* Patch is identical for both Instagram and Threads app.
|
|
||||||
*/
|
|
||||||
compatibleWith(
|
|
||||||
"com.instagram.android",
|
|
||||||
"com.instagram.barcelona",
|
|
||||||
)
|
|
||||||
|
|
||||||
execute {
|
execute {
|
||||||
adInjectorFingerprint.method.returnEarly(false)
|
adInjectorFingerprint.method.returnEarly(false)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
package app.revanced.patches.threads
|
||||||
|
|
||||||
|
import app.revanced.patcher.patch.bytecodePatch
|
||||||
|
import app.revanced.patches.meta.ads.adInjectorFingerprint
|
||||||
|
import app.revanced.util.returnEarly
|
||||||
|
|
||||||
|
@Suppress("unused")
|
||||||
|
val hideAdsPatch = bytecodePatch(
|
||||||
|
name = "Hide ads",
|
||||||
|
) {
|
||||||
|
compatibleWith("com.instagram.barcelona"("382.0.0.51.85"))
|
||||||
|
|
||||||
|
execute {
|
||||||
|
adInjectorFingerprint.method.returnEarly(false)
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue