Android Authority: Edge Sense Plus makes the HTC U11 a shortcut machine
XDA-Developers: Edge Sense Plus for HTC U11 Quick Look: Get More Out of Every Squeeze
What is Edge Sense Plus?
Edge Sense Plus was initially just meant for the HTC U series. It let's you customize the squeeze action and adds some more squeeze gestures and features.
But with the Pixel2 also coming with a squeezable frame I had the goal to make it compatible with it too.
..and after a couple of days debugging with @k4r70ng (I don't own the device, big thanks to him, was a great help) we are here now!
You must be on at least Oreo 8.1.
You need to be rooted with magisk to use it.
Install the magisk module and the EdgeSensePlus.apk from the 3rd post and you are ready to go!
How does it work
To make it working on the Pixel2 I had to modify the SystemUIGoogle.apk that runs the ElmyraService (Service that processes the squeeze gestures).
I intercept the events and pass them to the EdgeSensePlus Application that starts the appropriate action then that you selected.
Some more adjustments were made, so the squeezing also works when you are in immersive mode, camera or when Google Assistant is deactivated/uninstalled.