• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Bluetooth keyboard reports "KEYCODE_UNKNOWN"

magmatic

Lurker
Dec 30, 2012
3
0
I got a shiny new bluetooth keyboard for use with my Android phone.

The right shift button actually launches the browser instead of acting like a shift button, which is very inconvenient, so I edited /system/usr/keylayout/Generic.kl and /system/usr/keylayout/qwerty.kl to change the mapping.

I have a little app that simply displays the information from keystrokes, and it now reports that the keyCode is KEYCODE_UNKNOWN for every key I press. The keyboard doesn't work at all now.

Can someone point me to an answer or have some advice for me?

Thanks in advance.

p.s. Samsung Infuse 4G (SGH-I997). CyanogenMod. Android 4.1.2. No carrier.
 
I am facing the same problem on my Samsung also.Do any one have solution for it??

Try following the instructions here:
http chris [dot] boyle [dot] name/2010/08/android-keymaps

or here:
http www [dot] mobileread [dot] com/forums/showthread.php?t=159538

You'll need to root your phone or install adb or something.

And if it stops working, make sure your file permissions are right!
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones