Android Crash

Android App 崩溃处理流程

Posted by LXG on January 6, 2020

理解Android Crash处理流程-gityuan

Process Start

runtime_init

Crash Init

crash_init


public class RuntimeInit {

    private static final void commonInit() {
        if (DEBUG) Slog.d(TAG, "Entered RuntimeInit!");

        /* set default handler; this applies to all threads in the VM */
        Thread.setDefaultUncaughtExceptionHandler(new UncaughtHandler());

    }

}

public class Thread implements Runnable {

    // null unless explicitly set
    private static volatile UncaughtExceptionHandler defaultUncaughtExceptionHandler;

}

Crash处理流程

crash_trace