Android tricks using ADB
Processes and apps
List installed applications
adb shell pm list packages
Get application PID
adb shell pidof -s com.application.name
Logs for given PID
adb logcat --pid=8064
Screenshots
adb exec-out screencap -p > "$(date).png"
ADB as root
LineageOS provides Rooted Debugging in Developper Options.

Once enabled you can start ADB in root mode.
adb root
# ADB restarts
adb shell
Remote control
With SCRCPY you just need ADB (USB or WLAN) to remote-control your Android device from your PC.