feat(GMX Mail): Add Force enable Freephone patch (#6650)
Co-authored-by: obXfuse <obXfuse>
This commit is contained in:
parent
2f72ae5bf6
commit
997b5d63d1
3 changed files with 28 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
package app.revanced.patches.gmxmail.freephone
|
||||
|
||||
import app.revanced.patcher.fingerprint
|
||||
|
||||
internal val isEuiccEnabledFingerprint = fingerprint {
|
||||
custom { method, _ ->
|
||||
method.name == "isEuiccEnabled"
|
||||
}
|
||||
}
|
||||
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue