Remap the AI button on the Xiaomi Mi 9 with a Magisk Module

The Xiaomi Mi 9 was launched in February 2019, featuring some killer specifications for the price it commands. This flagship from Xiaomi managed to impress my colleague Adam, who hailed it as a contender for the best value flagship for this year. With all the features that the phone packs, Xiaomi also blessed the device with a dedicated AI button to launch virtual assistants.

Xiaomi Mi 9 XDA Forums

If you aren’t a frequent virtual assistant user like me, you would find the dedicated button to be wasted hardware. While you can’t officially remap the button yet, XDA Member Serbinhio has made a Magisk module called Mi AI Button Remapper that lets you remap the functionality of the AI button and select from a few available options.

The module currently remaps only single press functionality. To use it, you need Magisk installed on your Mi 9. To reassign a new functionality, simply reinstall the module.

Mi AI Button Remapper XDA Thread

About author

Aamir Siddiqui

I am a tech journalist with XDA since 2015, while being a qualified business-litigation lawyer with experience in the field. A low-end smartphone purchase in 2011 brought me to the forums, and it's been a journey filled with custom ROMs ever since. When not fully dipped in smartphone news, I love traveling to places just to capture pictures of the sun setting. You can reach out to me at

Read This Next

Load more