I'm pissed off that Android took over the power button to activate their AI agent bullshit.
Google, not Android.
I assure you, the Android Open Source Project made no such change.
I've recently switched to grapheneos. I have a high tolerance for shit not working, but its been fine.
Search your settings for Power Button, Side Button, or whatever. You should be able to change the setting for a long press.