Skip to content

Commit

Permalink
Prevent from Recording Profile Views
Browse files Browse the repository at this point in the history
Now, you will be able to see who viewed your profile even if you have "Show Me In Viewed Me List" disabled.
  • Loading branch information
ElJaviLuki committed Dec 5, 2022
1 parent dfdb802 commit 4858242
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

ext.versionMajor = 1
ext.versionMinor = 1
ext.versionPatch = 3
ext.versionPatch = 4
ext.grindrVersion = '8.22.1'

private String genVersionName() {
Expand All @@ -24,7 +24,7 @@ android {
applicationId 'com.eljaviluki.grindrplus'
minSdk 21
targetSdk 32
versionCode 9
versionCode 10
versionName genVersionName()
versionNameSuffix getVersionNameSuffix()
}
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/java/com/eljaviluki/grindrplus/Hooker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ class Hooker : IXposedHookLoadPackage {
} catch (e : Exception) {
e.message?.let { Logger.xLog(it) }
}

try {
Hooks.preventRecordProfileViews()
} catch (e : Exception) {
e.message?.let { Logger.xLog(it) }
}
}
}
)
Expand Down
16 changes: 16 additions & 0 deletions app/src/main/java/com/eljaviluki/grindrplus/Hooks.kt
Original file line number Diff line number Diff line change
Expand Up @@ -456,4 +456,20 @@ object Hooks {
RETURN_LONG_MAX_VALUE
)
}

fun preventRecordProfileViews(){
val class_Continuation = findClass(
"kotlin.coroutines.Continuation",
Hooker.pkgParam.classLoader
)

val class_GrindrRestService = findClass(GApp.api.GrindrRestService, Hooker.pkgParam.classLoader)
findAndHookMethod(
class_GrindrRestService,
GApp.api.GrindrRestService_.recordProfileViews,
List::class.java,
class_Continuation,
XC_MethodReplacement.DO_NOTHING
)
}
}
9 changes: 9 additions & 0 deletions app/src/main/java/com/eljaviluki/grindrplus/Obfuscation.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ package com.eljaviluki.grindrplus

object Obfuscation {
object GApp {
object api {
private const val _api = Constants.GRINDR_PKG + ".api"

const val GrindrRestService = "$_api.GrindrRestService"
object GrindrRestService_ {
const val recordProfileViews = "W"
}
}

object base {
private const val _base = Constants.GRINDR_PKG + ".base"

Expand Down

0 comments on commit 4858242

Please sign in to comment.