Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android emulator + QEMU VNC

Tags:

android

qemu

vnc

I'm trying to run the emulator like this:

emulator -avd name -qemu -vnc :4

And I get an error:

Could not read keymap file: 'en-us'

Is it an error of the emulator or QEMU's error? How can I fix it?

I have read this topic and created a symlink from /urs/local/Cellar/qemu/1.7.0_1/share/qemu/keymaps to my android-sdk/tools folder, but it didn't help. (I use OS X v10.9 (Mavericks).)

like image 398
Alik Send Avatar asked May 19 '14 12:05

Alik Send


2 Answers

It seems to be a QEMU thing.

Create this folder: (android-sdk)/tools/keymaps

Create an empty file in (android-sdk)/tools/keymaps called en-us.

The emulator should start now.

like image 55
guest Avatar answered Nov 15 '22 19:11

guest


There might be a shorter way, but this method solved my problem.

  • You can download the latest source tar ball from official QEMU Download page.
  • Then extract it to somewhere else.
  • You can find a keymaps directory in the pc-bios subfolder.
  • You may copy the keymaps folder to your [ANDROID_SDK]/tools/ directory.

Now you can use an arbitrary keymap file:

emulator -avd name -qemu -vnc :4 -k tr

Note:

In some situations you must copy the keymaps folder under [ANDROID_SDK]/tools/lib/pc-bios/

like image 22
Fırat KÜÇÜK Avatar answered Nov 15 '22 21:11

Fırat KÜÇÜK