Remap Pixel 4 Motion Gestures Without Root
In this article
This guide shows you how to remap the Motion Sense gestures on your Pixel 4 or Pixel 4 XL without rooting the device. You'll be able to change what happens when you wave your hand over the phone, such as skipping tracks, snoozing alarms, or silencing calls. We'll use a combination of built-in settings and a free app called MacroDroid, which works via accessibility services rather than root. Before starting, make sure your Pixel 4 is running Android 11 or later (these steps work on Android 12 and 13 too). You'll also need to enable Developer Options and USB debugging for one part of the process, but no root is required.
What You'll Need
- A Pixel 4 or Pixel 4 XL (Motion Sense is not on other Pixel models)
- Android 11 or newer
- The MacroDroid app (free from the Play Store)
- A USB cable and a computer (for ADB commands, but only if you want to disable the default gesture actions)
- Patience and about 15 minutes
Step-by-Step
- Enable Developer Options (if you haven't already): Go to Settings > About phone and tap Build number seven times. You'll see a message that you're now a developer.
- Enable USB debugging: Go to Settings > System > Developer options and toggle on USB debugging. This is needed only if you want to disable the default Motion Sense gestures later.
- Install MacroDroid: Download MacroDroid from the Play Store. Open it and grant the accessibility permission when prompted. This is essential for the app to detect the Motion Sense events.
- Create a new macro: In MacroDroid, tap the Add Macro button (the plus icon). Name it something like "Motion Sense - Skip Track".
- Set the trigger: Tap Triggers and then Sensor. Scroll down and select Motion Sense. You'll see options for Swipe Left, Swipe Right, and Swipe Up (or similar). Choose the gesture you want to remap. For example, if you want to remap the "skip track" gesture, select Swipe Left (or whichever you prefer).
- Set the action: Tap Actions and then Media. Choose what you want the gesture to do. For example, if you want it to play/pause, select Play/Pause. If you want it to skip to the next track, select Next Track. You can also use Volume Up or Volume Down under Volume.
- Save the macro: Tap the checkmark to save. The macro is now active. Test it by waving your hand over the top of the phone (where the Motion Sense sensor is).
- Disable the default gesture actions (optional but recommended): The default Motion Sense gestures will still work, which can cause conflicts. To disable them, you need to use ADB commands. Connect your phone to your computer, open a command prompt/terminal, and run the following commands (one at a time):
Note: These commands may vary depending on your Android version. If they don't work, search for "disable Motion Sense gestures ADB" for your specific version.adb shell cmd uimode night yes adb shell settings put secure skip_gesture 0 adb shell settings put secure silence_gesture 0 adb shell settings put secure snooze_gesture 0 - Test and adjust: After disabling the defaults, test your remapped gestures. If they don't work, go back to MacroDroid and check that the trigger is set correctly and that the accessibility service is enabled.
Common Mistakes
- Not granting accessibility permission: MacroDroid won't detect Motion Sense without it. Double-check in Settings > Accessibility that MacroDroid is toggled on.
- Using the wrong trigger: Make sure you select the correct gesture (e.g., "Swipe Left" vs "Swipe Right"). If you're not sure which is which, test each one.
- Not disabling the default gestures: If you don't disable them, the phone will do both the default action and your custom action, which can be confusing.
- Running ADB commands incorrectly: If you get an error, make sure USB debugging is enabled and that you've accepted the RSA fingerprint prompt on your phone.
- Expecting it to work on other Pixel models: Motion Sense is hardware-specific to the Pixel 4 series. It won't work on Pixel 5 or later.
Tips
- Use different gestures for different actions: You can create separate macros for each gesture (swipe left, swipe right, swipe up) to control different apps or functions.
- Combine with other triggers: In MacroDroid, you can add additional conditions, like only when the screen is on or when a specific app is open. This makes the gesture more context-aware.
- Test with your case off: Some thick cases can block the Motion Sense sensor. If gestures aren't working, remove the case and try again.
- Use the "Test" button in MacroDroid: Before saving, you can test the action directly from the app to ensure it does what you want.
- Keep your hand within the sensor area: The sensor is at the top of the phone, just above the screen. Waving your hand too far away or too low won't trigger it.
Troubleshooting
Gestures not triggering at all: First, make sure Motion Sense is enabled in Settings > System > Motion Sense. If it's off, turn it on. Also, ensure MacroDroid's accessibility service is enabled. If it still doesn't work, restart your phone and try again.
Gestures trigger but do the default action instead of your custom one: This means the default gestures are still active. You need to disable them via ADB as described in Step 8. If the ADB commands don't work, search for the correct commands for your Android version, or consider using a different app like Tasker with the Motion Sense plugin (requires root, so avoid that).
MacroDroid crashes when setting up the trigger: This can happen if the app isn't updated. Go to the Play Store and check for updates. If it persists, clear the app's cache in Settings > Apps > MacroDroid > Storage > Clear Cache.
ADB says "device not found": Make sure you've installed the appropriate USB drivers for your Pixel. On Windows, you may need to install Google USB Driver. Also, ensure that USB debugging is enabled and that you've authorized the computer when prompted.
The gesture works but is too sensitive or not sensitive enough: You can adjust the sensitivity of Motion Sense in Settings > System > Motion Sense. There's a slider for sensitivity. Try moving it to a different level.
Frequently Asked Questions
Q: Do I need root for this to work?
A: No, this method uses MacroDroid's accessibility service, which doesn't require root. The ADB commands are also non-root.
Q: Will this drain my battery?
A: MacroDroid runs in the background, but it's lightweight. The Motion Sense sensor is always listening anyway, so the battery impact is minimal. You can check battery usage in Settings to monitor it.
Q: Can I remap the "silence calls" gesture to something else?
A: Yes, you can remap any of the three available gestures (swipe left, right, up) to any action MacroDroid supports. Just create a macro with the trigger set to that gesture.
Q: Will this work on Android 14?
A: As of this writing, Android 14 is not officially released for Pixel 4, but the steps should work on any Android version that supports Motion Sense and accessibility services. If you're on a beta, it might still work.
Q: Can I use Tasker instead of MacroDroid?
A: Yes, Tasker can also detect Motion Sense events, but it requires the AutoInput plugin and may be more complex. MacroDroid is simpler for this purpose.
Q: What if I want to revert to the default gestures?
A: Simply re-enable the gestures in Settings > System &em; Motion Sense (if you disabled them) and delete the macros from MacroDroid. If you used ADB to disable, you can re-enable by running the commands with a '1' instead of '0' (e.g., adb shell settings put secure skip_gesture 1).