Google Assistant button call on Xiaomi: a complete guide with nuances

Are you tired of saying β€œOK, Google” every time you go to the screen to activate your voice assistant? On Xiaomi smartphones (including Redmi and POCO), there’s a hidden option to tie a Google Assistant call to a physical button β€” like a power button or volume control. However, standard MIUI settings often limit this feature, prioritizing native Xiao AI assistant.

In this article, we’ll look at all the working ways to set up a quick Google Assistant button call, from official methods for global firmware to workarounds for Chinese versions of MIUI. You’ll learn which models support the out-of-the-box function, how to bypass locking through ADB, and why some devices will have to use third-party apps. And a unique lifehack for Xiaomi owners with NFC, which allows you to launch the Assistant with a single touch of the tag.

Why does Xiaomi not have a default button for Google Assistant?

The reason lies in the policy of Xiaomi and the features of the MIUI firmware:

  • πŸ“± Xiaomi is actively promoting its own voice assistant Xiao AI (In China, integrated services are also available, so the direct button for Google Assistant is often blocked.
  • 🌍 Regional restrictions: On global firmware (MIUI Global feature may be available, but in Chinese (MIUI China or European (MIUI EEU) β€” absent.
  • πŸ”’ Android Restrictions: Starting with Android 10, Google has tightened the rules for manufacturers by banning the overriding of power/volume buttons without user permission.

Interestingly, even on the same device (e.g. Xiaomi 13 Pro), behavior can vary depending on the firmware version, so in MIUI 14 for the global version of the power button, the default calls Xiao AI, and in the European version, it can be free to customize.

πŸ“Š What a firmware MIUI You're using it?
MIUI Global
MIUI China
MIUI EEU (Europe)
LineageOS (Pixel Experience)
I don't know.

Official method: customization via menu (for supported models)

If your Xiaomi smartphone is a global smartphone (like the Redmi Note 12 Pro+ 5G or POCO F5), try the standard method:

  1. Open Settings β†’ Special Opportunities β†’ Power button.
  2. Select Long Press or Double Press (depending on the model).
  3. In the action list, look for Google Assistant (or Voice Match).
  4. Save the settings and check the work.

⚠️ Note: This item may not be available on Chinese firmware, and on some devices (e.g. Xiaomi) 12T) Google Assistant will be offered only Xiao AI or Mi Assistant.

β˜‘οΈ Checking before setting up

Done: 0 / 4

Method for Chinese firmware: ADB-commands

If the menu doesn’t have an option for Google Assistant, you’ll need to use USB debugging (ADB), which works on most Android 9 and newer devices, but requires a computer.

Instructions:

  1. Turn on Developer Mode: Go to Settings β†’ About Phone and click on MIUI Version 7 times.
  2. Return to Settings β†’ Additional β†’ For developers and activate Debugging over USB.
  3. Connect your phone to your PC, install ADB drivers (for example, via Mi PC Suite) and execute the command:
adb shell settings put secure assistant "com.google.android.googlequicksearchbox/com.google.android.apps.gsa.staticplugins.opa.OpaActivity"

Once you have completed the command, restart the device. Now, a long press of the power button should start Google Assistant.

What to do if ADB is not working?
If the command returns the error "permission denied", try adding the flag --user 0: adb shell settings --user 0 put secure assistant "com.google.android.googlequicksearchbox/..." If this does not work, check if the antivirus (e.g. Mi Security) does not block changes to system settings.

Alternative methods: third-party applications and NFC

If none of the above methods worked, consider these options:

  • πŸ”§ Button Mapper: Allows you to reassign actions for volume buttons, power and even touch gestures. Supports Google Assistant launch, but requires ADB to unlock the full functionality.
  • πŸ“± Tasker + AutoInput: Create a task that emulates clicking on the Google Assistant icon when holding the button.
  • πŸ”„ NFC-Labels: Write down the Assistant's launch command (via NFC Tools) and attach it to the back of the phone, and now you just have to put your finger on the tag to activate the assistant.

⚠️ Note: Apps like Button Mapper may conflict with system services MIUI, Especially on Chinese firmware. Make a backup copy of the data before using it!

πŸ’‘

If you use Google Assistant frequently in your car, set it to run by voice via Android Auto. In Android Auto settings, activate the β€œOK Google” option when you connect to the radio.

Comparison of methods: which one to choose?

MethodDifficultyPC requiredWorks for MIUI ChinaStability
Official settings⭐❌ No.❌ No.βœ… Tall.
ADB-teamβ­β­βœ… Yes.βœ… Yes.βœ… Medium
Button Mapper⭐⭐⭐❌ No, but you need rights. ADB)βœ… Yes.⚠️ Low (may be dropped)
Tasker + AutoInput⭐⭐⭐⭐❌ No.βœ… Yes.βœ… High (with proper settings)
NFC-marker⭐⭐❌ No.βœ… Yes.βœ… Tall.

For most users, the best solution is ADB-It's universal, and it doesn't require third-party apps. If you don't want to mess with commands, try it. NFC-The tag (if your Xiaomi supports) NFC) Or Button Mapper.

Frequent problems and their solutions

Even after you've set up successfully, you may encounter bugs.

  • πŸ”• Button not responding: Check if the setting is in conflict with gestures MIUI (For example, double taps to wake up. Turn them off temporarily.
  • πŸ”Š Xiao is launched AI Google Assistant: Remove or freeze the Xiao app AI through ADB: adb shell pm uninstall --user 0 com.miui.voiceassist
  • πŸ”„ Settings are reset after the update: This is typical for MIUI. After the update, repeat the setting through ADB.

If Google Assistant is running but does not respond to voice commands, check:

  1. Is Voice Match enabled in the Assistant settings?
  2. Have you allowed the app to access the microphone (Settings β†’ Apps β†’ Permissions)?
  3. Is not activated mode Do not disturb or save charge?

πŸ’‘

On Android 12+ and MIUI 13/14 devices, you may need to further disable battery optimization for Google Assistant, otherwise it will close in the background.

Security and confidentiality

When setting up a Google Assistant call with a button, consider the risks:

  • πŸ”“ ADB-Access: Debugging by USB Opens up potential vulnerabilities. Once set up, turn it off in Settings. β†’ For developers.
  • 🎀 Persistent voice recording: Google Assistant may be activated by accident (e.g. in your pocket.
  • πŸ“± Third-party apps: Button Mapper and peers request accessibility service permissions, which theoretically allows them to intercept input.

⚠️ Attention: On Chinese firmware (MIUI China: Some system applications (e.g. Mi Security) can block changes made through the ADB. If the settings are reset after the reboot, try disabling Mi Protect in the security settings.

Can I set up a Google Assistant call to the volume button?
Yes, but only through third-party apps like Button Mapper or Tasker, and standard MIUI settings don't allow volume buttons to be reassigned to the assistant, and this can interfere with the sound adjustments during calls.
Why did the MIUI button link stop working after the MIUI update?
Xiaomi often resets custom button settings after major updates.You need to re-execute ADB-command or reconfigure the application (if you used Button Mapper). β†’ Special facilities.
Does this work on the POCO F6 Pro?
Yes, the POCO F6 Pro (like other MIUI-based models) supports customization via ADB or the official menu if you have global firmware. The Chinese version (MIUI China) will likely require ADB or third-party software.
Can I link the button to another voice assistant (like Alice or Siri)?
Technically yes, but with reservations: For Alice from Yandex, you can use Tasker with the AutoVoice plugin, but the functionality will be limited. Siri on Android is not officially supported, but you can emulate the launch via Shortcuts (requires an iPhone on the same network).
How to unplug the button if it interferes?
Cancellation options depend on the method of setting: If you used the official menu: go back to Settings β†’ Special features β†’ Power button and select No action. If you used ADB, follow the command: adb shell settings secure delete assistant For Button Mapper: open the application and reset the button settings.