|
20 | 20 |
|
21 | 21 | import com.hchen.hooktool.HCBase; |
22 | 22 | import com.hchen.hooktool.HCInit; |
23 | | -import com.sevtinge.hyperceiler.hook.XposedInit; |
24 | 23 | import com.sevtinge.hyperceiler.hook.module.base.dexkit.DexKit; |
25 | 24 | import com.sevtinge.hyperceiler.hook.module.base.tool.AppsTool; |
26 | 25 | import com.sevtinge.hyperceiler.hook.safe.CrashData; |
27 | | -import com.sevtinge.hyperceiler.hook.utils.ContextUtils; |
28 | | -import com.sevtinge.hyperceiler.hook.utils.api.ProjectApi; |
29 | 26 | import com.sevtinge.hyperceiler.hook.utils.log.XposedLogUtils; |
30 | 27 | import com.sevtinge.hyperceiler.hook.utils.prefs.PrefsMap; |
31 | 28 | import com.sevtinge.hyperceiler.hook.utils.prefs.PrefsUtils; |
@@ -56,17 +53,18 @@ public void init(LoadPackageParam lpparam) { |
56 | 53 | } |
57 | 54 | HCInit.initLoadPackageParam(lpparam); |
58 | 55 | // 把模块资源加载到目标应用 |
59 | | - try { |
60 | | - if (!ProjectApi.mAppModulePkg.equals(lpparam.packageName)) { |
61 | | - ContextUtils.getWaitContext(context -> { |
62 | | - if (context != null) { |
63 | | - XposedInit.mResHook.loadModuleRes(context); |
64 | | - } |
65 | | - }, "android".equals(lpparam.packageName)); |
66 | | - } |
67 | | - } catch (Throwable e) { |
68 | | - XposedLogUtils.logE(TAG, "get context failed!" + e); |
69 | | - } |
| 56 | + // 不需要了 |
| 57 | + // try { |
| 58 | + // if (!ProjectApi.mAppModulePkg.equals(lpparam.packageName)) { |
| 59 | + // ContextUtils.getWaitContext(context -> { |
| 60 | + // if (context != null) { |
| 61 | + // XposedInit.mResHook.loadModuleRes(context); |
| 62 | + // } |
| 63 | + // }, "android".equals(lpparam.packageName)); |
| 64 | + // } |
| 65 | + // } catch (Throwable e) { |
| 66 | + // XposedLogUtils.logE(TAG, "get context failed!" + e); |
| 67 | + // } |
70 | 68 |
|
71 | 69 | mLoadPackageParam = lpparam; |
72 | 70 | DexKit.ready(lpparam, TAG); |
|
0 commit comments