I captured logcat with this command on Termux:
su system -c logcat |grep getRecentTasks |head -n 10 >/storage/emulated/0/logcat.log
10-05 11:15:06.609 3138 3477 E ActivityManagerWrapper: getRecentTasks: size=4
10-05 11:15:06.609 3138 3477 E ActivityManagerWrapper: getRecentTasks...