diff --git a/patches/api/patches.api b/patches/api/patches.api index 5d5c92c7b8..575e428c4b 100644 --- a/patches/api/patches.api +++ b/patches/api/patches.api @@ -236,6 +236,10 @@ public final class app/revanced/patches/fotmob/ads/HideAdsPatchKt { public static final fun getHideAdsPatch ()Lapp/revanced/patcher/patch/BytecodePatch; } +public final class app/revanced/patches/gmxmail/freephone/ForceEnableFreephonePatchKt { + public static final fun getForceEnableFreePhonePatch ()Lapp/revanced/patcher/patch/BytecodePatch; +} + public final class app/revanced/patches/googlenews/customtabs/EnableCustomTabsPatchKt { public static final fun getEnableCustomTabsPatch ()Lapp/revanced/patcher/patch/BytecodePatch; } diff --git a/patches/src/main/kotlin/app/revanced/patches/gmxmail/freephone/Fingerprints.kt b/patches/src/main/kotlin/app/revanced/patches/gmxmail/freephone/Fingerprints.kt new file mode 100755 index 0000000000..0702716556 --- /dev/null +++ b/patches/src/main/kotlin/app/revanced/patches/gmxmail/freephone/Fingerprints.kt @@ -0,0 +1,9 @@ +package app.revanced.patches.gmxmail.freephone + +import app.revanced.patcher.fingerprint + +internal val isEuiccEnabledFingerprint = fingerprint { + custom { method, _ -> + method.name == "isEuiccEnabled" + } +} \ No newline at end of file diff --git a/patches/src/main/kotlin/app/revanced/patches/gmxmail/freephone/ForceEnableFreephonePatch.kt b/patches/src/main/kotlin/app/revanced/patches/gmxmail/freephone/ForceEnableFreephonePatch.kt new file mode 100755 index 0000000000..c1693df4f7 --- /dev/null +++ b/patches/src/main/kotlin/app/revanced/patches/gmxmail/freephone/ForceEnableFreephonePatch.kt @@ -0,0 +1,15 @@ +package app.revanced.patches.gmxmail.freephone + +import app.revanced.patcher.patch.bytecodePatch +import app.revanced.util.returnEarly + +val forceEnableFreePhonePatch = bytecodePatch( + name = "Force enable FreePhone", + description = "Enables the FreePhone menu in the navigation drawer even on devices that don't support eSIM.", +) { + compatibleWith("de.gmx.mobile.android.mail") + + execute { + isEuiccEnabledFingerprint.method.returnEarly(true) + } +} \ No newline at end of file