Skip to content
/ Fishnet Public

An Android library that dumps Java and native crashes

License

Notifications You must be signed in to change notification settings

Kyant0/Fishnet

Repository files navigation

Fishnet

Fishnet is an Android library that dumps Java and native crashes, format of the log file is almost the same as the one generated by Android.

Compatibility

  • Architectures: arm64-v8a, armeabi-v7a, x86, x86_64, risc-v64
  • Android: 5.0 and above
  • Log types: Native, Java, ANR

Additional abort message detection

Usage

  1. Download the aar and include it in your project.

  2. In your Application class, add the following code,

import com.kyant.fishnet.Fishnet

class App : Application() {
    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        val logPath = File(filesDir, "logs").apply { mkdirs() }.absolutePath
        Fishnet.init(this, logPath)
    }
}
  1. Run application and make a testing crash, the log file will be generated in the path you specified.

Demo

See the app module, the pre-built APK can be found in the GitHub releases.

Example logs

TBD

Build

Clone the repository

git clone https://github.com/Kyant0/Fishnet.git
cd Fishnet
git submodule init
git submodule update

git apply fishnet_external.patch

Submodule maintain info

Repository Link Update time
art art 2024 Nov 25 21:04:05
libartbase 2024 Nov 22 16:37:17
libartpalette 2024 Aug 29 12:15:41
libdexfile 2024 Nov 18 10:53:22
system/libbase system/libbase 2024 Nov 07 20:40:11
system/libprocinfo system/libprocinfo 2024 Aug 14 22:08:40
system/libziparchive system/libziparchive 2024 Jun 04 23:06:47
system/logging system/logging 2024 Sep 16 16:54:16
liblog 2024 Sep 11 14:28:59
system/unwinding system/unwinding 2024 Sep 12 14:09:02 -0700
libunwindstack 2024 Sep 12 14:09:02 -0700
external/lzma external/lzma 2024 Sep 09 13:20:46
external/zstd external/zstd 2024 Jul 11 02:24:39