Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
加个提示,不然有人说卡死了
Browse files Browse the repository at this point in the history
  • Loading branch information
lliioollcn committed Sep 5, 2022
1 parent 0b8901d commit e2e439d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/cn/lliiooll/pphelper/hook/RemoveADHook.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ object RemoveADHook : BaseHook("remove_ad", "去广告") {
override fun beforeHookedMethod(param: MethodHookParam?) {
val what: Int = param?.args?.get(0) as Int
if (what == 29) {
PLog.log("空信道消息: 29")
param.args[1] = 1000L
PLog.log("空信道消息: " + what)
param.args[1] = 10L
}
}
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cn.lliiooll.pphelper.startup;

import android.content.Context;
import android.widget.Toast;
import cn.lliiooll.pphelper.config.ConfigManager;
import cn.lliiooll.pphelper.hook.Hooks;
import cn.lliiooll.pphelper.lifecycle.Parasitics;
Expand Down Expand Up @@ -30,6 +31,7 @@ public class StartupHook {
*/
public static void init(Object instance, ClassLoader xposedClassLoader) throws Throwable {
injectClassLoader(instance, xposedClassLoader);
Toast.makeText(Utils.getApplication(),"正在寻找被混淆的类...",Toast.LENGTH_LONG).show();
DexKit.init();
Parasitics.injectModuleResources(Utils.getApplication().getResources());
Parasitics.initForStubActivity(Utils.getApplication());
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/java/cn/lliiooll/pphelper/utils/DexKit.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package cn.lliiooll.pphelper.utils;


import android.widget.Toast;

import java.lang.reflect.Method;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
Expand Down Expand Up @@ -56,6 +58,7 @@ public static void cache(String result) {
PLog.log("未找到合适的类: \n" + Arrays.toString(tokens.toArray()));
}
});
Toast.makeText(Utils.getApplication(),"加载完毕",Toast.LENGTH_LONG).show();
}

public static String doFilter(String key, List<String> classes) {
Expand Down

0 comments on commit e2e439d

Please sign in to comment.