Skip to content

About

Turn the Motorola AI Key into a dedicated Ring/Vibrate toggle, just like an Alert Slider.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Repository files navigation

MotoButtonRemap

A tiny Android utility that toggles the phone's ringer mode between Ring and Vibrate with a single tap.

The app is designed to be assigned to the Motorola AI Key, allowing the hardware button to function as a dedicated Ring/Vibrate switch.

Features

  • 🔄 Toggle between Ring and Vibrate modes.
  • 📳 Distinct haptic feedback for each mode.
  • 💬 Displays a toast indicating the active mode.
  • ⚡ Opens, performs the action, and exits immediately.
  • 🎯 Ideal for mapping to the Motorola AI Key.

Requirements

  • Android 13 (API 33) or later.
  • Notification Policy Access (Do Not Disturb access) must be granted.

Why is Notification Policy Access required?

Android restricts applications from changing the device's ringer mode unless they have Notification Policy Access.

On the first launch, the app will prompt you to grant this permission. Once granted, subsequent launches will toggle the ringer mode immediately.

Installation

  1. Download and install the latest APK from the Releases page.
  2. Open the app once.
  3. Grant Notification Policy Access when prompted.
  4. (Optional) Launch the app again to verify it toggles between Ring and Vibrate.
    1. Follow the XDA Forums guide to enable launching any app from the Motorola AI Key using Activity Launcher: Hidden Ability to Remap the AI Key (XDA Forums). Then assign MotoButtonRemap to the AI Key.
  5. Enjoy your new Alert Slider-style hardware Ring/Vibrate toggle.

Usage

Simply launch the app.

The app will:

  • Toggle Ring → Vibrate or Vibrate → Ring
  • Provide haptic confirmation
  • Show a short toast
  • Exit automatically

Building

Open the project in Android Studio and build normally.

./gradlew assembleDebug

or

./gradlew assembleRelease

Permissions

Permission Purpose
ACCESS_NOTIFICATION_POLICY Allows changing the device ringer mode.
VIBRATE Provides haptic confirmation after switching modes.

Limitations

  • Only supports toggling between Ring and Vibrate.
  • If the phone is already in Silent mode, the app leaves it unchanged.
  • Designed primarily for Motorola devices with the AI Key, but can be launched from anywhere.

License

This project is licensed under the MIT License.

About

Turn the Motorola AI Key into a dedicated Ring/Vibrate toggle, just like an Alert Slider.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages