刘志勇
刘志勇
`ANR`可以参考[https://github.com/bugsnag/bugsnag-android](https://github.com/bugsnag/bugsnag-android/tree/next/bugsnag-plugin-android-anr) 的实现. `SIGSEGV`信号如果是主线程抛出的,是不会回调Java层的`callNativeException`方法(JVM阻止了这种调用),同时在信号处理函数中不能调用 [non-async-signal-safe functions](https://man7.org/linux/man-pages/man7/signal-safety.7.html),但如果是子线程抛出这个信号,又可以回调到Java层,没有深入阅读过JVM的源码,所以不知道JVM是如何处理的 stackoverflow类似的问题[https://stackoverflow.com/questions/54203717/callback-into-java-android-application-code-from-jni-after-catching-signal-sigs](https://stackoverflow.com/questions/54203717/callback-into-java-android-application-code-from-jni-after-catching-signal-sigs) 因为大部分的代码肯定是在主线程中运行,所以是否应该在 `Native` 层直接创建一个子线程,或者使用`AIDL`的方式,用于监听和处理异常,回调Java层的方法.
> I have downloaded on Asahi Linux but every binary file gives me core dumped I have downloaded the file android-sdk-tools-static-aarch64.zip note the android aarch64 ≠ linux aarch64 This is...
please refer to [build-app](https://github.com/lzhiyong/termux-ndk/tree/master/build-app) readme
modify `protobuf/CMakeLists.txt` ```CMakeLists.txt # L298 # add android to include directory # as follows include_directories( ${ZLIB_INCLUDE_DIRECTORIES} ${protobuf_BINARY_DIR} ${protobuf_SOURCE_DIR}/src ${protobuf_SOURCE_DIR}/android) ```
This requires upstream support,I can't do anything.
This project has been suspended for maintenance and the code needs to be refactored.