Seems linking with static libandroid-shmem doesn't help to prevent "bad system call" error. Using embedded libandroid-shmem sources with changed shm*() function names.