[Q] (Q) Disable Volume Keys? Samsung Galaxy S3 - Sprint Samsung Galaxy S III

Can anyone point me in the right direction of disabling the volume keys? I am rooted and running CM10 / Nova Launcher.
Currently I used Volume Control Pro+ to keep my volume in check, but I was using AudioManager Pro and it started to give me problems with the volume not staying locked properly. Ultimately, what would solve my issue is disable the volume keys altogether. I realize that this could lead to potential problems should I need to go back to stock at any point, but I would undo this feature if I need to revert back to stock.
Any pointers here?

Found solution on my own
hutru01 said:
Can anyone point me in the right direction of disabling the volume keys? I am rooted and running CM10 / Nova Launcher.
Currently I used Volume Control Pro+ to keep my volume in check, but I was using AudioManager Pro and it started to give me problems with the volume not staying locked properly. Ultimately, what would solve my issue is disable the volume keys altogether. I realize that this could lead to potential problems should I need to go back to stock at any point, but I would undo this feature if I need to revert back to stock.
Any pointers here?
Click to expand...
Click to collapse
I figured it out searching around some different forums. Using a RB Text Editor, you can insert a # or // before the volume key lines in both sec_key.kl and sec_keys.kl which is under /system/usr/keylayout/

hutru01 said:
I figured it out searching around some different forums. Using a RB Text Editor, you can insert a # or // before the volume key lines in both sec_key.kl and sec_keys.kl which is under /system/usr/keylayout/
Click to expand...
Click to collapse
Put "SOLVED" in the thread title please
Sent from my PG06100

I Want to try this but have one question first , won't this prevent you from going into download/recovery mode if for some reason something goes wrong and you need too?
Sent from my SPH-L710 using xda app-developers app

gkunk79 said:
I Want to try this but have one question first , won't this prevent you from going into download/recovery mode if for some reason something goes wrong and you need too?
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
Nope, hes not completely turning off its functionality...hes only turning it off while his phone is booted up into the Android OS
And even if it does you could always go into a terminal and do
Code:
reboot download
Or
Code:
reboot recovery
Sent from my PG06100

So I worked on this for a few hours today and this worked for me. Put together a flash able zip file disabling the codes in the sys/use/key layout files.
Keys off
http://www.mediafire.com/download.php?41gnxl4ot5vq8yh
Keys back on
http://www.mediafire.com/download.php?md99ii9a4bsqiwd
This worked for me. Galaxy s3 on cm 10.1
Sent from my SPH-L710 using xda app-developers app

I know nothing about modifying mobile systems, but I would really like disabling these volume control buttons on my samsung galaxy nexus. Therefore I want to ask you - are these files different of various phones, or are they all the same ? Will it work for my nexus with 4.3 android ?
Thanks in advance!

No, the keys have different codes/mappings

Related

Back Button App for physical keyboard

There's a search button and menu button but no back button on the physical keyboard. Somebody should make a mini app that acts as a back button, so we could assign 1 of our 3 keys to the app and have that functionability.
I live in very cold weather and between my fingers getting so cold the buttons wont recognize my press or wearing gloves and having to remove them to hit one of the buttons, this could be a useful app for people (me).
Also a home button app could work as well for them.
What do ya think?
Sent from my T-Mobile G2 using XDA App
+1 for this idea. I wear gloves constantly outside...
I too would like to have a physical back button. +2 to this idea! I couldn't find any easy solution to this on my own, but it would be great to have a back button mapped to the second or third quick key.
Sent from my T-Mobile G2 using XDA App
erm..might sound stupid but does the backspace key not do this already (when not in a text field).
The backspace/delete key does not do this.
I was referred to this post by fellow XDA user nomadism. He writes:
nomadism said:
"user1" "user2" "user3" are the three QuickKeys, starting from the left
Click to expand...
Click to collapse
I set it to "user3", so there won't be any accidents pressing the key.
Sent from my T-Mobile G2 using Tapatalk Pro
Cyanogenmod 6.1.0 stable + ClockworkMod 2.5.1.3 + sonnysekhon's Gingerbread theme
Well with the stock rom and a temp root, it acts like it works but then never does..says I need to reboot to take effect but when I do it doesn't work, am I doing it wrong? I had to use the first version cause the second version of the app would crash on me
collins521 said:
Well with the stock rom and a temp root, it acts like it works but then never does..says I need to reboot to take effect but when I do it doesn't work, am I doing it wrong? I had to use the first version cause the second version of the app would crash on me
Click to expand...
Click to collapse
Pretty sure you need full root / S-Off for this as the /system/usr/ files it overwrites would get reset to stock every time you reboot with temproot.
Well, yeah, it needs root. As the thread says "for full rooted devices. (NAND unlocked. Full, permanent write access to the system dir is needed)".
I'm sure you can't do this without root.
Use your nose to press the soft key, it's usually warmer than your fingers. Also convenient if your hands are full.
Guess this could help:
http://forum.xda-developers.com/showthread.php?t=850464
They got some gloves I think from isotoner, called smart touch, made specifically for touch screen phones. You should check it out.
Sent from my T-Mobile G2 using XDA App
g4rb4g3 said:
Guess this could help:
http://forum.xda-developers.com/showthread.php?t=850464
Click to expand...
Click to collapse
Thats exactly what I use. I also used this program to set "@"to DPAD_LEFT and "www" to DPAD_RIGHT. It works as an up and down button. Like a mini replacement for the trackpad. I figured if ur fingers were too cold to reach the back button, you might could use some help witht that trackpad too ; )

[Q] Disable Capacitive Buttons (Q)

Hello Brochachos from all over the world! I was wondering if there was any way to turn off capacitive buttons fully and just use the on-screen soft keys? That would be awesome. Thank you for your insight and help on this fellow xda members! <3 kse91holydiver
kse91holydiver said:
Hello Brochachos from all over the world! I was wondering if there was any way to turn off capacitive buttons fully and just use the on-screen soft keys? That would be awesome. Thank you for your insight and help on this fellow xda members! <3 kse91holydiver
Click to expand...
Click to collapse
I had a mod for the nexus s that disabled the keys, I could adapt it to this phone probably. Using cm9 i'm guessing?
No, actually I'm using AOKP, does that change the difficulty in adapting it?
NVM I looked at your mod and adapted it myself, no flash zip necessary. For anyone else who wants to know you delete the text in /system/usr/keylayout/sec_touchkey.kl and then save changes in a root explorer app.
Is there any trick to turning the lights off on cm9?
Sent from my SPH-D710 using xda premium
Yeah I don't want to completely disable the keys themselves, I just want to turn the annoying, battery-wasting backlight off. The CM9 setting to do so does not work.
webran61 said:
Yeah I don't want to completely disable the keys themselves, I just want to turn the annoying, battery-wasting backlight off. The CM9 setting to do so does not work.
Click to expand...
Click to collapse
I want to know this too.
This was made by T.C.P. But I use it on CM9 Codename and AOKP. Turns off the lights but they still work. Flash in recovery and enjoy.
http://db.tt/clMO98XH
Sent from my SPH-D710 using xda premium
Qwallace70129 said:
This was made by T.C.P. But I use it on CM9 Codename and AOKP. Turns off the lights but they still work. Flash in recovery and enjoy.
http://db.tt/clMO98XH
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Could I just push this file somewhere in the system? What's the path?
phatmanxxl said:
Could I just push this file somewhere in the system? What's the path?
Click to expand...
Click to collapse
/system/lib/hw/
Push it there and reboot
Some ICS roms like codename have a "lights.sph-d710.so" file so push the the lights.exynos4.so and delete the d710 one then reboot (if that's the case).
batting1000 said:
/system/lib/hw/
Push it there and reboot
Some ICS roms like codename have a "lights.sph-d710.so" file so push the the lights.exynos4.so and delete the d710 one then reboot (if that's the case).
Click to expand...
Click to collapse
Yea I just read the script and did that thanks. It works.
Qwallace70129 said:
This was made by T.C.P. But I use it on CM9 Codename and AOKP. Turns off the lights but they still work. Flash in recovery and enjoy.
http://db.tt/clMO98XH
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
It seems once the d710 file is deleted the brigbtness goes crazy and the widget for brightness stops working, anyone else?
Sent from my SPH-D710 using xda premium
TeamERA said:
It seems once the d710 file is deleted the brigbtness goes crazy and the widget for brightness stops working, anyone else?
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
That's why I said make sure you add the lights.exynos4.so after you delete the d710 file and then reboot.
Don't forget to set permissions before your reboot.
Why would you ever want on screen buttons instead. Phone screens are small as is, and youre choosing to use a portion of it to be dedicated to buttons you already have? Not to mention theyre not as responsive as capacitive buttons and theyre bound to get in the way sooo much more. I think its the worst part of ics, and Ill be dissapointed if the s3 ships without capacitive buttons, even if it does make ot look cooler. And the removal of search and menu is downright retarded
The .so file does indeed work. Thanks so much for the workaround.
Also on the general subject I would much prefer fewer buttons on my mobile device. My HP laptop has capacitive buttons and they are the cause of many headaches. Even the menu button on my E4GT sporadically activates on its own from time to time. Google did it right with ICS and the Galaxy Nexus. The keys are there only when you need them and auto-hide when you don't meaning the screen real-estate is not as much of an issue as one might think.
Sent from my Touchpad using xda premium
webran61 said:
The .so file does indeed work. Thanks so much for the workaround.
Also on the general subject I would much prefer fewer buttons on my mobile device. My HP laptop has capacitive buttons and they are the cause of many headaches. Even the menu button on my E4GT sporadically activates on its own from time to time. Google did it right with ICS and the Galaxy Nexus. The keys are there only when you need them and auto-hide when you don't meaning the screen real-estate is not as much of an issue as one might think.
Sent from my Touchpad using xda premium
Click to expand...
Click to collapse
If they dissapear its rare. And that portion of the screen is blacked out anyways. Ive never had an issue with my capacitive buttons.
webran61 said:
Yeah I don't want to completely disable the keys themselves, I just want to turn the annoying, battery-wasting backlight off. The CM9 setting to do so does not work.
Click to expand...
Click to collapse
Have you tried RootDim, in lock mode?
MultiLockOn said:
Why would you ever want on screen buttons instead.
Click to expand...
Click to collapse
I am trying to do it because my hardware buttons randomly press themselves making the phone difficult to use. I get where you are coming from though.
I'm searching around trying to fix my phantom search button issue but don't want to flash a different rom or start a new thread... I'm rooted with framaroot (great system, so easy to do), have busy box, root browser- virgin mobile S2 SPH-D710, same as the Epic 4G touch. I found a thread in another forum talking about editing the button to simply no longer have a task, but in regards to the menu button and not the search button which is the one that is giving me the phantom issue. Thread is here:
http://androidforums.com/galaxy-s2-...th-ics-jb-phantom-menu-keypress-easy-fix.html
http://forum.xda-developers.com/showthread.php?t=2203059
Anyone know how to go about deleting the functionality of the search button?
I want to take this approach as it seems the only way short of a new/referb or hunting down a custom rom where the software somehow fixes the issue via programming. I did have virgin send me a referb and it had the same issue lol, so working on fixing it the xda way haha. For those with the same issue and wondering what is causing it, IMO the best explanation I found was from another forum, it seems to be hardware, where a screen replacement or capacitor addition is the fix because some S2s had bad quality control and a magnetic shield was not installed correctly and when the cell antenna is in a low reception area, it increases power and that causes an inductive voltage situation or some other power issue and makes the handset think the menu or search button is pressed. I found some who feel that even though it's a hardware issue, of course the software could be set to prevent the cell antenna from 'juicing up' in low reception areas.

Remapping Physical Power Button

Hello all! I have recently become fascinated with the app here ( http://forum.xda-developers.com/showthread.php?t=1721895 ) and now have no use for my power button. i want to remap it to do absolutely nothing just like it was broken so that my pesky brother cannot get into my phone. I went to system/usr/keylayout/tuna-gpio-keypad.kl and changed key 116 which is the power button to none but nothing happened. does anyone know what to put there to do such a thing?
I just tried deleting the key 116 and it disabled the power button but then caused PGM to stop working. Still trying to figure this out.
EDIT:Someone has to know how to do this. XDA is the smartest community Ive followed
Perhaps turn it into a camera button.
butter and jelly please...
@rbiter said:
Perhaps turn it into a camera button.
butter and jelly please...
Click to expand...
Click to collapse
When you turn it into another function lets say HOME. The swipes from the PGM application look at that key and do what said key says. so we need to find a way to add a fake key, say key 1000 with the function POWER for it to work. but Im not smart enough to do that. i downloaded the free app and decompiled it hoping to find A line of code that says look at key 116 for slide to wake but i have yet to see something like that. my theory is that if we change what it looks for in the app and then manually add that into ( system/usr/blah blah ) it should work. Sounds good to me at least. what do you think?
Bumpity bump bump! Someone must know!
^
Sent from my Galaxy Nexus using Tapatalk 2
This may turn into a rom option in the future.
[Very interested]
Sent from my Galaxy Nexus using xda premium

Remapping the home button

Ive been trying to make my home button function the same as the power button. First I made a nandroid and rebooted andthen went here--> System/usr/keylayout/generic.kl and changedkey# whatever-said-home to say POWER. rebooted and it didn't work, it worked just like normal. Then I went back and changed every key that said home to power anywhere in the keylayout directories and still, it works like normal! Any advice or knowledge to help me solve this puzzle?
Thanks!
Sent from my Kangadore 64
I'm on an aokp build BTW and I tried the button remapping app as well. Stubborn button =
Sent from my Kangadore 64
Well for starters, did you reboot?
There should be a thread in one of the US variants forums that tells you about the key layouts.
Theres also an app that will give you info on what button you just pushed.
Been a while so cant remember the name and dont know if itll be compatible, but maybe someone else does and will chime in.
Sent from my SGH-T999 using xda app-developers app
I've rebooted with every change. I tried theapp that tells you what button you pushed but it doesn't show what the power or home buttons key in as, its in the FAQ of the app I don't know what the issue is, I can change other buttons around but this one refuses to cooperate.
Sent from my Kangadore 64
mrtoast said:
I've rebooted with every change. I tried theapp that tells you what button you pushed but it doesn't show what the power or home buttons key in as, its in the FAQ of the app I don't know what the issue is, I can change other buttons around but this one refuses to cooperate.
Sent from my Kangadore 64
Click to expand...
Click to collapse
You have to edit the sec-keys.kl file to whatever you want then reboot. Generic.kl only takes effect if sec-keys.kl isn't there. So edit sec-keys.kl then reboot and you should be golden
Sent from my Galaxy Nexus using Tapatalk 2
@OP....
Got a better idea. Download apex launcher, and download screen off and lock.....
Open apex settings, behavior settings, home button...
Have it launch screen off and lock when pressed. Your phone will now turn off when you press the home button from your home screen.
Viola
@elesbb That worked like a champ! Thank you very much
Sent from my Kangadore 64
mrtoast said:
@elesbb That worked like a champ! Thank you very much
Sent from my Kangadore 64
Click to expand...
Click to collapse
Could you be specific as to what you changed exactly. I am also interested in this...... Thanks!
mrtoast said:
@elesbb That worked like a champ! Thank you very much
Sent from my Kangadore 64
Click to expand...
Click to collapse
Glad it worked!
dls5375 said:
Could you be specific as to what you changed exactly. I am also interested in this...... Thanks!
Click to expand...
Click to collapse
all they did was change what function the home button does. Look at a few posts up to see the file they changed and it's quite self explanatory, you will see a list of four buttons and their default assignments. Then you can either disable one by putting a # in front of the entire line or change them to say make the home function as a camera button.
Sent from my SGH-T999 using Tapatalk 2
elesbb said:
Glad it worked!
all they did was change what function the home button does. Look at a few posts up to see the file they changed and it's quite self explanatory, you will see a list of four buttons and their default assignments. Then you can either disable one by putting a # in front of the entire line or change them to say make the home function as a camera button.
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
OK, I got it....just change HOME to POWER and reboot....thanks
dls5375 said:
OK, I got it....just change HOME to POWER and reboot....thanks
Click to expand...
Click to collapse
No problem. Let us know if you run into any issues!

[Q] Built-in 4-Way Menu

Does anyone know if there is a built-in 4-way menu like the default: http://i.imgur.com/BmUz8Nz.png . So something like Power off, Airplane, Reboot, Recovery, Download/Odin, et cetera?
I've seen images of them but can't find the files. Thanks!
EDIT: Like this..
http://www.xda-developers.com/wp-content/uploads/2013/02/powermenu.jpg
http://forum.xda-developers.com/showthread.php?t=2125196
xdapowerapps said:
Does anyone know if there is a built-in 4-way menu like the default: http://i.imgur.com/BmUz8Nz.png . So something like Power off, Airplane, Reboot, Recovery, Download/Odin, et cetera?
I've seen images of them but can't find the files. Thanks!
EDIT: Like this..
http://www.xda-developers.com/wp-content/uploads/2013/02/powermenu.jpg
http://forum.xda-developers.com/showthread.php?t=2125196
Click to expand...
Click to collapse
Like this?
http://forum.xda-developers.com/showthread.php?t=2269868
Sent from Insane S4
SICK MADE DEVELOPMENT
alloycowboy said:
Like this?
http://forum.xda-developers.com/showthread.php?t=2269868
Sent from Insane S4
SICK MADE DEVELOPMENT
Click to expand...
Click to collapse
No, that is what I currently have. You press Power button, then press Restart, and THEN you get the 4 way menu. I want the one where all the options show up after pressing the Power button. Thanks for looking.
xdapowerapps said:
No, that is what I currently have. You press Power button, then press Restart, and THEN you get the 4 way menu. I want the one where all the options show up after pressing the Power button. Thanks for looking.
Click to expand...
Click to collapse
Aint seen that one bro....sorry
Sent from Insane S4
SICK MADE DEVELOPMENT
as a workaround if you are rooted just get quick boot and quick boot plus from market.. that is what i use on all phones.
lgkahn said:
as a workaround if you are rooted just get quick boot and quick boot plus from market.. that is what i use on all phones.
Click to expand...
Click to collapse
I am rooted and I would like to keep the "stock" look and would prefer to mod than to install a program. I was hoping there was an Xposed module or a mod that I could simply flash. I guess once I get my computer back (God knows how long that will be), I'll make the module myself and upload it here. I'll wait to see if anyone has suggestions until then.
Bumpity bump.
Sent from my SGH-M919 using XDA Premium 4 mobile app

Categories

Resources