XDA-Developers: Customize the Google Pixel 2’s Active Edge to do any action with Edge Sense Plus [XDA Spotlight]
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 have to be on Oreo 8.1 or Android P.
- You need to run a STOCK based ROM, because Active Edge is broken on AOSP roms.
- You need to be rooted with magisk to use it.
- Install the Active Edge System Mod Magisk Module from the MagiskManager Repo and the EdgeSensePlus from the playstore 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.