[How-To] REMAP CAPACITIVE BUTTONS ON GALAXY S6 [ROOT] - Galaxy S6 General

HOW TO REMAP CAPACITIVE BUTTONS ON GALAXY S6​
If you're left handed like me, then you might wanna remap your capacitive buttons if you use the back key more often than the multitask button.
You can remap many other buttons such as volume keys and the power button, just use some logic and you'll figure it out.
As we progress on, you'll realize that there are many more things you can remap other than the physical buttons.
!!!DISCLAIMER!!!
I'm not responsible if this doesn't work for you!
I'm not responsible if your capacitive buttons don't work!
!!!DISCLAIMER!!!
1. You'll need root access for this, otherwise it won't let you edit the file
2. Go to Play Store and download the app called Total Commander (you can use any other file manager that supports root, but this one worked best for me)
3. Open the app, and go to File system root
4. Go to data folder and when it asks you, grant it the permissions
5. Go back and go to the system folder, then to the usr folder and then to the keylayout folder
6. Long press on the Generic.kl file and click on Open as, then on Text and then select Totalcmd Editor
7. Now click on the magnifying glass icon without an arrow in the top right corner
8. Search for the word BACK, but select the Whole Words checkbox
9. Change it to APP_SWITCH (make sure it's capitalized!)
10. Search again for the word MENU and change it to BACK (there may be two MENU words in the file so search twice)
11. Search for the word APP_SWITCH and change it to BACK
12. Click on the Floppy disk icon on the top of the window and then click OK
13. Exit and close the application
14. Reboot your device and enjoy!​

What do you change the second MENU in the file??
Sent from my SM-G925W8 using XDA-Developers mobile app

thatsupnow said:
What do you change the second MENU in the file??
Sent from my SM-G925W8 using XDA-Developers mobile app
Click to expand...
Click to collapse
Change both MENU words to BACK.

thatsupnow said:
What do you change the second MENU in the file??
Sent from my SM-G925W8 using XDA-Developers mobile app
Click to expand...
Click to collapse
Oh, and I see that you may be using CM, I'm not, so I'm not pretty sure if the files are same. I used stock ROM on my Galaxy S6, but I'm pretty sure any other ROM would work, as long as you have the S4 or S5 or S6 or even S7 and the latest version.

Related

How to remove arabware

Hi all,
I download an application on my ATRIX 4G, now every time.I download an application, a msg appear asking if I want arabware to relocate the application.
I tried to find arabware app in the process and in the installed app but cannot find it.
Can anyone advise please how to get ride of the arabware?
Thanks in advance
Sent from my MB860 using xda premium
I have the same problem. How can I get rid of Arabware?
Thank you.
e33 said:
Hi all,
I download an application on my ATRIX 4G, now every time.I download an application, a msg appear asking if I want arabware to relocate the application.
I tried to find arabware app in the process and in the installed app but cannot find it.
Can anyone advise please how to get ride of the arabware?
Thanks in advance
Sent from my MB860 using xda premium
Click to expand...
Click to collapse
Root your device and use Root Uninstaller (for example) to remove it.
Churilla said:
Root your device and use Root Uninstaller (for example) to remove it.
Click to expand...
Click to collapse
Thanks a lot, Churilla.
Churilla said:
Root your device and use Root Uninstaller (for example) to remove it.
Click to expand...
Click to collapse
In addition to Churilla wrote...
Any File Manager that can mount /system partition as read and write (i.e. ES File Explorer) will do. Don't forget remounting it back to ro.
Furthermore, as a good practice follow the guidelines below to avoid unpleasant surprises.
1. First try to freeze the app in question and restart the phone
2. Check the major functionality of the phone to ensure nothing was effected
3. Defrost, do not uninstall under any circumstances, the app again and in your choice of file explorer navigate to /system/app folder
4. Carefully look at the above mentioned folder to see if you spot the main .apk along similar file with service, provider, or plugin suffixes
5. Now simply select the files and copy, not delete or cut, and copy them to your SDCard. Always backup anything is about to be removed from /system/app
6. Now delete the same files that you copied before
7. Next we need to wipe the dalvik cache folder and wipe the cache from android recovery system. Yes, all these steps are necessary as a good practice of removing a system app. Navigate to /data/dalvik-cache folder and delete all files by selecting all files first and then delete. It never harms to wipe this folder and don't worry if your phone starts force closing constantly, just pull your battery out and before turning it on follow the next step.
8. Make sure the phone is shut down first. While holding down the volume down key turn the phone on and keep pressing the turn-on button as well until a message is shown on screen. I think the message says Fast Boot Menu or something.
9. Toggle through the menu by volume down key only until you get to Android Recovery System. If you passed the menu option keep press the volume down, do not press the up key as that one is designated for selection key on the screen you are looking at.
10. Once Android Recovery System is being shown press the Volume Up key to select the menu option.
11. Wait until the Android image is shown on the screen. Then press both vol up and down at same time. With Atrix this is very easy as it has very nice layout to it
12. You would be presented by a new menu now. Select the last menu option, Wipe Cache, and press the turn-on switch
13. After the cache is wiped the restart system menu option would be selected by default, press the turn-on button again to restart the phone. Congratulation! the arabware is removed now.
The advantage of following the above steps is that, should you regret and want to reinstall a previously removed system app then all previous settings would be remained intact. Of course as long as you don't do a complete ROM flash later. You can also use the same method as above to remove any unwanted system apps. I would open a new thread soon to describe how I optimised my Atrix on Stock ROM.
Good Luck

Trying to change menu button to app switcher (Hyperdrive)q

I'm running the hyperdrive rom and would like to change the menu button to the recent apps button, and the longpress home to google now like S5. I found an xposed module that does this but only for the note 3. Anyone have a solution for this?
Jaydawgx7 said:
I'm running the hyperdrive rom and would like to change the menu button to the recent apps button, and the longpress home to google now like S5. I found an xposed module that does this but only for the note 3. Anyone have a solution for this?
Click to expand...
Click to collapse
I can change the menu key to recent apps but not sure about longpress home.
Using a root File Explorer open generic.kl in system/user/keylayout with a text editor.
Go to key 139 and replace 'MENU' with 'APP_SWITCH'. Reboot and you're done.
For google now it should just be a matter of finding the appropriate key.
marxses said:
I can change the menu key to recent apps but not sure about longpress home.
Using a root File Explorer open generic.kl in system/user/keylayout with a text editor.
Go to key 139 and replace 'MENU' with 'APP_SWITCH'. Reboot and you're done.
For google now it should just be a matter of finding the appropriate key.
Click to expand...
Click to collapse
Thanks for getting me in the right direction here. However, when I alter the generic.kl file at all, both capacitive buttons quit working after a reboot. I tried replacing the altered file with a backup i made, rebooted, and they still don't work. The only way to restore function of the buttons is to reflash the rom. Any idea as to why? This seemed like an easy change.... (also tried editing the file via notepad++ on the pc with the same result)
Jaydawgx7 said:
Thanks for getting me in the right direction here. However, when I alter the generic.kl file at all, both capacitive buttons quit working after a reboot. I tried replacing the altered file with a backup i made, rebooted, and they still don't work. The only way to restore function of the buttons is to reflash the rom. Any idea as to why? This seemed like an easy change.... (also tried editing the file via notepad++ on the pc with the same result)
Click to expand...
Click to collapse
What file explorer are you using? ES explorer?
After editing and especially if you're pasting in a back up you need to make sure the files permissions are set to rw-r--r--
I personally used the text editor from Rom Tool Box Lite . Make sure there aren't any extra spaces and there should be no # in front of the key.
I just remapped and put them back to normal a few times and I'm not having any problems.
Let me know how you get on.
marxses said:
What file explorer are you using? ES explorer?
After editing and especially if you're pasting in a back up you need to make sure the files permissions are set to rw-r--r--
I personally used the text editor from Rom Tool Box Lite . Make sure there aren't any extra spaces and there should be no # in front of the key.
I just remapped and put them back to normal a few times and I'm not having any problems.
Let me know how you get on.
Click to expand...
Click to collapse
Thanks! I was using ES file Explorer... I don't know what happened amongst text editors, but the rom tool box text editor did the trick... I appreciate your time and patience. Now it's time to figure out how to change long press home to Google now... Thanks again
Jaydawgx7 said:
Thanks! I was using ES file Explorer... I don't know what happened amongst text editors, but the rom tool box text editor did the trick... I appreciate your time and patience. Now it's time to figure out how to change long press home to Google now... Thanks again
Click to expand...
Click to collapse
All good, glad you got it sorted.
Another option is home2shortcut it uses double tap instead of long press, just tried it for kicks and it works really well, quite snappy

Disable wake with Home button!?!

Hey all,
I did a pretty extensive search for this with little luck. I used to have the Note 2 and disabling wake with Home was simply editing the sec_keys.kl file. I tried to edit all the files in the S5 but I can't seem to stop this sucker from waking with the Home button. I don't want to go through a bunch of kernels and roms and whatnot...simply stop it from waking. Has anyone had any luck doing this?
Thanks!
BoomerFZ1 said:
Hey all,
I did a pretty extensive search for this with little luck. I used to have the Note 2 and disabling wake with Home was simply editing the sec_keys.kl file. I tried to edit all the files in the S5 but I can't seem to stop this sucker from waking with the Home button. I don't want to go through a bunch of kernels and roms and whatnot...simply stop it from waking. Has anyone had any luck doing this?
Thanks!
Click to expand...
Click to collapse
I don't think you can do it without rooting your device. might wanna search through the Dev section bud. good luck
Sorry...I should clarify...
It is rooted. I just need to know which file I need to edit. Here's the steps for performing this on the Note 2 but I can't do it with this new phone as there's no "sec_keys.kl":
1. open root explorer
2. navigate to : system/usr/keylayout
3. now press the mount r/w button near the top of screen to enable read and write permissions
4. scroll down to: sec_keys.kl
5. press and hold until menu pops up, select: Open in Text Editor
6. locate line: key 172 HOME WAKE
7. tap behind the word WAKE and delete it so you see: key 172 HOME
8. press menu and select: Save and Exit
BoomerFZ1 said:
It is rooted. I just need to know which file I need to edit. Here's the steps for performing this on the Note 2 but I can't do it with this new phone as there's no "sec_keys.kl":
1. open root explorer
2. navigate to : system/usr/keylayout
3. now press the mount r/w button near the top of screen to enable read and write permissions
4. scroll down to: sec_keys.kl
5. press and hold until menu pops up, select: Open in Text Editor
6. locate line: key 172 HOME WAKE
7. tap behind the word WAKE and delete it so you see: key 172 HOME
8. press menu and select: Save and Exit
Click to expand...
Click to collapse
Since it is rooted, you may want to try to install Wanam Xposed.
http://forum.xda-developers.com/xposed/modules/app-wanam-xposed-customize-stock-t2383484
There is a "Disable Wake Home button" feature and many more.
Do not forget, you need a Xposed framework for this to work.
http://repo.xposed.info/module/de.robv.android.xposed.installer
Deleted

S5 Menu Button

Hi
is there a way to change the recent app button to the old style menu button?
thanks
Simply long press the recents key to pull up the old style context menu.
Or edit half a dozen files to permanently revert to the old S4 style menu.
This has been asked and answered many time sin existing threads as a simple search would have shown.
http://www.phonearena.com/news/How-to-call-the-hidden-context-menu-button-on-the-Galaxy-S5_id55124
http://www.droidforums.net/threads/...menu-and-long-press-home-with-recents.269115/
http://forum.xda-developers.com/showthread.php?t=2733811
.
fffft said:
Simply long press the recents key to pull up the old style context menu.
Or edit half a dozen files to permanently revert to the old S4 style menu.
This has been asked and answered many time sin existing threads as a simple search would have shown.
http://www.phonearena.com/news/How-to-call-the-hidden-context-menu-button-on-the-Galaxy-S5_id55124
http://www.droidforums.net/threads/...menu-and-long-press-home-with-recents.269115/
http://forum.xda-developers.com/showthread.php?t=2733811
.
Click to expand...
Click to collapse
i tried the 2nd link and i can get the android.policy.jar to work.
i have to my menu button back but the app switcher binded to long press home button isnt working.
aniqpirzada said:
Hi
is there a way to change the recent app button to the old style menu button?
thanks
Click to expand...
Click to collapse
I believe you can also change the button function through root explorer, but you'll be left without recents until you make certain changes to the .jar file mentioned. Easiest way would be to flash a ROM with remapping capabilities (Alliance).
Yes. I tried to change the .jar file but after replacing it back to my system, it didnt seem to work.
aniqpirzada said:
Yes. I tried to change the .jar file but after replacing it back to my system, it didnt seem to work.
Click to expand...
Click to collapse
Week there's the other option of flashing another rom

[GUIDE][ROOT] Swap Menu and Back capacitive keys

I post this little guide to help those who - like me - prefer a "Nexus-like" experience while keep using the capacitive buttons.
- 1 - Turn off capacitive buttons backlight
1a) using your preferred root file manager go to /sys/class/leds/button-backlight/brightness
1b) edit the file "brightness" and set the text to "0", save and exit
1c) edit the file "max_brightness" and set the text to "0", save and exit
- 2 - Swap buttons functions
2a) using your preferred root file manager go to /system/usr/keylayout
2b) open for editing the file "Generic.kl"
2c) find the string "key 139 MENU" and replace with "key 139 BACK"
2d) find the string "key 158 BACK" and replace with "key 158 MENU", save and exit
2e) reboot
Credits:
This page turning off the backlight.
This page for swapping keys funcions.
Added to OnePlus One index thread:
[INDEX] OnePlus One Resources Compilation Roll-Up
Transmitted via Bacon
Thank you sure makes it easier on us lefties
64 pieces of bacon yummy?
If you turn off capacitive buttons backlight, wouldn't be difficult to press them since they are quite small?
i do this since i changed my n4 for an OPO and preferred to stick on the nexus keys layout
the drawback is that if you remove the capacitive menu key you don't have access to menu on chrome and other apps that don't show overflow (3 dots) menu buttons
here is the thread where i asked about infos but nobody helped so far
http://forum.xda-developers.com/oneplus-one/help/force-app-overflow-3-dots-menu-to-appear-t3003731
and here below there's 3 flashable zip files for CM12 with the following setup:
nexus-like keys (back-home-recents)
inverted keys (back-home-menu)
stock keys (menu-home-back)
if you use CM12, my advise is to use the "inverted" one and remap "menu" to "recents" from Cyanogenmod button settings, so you can also set up "menu" option if longpress or double tap
AH thanks alot OP really needed this
etoy said:
i do this since i changed my n4 for an OPO and preferred to stick on the nexus keys layout
the drawback is that if you remove the capacitive menu key you don't have access to menu on chrome and other apps that don't show overflow (3 dots) menu buttons
here is the thread where i asked about infos but nobody helped so far
http://forum.xda-developers.com/oneplus-one/help/force-app-overflow-3-dots-menu-to-appear-t3003731
and here below there's 3 flashable zip files with the following setup:
nexus-like keys (back-home-recents)
inverted keys (back-home-menu)
stock keys (menu-home-back)
Click to expand...
Click to collapse
I flashed the nexus- like keys zip inside of TWRP recovery, and now NONE of my capacitive or physical buttons are working. How do I fix it?
Kevlang said:
I flashed the nexus- like keys zip inside of TWRP recovery, and now NONE of my capacitive or physical buttons are working. How do I fix it?
Click to expand...
Click to collapse
what ROM are you using? the ones i posted are for CM12
here's attached a "revert to stock" zip for CM11S
etoy said:
what ROM are you using? the ones i posted are for CM12
here's attached a "revert to stock" zip for CM11S
Click to expand...
Click to collapse
Thanks, i was running 11s. Not to worry though, I decided that was an opportune time to flash CM12, and problem solved.
To clarify, those original 3 zips should be safe to use now that I'm running CM12?
Do i just flash using TWRP?
Kevlang said:
Thanks, i was running 11s. Not to worry though, I decided that was an opportune time to flash CM12, and problem solved.
To clarify, those original 3 zips should be safe to use now that I'm running CM12?
Do i just flash using TWRP?
Click to expand...
Click to collapse
i personally use CM12 and flash the "inverted" one myself with TWRP 2.8.4.1 everyday when i update nightlies.
just compared my Generic.kl stock file with the one on latest 0121 nightly and they're identical so yes, i guarantee it's safe to flash them
Giocarro said:
- 1 - Turn off capacitive buttons backlight
1a) using your preferred root file manager go to /sys/class/leds/button-backlight/brightness
1b) edit the file "brightness" and set the text to "0", save and exit
1c) edit the file "max_brightness" and set the text to "0", save and exit
.
Click to expand...
Click to collapse
There is the option under settings / buttons on CM12
etoy said:
i do this since i changed my n4 for an OPO and preferred to stick on the nexus keys layout
the drawback is that if you remove the capacitive menu key you don't have access to menu on chrome and other apps that don't show overflow (3 dots) menu buttons
here is the thread where i asked about infos but nobody helped so far
http://forum.xda-developers.com/oneplus-one/help/force-app-overflow-3-dots-menu-to-appear-t3003731
and here below there's 3 flashable zip files for CM12 with the following setup:
nexus-like keys (back-home-recents)
inverted keys (back-home-menu)
stock keys (menu-home-back)
if you use CM12, my advise is to use the "inverted" one and remap "menu" to "recents" from Cyanogenmod button settings, so you can also set up "menu" option if longpress or double tap
Click to expand...
Click to collapse
Can I apply one of your zip to oxygenos?
Paninno12 said:
Can I apply one of your zip to oxygenos?
Click to expand...
Click to collapse
to be honest, i don't know if the origin file is the same.
you should compare the file from my "revert" zip and yours, it's located in
/system/usr/keylayout/Generic.kl
if they are identical, then you can proceed.
if not, you can send it to me and i'll prepare a zip for O²
Paninno12 said:
Can I apply one of your zip to oxygenos?
Click to expand...
Click to collapse
i compared the Generic.kl files between O² and CM12, they're identical so you can flash my zip without any worries
etoy said:
i compared the Generic.kl files between O² and CM12, they're identical so you can flash my zip without any worries
Click to expand...
Click to collapse
Working perfectly! Thanks
Works on marshmallow as well, in case anyone wondered.
etoy said:
i do this since i changed my n4 for an OPO and preferred to stick on the nexus keys layout
the drawback is that if you remove the capacitive menu key you don't have access to menu on chrome and other apps that don't show overflow (3 dots) menu buttons
here is the thread where i asked about infos but nobody helped so far
http://forum.xda-developers.com/oneplus-one/help/force-app-overflow-3-dots-menu-to-appear-t3003731
and here below there's 3 flashable zip files for CM12 with the following setup:
nexus-like keys (back-home-recents)
inverted keys (back-home-menu)
stock keys (menu-home-back)
if you use CM12, my advise is to use the "inverted" one and remap "menu" to "recents" from Cyanogenmod button settings, so you can also set up "menu" option if longpress or double tap
Click to expand...
Click to collapse
Thanks, Inverted working great on Bliss Pop.
Suppose to : long press [Home] key, open recent menu...
So how I can change it to long press [Menu] key to open recent menu?!
Thanks, one of the experiences I'm missing from Nexus devices
Hi,
can anyone tell me how it is to be done on Oneplus X with CM 12.1.
I am able to configure Menu and Home buttons via settings, but I cannot swap location or configure Back button.
Editing Generic.kl did not work, I think it might be overridden by the cyanogen mod settings?
thanks
freaksworth

Categories

Resources