Any way to remap Bluetooth "call" button from Voice Dialer to Voice Search? (I'm on DanteROM.)

RazzMaTazz

Well-known member
Feb 16, 2011
245
17
0
Any way to remap Bluetooth "call" button from Voice Dialer to Voice Search? (I'm on DanteROM.)

When I push the "call" button on any of my Bluetooth headsets, it launches the phone's Voice Dialer. I find Voice Dialer almost worthless because it usually misunderstands me and dials the wrong number (and it doesn't accept commands like Google Voice Search). Is there any way to remap the "call" button to launch Google Voice Search?
 
Re: Any way to remap Bluetooth "call" button from Voice Dialer to Voice Search? (I'm on DanteROM.)

Well... the basic keycode mapping is found in /system/usr/keylayout/thunderc_keypad.kl - 216 is the Voice Dialer and 226 is the Headset Hook (main button, I think?)

The problem comes in that I don't think there's a direct keycode for voice input in stock based roms?
I've found one or two comments about using VOICE_INPUT in a quick googling, but I don't think that's implemented in most roms? I could be wrong though...

You could change HEADSETHOOK to SEARCH and long-press to get the voice dialer... but beyond that, I think you have to take apart your ramdisk or do similar level digging?


Anyhow, here's a link on some info about going beyond supported keycodes (involves taking apart the ramdisk):
[GUIDE] How to Remap Hardkey Actions || Custom App Launching - xda-developers
 
Re: Any way to remap Bluetooth "call" button from Voice Dialer to Voice Search? (I'm on DanteROM.)

Well... the basic keycode mapping is found in /system/usr/keylayout/thunderc_keypad.kl - 216 is the Voice Dialer and 226 is the Headset Hook (main button, I think?)

The problem comes in that I don't think there's a direct keycode for voice input in stock based roms?
I've found one or two comments about using VOICE_INPUT in a quick googling, but I don't think that's implemented in most roms? I could be wrong though...

You could change HEADSETHOOK to SEARCH and long-press to get the voice dialer... but beyond that, I think you have to take apart your ramdisk or do similar level digging?


Anyhow, here's a link on some info about going beyond supported keycodes (involves taking apart the ramdisk):
[GUIDE] How to Remap Hardkey Actions || Custom App Launching - xda-developers

Headset hook is just what it uses for plugging/unplugging IIRC. But yeah, since the button does respond, then you have kernel support and should just be able to edit the keylayout.
 
Re: Any way to remap Bluetooth "call" button from Voice Dialer to Voice Search? (I'm on DanteROM.)

Thanks. I tried changing the /system/usr/keylayout/thunderc_keypad.kl file's KEY 226 from HEADSETHOOK to SEARCH but that didn't work. It seems that something would need to be changed in whatever file defines the operations of Bluetooth buttons, not the keyboard buttons.
 
Re: Any way to remap Bluetooth "call" button from Voice Dialer to Voice Search? (I'm on DanteROM.)

I think Esp_eon is right, headsethook isn't what you're looking for...
a bit of googling seems to suggest that the bluetooth button is usually bound to the "up" key? (which doesn't exist most other places...)

Have you tried something like this instead?
https://forums.androidcentral.com/e...ls?id=com.kin.bluetooth_launch&token=TSFqZKG2


and change the keylayout back if you haven't... you could also try fiddling with other settings in there but I'm not sure which key you actually need to change
 
Re: Any way to remap Bluetooth "call" button from Voice Dialer to Voice Search? (I'm on DanteROM.)

Bluetooth Launch app is a good workaround! Thanks!!!
 

Trending Posts

Forum statistics

Threads
957,614
Messages
6,973,770
Members
3,163,864
Latest member
Tdoperfdu