Keys aren't working after modifying Generic.kl - Samsung Galaxy S10+ Questions & Answers

Hi,
So I was trying to remap the bixby button on my stock rom rooted S10+ by modifying the Generic.kl file (system/usr/keylayout) , however like a stupid idiot I made a rookie mistake and didn't make a back up of it and now none of the buttons work (Power, Bixby, Volume)
Could someone please help me with a copy of this file, I would very much appreciate it.

CAN U PLEASE SEND IT TO ME I AM A STUPID ROOKIE TOO

Related

Unlock phone with optical joystick?

After searching I discovered this thread:
h t t p: / /forum.xda-developers.com/showthread.php?t=703539
What would need to be done to port this to the Incredible? I'd really like to be able to unlock the phone with the optical joystick (without using a 3rd party app, they don't work consistently).
Thanks for any info.
i would also love this feature in a rom if possible
We had the same idea i just started a thread on the same subject i'll delete mine if i get an answer. I believe I can get this to work I just don't know where to locate the keypad file on the incredible.
The keypad.kl file or are you talking about something else? I tried modifying the keypad.kl file but that doesn't do it.
I was talking about the keypad file i'm trying to edit it also right now.
It won't work. I was able to edit the file and get the settings to stick but my understanding is that file is for physical keyboards. I read somewhere (can't remember where) that it would need to be a kernel update to enable this setting.
well i can verify that editing the keypad file doesn't work. this was my first attempt at editing a file myself i got really excited when I found that other post about remapping the keypad because i hate using the power button. it was fun trying
Did you guys push the file over when you were in your phone or in recovery, if you did it when you are in the phone, nothing will stick.
I did it in recovery, before we even had unrevoked2 tool. I did this: renamed the original file and used cat /sdcard/incrediblec-keypad.kl > /system/usr/keylayout/incrediblec-keypad.kl to create the edited file in the correct directory. The changes stick after a reboot but hitting the joystick doesn't wake the phone.
The joystick seems to be controlled by a kernel setting, not this file.
I'd love to be able to do this, because the front buttons are much more accessible than the power button.
My change definitely took because the power button wouldn't work after I edited the file so I had to revert back to original file.
Wouldn't it be possible to have the power button work normally but also assign the wake function to the optical button as well?
Yes but it would require a kernel setting change. I have no clue how to modify kernels.

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

Help! Tried remapping my headphone button and now my power button doesn't work.

I'm on the stock rom and I tried following this guy but I'm too dumb to figure out how do anything passed installing a ROM. So instead of following that guy, I tried doing the Nexus 4 method in the link. I probably made a stupid mistake so that's on me. I copied the just the generic.kl file using ES File Explorer and pasted it into a folder outside the system files. I made another copy of the file and started editing one. I pasted the edited generic.kl file back into the root location and restarted my phone. Nothing happened except now my power button doesn't operate correctly. It doesn't wake or put my phone to sleep. What makes this worse is my Knock-On is sorta broken because I dropped my phone so I have to tap about 30~ times to get it to function once. I tried copying the backup I made back into the folder but it didn't change anything. What can I do that isn't a factory reset? Would a factory reset even work? I'm only rooted, no unlocked bootloader.

Editing gpio-keys.kl does nothing :\

Hi, I have a Galaxy note 3 Sm-N9005 european version, I was trying to edit the gpio-keys.kl in order to disable the volume buttons, I tried adding a "#" before the text, with and without a space after it, I tried changing the "volume_up" to "UNKNOWN" , I tried deleting the "Wake_dropped" part of the line... It doesn't matter what I do, It does nothing.
I even deleted the file (I did a backup previously), rebooted the phone, and the keys still worked.
There is a bizarre problem also. In the process, I renamed gpio-keys.kl to gpio-kksks.kl in order to be able to copy the backup since I was having some trouble. Now I have 2 files, the original gpio-keys file and that renamed file, that if I try to delete, it does nothing. If I open it with a text editor it says "no such file or directory" as a text, and If I delete that text, the file weighs 0,00kb, but it still appears on the system folder.
So 2 questions, what do I do to definitely delete that gpio-kksks.kl file? and what do I do in order to dissable the volume keys? I hope someone can help me.
Thanks.

Swap back and recent hard keys?

Greets. A friend with an S7 Edge (935FD running 935F fw) wants these two keys swapped, to match all other phones she's ever used. Is there any good way to do that? If so and if root or coding are required, I can do both.
Btw, she likes the hard keys over adding soft keys onscreen, but would go with soft keys if absolutely necessary.
TIA!
PS: Apologies if this has been asked & answered. I did try searching but it's kinda hard to figure the right search terms, so I might've missed it.
An easy way to do it with root is to copy off the back.xml and recent_apps.xmls from SystemUI.apk res/layout folder (just unzip the SystemUI.apk, no need to decompile/recompile). switch the names and copy back (then zip SystemUI back up and replace).
Tulsadiver said:
An easy way to do it with root is to copy off the back.xml and recent_apps.xmls from SystemUI.apk res/layout folder (just unzip the SystemUI.apk, no need to decompile/recompile). switch the names and copy back (then zip SystemUI back up and replace).
Click to expand...
Click to collapse
Working on it, thanks a bunch!

Categories

Resources