JNI HOOK

简介 JNI hook 是指: hook JNIEnv 提供的众多方法 正常来说,是没有这方面的需求的。但是,对于低版本的 Android 存在一些 JNI Local Reference 的溢出,超过 512 个便会触发 crash 所以,最好有一种

pthread 监听

简介 所谓的 native thread,其实就是只我们使用 c/c++ 做开发时,使用的 POSIX 标准的 pthread pthread 函数在 libc 中,而 Android 中使用的是 bionic libc(不是 GNU libc) pthread 常见方法 pthread_create pthread_join pthread_detach pthread_exit pthread_getattr_np

Accelerate C++ Chapter01

Exercises Exercise 1-1 Are the following definitions valid? Why or why not? const std::string hello = "Hello"; const std::string message = hello + ", world" + "!"; 编译正确。std::string 重写了 + 操作符 Exercise 1-2 Are the following definitions valid? Why or why not? const std::string exclam = "!"; const std::string message =

dex 和 mmap

​ 背景 最近依葫芦画瓢搞了一个 dex2oat 的优化实验,用于冷启动场景 全量编译的情况下,劣化 400ms,部分编译的情况下有大概 100ms(数据在逐渐缩小)

DebugInfo 复用

apk 包体积这块,因为网络传输速度不断提升和手机存储空间的不断提升,越来越有点不是那么重要了 主要最近一直有这方面的需求,所以研究了一下包体积相关