Currently only root users can do it by replacing keylayout
Maybe CAMERA or something, then you should be able to remap even other functions with this app.
Currently I'm on GSI and can't test right now, though.
(Solved) I was able to remap the AI button by doing the following steps.
Prerequisite: Mi Mix 3 must be rooted!
1. Replace "AI" with "GOOGLE_ASSISTANT" in gpio-keys.kl#L32 (this is merely a place holder for the key, it may work by just removing "AI") using root-browser to navigate to the /system/usr/keylayout/ directory.
2. Uninstall MI AI through ADB shell "pm uninstall -k --user 0 com.miui.voiceassist".
3. Use BUTTON REMAPPER
Press "+" to assign new key
Press the AI button
Check longpress "0.25 sec"
Choose "Voice Search" (or any other app you want to the AI button to open)
4. Ensure the apps "Google" "Assistant" and "Button Mapper" can auto-start, modify system settings, and ignore battery optimizations.
5. Enjoy (at your own risk, it works for me)
|Thread Tools||Search this Thread|