Remap Active Edge on the Pixel 2 or Pixel 2 XL

Here are detailed steps to remap the Active Edge on the Google Pixel 2 or Pixel 2 XL. The squeeze action can be remapped to almost anything using this method. If your phone is rooted, all you need to do is install Button Mapper. If your phone is not rooted, there is a one-time setup, but it’s easy and only takes a few minutes if you follow these steps.

1. Install Button Mapper from the Play Store and follow the directions to enable the Accessibility service

2. Download adb and Install on your PC

3. Enable USB Debugging Mode on your phone. Go to System Settings and type “Build number” in the searchbar. Select “Build number” from the list, then tap it seven times to enable Developer Options. Go to Settings->System->Developer Options. In Developer Options, enable USB debugging.

4. Connect your phone to your PC with the USB cable. A dialog will pop up when the phone connects to the PC, be sure to allow USB Debugging

5. On your phone, open Button Mapper, select “Active Edge” and then tap “Customize.” A dialog will pop up asking to enable permissions.

6. On your PC, open a command prompt (or PowerShell) and type the following exactly:

adb shell sh /data/data/flar2.homebutton/keyevent.sh

7. Back on your phone, close the dialog and click on Customize again. This time it will restart Button Mapper and Active Edge remapping will be enabled.

Now you can remap the squeeze function to whatever you want. I have mine remapped to toggle the flashlight. The best thing is this works with the screen off or the screen on. Unfortunately, the Assistant may still pop up once in a while, but I rarely see it. If you use the root method, everything is seamless.