[SOLVED][REMAP DIAL BUTTON TO SEARCH BUTTON] Lack of search button - HD2 Android Q&A, Help & Troubleshooting and Genera

Hi.
I really miss the search button from the Desire device. I have tried to remap the send (dial) button to search by altering the bravo-keypad.kl file in /system/usr/keylayout. But the change didn't work. My altered keypad file is posted below, maybe someone can tell me why it's not working?
SOLUTION: Edit the right file. In my build the default qwerty.kl file was used not the bravo-keypad.kl. Adding SEARCH to key 231 and 61 turns the send key into a search key Even voice search by long press works
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
key 116 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 231 SEARCH
key 61 SEARCH
Sent from my HD2 running Android

just revert what you changed back to how it was.
then hold down the start button (Windows Logo) and the keyboard will pop up, once you start typing it will go into the search app.

mr_billionaire said:
just revert what you changed back to how it was.
then hold down the start button (Windows Logo) and the keyboard will pop up, once you start typing it will go into the search app.
Click to expand...
Click to collapse
Thanks for that tip, but unfortunately it does not work inside all applications.

Thought u ment the Hardware search buttom, missing that a lot, couse a lot of apps maps it (search buttom) to combine some function. If we take ån sms progie fex. The search buttom is maped to compose sms's, hope someone fine a way to map a Hardware key to the search buttom

Yeah I need to map Multi Task manager to a hard key, can you help with that?
-------------------------------------
Sent via the XDA Tapatalk App

Cobra2 said:
Thought u ment the Hardware search buttom, missing that a lot, couse a lot of apps maps it (search buttom) to combine some function. If we take ån sms progie fex. The search buttom is maped to compose sms's, hope someone fine a way to map a Hardware key to the search buttom
Click to expand...
Click to collapse
This is exactly what I have done, remapped the physical send button (left most button on the HD2) to behave like a search button. HTC Desire does not have a send button either, and I don't miss it. I find it more usefully to have a search button then a send (call) button.
Sent from my HTC Desire using XDA App

Where are you entering this data to change these settings?
-------------------------------------
Sent via the XDA Tapatalk App

Try remapping a button to DPAD_CENTER and see if it works for the trackball in camcorder.

paalkr said:
This is exactly what I have done, remapped the physical send button (left most button on the HD2) to behave like a search button. HTC Desire does not have a send button either, and I don't miss it. I find it more usefully to have a search button then a send (call) button.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Hi paalkr
Where is the file qwerty placed ? That would be great if it worked for me, I really miss the hardware search buttom.
Thanx

Cobra2 said:
Hi paalkr
Where is the file qwerty placed ? That would be great if it worked for me, I really miss the hardware search buttom.
Thanx
Click to expand...
Click to collapse
All files related to key mappings are located in /system/usr/keylayout . The qwerty.kl is the one that android is defaulting to if not specified otherwise. There may be some other kl files in the folder, but the vendor specific file is just "left overs" from the ROM rip (in some cases).

paalkr said:
All files related to key mappings are located in /system/usr/keylayout . The qwerty.kl is the one that android is defaulting to if not specified otherwise. There may be some other kl files in the folder, but the vendor specific file is just "left overs" from the ROM rip (in some cases).
Click to expand...
Click to collapse
Thanx big time mate for pointing me the right place, that is just what i needed for the handcent sms.
Sent from my HTC HD2 using XDA App

Mapping End Key
Has anyone mapped the end call button to work. On my Darkstone build I have to hit the end call on screen, hitting the red hard key just shuts the screen off (very annoying). I then have to wake up the phone and end the call.
I pulled both bravo_keypad and qwerty files but both seem to be set to the right end key.
Any ideas or help?

Jwatt0918 said:
Has anyone mapped the end call button to work. On my Darkstone build I have to hit the end call on screen, hitting the red hard key just shuts the screen off (very annoying). I then have to wake up the phone and end the call.
I pulled both bravo_keypad and qwerty files but both seem to be set to the right end key.
Any ideas or help?
Click to expand...
Click to collapse
theres an options in the settings menu to do this, i just cant find it. I used to have it set correctly, but changing roms every few days, you start to get confused. I would appreciate it if someone could point us in the right direction.
Thank you.

Thanks for this useful tip that works perfectly !
A way to only map quick press to Search and keep long press on DIAL Button associate to Phone ?

here is my qwerty.kl file. what did i do wrong?

songokussm said:
here is my qwerty.kl file. what did i do wrong?
Click to expand...
Click to collapse
Didn't succeed either, I mounted system as read write and modified qwerty.kl, rebooted but nothing changed. I would like a lot too having the search button on the call key :-(
I am on Shubcraft build

DocteurN said:
Thanks for this useful tip that works perfectly !
A way to only map quick press to Search and keep long press on DIAL Button associate to Phone ?
Click to expand...
Click to collapse
I would like that too, but I haven't sorted that out.

songokussm said:
here is my qwerty.kl file. what did i do wrong?
Click to expand...
Click to collapse
Could be that your build uses an other file then the qwerty.kl. Have you tried to edit the vendor specific file instead?

on my device using shubcraft v1.4 it was the htcleo-keypad.kl
Sent from my HD2

phrozendevil said:
on my device using shubcraft v1.4 it was the htcleo-keypad.kl
Sent from my HD2
Click to expand...
Click to collapse
phrozendevil is 100% correct it is the htcleo-keypad.kl file.
Now i just need help with chaning the volume buttons to the camera buttons.
I changed:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
To:
key 115 CAMERA WAKE
key 114 CAMERA WAKE
Upon press it starts the camera app, but will not take a photo. However when i switch to the camcorder function, that works just fine.
Ideas?
ps: i just use a widget to control my volume, which is very rare for me.

Related

AEB Plus....

Does anyone know if AEB works in the TP2 I'd very much like to change the buttons, I miss my scroll wheel and I'd like to make the volume rocker scroll up and down instead
Cheers,
DJ
I'd have made ONLY: 1 press volume button down to ''scroll down'' & long press same button to ''speaker vol down''. Same for volume button up.
I"d try make something with other buttons but unsucsessfull
AEB Plus
DJ_Enigma said:
Does anyone know if AEB works in the TP2 I'd very much like to change the buttons, I miss my scroll wheel and I'd like to make the volume rocker scroll up and down instead
Cheers,
DJ
Click to expand...
Click to collapse
Its very unstable with the other buttons...volume button I haven't tried.
Tried all buttons, but most of them won't work.
Volume works great for single-double-tripple and long, but that's about it.
Did not find any change in Menu-button or changes on phone buttons. I could not find the 'Button 1' on the device.
So, it was a great program for my qtek9000, it's almost useless for this one... I hope they will be able to get all buttons!
Besides, I'm hoping for someone to hack the zoom-slide to change it into 4 buttons... (eg. in this order: left-up-down-right so we might use AE to change those buttons)
I use the latest version on my TPro2 and it works like a charm.
No problems at all.
AEB plus
Vanstra said:
I use the latest version on my TPro2 and it works like a charm.
No problems at all.
Click to expand...
Click to collapse
The same way: it works perfectly...
Does someone know, how to access this key
I'm using AEBplus on my HTC Touch2 aka Mega and would like to remap the key with an arrow to the left. See also the picturee.
Does somebody know how to do this. In the program I can't find it.
Regards
cimber
no one any idea ?
From Alexander Eltsyn also no answer.
Regards
cimber
Forget AEB
Sorry to say that, but with this device, there is no need for AEB anymore.
Look for this App and be happy...;-)
http://forum.xda-developers.com/showthread.php?t=554240
A Must-Have-App and absolutely perfect.
Whumpscut said:
Sorry to say that, but with this device, there is no need for AEB anymore.
Look for this App and be happy...;-)
http://forum.xda-developers.com/showthread.php?t=554240
A Must-Have-App and absolutely perfect.
Click to expand...
Click to collapse
X2 this app is wonderful!!!
the answer
cimber said:
From Alexander Eltsyn also no answer.
Regards
cimber
Click to expand...
Click to collapse
Now the answer did come !!!
See here :
As for your question:
At least some of the HTC devices implements “back” button scan code to generic “Ok” button. So you could just try to re-define “Ok” in bplus settings list and see if it will work on “back” button.
There are 3 situations with buttons:
- button is already in list but could be named differently.
- button could be added via File -> Add Button in bplus settings menu.
- button is implemented on a driver level making impossible interception by application-level software like BPlus.
Regards
cimber
PS : the "back"- button is assigned on the HTC Touch2 like the "ok" - button in AEBplus

[SOLVED] End call with back key

This feature is now available in FroyoBread. Thank doixanh.
i wonder if it can be remapped to the camera button instead. some of us still use the back button to navigate around while chatting on the phone (handsfree mode)
There is a thread allready for this!
http://forum.xda-developers.com/showthread.php?t=1044810
No, use... we need a pro to do this...
Sent from my X8 using Tapatalk
I also think that this will be perfect
There must be some correlation between files shakira_keypad.kl and 7k_handset.kl
because the second one has lines
Code:
107 ENDCALL WAKE_DROPPED
116 POWER WAKE
and the first one
Code:
key 158 BACK WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 102 HOME WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 215 FOCUS
key 212 CAMERA
key 107 POWER WAKE_DROPPED
and when you change key 107 into ENDCALL, power button also ends calls,there must be something to make back button to has multiple actions without loosing its original function...
Or to make back button like power button just during call
Sent from my X8 using Tapatalk
I tried editing those files, but in every case I loose back button function...
Charmed :) said:
I tried editing those files, but in every case I loose back button function...
Click to expand...
Click to collapse
Yup. I know. I hope it's posiblle to make back key as "ENDCALL" just during phone calls...
Damn it! If we can have all other features thanks to our module man doixanh, we could have this too.
I think that this is way more important than multitouch, or screen on/off animation.
I use power button to end calls. It's enough for me
It's even better then wait till the display turns on to end a call...
When you say power button you mean the one that turns off the screen right?
I tryied this today but the screen turned off without ending the call...
I do not think it can be changed from phone's files. We need an apk programer. The solution must be in the phone.apk
Yours GreatApo
(X8 under MiniCM)
GreatApo said:
When you say power button you mean the one that turns off the screen right?
Click to expand...
Click to collapse
Right, this one that turns off the screen/phone.
I have only add the line
Code:
key 107 ENDCALL WAKE_DROPPED
in shakira_keypad.kl and reboot my phone.
I use stock rom...
GreatApo said:
I do not think it can be changed from phone's files. We need an apk programer. The solution must be in the phone.apk
Click to expand...
Click to collapse
Hmm... but what about all of these replacments for dialer? Or it changes just dialer, not phone.apk?
Deeeevss? We need your asses
I am a web developer... may be I can find how to fix the phone.apk. The problem is that I have no freetime... I will try to have a look in phone.apk files...
Yours GreatApo
(X8 under MiniCM)
K, but do you know how to write in C?
And I think you need Linux64bit and Android sdk and ndk for starting such development.
You should ask blagus or someone other expirienced for info about developing tools, especially apks
Sent from my X8 using Tapatalk
Someone finally! Thank you for even announcing that you will try to do something!!!
Any progress?
I thought that you guys have this already?
No...is there a way? ( You are our only hope module man )
Yeah I think I can include it in FroyoBread

[Q] is it possible to switch key functions

Hello everyone.
Last time my touchscreen stopped working. I figured out that every time i use 'end call key' my touch screen is not responding.
Question : Is it possible to switch key fundions? I mean... for example i want to make 'home' key my 'end call key' and vice versa. And if it is possible then how i can do it?
Check out Button Savior. I don't know about remapping hardware keys but this can give you software controls to get around it. There are also a tonne of screen lock widgets that could work, and some ROMs even have it built into quick settings on the notification drawer or the softkeys on ICS+ ROMs.
Nigeldg said:
Check out Button Savior. I don't know about remapping hardware keys but this can give you software controls to get around it. There are also a tonne of screen lock widgets that could work, and some ROMs even have it built into quick settings on the notification drawer or the softkeys on ICS+ ROMs.
Click to expand...
Click to collapse
Wow o.o Amazing. Thanks!
rayto54 said:
Hello everyone.
Last time my touchscreen stopped working. I figured out that every time i use 'end call key' my touch screen is not responding.
Question : Is it possible to switch key fundions? I mean... for example i want to make 'home' key my 'end call key' and vice versa. And if it is possible then how i can do it?
Click to expand...
Click to collapse
There used to be an app called button remapper on the play store but I can't find it now!!
Well anyway you can change the button mappings by editing the kepad layout file in /system/usr/keylayout/ folder.
Their will be a few their so you will have to figure out which one to edit for your rom.
Mine is htcleo_keypad.kl.
You will need a root explorer to do this, just open with a text editor!
Make sure to write down the mappings before starting then you can swap them about.
I am not sure but I think the power button isn't changeble but you can assign power to another key.
Ah, I was wondering if I had just gone crazy because I thought I remembered an app by that name but I couldn't find it.
Sent from my Nexus 4 using xda app-developers app
button remapper taddddaaaaa lol
http://forum.xda-developers.com/showthread.php?t=850464&highlight=button+remapper
Kameirus said:
button remapper taddddaaaaa lol
http://forum.xda-developers.com/showthread.php?t=850464&highlight=button+remapper
Click to expand...
Click to collapse
Now that's what I would call co-operation...
Kameirus said:
button remapper taddddaaaaa lol
http://forum.xda-developers.com/showthread.php?t=850464&highlight=button+remapper
Click to expand...
Click to collapse
Ironically I didn't actually bother searching on XDA So much for telling people to search

Remap buttons on remote?

Hi, guys
Is there any way that I can remap buttons on the remote? For example, long press play/pause for menu(some legacy apps still require menu key to function), long press up/down for volume up/down.
2ig2ag said:
Hi, guys
Is there any way that I can remap buttons on the remote? For example, long press play/pause for menu(some legacy apps still require menu key to function), long press up/down for volume up/down.
Click to expand...
Click to collapse
I dont have it yet so i have no way of testing it out, but i recently remapped the physical keys on my nexus 6 by editing /system/usr/keylayout/generic.kl
I know this file is used to map physical and virtual keys in almost all android devices. not sure if it works for the remote or not but id start there. you need to be rooted to to access the file though. Let me know of it works or if you need anymore help feel free to pm me.
I am also hoping there is an answer to this, as I would like to access the context menu by long pressing a button like the way it was done in the apple TV 2. Unless I'm missing something, I can only access this menu by going into Yatse app on my phone.
PS. I'm referring to when I am in Kodi for the context menu
globber said:
I am also hoping there is an answer to this, as I would like to access the context menu by long pressing a button like the way it was done in the apple TV 2. Unless I'm missing something, I can only access this menu by going into Yatse app on my phone.
PS. I'm referring to when I am in Kodi for the context menu
Click to expand...
Click to collapse
You can edit the keymap.XML file in kodi to open the context menu when you press the play/pause button when a video is not playing. If a video is playing it will act as the normal play/pause button.
Sent from my LG-D851 using Tapatalk
My solution was to use the Amazon Fire TV stick remote. That remote is solid. The only thing that the stick remote can't do is voice search.
jaygz said:
You can edit the keymap.XML file in kodi to open the context menu when you press the play/pause button when a video is not playing. If a video is playing it will act as the normal play/pause button.
Sent from my LG-D851 using Tapatalk
Click to expand...
Click to collapse
Can you show me how to do that? Because When I use the keymap tool in kodi, the only keys that get registered are the arrow keys. when i press the playpause key it doesnt give me a button id. Thank you !
aftv stick remote keymap HELP
Hello everyone, I need some help for keymapping my aftv stick remote to be use on my nexus player. For default it works nice but I read some post that the center button may be act different and some apps dont works and thats my case. It works on kodi but in Playon app I can move through the menu but I can't enter to the menu when I press the center button. Any help or advive? Thanks!
The post at http://forum.xda-developers.com/showpost.php?p=59821276&postcount=111 explains how to remap the remote's play/pause button to bring up the context menu in Kodi. I've tried it and can confirm that it works.
Copy this to /system/usr/keylayout and Correct permissions
Remaps Search button to Menu
https://drive.google.com/file/d/0B378QJZzCsnqM0FyLTZaaVpZdVk/view?usp=sharing
boldfilter said:
Copy this to /system/usr/keylayout and Correct permissions
Remaps Search button to Menu
https://drive.google.com/file/d/0B378QJZzCsnqM0FyLTZaaVpZdVk/view?usp=sharing
Click to expand...
Click to collapse
interesting ...
key 103 DPAD_UP
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 108 DPAD_DOWN
key 158 BACK
key 164 MEDIA_PLAY_PAUSE
key 172 HOME
key 217 SEARCH
key 353 DPAD_CENTER
So remapping row "key 217 SEARCH" to "key 217 MENU" will let voice search button act as menu button?
is there a way to add long click behavior? for example to keep voice search as default function and long click for menu??
thanks!
furius said:
interesting ...
key 103 DPAD_UP
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 108 DPAD_DOWN
key 158 BACK
key 164 MEDIA_PLAY_PAUSE
key 172 HOME
key 217 SEARCH
key 353 DPAD_CENTER
So remapping row "key 217 SEARCH" to "key 217 MENU" will let voice search button act as menu button?
is there a way to add long click behavior? for example to keep voice search as default function and long click for menu??
thanks!
Click to expand...
Click to collapse
Long click behavior is more complicated, so no.
Check here
http://forum.xda-developers.com/showthread.php?t=695936
I have a similar problem. I have this remote but the back key up on the top is mapped as a mouse press. I previously used this remote on a minix box with no issues running 4.2.2, however the nexus registers it as left click i believe. is there any way to change this? Thanks!
Search trigger button
Guys,
when i use a keyboard and i search i cant hit enter to trigger the search i always need press search on the onscreen keyboard. Is there any way to trigger search by key "Enter" or so? I deactivated the onscreen keyboard because i dont need it with a physical keyboard, but now i cant search... Anybody got a solution?

[guide] disable capacitive buttons

I have seen a bunch of posts regarding the capacitive buttons and on screen navigation buttons. Love them or hate them, this is how you can turn them off.
I will leave that up to you on how to get onscreen Navy buttons.
As for turning off the capacitive buttons this is how I did it.
1.To eneble onscreen buttons follow this thread http://forum.xda-developers.com/redm...mi-1s-t2950455
2. Download a root file explorer. Root Browser Lite --> http://goo.gl/b9ISW This is what I will use.
3.Load up Root Browser and navigate to system>usr>keylayout. We will be looking for a file called "atmel_mxt_ts.kl".
4. Select it and hit "Open as..." then "Text file" then "RB Text Editor"
5. Now we see this:
key 139 MENU
key 102 HOME
key 158 BACK
key 217 SEARCH
All you have to do is option out the keys you don't want to work with a #. So if you are like me and think the home button is fine, it will look like this.
#key 139 MENU
key 102 HOME
#key 158 BACK
key 217 SEARCH
6. When you have the ones you want optioned out just tap the little disk icon in the top right. It will ask for root rights, grant it, saved.
7. Now just reboot and DONE!
Tested on
1. One plus one a.k.a bacon(miui6, h2os, oxygen..you tell)
Sent from my bacon using Tapatalk
Hit thanks if this post helped you[emoji106]
Why on earth would anyone want to do that when there is a toggle to switch between On-Screen and Hardware Keys
PsyGik said:
Why on earth would anyone want to do that when there is a toggle to switch between On-Screen and Hardware Keys
Click to expand...
Click to collapse
OK give me a screen shot of that toggle in h2os,miui6
@Snapdragon815
Will this guide also turn off the HW key backlight?
Will it survive a reboot?
Mr.Ak said:
@Snapdragon815
Will this guide also turn off the HW key backlight?
Will it survive a reboot?
Click to expand...
Click to collapse
As you can see, i made this post 2 years ago, you can give it a try, do a backup on TWRP first, if everythinggoes as you expected, that good. If not you know how to restore.
Snapdragon815 said:
As you can see, i made this post 2 years ago, you can give it a try, do a backup on TWRP first, if everythinggoes as you expected, that good. If not you know how to restore.
Click to expand...
Click to collapse
Sorry for reviving the thread. ?
But I was hoping you atleast remember if this trick turn off HW key backlight or not.
Mr.Ak said:
Sorry for reviving the thread.
But I was hoping you atleast remember if this trick turn off HW key backlight or not.
Click to expand...
Click to collapse
Np mate,. Did it work? I don't rememberif it did or not

Categories

Resources