feat(Duolingo): Add `Disable ads` and `Enable debug menu` patch
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.
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
Is this PR still active?
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.
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.
Thank you for contributing to ReVanced. Join us on Discord to receive a role for your contribution.
Version
5.159.xremoves 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.4is nearly the last version that has a full apk anyway.
What debug menu is? Is it suitable for daily usage?