Is there a way to enable soft keys like Nexus or Moto X? I'm not looking for an app that fakes the behavior.
I have a Note 3 4.4.2 Kitkat (NC2).
edit: I found it working well, so I am updating this post.
[Enable soft menu keys]
edit "/system/build.prop", and add at the bottom:
Code:
qemu.hw.mainkeys=0
[Optional] Disable hardwired buttons.
edit "/system/usr/keylayout/Generic.kl", comment out these two lines so it looks like this:
Code:
# key 139 MENU
# key 158 BACK
After using a while, I found it works best if I keep the hardware buttons enabled too. Back key is now on both left and right side so it's easier to reach when using with one hand.
[Optional] Disable 3-dot menu button. When you enable soft-keys, there will be an additional menu shown in every app. This could waste lot of space. You should have Xposed mod installed, then look for Noverflow, and install that.
Noverflow xposed mod.
This doesn't work on Galaxy S5 Port Update 4 ROM, but works well with stock NC2 ROM.
[Optional] Once softmenu keys are added, you have less screen space. The Dialer app doesn't know how to scale, so you would have the bottom row keys chopped off a bit. You can make change the DPI settings so it'll shrink and be able to see everything.
Default screen DPI is 480. I changed it to 450.
Edit file "/system/build.prop", look for the line with "ro.sf.lcd_density=480" and edit so it looks like this:
Code:
ro.sf.lcd_density=450
[Optional] Remove AT&T wifi autoconnect.
I don't know why, but even if I uncheck autoconnect AT&T wifi, it still keeps trying. And you can't really remove the profile either.
Edit "/data/misc/wpa_supplicant.conf"
Look for ssid="attwifi", change that to something like this:
Code:
ssid="attwifi-sucks"
Related
Is there a way to disable the physical buttons on the N7000? I have enabled the software keys and I am running CM10.1. Any help would be appreciated.
EDIT: I've figured it out. For anyone else who wants to know how:
1) Use a root explorer and go to system/usr/keylayout/sec_touchkeys
2) Put a # before both lines
3) Reboot
You have now disabled the capacitive buttons. If you want to disable the home key but still let it wake your device:
1) Go to system/usr/keylayout/sec_key
2) Find the line that uses key 102 and replace "HOME" with "BREAK"
3) Go to system/usr/keylayout/gpio-keys
4) Fine the line that uses key 102 and replace "HOME" with "BREAK"
5) Reboot.
Liam0102 said:
Is there a way to disable the physical buttons on the N7000? I have enabled the software keys and I am running CM10.1. Any help would be appreciated.
EDIT: I've figured it out. For anyone else who wants to know how:
1) Use a root explorer and go to system/usr/keylayout/sec_touchkeys
2) Put a # before both lines
3) Reboot
You have now disabled the capacitive buttons. If you want to disable the home key but still let it wake your device:
1) Go to system/usr/keylayout/sec_key
2) Find the line that uses key 102 and replace "HOME" with "BREAK"
3) Go to system/usr/keylayout/gpio-keys
4) Fine the line that uses key 102 and replace "HOME" with "BREAK"
5) Reboot.
Click to expand...
Click to collapse
One advise. Since you found the answer, you can change the title from a question to something like a guide. I mean, change the title to something like "[Guide] Disabling physical/home buttons" or "[Steps] Disabling physical/home buttons".
To enable soft keys, or onscreen buttons, on any rooted ROM based on Android 4.0 ICS or later, simply add the following to the build.prop file: "qemu.hw.mainkeys" and set the value to zero ("0"). The line will look like this in the text file: "qemu.hw.mainkeys=0". Next, reboot your device and upon start up, a row of onscreen buttons will be at the bottom of your screen. Keep in mind that this will not disable the hardware buttons or disable the backlight, please search for another tutorial for that. Also, the buttons will obviously take up screen space so some things may look a little different or be covered up. If you would like to disable the soft keys, change the value of the line to one ("1") in the build.prop file. Be sure that the hardware buttons are enabled, and then reboot.
i have my HTC button mapped to the menu button. i've noticed that all the mods that remove the black 3-dot menu button that pops up across the bottom of the screen also remove the built-in 3-dot menu button in apps (like the one in the upper right of the Google Play Store, for instance). i assume this is because they are being told there is a hardware menu button, so they shouldn't show their built-in menus.
my question: is there a way to remove the annoying black bar across the bottom menu button, but keep the built-in app menu buttons?
Install a jellybean sense rom. Hold home for menu and keep the built in menu on apps that have it.
thanks, but i was hoping for a way that would work across ROMs.
build.prop change to fix this
I've managed to fix this by changing build.prop
Edit or add the entry
qemu.hw.mainkeys=0
In /system/buildprop, save and reboot
The value was 1 previously.
Edit: This is also with having the Bulletproof ROM installed.
Edit 2: On further inspection, I can't seem to get it to work while also hiding the three dot menu on the legacy apps. Gah.
CL0SeY said:
I've managed to fix this by changing build.prop
Edit or add the entry
qemu.hw.mainkeys=0
In /system/buildprop, save and reboot
The value was 1 previously.
Edit: This is also with having the Bulletproof ROM installed.
Edit 2: On further inspection, I can't seem to get it to work while also hiding the three dot menu on the legacy apps. Gah.
Click to expand...
Click to collapse
OK so I have it working again as expected and I am not sure how I did it ... in the Play Store app I get the three dot menu up the top right and in other apps, the menu bar is missing. My build.prop file has no entry for qemu.hw.mainkeys anymore... so maybe it's something in my ROM? Currently Bulletproof 5.3.
Our phone has back button on the bottom right side of the phone, thus making the phone use with right hand only very unpleasant, mostly in news reading apps where back button is used often when going back to the front page.
Is there any software button simulation app where I could position the back button somewhere in the bottom middle?
jazzh said:
Our phone has back button on…………
Click to expand...
Click to collapse
by adding some line (i forgot what it was ) to build.prop, u can enable on screen keys.
something like-
<something >. hardwarekeys=0
then, in settings (settings/system i think)
u can rearrange them...
Sent from my GT-I9070 using xda app-developers app
It sounds good, I'll take a look into it. But I don't want to disable hardwarekeys, I want all hw keys and just 1 sw key (back)...
To enable and use Onscreen buttons...
@jazzh,
Yep, you can you can use on-screen buttons BUT it will take/reserve some part of your screen's display.. that's why I don't use it BUT you can give it a try..
Just download the app build.prop editor and add this line at the end of your build.prop:
Code:
qemu.hw.mainkeys=0
(make sure to keep an empty line at the end of your build.prop, otherwise you will get a bootloop)
To disable it, simply remove the line above or set the value to "1"
3 MORE THINGS:
- This is what it will look like...
- You can resize the on-screen buttons BUT that will require you to modify your framework-res.apk
- I just found out about this app.. this will allow you to enable or disable on-screen buttons easily but its made for Xperia devices, so I am not sure whether it will work or not...
jazzh said:
It sounds good, I'll take a look into it. But I don't want to disable hardwarekeys, I want all hw keys and just 1 sw key (back)...
Click to expand...
Click to collapse
i don't think it disables the hw keys. it just enables the onscreen keys.
Even better: u can use pie controls if u add that line to build.prop
Sent from my GT-I9070 using xda app-developers app
Thank you all guys!
I added the line at the bottom and rebooted and... voila, soft keys are up and running.
Now, I didin't see anywhere not in the settings>system where these buttons can be adjusted. It would be nice if there is autohide option or something. Remember, I need only back soft key to be in the bottom middle or bottom left?
Then I installed pie control app, this works too but it doesn't have the option of autohiding softkeys at the bottom.
Is there something else I could try, I just need back software button elsewhere then bottom right corner and not all the time. Can it be achieved?
Thx again for helping...
jazzh said:
Thank you all guys!
I added the line at the bottom and rebooted and... voila, soft keys are up and running.
Now, I didin't see anywhere not in the settings>system where these buttons can be adjusted. It would be nice if there is autohide option or something. Remember, I need only back soft key to be in the bottom middle or bottom left?
Then I installed pie control app, this works too but it doesn't have the option of autohiding softkeys at the bottom.
Is there something else I could try, I just need back software button elsewhere then bottom right corner and not all the time. Can it be achieved?
Thx again for helping...
Click to expand...
Click to collapse
No mate you cannot directly edit the on-screen button's configurations and functions from Settings.. you need to decompile and modify certain files in your framework-res.apk.. I guess it will be too complicated for you to do all that - so it would be better for you to not try it now and end up getting a bootloop (no offence)
The only reason why I don't use on-screen buttons is because of this only.. It takes up screen's space and there is no auto-hide option...
And which Pie Control app did you install? Give this is a try if you still haven't tried it... As far as I know, Pie controls only appear when you tap and hold on a certain part of your screen...
If you don't want to use your on-screen buttons then just remove the line from your build.prop or set its value to 1... And if you don't want your phone's capacitive buttons to light up then you can turn that off from Settings > Display > Touch key light duration and set it to "always off".. It won't disable them BUT it will not light them up..
I tried exactly the same pie control app you've posted, found it by searching.
But I also uninstalled it afterwards, pie is working fine but I can't auto hide soft keys at the bottom, so when pie is active and visible, soft keys at the bottom are also visible. Which is not what I wanted at the 1st place.
So at the end I commented the line in build.prop and reverted to the way it was before, cause A) space is more important to me, and B) soft back key is again on bottom right.
In the meantime, if someone runs into solution for simulating only back key with adjustable position... kindly let me know...
Is it possible to disable the hardware/capacitive home/back/recents buttons on a stock 6.0.1 ROM?
qemu.hw.mainkeys=0 in build.prop doesn't work, on-screen buttons are not appearing.
The default sec_touchkey.kl file in ./system/usr/keylayout/ doesn't exist in the Samsung ROM, as it does in AOSP-based ones.
There isn't even an option in the settings to disable the annoyingly bright backlight of the back/recents buttons, as far as I looked. (Edit: Galaxy Button Lights 2 at least can do that)
I guess Samsung removed and/or broke that all in their customizations. While this tutorial works fine on Lineage 14.1, it doesn't on stock 6.0.1.
Is there anything I can do about that, or is it hopeless?
------
Edit:
In the end, I installed All In One Gestures to disable the hardware buttons, and Pie Control to get a decent-ish navigation for the large screen.
It's an ugly solution, having to install two apps instead of a few simple text edits to the system - but I guess that's as good as it gets with a Samsung stock ROM...
------
Edit 2:
Turns out, Pie Control triggers that extremely annoying "Screen overlay detected" bug/feature. Whenever you install a new app that requires some permissions, you have to disable screen overlay for Pie Control in the system settings, otherwise the app won't start.
So I uninstalled both All In One Gestures and Pie Control, and am trying Xposed Edge now. While its Pie features are very basic (almost no customization), at least it's an Xposed module, so it doesn't trigger the "Screen overlay detected" bug like a 'normal' app. And it can disable the hardware/capacitive buttons as well, without needing yet another app installed.
Another issue with disabling the capacitive buttons is, that none of the above methods disable the long-press on the back button, so you still kill the running app when inadvertently resting a finger on the back button. Luckily, by disabling the back button in the Generic.kl file, as Alta1r wrote, this issue is fixed.
------
Edit 3:
Trying Unique Controls now, because... its Pie controls are prettier than Xposed Edge's. :^)
Scratch that, this one triggers the "Screen overlay detected" bug as well. Guess it just doesn't work without Xposed and/or root.
You should be able to disable the back and recent keys by editing the Generic.kl file (same directory you mention above). Put a # in front of key 158 and key 254. Save and reboot. To revert remove the # and reboot or restore a backup of the file. Obviously you need root to do this.
No idea how to enable the onscreen buttons through buidprop, but there's an app on the play store that can do this: gmd auto hide soft keys https://play.google.com/store/apps/details?id=com.gmd.hidesoftkeys
I have the app and used it before, but I personally prefer the same developer's other app gmd gesturecontrol to go back, switch to recent apps or go to the home screen (and anything else you want).
Sent from my SM-T813 using XDA-Developers Legacy app
Actually, Package Disabler Pro can disable the back and recent apps hardware nav buttons without *root*.
https://play.google.com/store/apps/details?id=com.ospolice.packagedisablerpro
Alta1r said:
You should be able to disable the back and recent keys by editing the Generic.kl file (same directory you mention above). Put a # in front of key 158 and key 254. Save and reboot. To revert remove the # and reboot or restore a backup of the file. Obviously you need root to do this.
No idea how to enable the onscreen buttons through buidprop, but there's an app on the play store that can do this: gmd auto hide soft keys https://play.google.com/store/apps/details?id=com.gmd.hidesoftkeys
I have the app and used it before, but I personally prefer the same developer's other app gmd gesturecontrol to go back, switch to recent apps or go to the home screen (and anything else you want).
Sent from my SM-T813 using XDA-Developers Legacy app
Click to expand...
Click to collapse
Thank you for the tip about the Generic.kl button mappings. This appears to be the only way to disable the long-press on the back button, so the running app doesn't get killed. Not even the Xposed Edge module can prevent that. (I added that to the OP above.)
I bought the full version of GMD Gesture Control back in the days, haven't used it in years. Might give it a try, and hope it doesn't trigger the awful "Screen overlay detected" bug, like Pie Control does.
Niii4 said:
Actually, Package Disabler Pro can disable the back and recent apps hardware nav buttons without *root*.
https://play.google.com/store/apps/details?id=com.ospolice.packagedisablerpro
Click to expand...
Click to collapse
Thanks, I'm rooted, so that shouldn't be an issue.
dfkt_ said:
I bought the full version of GMD Gesture Control back in the days, haven't used it in years. Might give it a try, and hope it doesn't trigger the awful "Screen overlay detected" bug, like Pie Control does..
Click to expand...
Click to collapse
I'm using GMD Gesture Control and only 1 app is giving me that bug, but not even sure if it's due to GMD Gesture Control as I have to turn off all app screen overlay permissions before the app can get its permissions. So I guess you should be fine.
Niii4 said:
Actually, Package Disabler Pro can disable the back and recent apps hardware nav buttons without *root*.
https://play.google.com/store/apps/details?id=com.ospolice.packagedisablerpro
Click to expand...
Click to collapse
Digging this up from the dead, but I'm using a Note 5 now. What do you disable?