Skip to content

Commit 8f1c4c7

Browse files
committed
Fix bug class of not found in loadRefreshStatusClass
Signed-off-by: Dev4Mod <[email protected]>
1 parent 5261828 commit 8f1c4c7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/src/main/java/com/wmods/wppenhacer/xposed/core/devkit/Unobfuscator.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1723,6 +1723,7 @@ public synchronized static Method loadSenderPlayedMethod(ClassLoader classLoader
17231723
return methodResult;
17241724
});
17251725
}
1726+
17261727
public synchronized static Method loadSenderPlayedBusiness(ClassLoader classLoader) throws Exception {
17271728
return UnobfuscatorCache.getInstance().getMethod(classLoader, () -> {
17281729
var loadSenderPlayed = loadSenderPlayedClass(classLoader);
@@ -1919,7 +1920,12 @@ public static Class[] loadProximitySensorListenerClasses(ClassLoader classLoader
19191920
}
19201921

19211922
public static Class<?> loadRefreshStatusClass(ClassLoader classLoader) throws Exception {
1922-
return UnobfuscatorCache.getInstance().getClass(classLoader, () -> findFirstClassUsingStrings(classLoader, StringMatchType.Contains, "Report tab open only once per session"));
1923+
return UnobfuscatorCache.getInstance().getClass(classLoader, () -> {
1924+
MethodDataList methods = dexkit.findMethod(FindMethod.create().matcher(MethodMatcher.create().addUsingNumber(8126).addUsingNumber(11917)));
1925+
if (methods.isEmpty())
1926+
throw new Exception("Refresh Status Class Not Found!");
1927+
return methods.get(0).getClassInstance(classLoader);
1928+
});
19231929
}
19241930

19251931
public static Method loadTcTokenMethod(ClassLoader classLoader) throws Exception {

0 commit comments

Comments
 (0)