-
-
Notifications
You must be signed in to change notification settings - Fork 436
feat(Telegram): Add Remove birthday input message
patch
#5041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
patches/src/main/kotlin/app/revanced/patches/telegram/birthday/HideBirthdayMessage.kt
Show resolved
Hide resolved
Remove birthday input message
patch
|
||
@Suppress("unused") | ||
val removeBirthdayMassagePatch = bytecodePatch( | ||
name = "Remove birthday input message", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Hide' is the typical wording used. It's more than just the message, it's hiding the prompt.
Maybe name this Hide birthday prompt
This seemed to work, but inconsistently. I need to check into this more thoroughly. |
Try it. Look promising. |
I'm not able to check right now but I can provide the fingerprint and code here if that would help @Shoggomo I'm 100% sure the fingerprint is correct, but the bytecode patch needs to be tested... Edit: corrected the code as LisoUseInAIKyrios said below Fingerprints.kt package app.revanced.patches.telegram.birthday
import app.revanced.patcher.fingerprint
import com.android.tools.smali.dexlib2.AccessFlags
internal val birthdayCheckFingerprint = fingerprint {
accessFlags(AccessFlags.PUBLIC)
returns("V")
custom { method, classDef ->
method.name == "check" && classDef.contains("BirthdayController")
}
} HideBirthdayCheck.kt package app.revanced.patches.telegram.birthday
import app.revanced.patcher.patch.bytecodePatch
@Suppress("unused")
val hideBirthdayCheck = bytecodePatch(
name = "Hide Birthday Check"
) {
compatibleWith("org.telegram.messenger")
execute {
birthdayCheckFingerprint.method.returnEarly()
}
} |
Can't return true a void method. That should be |
I think I was a bit fast on this one. The |
Also support for telegram web would be nice: |
The telegram app is open source. You can use that to find the patch location. |
When opening the app the user is frequently asked about their birthday. Dismissing this hiddes the message for around a day. This patch hides the message indefinitely.