How to Remap Active Edge/Squeeze on the Google Pixel 2
By default, Active Edge only allows you to squeeze your phone to launch Google Assistant or silence incoming calls. Google hardcoded SystemUI to only allow squeeze to work when the current assistant app is set to Google Assistant. That means that developers would have to use a combination of an Accessibility Service and reading system logs in order to detect when the user squeezes their phone so they can hide Google Assistant and instead perform a user-defined action. That’s exactly what the latest update to Button Mapper by XDA Recognized Developer flar2 does.
In any case, the latest update to version 0.53 brings the ability to remap the squeeze function on the Google Pixel 2 and Pixel 2 XL. This particular feature will be available for free, though keep in mind that some of the other features in the app require a paid license.
See how to remap the functionality at http://bit.ly/2zu0Xqj