Exploring the Principles of Android WatchDog
1. Starting the WatchDog The WatchDog is created and started in the startBootstrapServices() method of the SystemServer process. //[frameworks/base/services/java/com/android/server/SystemServer.java]public final class SystemServer implements Dumpable { private void startBootstrapServices(@NonNull TimingsTraceAndSlog t) { t.traceBegin(“startBootstrapServices”); // Start the watchdog as early as possible so we can crash the system server // if we deadlock during early boot t.traceBegin(“StartWatchdog”); … Read more