Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.64 KB

README.md

File metadata and controls

61 lines (42 loc) · 1.64 KB

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