feat(GMX Mail): Add Hide ads and Hide Premium upgrade button patches (#6583)
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
8a84f1a516
commit
2976ea3ddd
5 changed files with 58 additions and 2 deletions
|
|
@ -236,10 +236,18 @@ public final class app/revanced/patches/fotmob/ads/HideAdsPatchKt {
|
||||||
public static final fun getHideAdsPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
public static final fun getHideAdsPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final class app/revanced/patches/gmxmail/ads/HideAdsPatchKt {
|
||||||
|
public static final fun getHideAdsPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
|
}
|
||||||
|
|
||||||
public final class app/revanced/patches/gmxmail/freephone/ForceEnableFreephonePatchKt {
|
public final class app/revanced/patches/gmxmail/freephone/ForceEnableFreephonePatchKt {
|
||||||
public static final fun getForceEnableFreePhonePatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
public static final fun getForceEnableFreePhonePatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final class app/revanced/patches/gmxmail/layout/HidePremiumUpgradeButtonKt {
|
||||||
|
public static final fun getHidePremiumUpgradeButtonPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
|
}
|
||||||
|
|
||||||
public final class app/revanced/patches/googlenews/customtabs/EnableCustomTabsPatchKt {
|
public final class app/revanced/patches/googlenews/customtabs/EnableCustomTabsPatchKt {
|
||||||
public static final fun getEnableCustomTabsPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
public static final fun getEnableCustomTabsPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
}
|
}
|
||||||
|
|
@ -935,8 +943,8 @@ public final class app/revanced/patches/shared/misc/gms/FingerprintsKt {
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class app/revanced/patches/shared/misc/gms/GmsCoreSupportPatchKt {
|
public final class app/revanced/patches/shared/misc/gms/GmsCoreSupportPatchKt {
|
||||||
public static final fun gmsCoreSupportPatch (Ljava/lang/String;Ljava/lang/String;Lapp/revanced/patcher/Fingerprint;Ljava/util/Set;Lapp/revanced/patcher/Fingerprint;Lapp/revanced/patcher/patch/Patch;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)Lapp/revanced/patcher/patch/BytecodePatch;
|
public static final fun gmsCoreSupportPatch (Ljava/lang/String;Ljava/lang/String;Lapp/revanced/patcher/Fingerprint;Ljava/util/Set;Lkotlin/Pair;Lapp/revanced/patcher/patch/Patch;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
public static synthetic fun gmsCoreSupportPatch$default (Ljava/lang/String;Ljava/lang/String;Lapp/revanced/patcher/Fingerprint;Ljava/util/Set;Lapp/revanced/patcher/Fingerprint;Lapp/revanced/patcher/patch/Patch;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lapp/revanced/patcher/patch/BytecodePatch;
|
public static synthetic fun gmsCoreSupportPatch$default (Ljava/lang/String;Ljava/lang/String;Lapp/revanced/patcher/Fingerprint;Ljava/util/Set;Lkotlin/Pair;Lapp/revanced/patcher/patch/Patch;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
public static final fun gmsCoreSupportResourcePatch (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lapp/revanced/patcher/patch/Option;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)Lapp/revanced/patcher/patch/ResourcePatch;
|
public static final fun gmsCoreSupportResourcePatch (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lapp/revanced/patcher/patch/Option;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)Lapp/revanced/patcher/patch/ResourcePatch;
|
||||||
public static synthetic fun gmsCoreSupportResourcePatch$default (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lapp/revanced/patcher/patch/Option;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lapp/revanced/patcher/patch/ResourcePatch;
|
public static synthetic fun gmsCoreSupportResourcePatch$default (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lapp/revanced/patcher/patch/Option;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lapp/revanced/patcher/patch/ResourcePatch;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
9
patches/src/main/kotlin/app/revanced/patches/gmxmail/ads/Fingerprints.kt
Executable file
9
patches/src/main/kotlin/app/revanced/patches/gmxmail/ads/Fingerprints.kt
Executable file
|
|
@ -0,0 +1,9 @@
|
||||||
|
package app.revanced.patches.gmxmail.ads
|
||||||
|
|
||||||
|
import app.revanced.patcher.fingerprint
|
||||||
|
|
||||||
|
internal val getAdvertisementStatusFingerprint = fingerprint {
|
||||||
|
custom { method, classDef ->
|
||||||
|
method.name == "getAdvertisementStatus" && classDef.endsWith("/PayMailManager;")
|
||||||
|
}
|
||||||
|
}
|
||||||
15
patches/src/main/kotlin/app/revanced/patches/gmxmail/ads/HideAdsPatch.kt
Executable file
15
patches/src/main/kotlin/app/revanced/patches/gmxmail/ads/HideAdsPatch.kt
Executable file
|
|
@ -0,0 +1,15 @@
|
||||||
|
package app.revanced.patches.gmxmail.ads
|
||||||
|
|
||||||
|
import app.revanced.patcher.patch.bytecodePatch
|
||||||
|
import app.revanced.util.returnEarly
|
||||||
|
|
||||||
|
val hideAdsPatch = bytecodePatch(
|
||||||
|
name = "Hide ads",
|
||||||
|
description = "Hides sponsored ads.",
|
||||||
|
) {
|
||||||
|
compatibleWith("de.gmx.mobile.android.mail")
|
||||||
|
|
||||||
|
execute {
|
||||||
|
getAdvertisementStatusFingerprint.method.returnEarly(2)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
package app.revanced.patches.gmxmail.layout
|
||||||
|
|
||||||
|
import app.revanced.patcher.fingerprint
|
||||||
|
|
||||||
|
internal val isUpsellingPossibleFingerprint = fingerprint {
|
||||||
|
custom { method, classDef ->
|
||||||
|
method.name == "isUpsellingPossible" && classDef.endsWith("/PayMailManager;")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
package app.revanced.patches.gmxmail.layout
|
||||||
|
|
||||||
|
import app.revanced.patcher.patch.bytecodePatch
|
||||||
|
import app.revanced.util.returnEarly
|
||||||
|
|
||||||
|
val hidePremiumUpgradeButtonPatch = bytecodePatch(
|
||||||
|
name = "Hide Premium upgrade button",
|
||||||
|
description = "Hides the Premium upgrade button in the navigation drawer.",
|
||||||
|
) {
|
||||||
|
compatibleWith("de.gmx.mobile.android.mail")
|
||||||
|
|
||||||
|
execute {
|
||||||
|
isUpsellingPossibleFingerprint.method.returnEarly(false)
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue