Anyone know if it is possible to make it so the search button takes a pic when in camera. I wish the dx2 had the dx camera button
Sent from my DROID X2 using xda premium
Unfortunately, I've tried to find a working way to get that done but I can't find a way to get it. There are ways to change the layout of the buttons, but for some reason I couldn't get it working. Ill keep looking and let you know what I find, lol because I want it too!
Sent from my DROID X2 using XDA App
I have mine like that right now. /system/usr/keylayout. Open the tegra-kbc.kl file in a text editor and find the line that says key 217 SEARCH WAKE_DROPPED and comment it out by putting a # in front of it. Then just add a line that says key 217 CAMERA . Reboot your phone and you should have it.
Sent from my DROID X2 using xda premium
robocuff said:
I have mine like that right now. /system/usr/keylayout. Open the tegra-kbc.kl file in a text editor and find the line that says key 217 SEARCH WAKE_DROPPED and comment it out by putting a # in front of it. Then just add a line that says key 217 CAMERA . Reboot your phone and you should have it.
Sent from my DROID X2 using xda premium
Click to expand...
Click to collapse
Ah, I see. I tried just adding CAMERA to that line. I was trying to get it to still work as a 'search' when your not using the camera - but who uses that anyways? Nice job.
IAreKyleW00t said:
Ah, I see. I tried just adding CAMERA to that line. I was trying to get it to still work as a 'search' when your not using the camera - but who uses that anyways? Nice job.
Click to expand...
Click to collapse
So it worked with no side effects? Id probably like no search key outside of the camera it annoys me
Sent from my DROID X2 using xda premium
robocuff said:
I have mine like that right now. /system/usr/keylayout. Open the tegra-kbc.kl file in a text editor and find the line that says key 217 SEARCH WAKE_DROPPED and comment it out by putting a # in front of it. Then just add a line that says key 217 CAMERA . Reboot your phone and you should have it.
Sent from my DROID X2 using xda premium
Click to expand...
Click to collapse
Thanks man. Much rather have the camera over the search anyway.
I know what you mean. I never use that search button anyway. It's one of the first things I do after flashing a new rom. That's one thing to be aware of. Flash a new rom and you have to do it again.
Sent from my DROID X2 using xda premium
robocuff said:
I know what you mean. I never use that search button anyway. It's one of the first things I do after flashing a new rom. That's one thing to be aware of. Flash a new rom and you have to do it again.
Sent from my DROID X2 using xda premium
Click to expand...
Click to collapse
That's ok ill definitely do it tomorrow
Sent from my DROID X2 using xda premium
In the same file, is it possible to make the volume buttons wake the phone? I see it shows wake for the home button. And I dont know what wake_dropped means for the menu and back buttons.
jsgraphicart said:
In the same file, is it possible to make the volume buttons wake the phone? I see it shows wake for the home button. And I dont know what wake_dropped means for the menu and back buttons.
Click to expand...
Click to collapse
Yes, it's possible. WAKE means that if that button/key is pressed while the phone is asleep (screen is off), it will wake the phone up and return it to the app/lock screen.
WAKE_DROPPED means that if that button/key is pressed while the phone is asleep (screen is off), it will 'wake' the phone, but it will NOT return it to the application/lock screen.
Basically, WAKE = unlock phone, WAKE_DROPPED = Doesn't unlock phone.
IAreKyleW00t said:
Yes, it's possible. WAKE means that if that button/key is pressed while the phone is asleep (screen is off), it will wake the phone up and return it to the app/lock screen.
WAKE_DROPPED means that if that button/key is pressed while the phone is asleep (screen is off), it will 'wake' the phone, but it will NOT return it to the application/lock screen.
Basically, WAKE = unlock phone, WAKE_DROPPED = Doesn't unlock phone.
Click to expand...
Click to collapse
Thanks. Will doing this disable the volume buttons though? I changed the search button to the camera button as was described and, obviously, the search function is gone. Will that happen with the volume buttons. If so, I dont want to mess with it.
First off, excellent thread with an excellent answer.
This needs to be stickied!
Now, another question. I went in there and saw a lot of different .kl files. I myself use SwiftKey X. Does it matter which file I edit? For example, here are the files I have:
AVRCP.kl
Motorola_Bluetooth_Wireless_Keyboard.kl
cpcap-key.kl
qwerty.kl
tegra-kbc.kl
usb_keyboard_102_en_us.kl
Does the tegra-kbc.kl file work across all different keyboard software?
Thanks!
jsgraphicart said:
Thanks. Will doing this disable the volume buttons though? I changed the search button to the camera button as was described and, obviously, the search function is gone. Will that happen with the volume buttons. If so, I dont want to mess with it.
Click to expand...
Click to collapse
Unless you removed the VOLUME_UP and/or VOLUME_DOWN in that, then no. Just change WAKE_DROPPED to WAKE and it should be fine.
The worst that could happen is what... your volume doesn't work for a second while you change it back? lol
EDIT:
iBolski said:
First off, excellent thread with an excellent answer.
This needs to be stickied!
Now, another question. I went in there and saw a lot of different .kl files. I myself use SwiftKey X. Does it matter which file I edit? For example, here are the files I have:
AVRCP.kl
Motorola_Bluetooth_Wireless_Keyboard.kl
cpcap-key.kl
qwerty.kl
tegra-kbc.kl
usb_keyboard_102_en_us.kl
Does the tegra-kbc.kl file work across all different keyboard software?
Thanks!
Click to expand...
Click to collapse
I got the same thing, personally it bothers me because of the clutter... but I'd rather not mess with it right now, but if you need to edit something you'll want to use tegra-kbc.kl
I don't think this thread should be stickied, but I think there should be a thread showing how to do this with it. Like a guide/tutorial.
IAreKyleW00t said:
Unless you removed the VOLUME_UP and/or VOLUME_DOWN in that, then no. Just change WAKE_DROPPED to WAKE and it should be fine.
The worst that could happen is what... your volume doesn't work for a second while you change it back? lol
Click to expand...
Click to collapse
lol. True. Ok, Im gona give it a try.
---------- Post added at 07:14 PM ---------- Previous post was at 07:04 PM ----------
Awesome, It worked. Thanks again. This is a cool little tweak.
What I'd like to see is ROM developers include this in their ROMs. I know in Eclipse and Liberty ROMs, they have a "parts" option in the system settings that allows you to modify various things.
Heck, maybe even ROM Toolbox should do this. Maybe a tweet to JRummy might be in order?
It shouldn't be that hard to write an app to do it. Of course, it would need root access and the ability to remount /system as read/write and then set it back after it's modified the file.
Maybe this is what I need to do after I learn how to program a droid! No promises!
I've seen an app like that, but it didn't work for me because it was outdated. Forgot where I found it... as for the /system , I find it easiest to just use ADB on my computer and run the command 'adb remount'. That automatically sets /system as RW.
I'm no dev, and I certainly don't know how to make apps... so unfortunately I can't help with that. :|
EDIT:
Glad it worked for you jsgraphicart.
IAreKyleW00t said:
as for the /system , I find it easiest to just use ADB on my computer and run the command 'adb remount'. That automatically sets /system as RW.
Click to expand...
Click to collapse
I did this directly on the phone using Root Explorer. It has the options to switch from R/W to R/O. I just opened up the file in text editor, made the changes and saved. It even made a backup of the original for me. To me, thats easier than going through a computer.
jsgraphicart said:
I did this directly on the phone using Root Explorer. It has the options to switch from R/W to R/O. I just opened up the file in text editor, made the changes and saved. It even made a backup of the original for me. To me, thats easier than going through a computer.
Click to expand...
Click to collapse
That's what I do to, because then I would need to pull and push the files. I was talking about in general making the /system a RW; for other needs.
I use root explorer too, and that automatic backup is a great feature. Gives you some peace-at-mind when doing this.
Excellent. Worked like a charm. Easy decision to lost the search button for camera.
IAreKyleW00t said:
Unfortunately, I've tried to find a working way to get that done but I can't find a way to get it. There are ways to change the layout of the buttons, but for some reason I couldn't get it working. Ill keep looking and let you know what I find, lol because I want it too!
Sent from my DROID X2 using XDA App
Click to expand...
Click to collapse
nevermind root browser had one lol
Related
This is my first real bit of development work. I just wanted to post a mod I put together, and how to install it. It's simple enough that someone else may have done it before me.
PROBLEM
Do you like ALT more than SEARCH? Do you often press SEARCH-TAB when what you really wanted was ALT-TAB? Do you realize that ICS has a perfect little Alt-Tab interface? Well! I have a perfect mod for you!
WHAT YOU NEED
TF201 (TF101 version coming soon!)
Keyboard Dock
Root (Does *not* require unlocking)
File replacement tool: Terminal Emulator, a Root File Manager of your choice, or ADB
STEP 1
(Root your TF201 if you haven't already.) Download my modded asusdec.kl below. You'll need to extract it. For the purposes of commands I use below, put the extracted asusdec.kl in:
/sdcard/download
STEP 2
navigate to: /system/usr/keylayout
STEP 3
Back up your asusdec.kl. I've provided a backup of mine, from .21, which should work in the event of a problem.
STEP 4
Replace your asusdec.kl with my modded one. You can do that any way you like, but I prefer doing it in a Terminal session. You may need to remount /system as RW. Terminal Commands are:
Code:
mount -o remount,rw /dev/block/mmcblk0p1 /system
Code:
mv -f /sdcard/download/asusdec.kl /system/usr/keylayout/asusdec.kl
STEP 5
Reboot! After that, you're all done.
RESULTS
If the mod has been performed correctly, your Search key will now perform ALT_LEFT instead, which allows you to use ALT commands where they would apply (Alt-Tab being the biggest one). To make up for this, your ALT_RIGHT key has been remapped to SEARCH. You've lost no functionality
FILES MODDED
/system/usr/keylayout/asusdec.kl
DOWNLOAD
ORIGINAL
MODDED
Awesome! Thanks!
Added to the ROM/Kernel and Tweak Directory.
Nice work
pbrauer said:
Added to the ROM/Kernel and Tweak Directory.
Nice work
Click to expand...
Click to collapse
Thanks! I'm looking forward to doing more in the future. I have all the files I need to do the same mod for TF101, but I don't have a rooted TF101 to test it on. I don't like posting unverified files, but if i can find a tester, I can wrap up that version ASAP.
I also intend to do a couple of mods for specific bluetooth keyboards.
This looks cool! Is there any way to physically swap the buttons too?
Sent from my Transformer Prime TF201 using XDA Premium HD app
Great, I was waiting for this since ages ...
Just one issu is that in France the keyboard layout is different and the right Alt is used for Alt Gr which allow to type some characters such as @, ^ [] #~ ...
It's a bit annoying not to be able to type these letters now ...
Anyway, great work
Moist said:
This looks cool! Is there any way to physically swap the buttons too?
Sent from my Transformer Prime TF201 using XDA Premium HD app
Click to expand...
Click to collapse
Yes you can! You have to do it manually though, there is no software that can do that
The way to do it, is to put your nail under the key on either top or bottom and just flip it out. After you've done that, you can just put it back by pressing it down untill you hear a nice 'click'.
I have done so myself and I must say I'm quite comfortable with the result
Btw, nice work Pandages!
I don't suppose the keyboard layout hack here could be adapted to add or change the shortcut keys? Like launching a different browser, or changing the lock key to do something else? My guess is that's baked into the Android OS, but had to ask.
Been searching for an app or hack to allow me to map my own keyboard shortcuts to whatever I want ( Ctrl + ` for terminal perhaps ) but haven't found anything that comes close.
Has anyone gotten this to work with Virtuous? I have the Modded file in there (checked file size) and it's not happening for me, even after a few reboots.
Moist said:
This looks cool! Is there any way to physically swap the buttons too?
Click to expand...
Click to collapse
Possibly! It looks like someone else already answered this one, above me.
polo2503 said:
Great, I was waiting for this since ages ...
Just one issue is that in France the keyboard layout is different and the right Alt is used for Alt Gr which allow to type some characters such as @, ^ [] #~ ...
It's a bit annoying not to be able to type these letters now ...
Anyway, great work
Click to expand...
Click to collapse
If you'd like to work with me, I could make a version that would do specifically what you need. I'm happy to help.
RubenRybnik said:
I don't suppose the keyboard layout hack here could be adapted to add or change the shortcut keys? Like launching a different browser, or changing the lock key to do something else? My guess is that's baked into the Android OS, but had to ask.
Been searching for an app or hack to allow me to map my own keyboard shortcuts to whatever I want ( Ctrl + ` for terminal perhaps ) but haven't found anything that comes close.
Click to expand...
Click to collapse
Actually yes. It would be super easy to make the Lock key do something else, but most of the types of keystrokes you're looking for are baked into the framework. Most of them can launch your default app for a given function, rather than the stock app, but some are stock-app-specific. I like the idea of Ctrl+` to get a terminal, but I think that's outside of the scope of what I can do with .kl hacks.
razgriz8426 said:
Has anyone gotten this to work with Virtuous? I have the Modded file in there (checked file size) and it's not happening for me, even after a few reboots.
Click to expand...
Click to collapse
I haven't used that ROM, as my TF201 remains locked. However, if you can provide me the *.kl files from the relevant directory, I can probably whip something up for you.
Very interesting ... looking at the layout file. You're right, would be easy to switch out what keys to what( Even the page up fn+arrow up combo ). I wonder where those key definitions like " MEDIA_PLAY_PAUSE" are actually defined? If it's just a constant to a function definition in some apk then maybe we could decompile it and change the const definition to make any keys "Special function" do something new. Hell, maybe the keyboard recognizes fn+t or any other key with fn as a new numeric key id, then we could add new ones off the function key. Going to delve into some of the system apks to see what I can ferret out.
Not too hopeful here, seems much to easy, but its a start.
RubenRybnik said:
Very interesting ... looking at the layout file. You're right, would be easy to switch out what keys to what( Even the page up fn+arrow up combo ). I wonder where those key definitions like " MEDIA_PLAY_PAUSE" are actually defined? If it's just a constant to a function definition in some apk then maybe we could decompile it and change the const definition to make any keys "Special function" do something new. Hell, maybe the keyboard recognizes fn+t or any other key with fn as a new numeric key id, then we could add new ones off the function key. Going to delve into some of the system apks to see what I can ferret out.
Not too hopeful here, seems much to easy, but its a start.
Click to expand...
Click to collapse
The special buttons are defined in /system/app/Keyboard.apk
There was a mod created which changed the browser button to use your default rather than be hard-coded to the stock Brower app
Original thread is here: http://forum.xda-developers.com/showthread.php?t=1497624
Sent from my Transformer Prime TF201 using Tapatalk 2
Pandages said:
Do you like ALT more than SEARCH? Do you often press SEARCH-TAB when what you really wanted was ALT-TAB? Do you realize that ICS has a perfect little Alt-Tab interface? Well! I have a perfect mod for you!
Click to expand...
Click to collapse
Yes but I also like ESC more than the Back Button. Mind cooking up another one with ESC modded in? I dont know if esc is hard coded to cause back in android.
Im always hitting back on accident when using splashtop, It registers the left alt now tho!
Is there any way to type unicode with alt codes? I'm really sick of not being able to triforce while on my tab.
Sent from my tf9001 with XDA XD.
Before jumping to downgrade and root my .21, is it possible to push such files through ADB (without root)? That would be awesome =)
Does this still work on .28 update?
Or does it need to be updated?
Crap. I should of just done the mod without trying to switch the keys.
I think I pried the alt key off to hard and now it won't sit back flush on the key again.
Wonder if I can RMA the keyboard for a faulty key =\
The mod will persist through the upgrade from .21 to .28, no real possibility of problems. Still works great for me.
As for making a version with ESC instead of Back, yeah, that could probably be done pretty quickly. Only thing is, how are various applications going to interpret ESC? Most android keyboards don't provide ESC, so many apps just interpret Back as ESC (terminal emulators, etc.)
clockwork58 said:
Crap. I should of just done the mod without trying to switch the keys.
I think I pried the alt key off to hard and now it won't sit back flush on the key again.
Wonder if I can RMA the keyboard for a faulty key =\
Click to expand...
Click to collapse
happened to me too. check the pins underneath the keyboard to make sure they're all open and you can put the "stick" part of the keyboard back into that part of the key.
---------- Post added at 10:38 AM ---------- Previous post was at 10:37 AM ----------
Pandages said:
The mod will persist through the upgrade from .21 to .28, no real possibility of problems. Still works great for me.
As for making a version with ESC instead of Back, yeah, that could probably be done pretty quickly. Only thing is, how are various applications going to interpret ESC? Most android keyboards don't provide ESC, so many apps just interpret Back as ESC (terminal emulators, etc.)
Click to expand...
Click to collapse
any ideas on how to make the sleep button a true delete button, not just an extra backspace button?
nhshah7 said:
happened to me too. check the pins underneath the keyboard to make sure they're all open and you can put the "stick" part of the keyboard back into that part of the key.
thanks. when i took out the alt key i took the white part with it. And only took off the cap part from the search key. once i seperated it and put the white part back on, the top of the key went on smoothly. Now to actually DO the mod.
Click to expand...
Click to collapse
So i am rooted on 2.3.5 running eclipse 2.2 and my back button is broken i have been using the root app Button Savior but i would like a hard key instead of an on-screen back button. Is there any way i could make the search button (hard button) the back button ? Any help is appreciated
Im not sure for eclipse but with cm7 Its one of the options in the menu no app needed
Sent from my DROID X2 using XDA
And if not on CM7, there is a file you can edit that allows you to changes the button functions. I forget what file. Theres a thread in here somewhere talking about how to make the search button into the camera button. The file can be changed to do the same for your problem. I'll see if I can find it.
EDIT: Here's the thread:
http://forum.xda-developers.com/showthread.php?t=1403013&highlight=camera
In the third post I think, there is directions on what file was edited for that. Looking at the file myself, I would think you could replace "key 217" (the search key) with the info from "key 158" (the back key). So the line would read:
key 217 BACK WAKE_DROPPED
You could probably have two lines say the same. They would both just have the same function which doesnt matter since your back button doesnt work anyway. But before you do this, do a backup of the file, and your ROM if you'd like. I would feel safe doing this to my own phone but not everyone is so backup what you'd like.
Unless you are using CM7, then just go the easy built in option it provides.
jsgraphicart said:
EDIT: Here's the thread:
http://forum.xda-developers.com/showthread.php?t=1403013&highlight=camera
In the third post I think, there is directions on what file was edited for that. Looking at the file myself, I would think you could replace "key 217" (the search key) with the info from "key 158" (the back key). So the line would read:
key 217 BACK WAKE_DROPPED
You could probably have two lines say the same. They would both just have the same function which doesnt matter since your back button doesnt work anyway. But before you do this, do a backup of the file, and your ROM if you'd like. I would feel safe doing this to my own phone but not everyone is so backup what you'd like.
Unless you are using CM7, then just go the easy built in option it provides.
Click to expand...
Click to collapse
Thanks for your reply, and is this permanent ? if it is thanks because that's what i'm looking for
EDIT: I just flashed cm7 and i am now looking for the option you spoke of could you specify more clearly as to where it is? Thanks
it is permanent, until you sbf or flash new rom
Sent from my DROID X2 using xda premium
If the method provided is giving you trouble, try this one
http://forum.xda-developers.com/showthread.php?t=850464
Come over to the dark side...
optimusprimeuya said:
Thanks for your reply, and is this permanent ? if it is thanks because that's what i'm looking for
EDIT: I just flashed cm7 and i am now looking for the option you spoke of could you specify more clearly as to where it is? Thanks
Click to expand...
Click to collapse
Like what was said, it is permanent until you sbf or flash a new rom or replace the file with the backup you should make. I looked at the options in CM7 and I cant find anything that remaps the buttons to anything other than an app, shortcut, etc. I've never used CM7 settings to change a hard button to another hard button. I just assumed since that was what was said. So someone else would have to help you out on that if its possible.
The other app that thelowend linked too seems to look pretty good though. You may want to try that first and then go into changing files manually if it doesnt end up helping you.
thelowend said:
If the method provided is giving you trouble, try this one
http://forum.xda-developers.com/showthread.php?t=850464
Come over to the dark side...
Click to expand...
Click to collapse
I've tried the button remapper app, couldn't get it to work on DX2, worked fine on my D2G though
Actually by accident.
I was messing about with the kl files in the folder system/usr/keylayout actually to try and get the 'camera button to wake' thingy working on my phone. While looking in the Generic.kl file, it seems that the Focus button were never actually mapped in these leaks!
To activate the FOCUS HW button:
Using any text editor or through your root file explorer:
In the file Generic.kl:
Find the line with "key 212 CAMERA" and before this line type in a new line with the text "key 211 FOCUS"
Save it, and push it back in /system/usr/keylayout/, change the file permissions back to rw-r--r--, reboot.
I have tested it and it works. To make sure it's not the auto focus kicking in, you can disable that on the camera settings for testing. Am myself using mwakious3Drom v4.0 for ICS 4.0.3 & Sense 3.6 (GSM) and it works perfectly.
(in Generic.kl, actually the key 211 is disabled but mapped to "KEY_HP" (whatever that is). I don't know what that disabled button does and what effects replacing it will have, so please do the above at your own risk.)
To get camera (and focus) button to wake phone:
Using any text editor or through your root file explorer:
Edit that same file Generic.kl:
at the end of the line "key 211 FOCUS" add the text " WAKE_DROPPED" (don't forget the space before the wake command)
at the end of the line "key 212 CAMERA" add the text " WAKE_DROPPED" (don't forget the space before the wake command)
Edit the file Shooteru-keypad.kl:
Same as what is done in Generic.kl above
Save them, and push them back in /system/usr/keylayout/, change the file permissions back to rw-r--r--, reboot.
Also tested only on mwakious3Drom v4.0 for ICS 4.0.3 & Sense 3.6 (GSM) and it works perfectly.
Shouldn't be different for CDMA users (but I cannot test that)
Don't forget to do a Nandroid backup beforehand or at least save the original files first before changing anything.
That's all folks!
Good luck
Worked great. Just to note, ADB isn't required if you have something like Root Explorer, was able to edit the file from it's directory with it and reset, everything worked great. I did this same thing to "fix" Dead Space when it was an Experia Play exclusive. Used the camera button as the holster button. Just didn't think link the 2 again. lol Nice find!
Cheers for this all working, after doin this there's another file called generic.kl.bak as well as generic.kl do I leave this or delete the extra.
Virtuous shooter gsm
THISIS50.COM IF IT'S HOT IT'S HERE
jamieunit said:
Cheers for this all working, after doin this there's another file called generic.kl.bak as well as generic.kl do I leave this or delete the extra
THISIS50.COM IF IT'S HOT IT'S HERE
Click to expand...
Click to collapse
Can delete or keep. It's just a backup of that file before you changed it. Keeping it won't hurt, so, might as well keep it just in case. If you want to undo the change just delete the generic.kl and remove the .bak from the generic.kl.bak file and youre back to before you did anything.
Sent from my PG86100 using Tapatalk 2
nevermind i should read red letters
where is that file? Generic.kl
cocous said:
where is that file? Generic.kl
Click to expand...
Click to collapse
/System/usr/keylayout/
THISIS50.COM IF IT'S HOT IT'S HERE
Just tried it on KingCobra3D-ICS and it works flawlessly. Very nice find russof. Thanks added to OP.
is easy to show that someone must be written ?
beacause in 211 line have "KEY_HP" I delete this and write "FOCUS" ?
nice! works great! thank you! do not know what that HP means either but do not miss it
cocous said:
is easy to show that someone must be written ?
beacause in 211 line have "KEY_HP" I delete this and write "FOCUS" ?
Click to expand...
Click to collapse
Can be done, but don't forget to remove the '#' at the beginning as well as the quotes (") besides KEY_HP
russof said:
Can be done, but don't forget to remove the '#' at the beginning as well as the quotes (") besides KEY_HP
Click to expand...
Click to collapse
please if you can show me how. im comfused. some edit text would help...
Can this be added to the dev section
Sent from my PG86100 using xda premium
according this i was playing also with "atmel-touchscreen.kl" and able to change SEARCH button to be HOME (just replace SEARCH with HOME) - do not use search at all...but tried with volume down to make "wake" but no luck..any clue what to change in order to wakre up phone with volume button?
/System/usr/keylayout/
Find generic.kl enter using text then es file editor and Find the line with key 212 CAMERA and before this line type in a new line with the text key 211 FOCUS it in and delete the original 211
(Quoted from russof)
THISIS50.COM IF IT'S HOT IT'S HERE
cocous said:
please if you can show me how. im comfused. some edit text would help...
Click to expand...
Click to collapse
In Generic.kl in a new line, just add this text : key 211 FOCUS .. No need to edit/change anything else
ckoadiyn said:
Can this be added to the dev section
Sent from my PG86100 using xda premium
Click to expand...
Click to collapse
I wanted to but didn't have that capability as a first time poster..
russof said:
In Generic.kl in a new line, just add this text : key 211 FOCUS .. No need to edit/change anything else
I wanted to but didn't have that capability as a first time poster..
Click to expand...
Click to collapse
ask a MOD to do it also the focus thing works on mikvirgin i have yet to get it to wake the phone up with the camera button tho
Thanks though
ckoadiyn said:
ask a MOD to do it also the focus thing works on mikvirgin i have yet to get it to wake the phone up with the camera button tho
Thanks though
Click to expand...
Click to collapse
For the camera button and focus button to wake, do you have these lines
KEY 211 FOCUS WAKE_DROPPED
KEY 212 CAMERA WAKE_DROPPED
On both the Generic.kl and the Shooteru-keypad.kl file?
If so and it still doesn't work, it could be that as the volume buttons, the camera buttons is also locked for wake in the android.policy.jar in the Virgin leak.
AFAIK for the GSM leaked Roms the only locked buttons for wake are the volume buttons (maybe some other ones but I don't understand code)
russof said:
For the camera button and focus button to wake, do you have these lines
KEY 211 FOCUS WAKE_DROPPED
KEY 212 CAMERA WAKE_DROPPED
On both the Generic.kl and the Shooteru-keypad.kl file?
If so and it still doesn't work, it could be that as the volume buttons, the camera buttons is also locked for wake in the android.policy.jar in the Virgin leak.
AFAIK for the GSM leaked Roms the only locked buttons for wake are the volume buttons (maybe some other ones but I don't understand code)
Click to expand...
Click to collapse
Yep that's how I have it n I will look at that
Sent from my PG86100 using xda premium
Tried on volume buttons and can't seem to get it to work
THISIS50.COM IF IT'S HOT IT'S HERE
Alright, this is only halfway done, but until I hear back from the One X devs and remove the menu software button, this will at least give you the menu softkey. I'm not going to bother making a flashable zip until I'm finished with everything, so, for now, follow these instructions.
Requirements:
1. SuperUser permissions (root)
2. Root Explorer (or a similar app with root permissions and the ability to edit any file as text)
Directions:
1. Navigate to /system/user/keylayout
2. Find the synaptics-rmi-touchscreen.kl AMD long-press on it. Select "Open in text editor."
3. Change the line for key 249 (APP_SWITCH) to MENU.
4. Use the on-screen menu key for the last time to select Save and Apply Changes.
5. Reboot.
Disclaimer: This means you will lose the ability to access the recent apps menu. I never really use it much, but I know some people do. So if you really need that, hold off until I update with a flashable zip (or the proper files to push if we don't have a recovery out already).
As soon as I figure out how to remove the on screen button, I'll give a real update and freshen up the OP. This will be my first public mod, so try to cut me a little slack, and keep in mind I'm not really a dev, I'm just trying to help out and expand my knowledge a little. Who knows, maybe I'll keep picking up on things and put out a theme, and maybe even a rom of my own eventually!
Thanks to the following who have helped me or whose tools I have used!
OMJ - For the base 1.13.651.1 deodexed rom. (I was using the kitchen wrong, because I am n00b)
sk806 - For pointing me to the right apktool and baksmali versions, as well as guiding me through the process when I effed up.
TeamWin for the awesome recovery (and, of course, toastcfh, who is a BOSS!)
The devs of Root Explorer, because that app does EVERYTHING! You can edit keyboard layouts on the fly and reboot to apply!
And whoever is going to help me write my first updater-script so this can be flashable when it's done!
Sent from my EVO using Tapatalk 2
RegnierD said:
Alright, this is only halfway done, but until I hear back from the One X devs and remove the menu software button, this will at least give you the menu softkey. I'm not going to bother making a flashable zip until I'm finished with everything, so, for now, follow these instructions.
Requirements:
1. SuperUser permissions (root)
2. Root Explorer (or a similar app with root permissions and the ability to edit any file as text)
Directions:
1. Navigate to /system/user/keylayout
2. Find the synaptics-rmi-touchscreen.kl AMD long-press on it. Select "Open in text editor."
3. Change the line for key 249 (APP_VIEW) to MENU.
4. Use the on-screen menu key for the last time to select Save and Apply Changes.
5. Reboot.
As soon as I figure out how to remove the on screen button, I'll update this.
Sent from my EVO using Tapatalk 2
Click to expand...
Click to collapse
Thanks!! How do we get to recent apps now though?
Sent from my EVO using Tapatalk 2
alainater said:
Thanks!! How do we get to recent apps now though?
Sent from my EVO using Tapatalk 2
Click to expand...
Click to collapse
Until I figure out the environment to properly decompile the jars and apks, there is no way to do that. Probably should have mentioned that. Haha. Until I can crack open the android.policy.jar, you'll have to use the app icon from the drawer/homescreen.
If you want to revert, delete the modded one and remove .bak from the original that RE backed up for you.
Sent from my EVO using Tapatalk 2
RegnierD said:
Until I figure out the environment to properly decompile the jars and apks, there is no way to do that. Probably should have mentioned that. Haha. Until I can crack open the android.policy.jar, you'll have to use the app icon from the drawer/homescreen.
If you want to revert, delete the modded one and remove .bak from the original that RE backed up for you.
Sent from my EVO using Tapatalk 2
Click to expand...
Click to collapse
Haha ok sounds good
Sent from my EVO using Tapatalk 2
Hope this helps you in your journey
http://forum.xda-developers.com/showthread.php?t=1511730
regaw_leinad said:
Hope this helps you in your journey
http://forum.xda-developers.com/showthread.php?t=1511730
Click to expand...
Click to collapse
I'VE BEEN LOOKING ALL OVER FOR THAT! As soon as I hear back from a dev regarding the softkey and long pressing, I'll get a zip up here! This is my first public mod, so bear with me.
Sent from my EVO using Tapatalk 2
RegnierD said:
Alright, this is only halfway done, but until I hear back from the One X devs and remove the menu software button, this will at least give you the menu softkey. I'm not going to bother making a flashable zip until I'm finished with everything, so, for now, follow these instructions.
Requirements:
1. SuperUser permissions (root)
2. Root Explorer (or a similar app with root permissions and the ability to edit any file as text)
Directions:
1. Navigate to /system/user/keylayout
2. Find the synaptics-rmi-touchscreen.kl AMD long-press on it. Select "Open in text editor."
3. Change the line for key 249 (APP_VIEW) to MENU.
4. Use the on-screen menu key for the last time to select Save and Apply Changes.
5. Reboot.
As soon as I figure out how to remove the on screen button, I'll give a real update and freshen up the OP.
Sent from my EVO using Tapatalk 2
Click to expand...
Click to collapse
mine doesnt say APP_VIEW (says APP_SWITCH)
edit: still worked
jcwxguy said:
mine doesnt say APP_VIEW
Click to expand...
Click to collapse
mine did
I'll be checking back in on this progress. The lack of a menu button, and the resulting 15% of screen wasted on a soft menu button, is by far the biggest problem with this phone. It really is pathetic to play a full screen game and have that silly soft menu button at the bottom.
I would prefer the multitask button to be a menu, and long-press home become multitask like on previous phones.
jcwxguy said:
mine doesnt say APP_VIEW (says APP_SWITCH)
edit: still worked
Click to expand...
Click to collapse
Thank you, I fixed the OP.
jirafabo said:
I'll be checking back in on this progress. The lack of a menu button, and the resulting 15% of screen wasted on a soft menu button, is by far the biggest problem with this phone. It really is pathetic to play a full screen game and have that silly soft menu button at the bottom.
I would prefer the multitask button to be a menu, and long-press home become multitask like on previous phones.
Click to expand...
Click to collapse
Once I've got it all together, I'll post several versions of the mod. I know, personally, I'm going to have mone set as such:
Back (Leave long press empty)
Home (Menu)
Multitasking (Search)
On a somewhat off topic note, I'm happy to be getting more and more into Android. It's exciting. I've made it a personal goal to try and be really active in this community. I've learned a lot through reading, so it's time to apply some of it and pay things forward a little.
Sent from my EVO using Tapatalk 2
RegnierD said:
I'm going to have mone set as such:
Back (Leave long press empty)
Home (Menu)
Multitasking (Search)
Sent from my EVO using Tapatalk 2
Click to expand...
Click to collapse
I like that idea
I've done some Android dev, so I may be able to put some effort into this. Personally, I'd like to see the keys like:
Back: short = Back, long = kill current app (like Cyanogen)
Home: short = Home, long = recent apps
Multitasking: short = Menu, long = voice search (like long press search on EVO 4G)
RegnierD said:
Thank you, I fixed the OP.
Once I've got it all together, I'll post several versions of the mod. I know, personally, I'm going to have mone set as such:
Back (Leave long press empty)
Home (Menu)
Multitasking (Search)
On a somewhat off topic note, I'm happy to be getting more and more into Android. It's exciting. I've made it a personal goal to try and be really active in this community. I've learned a lot through reading, so it's time to apply some of it and pay things forward a little.
Sent from my EVO using Tapatalk 2
Click to expand...
Click to collapse
I want that same setup. This thread is added to my favorites.
Sent from my EVO LTE using Tapatalk 2
I'm not sure how easy the long press of back to kill will be to implement. It probably depends on whether or not Sense 4/ICS supports killing the foreground app natively. If not, it might have to be added, at which point, I'll go bug IHTFP69 and ask how he implemented it into his Zeus builds.
I'm under the impression that the software keys are just a flag in SystemUI, but not entirely sure if I remember having read that correctly.
I'm out with the guys tossing a few back in celebration, but when I get home, it's time to boot up my Mint partition!
Sent from my EVO using Tapatalk 2
wvufan said:
I've done some Android dev, so I may be able to put some effort into this. Personally, I'd like to see the keys like:
Back: short = Back, long = kill current app (like Cyanogen)
Home: short = Home, long = recent apps
Multitasking: short = Menu, long = voice search (like long press search on EVO 4G)
Click to expand...
Click to collapse
My thoughts exactly. I think this setup flows best with the history of EVO button bindings.
I could live without the long-press kill, though (when I enabled it I found myself nuking apps on accident (especially Netflix) more often than intentionally. Additionally, I haven't had a single hangup on the LTE so far).
The holy grail, of course, would be an app/settings option allowing for full configurability of the buttons from within the OS. Perhaps CyanogenMod will feature it. (EDIT: It does)
To be honest, I don't think long press back to kill would be that helpful. I'll still make it, just for the few who really want it, but really, just hit home and then bring up multitasking. If you want the free RAM so badly, you'll be better off in an interface where you can kill multiple apps by swiping them away. Leaving three or four in the background is not going to affect your battery anyway (unless it's the official Facebook app, lol).
Edit: ^Oh wow, I hadn't even though of extending the customizations that far. Maybe I collectively we could figure out a way to include multiple functions into the LeeDroid Sense 4 tweak apps when they start coming out!
Sent from my EVO using Tapatalk 2
RegnierD said:
If you want the free RAM so badly, you'll be better off in an interface where you can kill multiple apps by swiping them away.
Click to expand...
Click to collapse
Now we just need an interface where you can kill multiple apps by swiping them away. (I'm referencing the fact that the app switcher on the eVOLTe only really shows you one app at a time).
RegnierD said:
Alright, this is only halfway done, but until I hear back from the One X devs and remove the menu software button, this will at least give you the menu softkey. I'm not going to bother making a flashable zip until I'm finished with everything, so, for now, follow these instructions.
Requirements:
1. SuperUser permissions (root)
2. Root Explorer (or a similar app with root permissions and the ability to edit any file as text)
Directions:
1. Navigate to /system/user/keylayout
2. Find the synaptics-rmi-touchscreen.kl AMD long-press on it. Select "Open in text editor."
3. Change the line for key 249 (APP_SWITCH) to MENU.
4. Use the on-screen menu key for the last time to select Save and Apply Changes.
5. Reboot.
Disclaimer: This means you will lose the ability to access the recent apps menu. I never really use it much, but I know some people do. So if you really need that, hold off until I update with a flashable zip (or the proper files to push if we don't have a recovery out already).
As soon as I figure out how to remove the on screen button, I'll give a real update and freshen up the OP. This will be my first public mod, so try to cut me a little slack, and keep in mind I'm not really a dev, I'm just trying to help out and expand my knowledge a little. Who knows, maybe I'll keep picking up on things and put out a theme, and maybe even a rom of my own eventually!
Sent from my EVO using Tapatalk 2
Click to expand...
Click to collapse
Are u still working on the longpress home for recent? If so hit me up
Sent from my MZ609 using Tapatalk 2
jirafabo said:
I'll be checking back in on this progress. The lack of a menu button, and the resulting 15% of screen wasted on a soft menu button, is by far the biggest problem with this phone. It really is pathetic to play a full screen game and have that silly soft menu button at the bottom.
I would prefer the multitask button to be a menu, and long-press home become multitask like on previous phones.
Click to expand...
Click to collapse
This ^^^^^↑^^^^^↑↑↑↑↑^^^^^^
Couldn't agree more. And much thanks o OP.
sent from 2yr old Evo on ICS
wvufan said:
I've done some Android dev, so I may be able to put some effort into this. Personally, I'd like to see the keys like:
Back: short = Back, long = kill current app (like Cyanogen)
Home: short = Home, long = recent apps
Multitasking: short = Menu, long = voice search (like long press search on EVO 4G)
Click to expand...
Click to collapse
Oops. Actually THIS ^^^^^^↑^^^^^^↑^^^^^^
sent from 2yr old Evo on ICS
Hi, well I've searched google and this forum i cant find any fixes. Thanks in advance for your help. Hope this also helps someone out with the same problem.
Archos gamepad suddenly has button mapping issues and i dont know how to fix it.
Problem: the following buttons all map to the same value "button x". So their actual button's proper value isnt being read. So what i mean is, if i use any emulator or app (even the archos mapping tool) and if i try to map any of these following buttons, they all map to the same value. List of buttons that are giving me this problem :
Up, left, start, X, A.
So its incredibly frustrating if im in an emulator and want to map button Up to Up in the app. Because instead it thinks ive pushed the X button. The analogs still work, but this is crazy i cant figure out whats wrong.
Problem exists in the homescreen also!
Things ive tried to fix this:
Reinstalling the latest firmware
Restoring back to factory defaults
Does anyone have any advice ?
I Swear I've had it with this archos gamepad. First i thought the ghost screen touches were annoying, now this has started to happen. Just dont buy one, i dont recommend!
Update the mapping tool from google play
sent from my UNLOCKED gt-s5360 using the XDA app
some progress!
yousef8824 said:
Update the mapping tool from google play
sent from my UNLOCKED gt-s5360 using the XDA app
Click to expand...
Click to collapse
Hello yousef, im afraid this is not the problem. it cannot be resolved with app updates, it looks like i need to hack the device.
Ive even disabled all mapping tools and still it behaves like this.
Right now i found that if i hold down the X button, the device behaves properly and reads the buttons correctly!! What madness is this, the only way i can use the device properly is to hold down the x button?? I may have to glue it down or something? it even solves the ghost screen touching!
i have resorted to this ghetto fix for now:
img59.imageshack.us/img59/5175/6r8f.jpg
i have rooted it. i need to completely disable the Button X. can someone help me? I want to somehow edit some settings in some file to completely disable the X Button. So i dont want the button to function anymore.
i also believe the X button behaves like the Back Button in Android OS. And so maybe i should look for a way to disable the Back Button? Anyone have some advice?
thank you
Xaibatsu said:
i have rooted it. i need to completely disable the Button X. can someone help me? I want to somehow edit some settings in some file to completely disable the X Button. So i dont want the button to function anymore.
i also believe the X button behaves like the Back Button in Android OS. And so maybe i should look for a way to disable the Back Button? Anyone have some advice?
thank you
Click to expand...
Click to collapse
You could modify some file /system/usr/keylayout/
You must find the right file for the buttons, and comment out line for X.
I wish you luck, because I can't help you more precisely.
Sent from my GT-I9100 using xda app-developers app
The a button is the back key
Sent from my ARCHOS GAMEPAD using xda app-developers app
yousef8824 said:
The a button is the back key
Sent from my ARCHOS GAMEPAD using xda app-developers app
Click to expand...
Click to collapse
Thats odd, i swear i thought the x button is back.
Ok well i need to find the key layout file and delete or conment out the entry for this button.