1. Are you ready for the Galaxy S20? Here is everything we know so far!

Bluetooth keyboard reports "KEYCODE_UNKNOWN"

Discussion in 'Android Accessories' started by magmatic, Dec 30, 2012.

  1. magmatic

    magmatic Lurker
    Thread Starter

    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.

    1. Download the Forums for Android™ app!


  2. JoelSmith

    JoelSmith Lurker

    I am facing the same problem on my Samsung also.Do any one have solution for it??
  3. magmatic

    magmatic Lurker
    Thread Starter

    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!
  4. screenprintr

    screenprintr Newbie

    Don't mean to Bump your thead. Will the Keyboard work along with a head set or do you have to pick one or the other?
  5. magmatic

    magmatic Lurker
    Thread Starter

    If my bluetooth keyboard is plugged in, it works to type letters with it, and the other soft keyboard doesn't pop up. I haven't tried both. I suspect it would work just fine.

Share This Page