hooli
The projects advice is to avoid using adb as it opens a big security hole.
If you want to display your Pixel 9 screen on a bigger screen, rather than using SCRCPY, can use dp-alt output from the usb port.
AFAIK the ability for phones to fire alarms when switched off is limited to some Qualcomm chipsets.