Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
fix: game_ext does not exist in older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mkx173 committed Aug 5, 2024
1 parent 655c7db commit f24886a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ android {
if (versionName!!.contains("alpha") || versionName!!.contains("beta")) {
versionNameSuffix = ".$commitCountSinceLatestTag"
}
buildConfigField("String", "TARGET_VERSION", "\"12.65.1.1\"")
buildConfigField("String", "TARGET_VERSION", "\"12.66.1.0\"")
buildConfigField("String", "MIN_VERSION", "\"12.53.1.0\"")

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,12 @@ class Purge : XposedContext(), IHooker, Obfuscated {
if (XposedHelpers.getObjectField(thread, "ala_info") != null) {
return@removeIf true
}
val gameExt = XposedHelpers.getObjectField(thread, "game_ext") as? String
if (gameExt?.length != 0) {
return@removeIf true
try {
val gameExt = XposedHelpers.getObjectField(thread, "game_ext") as? String
if (gameExt?.length != 0) {
return@removeIf true
}
} catch (ignored: NoSuchFieldError) {
}
val worksInfo = XposedHelpers.getObjectField(thread, "works_info")
worksInfo != null && XposedHelpers.getObjectField(worksInfo, "is_works") as? Int == 1
Expand Down

0 comments on commit f24886a

Please sign in to comment.