Skip to content

Commit

Permalink
Dump new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev4Mod committed May 29, 2024
1 parent 38d31fe commit 2e589b9
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Build and test app
run: |
./gradlew assembleDebug
./gradlew assembleDebug -Pminify=true
- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand Down
17 changes: 11 additions & 6 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,17 @@ android {

buildTypes {
all {
signingConfig = if (signingConfigs["config"].storeFile != null) signingConfigs["config"] else signingConfigs["debug"]
// isMinifyEnabled = true
// proguardFiles(
// getDefaultProguardFile("proguard-android-optimize.txt"),
// "proguard-rules.pro"
// )
signingConfig =
if (signingConfigs["config"].storeFile != null) signingConfigs["config"] else signingConfigs["debug"]
if (project.hasProperty("minify") && project.properties["minify"].toString()
.toBoolean()
) {
isMinifyEnabled = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
release {
isMinifyEnabled = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ protected void beforeHookedMethod(MethodHookParam param) throws Exception {
log(fieldMessageDetails);
Utils.debugFields(classThreadMessage, objMessage);
var fieldIsFromMe = XposedHelpers.getBooleanField(fieldMessageDetails, "A02");
var type = XposedHelpers.getIntField(objMessage, "A01");
var typeField = classThreadMessage.getDeclaredField("A01");
typeField.setAccessible(true);
var type = typeField.getInt(objMessage); // delete user message in group as admin (8)
if (!fieldIsFromMe && type != 8) {
if (antiRevoke(objMessage) != 0)
param.setResult(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import com.wmods.wppenhacer.xposed.utils.ReflectionUtils;

import java.io.File;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public void doHook() throws Throwable {
var jid = WppCore.getCurrentRawJID();
if (!Objects.equals(jid, currentJid)) {
currentJid = jid;
XposedBridge.log("Changed Start");
messages.clear();
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void doHook() throws Exception {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
if (prefs.getBoolean("removeforwardlimit", false)) {
XposedHelpers.setBooleanField(param.thisObject, shareLimitField.getName(), true);
shareLimitField.set(param.thisObject, true);
}
}
});
Expand Down
8 changes: 6 additions & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[ANTIREVOKE MESSAGES]
* Fix critical bug in database
[WHATSAPP]
* Add Support to Whatsapp 2.24.10.85

[ANTI REVOKE]
* fix error when deleting messages from other people in group as admin

0 comments on commit 2e589b9

Please sign in to comment.