Conversation
| fun toastInvalidVersionName() { | ||
| Toast.makeText( | ||
| appContext, | ||
| "This hook is for client version $TARGET_PKG_VERSION_NAME. (Current: $pkgVersionName) Hook will not be loaded.", |
There was a problem hiding this comment.
It's too long to toast, so split it
There was a problem hiding this comment.
Does this show the toasts one after another?
There was a problem hiding this comment.
So far as the result of my tests, it will show toasts one after another. But I still try to find a way to make a toast large enough to show the whole text.
|
|
||
| if (pkgVersionName != TARGET_PKG_VERSION_NAME) { | ||
| toastInvalidVersionName() | ||
| return |
There was a problem hiding this comment.
Allow hook newer or older version
There was a problem hiding this comment.
Cannot allow the user to do that. There's a good reason for this: symbol obfuscation mapping varies per version, so if you try to run the hooks with the wrong version, expect undefined behavior and weird bugs.
There was a problem hiding this comment.
Oh I didn't thought about that before sorry
Allow older version or newer version of Grindr work with the Hook but make no sure that would be compatitve with the functions