This layout is based on Hacker Keyboard and heavily inspired by UA Unicode layout.
First, run make
to transform UTF-8 text file omap4-keypad.kcm.in
into ASCII by converting all non-ASCII characters to \uXXXX escape sequences.
Then copy 2 files to /system/usr on your phone (probably you need root to remount it in read-write mode) and reboot:
# cp omap4-keypad.kcm /system/usr/keychars
# cp omap4-keypad.kl /system/usr/keylayout
# reboot
Now "Caps lock" will switch between EN and UA layouts, "SYM" acts as "Control" and "OK" as "Alt" and "Level 3".