1

How can I change the keyboard layout used by Android from the command line?

I installed the Android-x86 release from https://www.android-x86.org/ in a VirtualBox VM. Unfortunately, the VM only boots to command line and I cannot access the GUI. I want to follow the following solution to directly boot into the GUI: https://stackoverflow.com/a/61247128/12336925

I cannot type the commands as I want and I cannot use vi appropriately because I have a German keyboard.

Martin1997
  • 146
  • 2
  • 14

1 Answers1

1

The keymaps of the android x86 terminal are stored in

/system/usr/keylayout/

See here for more information https://source.android.com/devices/input/key-layout-files

So you would need to change the files in there or load a new one to get your layout changed.

To solve your problem however i would recommend to create a menu.lst on an usb device and mount it in your VM. After that you can use the terminal to copy the new file over the existing one.

Flo
  • 448
  • 2
  • 6
  • Thank you. The problem is: to run all the necessary commands, I also need the other keyboard layout, especially to enter special characters. Therefore I used a mapping picture to follow the earlier mentioned guide to activate my GUI and then I changed the keyboard layout using the GUI. – Martin1997 Aug 12 '21 at 11:39