| 141 | } |
| 142 | |
| 143 | public static void hookAfterAlways(final @NonNull CommonDynamicHook this0, final @NonNull Method method, |
| 144 | int priority, final @NonNull AfterHookedMethod afterHookedMethod) { |
| 145 | Objects.requireNonNull(this0, "this0 == null"); |
| 146 | Objects.requireNonNull(method, "method == null"); |
| 147 | XposedBridge.hookMethod(method, new XC_MethodHook(priority) { |
| 148 | @Override |
| 149 | protected void afterHookedMethod(MethodHookParam param) throws Throwable { |
| 150 | try { |
| 151 | afterHookedMethod.afterHookedMethod(param); |
| 152 | } catch (Throwable e) { |
| 153 | this0.logError(e); |
| 154 | throw e; |
| 155 | } |
| 156 | } |
| 157 | }); |
| 158 | } |
| 159 | |
| 160 | public static void hookAfterAlways(final @NonNull CommonDynamicHook this0, final @NonNull Constructor<?> ctor, |
| 161 | int priority, final @NonNull AfterHookedMethod afterHookedMethod) { |