Changing the Layout of a Physical Keyboard in anbox on a Nexus 5
-
I use a Bluetooth keyboard for my Nexus 5 and as long as it is in Ubuntu everything is fine. However, since it has a German layout, things get messy when you use it in anbox as there is only an English layout available.
So, here is what I did:
- Own a Ubuntu PC.
- Copy /home/phablet/anbox-data/android.img to your desktop system
- Mount the image (if you transferred it to your desktop's Download folder a simple double click might do the trick)
- Copy the content to an empty directory (lets call it newandroid_img)
- Go to newandroid_img/system/usr/keychars
- Delete all .kcm files except virtual.kcm
- Download the appropriate .kcm file from here and put it in the system/usr/keychars directory and rename it to Generic.kcm
- Do a "chown -R 100000:100000 newandroid_img
- Create a new image by "mksquashfs newandroid_img/* newandroid.img"
- Copy newandroid.img to /home/phablet/anbox-data/ on the phone.
- Reboot your phone into recovery mode
- Connect your phone via "adb shell"
- Go to /data/user-data/phablet/anbox-data/
- Do "mv android.img oldandroid.img" (Just in case)
- Do "mv newandroid.img android.img"
- Reboot
That should be it.
It could be that you can replace the images in a freshly rebooted system as well, but the revovery method appeared to be the safest to me.
Have fun with your äöüßs! (or çs if you feel like it
) -
nice! thanks for sharing. is there an adb push missing in your instructions?
-
I didn't specify the way I copied the files. You can do it by adb push, or, as I did, copy to/from the Nexus' Download directory via drag-and-drop and shell commands.
Or did I miss something?
-
ah, sure, either way, What I mean is, you explicitly mention
Copy /home/phablet/anbox-data/android.img to your desktop system
to tell people to get the img from the phone to the desktop, but I don's see a step when people should get it back onto the phone
-
Thanks for the hint. I changed
- Copy newandroid.img to /home/phablet/anbox-data/
to
- Copy newandroid.img to /home/phablet/anbox-data/ on the phone.
That should make it clear.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login