How to change Pixel 2 and Pixel 2 XL squeeze/active edge action

pixel 2 active edge remap

The Google Pixel 2 and the Pixel 2 XL have a cool new feature called Active Edge. This feature allows you to squeeze the sides of the phone to invoke Google Assistant. And according to users, this is the fastest way to launch the assistant.

Unfortunately, in its stock form, the squeeze action doesn’t let you do anything more than launching the Assistant. Enter Button Mapper, an app that lets you remap Active Edge to launch apps and more. And in this post, we will tell you how exactly to remap the Active Edge to do a lot more than it is intended to do.

How to change Pixel 2 / 2 XL squeeze action

To begin with, you will need to enable USB Debugging on your Pixel 2 / 2 XL. To do this, first tap 7 times on Build Number, which is shown in Settings > System > About Phone. This should enable Developer Options, and that is where you will find the USB Debugging option. Enable this and connect your phone to the PC so it can install the necessary drivers. Let’s begin!

  1. Download Button Mapper from the Play Store.
  2. Launch the app, and once Setup process is complete, tap on the bar at the bottom of the App. This will ask to enable Accessibility Service for Button Mapper. Tap on Go and it should take you to the Accessibility page in the Settings app. Give access to Button Mapper and you should now be taken back to the app.
  3. Under Buttons option, you will see the Active Edge feature. Select this and tap on Customize.
  4. Now, you will need to connect your Pixel 2 device to the PC. The App will ask you to do so and enter the following command in Command Prompt or Terminal.
    adb shell sh/data/data/flar2.homebutton/keyevent.sh
  5. The Button Mapper app will now get the necessary permission to map the Active Edge to whatever you like. This is a one time only setup.
  6. The app will now ask to be restarted, select Okay and let it restart.
  7. After restarting, you can select Active Edge and customize it to take screenshots, turn on flashlight, open an App, and much more.

That’s about it! You have successfully remapped the Active Edge/Squeeze action on your Pixel 2 or Pixel 2 XL.

However, this is not really perfect as it seems. As in, when you squeeze the edges on the device, it will still launch Google Assistant, but Button Mapper will immediately switch to your customized option. This transition is fast enough that you won’t really notice Assistant popping up, but sometimes you could catch it. Try it out and let us know what you think, and if you like it!

  • 672 Posts
  • 0 Comments
Loves tech, cars, motorbikes, travelling and cranberry juice. Doesn't hate anything, neutral during an iOS vs Android or iPhone vs other Android phone battle. Email: sid@theandroidsoul.com

We’re hiring writers from India! Apply here.