[Q] Disabling menu and back keys? - AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin

Any idea how to disable both the menu and back key? Not just turning the backlight off but actually disabling them.

androidsavage23 said:
Any idea how to disable both the menu and back key? Not just turning the backlight off but actually disabling them.
Click to expand...
Click to collapse
System/usr/keylayout and put a # sign before the keys?
Sent from my SAMSUNG-SGH-I337 using XDA Premium 4 mobile app

Could you actually do me a huge favor and try it out? I did exactly that but I don't know if it worked see my menu and back keys are messed up so they would randomly click. Now idk if it works or not. You have to go to system/usr/keylayout and open general.kl as a text file the numbers are 139 and 158.

androidsavage23 said:
Could you actually do me a huge favor and try it out? I did exactly that but I don't know if it worked see my menu and back keys are messed up so they would randomly click. Now idk if it works or not. You have to go to system/usr/keylayout and open general.kl as a text file the numbers are 139 and 158.
Click to expand...
Click to collapse
They would be disabled... That's how you know it works. They would not function.
You do it. You asked for it. Now either do it or don't do it. Don't ask another person to test what YOU asked for.
Sent from my SAMSUNG-SGH-I337 using xda premium

Related

[Q] Disable Double Tapping the Home Button

Before anyone asks, yes I did search this topic on the forums Is there any way to disable the action of double tapping the home button?
it's in application settings, and at the bottom of the list there is none, also:
wrong fourm, go to q & a.
neaddean said:
it's in application settings, and at the bottom of the list there is none, also:
wrong fourm, go to q & a.
Click to expand...
Click to collapse
i don't think there is a "NONE" option in froyo. there is in gingerbread.
Sent from my MB860 using XDA App
no "none" option in froyo.
pukemon said:
no "none" option in froyo.
Click to expand...
Click to collapse
Correct
Sent from my MB860 using Tapatalk
pukemon said:
no "none" option in froyo.
Click to expand...
Click to collapse
Oh, I'm sorry. If you have ti backup, try making the double tap home point to something you dont use like news, then freeze that app in ti.
Someone posted a way to make double tap home do anything you want by editting build.prop. Maybe you can tweak that to get it to do nothing.
Piece of cake!
How to do this, on froyo.
1) Download SQLite editor free from market.
2) Open it, and scroll down to the Storage Settings(the last one with: com.motorola.android.providers.settings) -> settings.db -> settings
4) Scroll down to double_tap(3rd from the end), edit record and change the value to empty!
100% tested/working!

[Q] Screenlock with search button

Hi, I want to unlock my device with search button so i edited the /system/usr/keylayout/qwerty.kl
its like that;
key 217 POWER WAKE_DROPPED
key 127 HOME WAKE_DROPPED
It is perfectly locks the screen but it doesnt unlock. I tried lots of settings but i couldnt done. What should i do? What should i change?
I'm not much into this stuff, but shouldn't the key code be the same in both lines ?
I've removed the dropped from both of the lines and now I can unlock the device. But I can't lock the device
There could be a code on Spare Parts that changes the function of the detach button or something related to CM settings.
Can anybody try this: http://forum.xda-developers.com/showthread.php?t=850464
123fokus said:
I'm not much into this stuff, but shouldn't the key code be the same in both lines ?
Click to expand...
Click to collapse
One is for not sleeping mod and the other one is for sleeping mod i think. Both of them was the search button in default so i did it that way.
jhonnyx1000 said:
I've removed the dropped from both of the lines and now I can unlock the device. But I can't lock the device
There could be a code on Spare Parts that changes the function of the detach button or something related to CM settings.
Click to expand...
Click to collapse
I can unlock it but while in 2-3 sec. after locking.
jhonnyx1000 said:
Can anybody try this: http://forum.xda-developers.com/showthread.php?t=850464
Click to expand...
Click to collapse
Its the same thing that i do manuel. But im gonna try it
Sorry for weak English.
I've changed 'key 217' from SEARCH to POWER but it doesn't really behave as a POWER button after locking the screen.
jhonnyx1000 said:
I've changed 'key 217' from SEARCH to POWER but it doesn't really behave as a POWER button after locking the screen.
Click to expand...
Click to collapse
I think there is a problem with search button function after locking the screen. I found that when im listening music then i lock the screen with search button and wait for 5-10 secs. then press the search button and the phone wakes up. So search button doesn't work properly when the phone is locked. So what we should do now?
Lotus-one said:
I think there is a problem with search button function after locking the screen. I found that when im listening music then i lock the screen with search button and wait for 5-10 secs. then press the search button and the phone wakes up. So search button doesn't work properly when the phone is locked. So what we should do now?
Click to expand...
Click to collapse
Is there any other configuration available?
jhonnyx1000 said:
Is there any other configuration available?
Click to expand...
Click to collapse
I dont know I use this way now i lock with search button and wake up with home button this is better than the normal
That method should fix the problem.
Still not sure I it doesn't wake up D:
It solves the problem for a while but we need a permenant solution
Sent from my GT540 using XDA App
Then what does the power button do???
Sent from my GT540 using Tapatalk
androidboss7 said:
Then what does the power button do???
Sent from my GT540 using Tapatalk
Click to expand...
Click to collapse
Im using it for just turning on my phone this way is better than normal i like this very much
Sent from my GT540 using XDA App
The power button enables the device to sleep and to access the power menu (like reboot, power off, etc.). The method that is showed here of modifying other buttons to a power button only applies within the Android system.
Does anyone know how to lock the screen using the search button????
Sent from my GT540 using Tapatalk
Hopefully a soultion for full loc/unlock will emerge soon
saber_tooth said:
Hopefully a soultion for full loc/unlock will emerge soon
Click to expand...
Click to collapse
Yes I hope too
From Me
androidboss7 said:
Does anyone know how to lock the screen using the search button????
Sent from my GT540 using Tapatalk
Click to expand...
Click to collapse
Currently we are capable of locking the device but the unlocking has a significant glitch or error.
jhonnyx1000 said:
Currently we are capable of locking the device but the unlocking has a significant glitch or error.
Click to expand...
Click to collapse
I just want to know how to lock it!
Sent from my GT540
androidboss7 said:
I just want to know how to lock it!
Sent from my GT540
Click to expand...
Click to collapse
MANUALLY:
On a root exploring app, go to '/system/usr/keylayout/'. Then find the file 'qwerty.kl' and then open it with a text editor. You'll see there are lots of information on it. Find the line that contains:
Code:
key 217 SEARCH
Change the SEARCH to POWER and then save the file.
Restart your phone and then done!
AUTOMATIC:
Install 'http://forum.xda-developers.com/attachment.php?attachmentid=467998&d=1292740886 (Credits to appelflap)
OR copy the 'qwerty.kl' file inside this to '/system/keylayout/usr'.

[GUIDE] remap capacitive buttons

I know a lot of people out there are doing this already, but it didn't seem like there was a guide or anything out there for the NS. So, here we go.
(Please, make sure you know what you're doing BEFORE you apply this modification. I can't be responsible if you somehow manage to brick, or make brick-like your phone while following this guide.)
-You can do this using either adb, Terminal, or apps like Root Explorer. Since I'm trying to make this as easy as possible, I'll explain how to do this using the "File Manager" app, which can be installed via Market for FREE.
First, you need a rooted phone. If your phone is not rooted, there is extensive existing literature on how to get this done. (It's awfully easy on our Nexus S )
Run File Manager, hit Menu > More > Settings, scroll way~~ down, and make sure that "Root Explorer" and "Mount System Folders" are checked.
Navigate your way to
/system/usr/keylayout
(you'll have to move Up a step or two to find 'system' folder at root level.)
[BACKUP THE ORIGNIAL FILE WE'RE ABOUT TO MODIFY]
Long-press the file 'cypress-touchkey.kl'
Select 'Copy'
Hit 'Paste', on the upper left corner of app.
You'll be asked to rename the file. Rename it to something reasonable. (like, cypress-touchkey.kl.bakup)
Hit 'Ok'
Make sure the file you just created exists.
[START MODIFICATION]
Long-press 'cypress-touchkey.kl' (again)
Hit 'Permissions'
Make sure that ALL THREE boxed under "Write" are checked, and hit OK.
Hit 'cypress-touchkey.kl' (yet, again)
Select Text > Text Editor
Here, you'll see something like,
Code:
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
key 217 SEARCH VIRTUAL
as you've guessed, the first part,
Code:
key ###
is telling which key this command (event) is for.
So we can intuitively tell that the number for our capacitive 'Back' button is probably 158.
the next section, 'MENU, HOME, BACK, SEARCH' tells Android what these buttons should actually do.
And a pretty good list of what an Android CAN do on a key-press is listed here: http://goo.gl/vrCvJ
From the list, lookup anything that starts with KEYCODE_ and you'll find a pretty good description of what that command ('event') makes Android do.
Just add this keycode, WITHOUT the KEYCODE_ part of the code, to where the current cypress-touchkey.kl reads 'MENU, HOME, BACK, SEARCH' (according to what you want which button to do, that is)
So, for example, I've remapped my 'Search' button to bring up the App Switcher (Recent Apps). (Long-pressing the Home button just didn't cut it for me )
So, my 'cypress-touchkey.kl' looks like this:
Code:
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
key 217 APP_SWITCH VIRTUAL
Now, save your modified 'cypress-touchkey.kl' by selecting,
Menu > Save, and the exit by selecting Menu > Exit.
To be safe, let's set the permissions back to what they were.
From the File Manager App, long-press 'cypress-touchkey.kl' > Permissions,
and un-check the lower two check-boxes under the 'Write' column, and hit "OK"
Now, reboot your phone, and see if all went well
I actually tried this mod on a ICS rom, expecting the ICS app switcher to pop up, but somehow, the APP_SWITCH event seems to bring out the GB Recent App thingy.
Functionally, it still works pretty well for me. But if there's anyone out there who has any information on how to bring out the all-new ICS App switcher with a key-event, I'd really appreciate it
Hope this makes someone's life easier!
Thanks for the post.
I've tried to remap my search key as you described, but the APP_SWITCH command doesn't seem to work? Nothing happens for me. When I switch the value back to "search" that command works again, so I know the have edited the file correctly.
Any ideas? Does the kernel/rom affect this? I'm running oxygen + franco kernel.
Thanks!
Edit: Spelling.
Thanks for this, will definitely try out soon!
Follow the leader @corythug
Any idea what the app switch command is on ICS
Sent from my Nexus S 4G using xda premium
The ICS app-switch is, in my opinion, the best way to use search button key on Nexus S with ICS rom.
Hope someone will be able to find the correct command ot for that and someother creates a flashable zip to do the mod easily from recovery
Is there any way to remap the longpress on capacitive buttons?
Sent from my Google Nexus S using XDA App
cahir_cz said:
Is there any way to remap the longpress on capacitive buttons?
Sent from my Google Nexus S using XDA App
Click to expand...
Click to collapse
That's what were trying to figure out
Sent from my Nexus S 4G using xda premium
Thanks for the guide, I'll try it soon. My last few phones were from HTC and I love (or rather am so accustomed to) their button layout.
Sent from my Nexus S 4G using XDA App
Zorrich said:
Thanks for the post.
I've tried to remap my search key as you described, but the APP_SWITCH command doesn't seem to work? Nothing happens for me. When I switch the value back to "search" that command works again, so I know the have edited the file correctly.
Any ideas? Does the kernel/rom affect this? I'm running oxygen + franco kernel.
Thanks!
Edit: Spelling.
Click to expand...
Click to collapse
I don't think neither rom nor kernel should affect how this trick works ... unless maybe the rom dev. explicitly made changes to how the key events work ... which is highly unlikely ;;;;
are you sure you changed ONLY the key-event part? (HOME, BACK, etc.)
you shouldn't change the number that comes after the 'key' part of the script.
... I can't seem to think of any other reason this wouldn't work for you. :'(
Tried this, doesnt work on my kellmsking miui 2.8.1 with francos kernel :/ Changing the file does not change the button behaviour
olorin86 said:
I don't think neither rom nor kernel should affect how this trick works ... unless maybe the rom dev. explicitly made changes to how the key events work ... which is highly unlikely ;;;;
are you sure you changed ONLY the key-event part? (HOME, BACK, etc.)
you shouldn't change the number that comes after the 'key' part of the script.
... I can't seem to think of any other reason this wouldn't work for you. :'(
Click to expand...
Click to collapse
Yes, I've only changed the key-event to APP_SWITCH. Actually, I even tried copy/pasting your code into the file, still didn't work.
Thanks anyways. At least I now know how to do it, just have to figure out why it doesn't work, haha.
When using this the old recent apps comr up, meh.
Sent from my Nexus S using Tapatalk
we need to find the correct keyword for triggering the new ics app switch and it will be great
Anyone got a configuration to recommend to complement the ICS on screen buttons?
brrip said:
Anyone got a configuration to recommend to complement the ICS on screen buttons?
Click to expand...
Click to collapse
I tried logcat to see what happens when it's brought up but i'm not a dev, I know some code buy don't have a computer to try and implement for testing
Sent from my Nexus S 4G using xda premium
I tried alogcat from the market. It didn't show anything of worth after a key press.
Sent from my Nexus S 4G using xda premium
any news about that?
provolinoo said:
any news about that?
Click to expand...
Click to collapse
+1!!!
Sent from my Nexus S
Would be pretty sweet idd
Greenthy said:
Would be pretty sweet idd
Click to expand...
Click to collapse
Agreed, would love to get this working on ICS.

Changing the buttons on the Asus Dock

So I just got my dock a week or so ago and I'm loving it. Hardly ever take it off now. I especially like the shortcut keys. I was just wondering if there is anyway to change what the keys do when pressed? I hardly ever use the menu key because most of ICS/JB got rid of it. However it would be nice to change that key to say open my recently used apps or anything else really lol. I also was curious about changing what apps are open. So when I use the browser button the stock ics browser wont open but chrome will. Or I can change my settings button to just show notifications.
Sent from my Transformer Pad TF300T using xda premium
Nschneider7 said:
So I just got my dock a week or so ago and I'm loving it. Hardly ever take it off now. I especially like the shortcut keys. I was just wondering if there is anyway to change what the keys do when pressed? I hardly ever use the menu key because most of ICS/JB got rid of it. However it would be nice to change that key to say open my recently used apps or anything else really lol. I also was curious about changing what apps are open. So when I use the browser button the stock ics browser wont open but chrome will. Or I can change my settings button to just show notifications.
Sent from my Transformer Pad TF300T using xda premium
Click to expand...
Click to collapse
I have also been very interested in figuring out this. From what i have seen, there is a file located in /system/usr/keylayout/asusdec.kl. If you open the file as a text document it shows you the key layout. It also looks like key139 is the "menu" key. I am sure we could change this one entry and copy it back into place to change the mapping, but i do not know what key word to use for the recent apps menu. If we could find this key word, we could edit the file to change the mapping. Does any one know the keyword to use to map the recent apps to a key?
Update: If you edit this .kl file and change key139 to read APP_SWITCH. The key will now bring up the recent apps menu. The only problem is it brings up the old looking recent apps. I am looking into how i can make it bring up the new app switch menu.
Interesting. Maybe getting a hold of Asus and asking them for the keywords would be nice. I wonder if they would have that information or be willing to give it out. Until then we can just keep messing with them and see what they do lol.
Sent from my Transformer Pad TF300T using xda premium
Plus it would be nice to have the lock button also turn the display on. I am running the CM10 build out there so i'm not sure if it does it on stock but would be a cool feature.
Sent from my Transformer Pad TF300T using xda premium
Nschneider7 said:
Plus it would be nice to have the lock button also turn the display on. I am running the CM10 build out there so i'm not sure if it does it on stock but would be a cool feature.
Sent from my Transformer Pad TF300T using xda premium
Click to expand...
Click to collapse
Unfortunately the lock button doesn't unlock even on the stock ROM. I'll be watching this thread closely to see if you guys figure out a workaround. Maybe a semicolon between commands to send multiple commands at once? Who knows.
Nschneider7 said:
Plus it would be nice to have the lock button also turn the display on. I am running the CM10 build out there so i'm not sure if it does it on stock but would be a cool feature.
Sent from my Transformer Pad TF300T using xda premium
Click to expand...
Click to collapse
opethfan89 said:
Unfortunately the lock button doesn't unlock even on the stock ROM. I'll be watching this thread closely to see if you guys figure out a workaround. Maybe a semicolon between commands to send multiple commands at once? Who knows.
Click to expand...
Click to collapse
To be able to unlock using the keyboard lock key:
You can go to the settings (in stock atleast) -> Asus settings -> Battery saving -> untick the mobile dock option.
I assume this requires rooting? And another thing, have you tried changing the browserbutton to Chrome or any other browser?
Does anyone know if I edit this file /system/usr/keylayout/asusdec.kl. and completely turn it into a garbled mess, will it potentially brick my device ( I'll back up the file of course ) I just wnat to ensure if I reboot after making a change to it and I've made a mistake will it stop my device booting ? I've only rooted my tf300 and it's still locked....
brittan said:
I have also been very interested in figuring out this. From what i have seen, there is a file located in /system/usr/keylayout/asusdec.kl. If you open the file as a text document it shows you the key layout. It also looks like key139 is the "menu" key. I am sure we could change this one entry and copy it back into place to change the mapping, but i do not know what key word to use for the recent apps menu. If we could find this key word, we could edit the file to change the mapping. Does any one know the keyword to use to map the recent apps to a key?
Update: If you edit this .kl file and change key139 to read APP_SWITCH. The key will now bring up the recent apps menu. The only problem is it brings up the old looking recent apps. I am looking into how i can make it bring up the new app switch menu.
Click to expand...
Click to collapse
This issue exists in many places. However, its rather difficult to fix and requires a flash of a patch to fix. I had to do it on ics aokp on my phone... I found someone who would do make the patch for me. However that was aokp, and I don't think it would work here. Also, it requires an unlocked loader.
Sent from my SGH-T989 using xda premium
i was literally jut looking at my dock thinking why do they have a menu key but no recent apps key?
jusatin said:
To be able to unlock using the keyboard lock key:
You can go to the settings (in stock atleast) -> Asus settings -> Battery saving -> untick the mobile dock option.
Click to expand...
Click to collapse
This is useful, just tried it on my TF700. However, now it looks like the screen lock doesn't work. That is to say, when I wake with a key on the dock, there is no slide lock, just comes right back to the Launcher screen. Sounds like that could be a bit of a security issue, honestly.
Also, since the option specifically mentions it drains battery (assumedly from continuously polling from input from the dock), I think I'll wait until this is sorted out a bit better.
This is kind of annoying, tho. Having the TF right here next to me like a laptop, but not being able to wake it with this nice huge keyboard dock...
chriwu said:
I assume this requires rooting? And another thing, have you tried changing the browserbutton to Chrome or any other browser?
Click to expand...
Click to collapse
Check this thread:
http://forum.xda-developers.com/showthread.php?t=1497624

What is this screen that keeps appearing and how do I disable it?

I see it sometimes when I pull my phone out of my pocket. I have no idea which combination of buttons/screen taps/ or whatever I'm doing to make it appear.
It's an LG memo app that came with the phone. If you double tap volume-up, it starts, bypassing the lock screen. I'm pretty sure you can change this in settings.
BTW, if you double tap volume-down, the camera app starts, bypassing the lock screen. THIS is very useful!
Sent from my BTV-W09 using Tapatalk
Thanks!
You can disable the memo app if it bothers you or you have no need for it.
Can the VOLUME UP shortcut be remapped?
pizza_pablo said:
Can the VOLUME UP shortcut be remapped?
Click to expand...
Click to collapse
I've changed it to the flashlight using the app key plus.
Obscure Reference said:
I've changed it to the flashlight using the app key plus.
Click to expand...
Click to collapse
SWEET! That's a great option! :laugh:
cory733 said:
I see it sometimes when I pull my phone out of my pocket. I have no idea which combination of buttons/screen taps/ or whatever I'm doing to make it appear.
Click to expand...
Click to collapse
That is the built-in screen capture. You may have been accidentally pressing the screen capture key. I can't remember anymore which one is the default, because I have re-assigned it somewhere else. You have the option to save it as image in Gallery app or the Quick Memo app.
obscure reference said:
i've changed it to the flashlight using the app key plus.
Click to expand...
Click to collapse
it works! :d
awesome! Thanks, again!

Categories

Resources