.KL File Extension

Android Key Layout File

Developer Google
Popularity
2.5  |  4 Votes
 

What is a KL file?

A KL file is a key layout map that connects keyboard input on an Android device to actions in Android. It stores key definitions in UTF-8 text, which include the SCANCODE (the key number preceded by key), KEYCODE (the action the key is mapped to), and FLAGS (additional functionality associated with the key, like waking the device). KL files also include comments denoted by the pound character (#)

More Information

Screenshot of a .kl file in Microsoft Visual Studio Code 1.62
KL file open in Microsoft Visual Studio Code 1.62

Android devices come with KL files pre-installed in the following directories:

  • /​system/​usr/​keylayout
  • /​data/​usr/​keylayout
  • These directories store several KL files, including the Generic.kl file, that Android references for specific input devices. For example, the device keyboard may use one KL file, while a connected joystick uses a separate KL file.

Common KL Filenames

Generic.kl - Contains a generic key layout that supports various standard external keyboards and joysticks. Google advises you not to modify Generic.kl files.

How to open a KL file

KL files are not meant to be opened. Instead, the Google Android operating system references the file to correctly map input gathered from a device to actions in Android.

However, if you are looking to modify the key layout map, you can open KL files with a text editor. After modifying the KL file, you must place it back in the directory in which you found it for it to take effect.

Open over 400 file formats with File Viewer Plus.Free Download

Programs that open or reference KL files

Windows
Mac
Linux
Android
Included with OS

Verified by FileInfo.com

The FileInfo.com team has independently researched the Android Key Layout file format and Mac, Windows, Linux, and Android apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified.

If you would like to suggest any additions or updates to this page, please let us know.