FORUMS

Ai button remapping?

32 posts
Thanks Meter: 1
 
By x1vietnguyen, Member on 20th November 2018, 02:04 PM
Post Reply Email Thread
Is it possible to change what the Ai button does? saw it mentioned in someones video before
20th November 2018, 08:55 PM |#2  
Member
Thanks Meter: 0
 
More
As of right now no.
20th November 2018, 11:35 PM |#3  
AndroPlus's Avatar
Senior Member
Flag Kyoto
Thanks Meter: 4,010
 
Donate to Me
More
Currently only root users can do it by replacing keylayout
https://github.com/TadiT7/xiaomi_per...io-keys.kl#L32
21st November 2018, 12:40 AM |#4  
Senior Member
Thanks Meter: 12
 
More
I've been looking for an answer to this.. I downloaded a couple of button remappers but there is no option to change this as far as I know... Someone please prove me wrong. This thing would be awesome with Ok Google launching instead of that Xiaoai...
The Following User Says Thank You to tacopicante123 For This Useful Post: [ View ] Gift tacopicante123 Ad-Free
21st November 2018, 12:54 AM |#5  
Senior Member
Thanks Meter: 128
 
More
Quote:
Originally Posted by AndroPlus

Currently only root users can do it by replacing keylayout
https://github.com/TadiT7/xiaomi_per...io-keys.kl#L32

(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
Enable Service
Press "+" to assign new key
Press the AI button
Check longpress "0.25 sec"
Action-Other...
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)
The Following 2 Users Say Thank You to xreactx For This Useful Post: [ View ] Gift xreactx Ad-Free
21st November 2018, 01:47 AM |#6  
AndroPlus's Avatar
Senior Member
Flag Kyoto
Thanks Meter: 4,010
 
Donate to Me
More
Quote:
Originally Posted by xreactx

replace it with what?

Maybe CAMERA or something, then you should be able to remap even other functions with this app.
https://play.google.com/store/apps/d...remapper&hl=en
Currently I'm on GSI and can't test right now, though.
The Following User Says Thank You to AndroPlus For This Useful Post: [ View ] Gift AndroPlus Ad-Free
21st November 2018, 02:07 AM |#7  
Senior Member
Thanks Meter: 128
 
More
Quote:
Originally Posted by AndroPlus

Maybe CAMERA or something, then you should be able to remap even other functions with this app.
https://play.google.com/store/apps/d...remapper&hl=en
Currently I'm on GSI and can't test right now, though.

No worries, i figured it out. I edited my original question with the solution (see above).
21st November 2018, 10:46 AM |#8  
nukeclears's Avatar
Member
Thanks Meter: 84
 
Donate to Me
More
Disabling the Mi AI gives options in English including the Google assistant. I assume this is what the global rom will have. However none of the options work right now.

https://postimg.cc/QFwysLnR

https://postimg.cc/mc78sP9H

https://postimg.cc/phxkXPQ1
The Following User Says Thank You to nukeclears For This Useful Post: [ View ] Gift nukeclears Ad-Free
28th November 2018, 05:01 AM |#9  
Senior Member
Thanks Meter: 12
 
More
I really don't wanna root my phone for this.. Guess we'll have to wait until the Global rom can be flashed to our Chinese devices.. Good find guys!
2nd December 2018, 08:18 AM |#10  
souless poet's Avatar
Senior Member
Thanks Meter: 59
 
More
Quote:
Originally Posted by xreactx

(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
Enable Service
Press "+" to assign new key
Press the AI button
Check longpress "0.25 sec"
Action-Other...
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)


So when I do this and I try to add the button I get unknown (0)

Any thoughts?
2nd December 2018, 05:53 PM |#11  
Senior Member
Thanks Meter: 128
 
More
Quote:
Originally Posted by souless poet

So when I do this and I try to add the button I get unknown (0)

Any thoughts?

I get "Key 0" and assign it to open an app "voice search."
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes