Skip to content

Commit

Permalink
GrindrPlus: Attempts to get unlimited VCs
Browse files Browse the repository at this point in the history
  • Loading branch information
R0rt1z2 committed Dec 12, 2024
1 parent 77e86d6 commit ebc5343
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions app/src/main/java/com/grindrplus/hooks/EmptyCalls.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,41 @@ package com.grindrplus.hooks
import com.grindrplus.utils.Hook
import com.grindrplus.utils.HookStage
import com.grindrplus.utils.hook
import com.grindrplus.utils.hookConstructor

class EmptyCalls : Hook(
"Video calls",
"Allow video calls on empty chats"
) {
private val individualChatNavViewModel = "J9.a"
private val createVideoCallResponse = "com.grindrapp.android.chat.api.model.CreateVideoCallResponse"
private val videoCallInfoResponse = "com.grindrapp.android.chat.api.model.VideoCallInfoResponse"

override fun init() {
findClass(individualChatNavViewModel) // isTalkBefore()
.hook("z", HookStage.BEFORE) { param ->
param.setResult(true)
}

findClass(createVideoCallResponse)
.hook("getRemainingSeconds", HookStage.BEFORE) { param ->
param.setResult(Long.MAX_VALUE)
}

findClass(createVideoCallResponse)
.hookConstructor(HookStage.BEFORE) { param ->
param.setArg(1, Long.MAX_VALUE) // maxSeconds
param.setArg(3, Long.MAX_VALUE) // remainingSeconds
}

findClass(createVideoCallResponse)
.hook("fetchRemainingSeconds", HookStage.BEFORE) { param ->
param.setResult(Long.MAX_VALUE)
}

findClass(videoCallInfoResponse)
.hook("getRemainingSeconds", HookStage.BEFORE) { param ->
param.setResult(Int.MAX_VALUE)
}
}
}

0 comments on commit ebc5343

Please sign in to comment.