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.
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:
- Open Settings β Special Opportunities β Power button.
- Select Long Press or Double Press (depending on the model).
- In the action list, look for Google Assistant (or Voice Match).
- 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
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:
- Turn on Developer Mode: Go to Settings β About Phone and click on MIUI Version 7 times.
- Return to Settings β Additional β For developers and activate Debugging over USB.
- 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?
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?
| Method | Difficulty | PC required | Works for MIUI China | Stability |
|---|---|---|---|---|
| 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:
- Is Voice Match enabled in the Assistant settings?
- Have you allowed the app to access the microphone (Settings β Apps β Permissions)?
- 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.