Penner
Penner
> 虽然在 Proxy , Insert 中我们指定了方法名, 但识别方法必须要更细致的信息. 我们会直接使用 Hook 方法的修饰符,参数类型来匹配方法. 所以一定要保持 Hook 方法的 public/protected/private static 信息与目标方法一致,参数类型,返回类型与目标方法一致. 试试 @Proxy("onCreate") @TargetClass("androidx.appcompat.app.AppCompatActivity") protected void onCreate(Bundle savedInstanceState) { Log.e("aaa", "AppCompatActivity.onCreate"); Origin.callVoid(); }
view 是 android.jar 中的,试试 proxy。
目前依赖的 ASM 是 5.1 版本的,有兴趣可以自己升级提个 pr 看看。
> Hi, can you tell me which platform and which commit you are using? I tried it on my x86 Ubuntu20 with latest commit, it's fine: > > ```shell >...
``` #if defined(_WIN32) || defined(_WIN32_) || defined(__APPLE__) \ || defined(__MACH__) if (!option.target_abi) { LOG_VERBOSE("Set size level to 1 for Windows or MacOS AOT file"); option.size_level = 1; } #endif }...
> I don't know if Charlie and Fabrice intend to cherry-pick it but we fixed that in quickjs-ng almost a year ago to the day in commit [quickjs-ng/quickjs@5ce2957e](https://github.com/quickjs-ng/quickjs/commit/5ce2957e). thanks, I...
> Note that in normal cases you want to share the class ID between all the JSRuntimes so that they can easily communicate. In this case, locking is not needed...