@Override
            public void runSafety() {
                installRecentTasksCallback0(atm, classLoader);
            }
We use this hook to listen for task add and removal.
android/android_framework/patch-magisk/patch-framework/src/main/java/github/tornaco/thanox/android/server/patch/framework/hooks/wm/RecentTaskHooks.java