What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Change the Pixel 2’s Active Edge Action with Button Mapper

danDroid

Administrator
Staff member
button-remapper-png.77989

Button Mapper has been updated with a work-around that will let you change it, though it’s not as simple as just installing an app and tapping on a couple of things. Instead, you have some work to do, including a bit in adb.

Check out the video below or continue reading @ Droid-Life

 

Attachments

  • button-remapper.webp
    button-remapper.webp
    6.2 KB · Views: 2,337
Here's the complete step by step from the guys at XDA:

  1. Open the Button Mapper application. Read through the setup pages as they explain what Button Mapper can and cannot do.
  2. At the bottom, you should see a tiny bar (called a snackbar) which asks you to enable Button Mapper’s Accessibility Service. Tap Go and it will take you to the Accessibility Service page for Button Mapper.
  3. Enable Button Mapper’s Accessibility Service.
  4. You should automatically be returned to the Button Mapper app. Under the Buttons header you should see an option for Active Edge. Select it.
  5. Tap Customize.
  6. The app will ask you to connect your phone to your computer and run a script. In order to do this, we need to setup the Android Debug Bridge.
  7. If you haven’t already, go to Settings –> System –> About Phone and tap on the “Build Number” 7 times. You’ll see a pop-up telling you that you are now a developer.
  8. Go back and in Settings –> System there should now be a Developer Options category. Enter this—it may ask for your pin/password.
  9. Scroll down and find USB Debugging. Enable it.
  10. Follow the steps in this previous tutorial to set up ADB on your particular computer’s operating system (you can skip the “Phone Setup” part since you’ve already enabled USB Debugging).
  11. Open up a command prompt or terminal (depending on your OS) and enter the following command: adb shell sh/data/data/flar2.homebutton/keyevent.sh
  12. This will run a short script which will grant the Button Mapper application android.permission.READ_LOGS. It needs this permission to read system logs, which we will explain why in further detail below. You’ll only ever have to grant this permission once unless you uninstall the app or factory reset your phone.
  13. Button Mapper will ask you to restart the application. Tap the button to let it restart the app.
  14. Once you’re back in the app, tap on “Active Edge” again under the Buttons header. You can now select Customize and choose the action you want! Congrats, you’ve now remapped the Google Pixel 2 squeeze feature!
 
Back
Top