revanced-patches icon indicating copy to clipboard operation
revanced-patches copied to clipboard

feat(Duolingo): Add `Disable ads` and `Enable debug menu` patch

Open notjosh opened this issue 1 year ago • 2 comments

Following up from #3420, I found a reasonably reliable way to skip ads within the app without impacting any of the other features/limitations of free users based on some debug flags within the app.

While I was there, I noticed a way to unlock the debug menu in production builds. I've included that in this PR, but set the used = false so it's not available by default, as I don't think generally people should be touching those settings. But it might be useful for some folks looking to target certain language lessons, so I think it's worth keeping it as an option.

notjosh avatar Jul 08 '24 22:07 notjosh

Does the debug function only work for specific versions? Version 5.159.4 fails to patch:

SEVERE: Make Duolingo debug menu available failed:
app.revanced.patcher.patch.PatchException: Failed to resolve BuildConfigProviderFingerprint

LisoUseInAIKyrios avatar Jul 11 '24 11:07 LisoUseInAIKyrios

Is this PR still active?

oSumAtrIX avatar Jul 31 '24 17:07 oSumAtrIX

This PR works as expected, except the debug menu patch did not work with the latest release when I tried. A prior app version did work with debug menu, so all it needs is a version constrain unless someone wants to spend time and fix up that patch.

LisoUseInAIKyrios avatar Aug 16 '24 05:08 LisoUseInAIKyrios

Version 5.159.x removes some code for the debug menu. It could still be patched as the field is still in the same place, but there is no strings to identify it anymore. It would need to be walked from a calling method to support newer versions.

5.158.4 is nearly the last version that has a full apk anyway.

LisoUseInAIKyrios avatar Aug 19 '24 01:08 LisoUseInAIKyrios

Thank you for contributing to ReVanced. Join us on Discord to receive a role for your contribution.

welcome[bot] avatar Aug 24 '24 12:08 welcome[bot]

Version 5.159.x removes some code for the debug menu. It could still be patched as the field is still in the same place, but there is no strings to identify it anymore. It would need to be walked from a calling method to support newer versions.

5.158.4 is nearly the last version that has a full apk anyway.

What debug menu is? Is it suitable for daily usage?

cyberboh avatar Aug 24 '24 13:08 cyberboh