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