Skip to content

Commit

Permalink
Fix support
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev4Mod committed Jun 12, 2024
1 parent 2b7224e commit 8d5f648
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,7 @@ public static Class loadVideoViewContainerClass(ClassLoader loader) throws Excep

public static Class loadImageVewContainerClass(ClassLoader loader) throws Exception {
return UnobfuscatorCache.getInstance().getClass(loader, () -> {
var clazzList = dexkit.findClass(new FindClass().matcher(new ClassMatcher().addUsingString("viewmessage/ no file").addMethod(new MethodMatcher().addUsingNumber(Utils.getID("hd_invisible_touch", "id")).addUsingNumber(Utils.getID("control_btn", "id")))));
var clazzList = dexkit.findClass(new FindClass().matcher(new ClassMatcher().addMethod(new MethodMatcher().addUsingNumber(Utils.getID("hd_invisible_touch", "id")).addUsingNumber(Utils.getID("control_btn", "id")))));
if (clazzList.isEmpty())
throw new RuntimeException("ImageViewContainer class not found");
return clazzList.get(0).getInstance(loader);
Expand Down Expand Up @@ -1520,8 +1520,7 @@ public static Method getFilterInitMethod(ClassLoader loader) throws Exception {

public static Class getFilterView(ClassLoader loader) throws Exception {
return UnobfuscatorCache.getInstance().getClass(loader, () -> {
var id = Utils.getID("filter_and_locked_chats_container", "id");
var results = dexkit.findClass(new FindClass().matcher(new ClassMatcher().addMethod(new MethodMatcher().addUsingNumber(id))));
var results = dexkit.findClass(new FindClass().matcher(new ClassMatcher().addMethod(new MethodMatcher().name("setInboxFilterHelper"))));
if (results.isEmpty()) throw new RuntimeException("FilterView class not found");
return results.get(0).getInstance(loader);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.wmods.wppenhacer.xposed.core.Unobfuscator;
import com.wmods.wppenhacer.xposed.core.Utils;
import com.wmods.wppenhacer.xposed.core.WppCore;
import com.wmods.wppenhacer.xposed.utils.ReflectionUtils;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down Expand Up @@ -175,7 +176,8 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
var object = onGetInvokeField.get(param.args[0]);
var StatusListUpdates = XposedHelpers.callMethod(object, "A04");
var method = ReflectionUtils.findMethodUsingFilter(object.getClass(), method1 -> method1.getReturnType().equals(Object.class));
var StatusListUpdates = ReflectionUtils.callMethod(method, object);
if (StatusListUpdates == null) return;
var lists = Arrays.stream(StatusListUpdates.getClass().getDeclaredFields()).filter(f -> f.getType().equals(List.class)).collect(Collectors.toList());
if (lists.size() < 3) return;
Expand Down
11 changes: 6 additions & 5 deletions app/src/main/res/drawable/refresh.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="20dp"
android:height="20dp"
android:viewportWidth="512"
android:viewportHeight="512">
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">

<path
android:fillColor="#000000"
android:pathData="M511.96,185.21 L512,15.05l-67.59,67.59 -7.57,-7.57C388.51,26.73 324.25,0.11 255.89,0.11 114.79,0.11 0,114.9 0,256s114.79,255.89 255.89,255.89S511.79,397.1 511.79,256h-49.53c0,113.79 -92.57,206.37 -206.37,206.37S49.53,369.79 49.53,256 142.1,49.63 255.89,49.63c55.12,0 106.95,21.47 145.93,60.44l7.57,7.57 -67.58,67.58 170.15,-0.02z" />
android:fillType="evenOdd"
android:pathData="M19,2a1,1 0,0 1,1 1v5a1,1 0,0 1,-1 1h-5a1,1 0,1 1,0 -2h2.899a7,7 0,1 0,0.971 8.812,1 1,0 1,1 1.678,1.09A9,9 0,1 1,18 5.292V3a1,1 0,0 1,1 -1z" />

</vector>
12 changes: 3 additions & 9 deletions app/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,16 @@
<item>2</item>
</string-array>
<string-array name="supported_versions_wpp">
<item>2.24.8.85</item>
<item>2.24.8.86</item>
<item>2.24.9.71</item>
<item>2.24.9.72</item>
<item>2.24.9.76</item>
<item>2.24.9.77</item>
<item>2.24.9.78</item>
<item>2.24.9.79</item>
<item>2.24.10.74</item>
<item>2.24.10.75</item>
<item>2.24.10.85</item>
<item>2.24.11.79</item>
<item>2.24.11.80</item>
<item>2.24.12.71</item>
<item>2.24.12.73</item>
</string-array>
<string-array name="supported_versions_business">
<item>2.24.9.80</item>
<item>2.24.11.83</item>
</string-array>
<string-array name="image_picker">
<item>image/*</item>
Expand Down
9 changes: 5 additions & 4 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[BLUE TICK ON REPLY]
* Add support to groups

[WHATSAPP BUSINESS]
* Add experimental support to version 2.24.11.83 (only)
* fix experimental support to version 2.24.11.83 (only)

[WHATSAPP]
* Removed olds versions 2.24.8.85~2.24.9.79
* Add support to version 2.24.12.71 and 73

0 comments on commit 8d5f648

Please sign in to comment.