File tree Expand file tree Collapse file tree 3 files changed +43
-0
lines changed
src/main/kotlin/app/revanced/patches/strava/password Expand file tree Collapse file tree 3 files changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -1188,6 +1188,10 @@ public final class app/revanced/patches/stocard/layout/HideStoryBubblesPatchKt {
11881188 public static final fun getHideStoryBubblesPatch ()Lapp/revanced/patcher/patch/ResourcePatch;
11891189}
11901190
1191+ public final class app/revanced/patches/strava/password/EnablePasswordLoginPatchKt {
1192+ public static final fun getEnablePasswordLoginPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
1193+ }
1194+
11911195public final class app/revanced/patches/strava/subscription/UnlockSubscriptionPatchKt {
11921196 public static final fun getUnlockSubscriptionPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
11931197}
Original file line number Diff line number Diff line change 1+ package app.revanced.patches.strava.password
2+
3+ import app.revanced.patcher.Fingerprint
4+ import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction
5+ import app.revanced.patcher.patch.bytecodePatch
6+
7+ @Suppress(" unused" )
8+ val enablePasswordLoginPatch = bytecodePatch(
9+ name = " Enable password login" ,
10+ description = " Re-enables password login after having used an OTP code." ,
11+ ) {
12+ compatibleWith(" com.strava" )
13+
14+ execute {
15+ fun Fingerprint.loadTrueInsteadOfField () =
16+ method.replaceInstruction(patternMatch!! .startIndex, " const/4 v0, 0x1" )
17+
18+ logInGetUsePasswordFingerprint.loadTrueInsteadOfField()
19+ emailChangeGetUsePasswordFingerprint.loadTrueInsteadOfField()
20+ }
21+ }
Original file line number Diff line number Diff line change 1+ package app.revanced.patches.strava.password
2+
3+ import app.revanced.patcher.fingerprint
4+ import com.android.tools.smali.dexlib2.Opcode
5+
6+ internal val logInGetUsePasswordFingerprint = fingerprint {
7+ opcodes(Opcode .IGET_BOOLEAN )
8+ custom { method, classDef ->
9+ method.name == " getUsePassword" && classDef.endsWith(" /RequestOtpLogInNetworkResponse;" )
10+ }
11+ }
12+
13+ internal val emailChangeGetUsePasswordFingerprint = fingerprint {
14+ opcodes(Opcode .IGET_BOOLEAN )
15+ custom { method, classDef ->
16+ method.name == " getUsePassword" && classDef.endsWith(" /RequestEmailChangeWithOtpOrPasswordResponse;" )
17+ }
18+ }
You can’t perform that action at this time.
0 commit comments