I'm trying to containerize android with linux container (LXC/LXD), and it launches ok but fails to display android UI.
I have flashed ubuntu 18.04 onto my odroid-c2 board which runs several containers including kodi container, softap container, etc without problem.
I mean it works fine for ubuntu-based containers.
I built android marshmallow with lunch odroid-c2-eng-64, which is cloned from the branch s905_6.0.1_master of hardkernel git.
Should I have used odroid-c2-eng-32?
Anyway, my android container launches successfully and runs several android components as below.
Code: Select all
user@odroid-c2:~$lxc exec mm -- /system/bin/sh
/system/bin/sh: /system/etc/mkshrc[10]: getprop: not found
root@android:/ # export PATH=$PATH:/sbin:/system/xbin:/system/bin
root@android:/ # ps
PID USER TIME COMMAND
1 root 0:00 /init --second-stage
189 root 0:00 /sbin/ueventd
190 root 0:00 /sbin/watchdogd 10 20
192 logd 0:00 /system/bin/logd
194 root 0:00 /system/bin/vold --blkid_context=u:r:blkid:s0 --blkid_untrusted_context=u:r:blkid_untrusted:s0
199 root 0:00 /sbin/healthd
200 root 0:00 /system/bin/lmkd
201 system 0:00 /system/bin/servicemanager
203 root 0:00 /system/xbin/su --daemon
209 root 0:03 /system/bin/debuggerd
210 drm 0:00 /system/bin/drmserver
212 root 0:00 /system/bin/installd
213 keystore 0:00 /system/bin/keystore /data/misc/keystore
214 root 0:00 /system/bin/systemcontrol
216 root 0:00 /system/bin/pppoe_wrapper
218 system 0:00 /system/bin/gatekeeperd /data/misc/gatekeeper
220 root 0:00 /system/xbin/perfprofd
221 root 0:00 /sbin/adbd --root_seclabel=u:r:su:s0
1840 root 0:00 /system/bin/sh
1842 root 0:00 ps
root@android:/ #
root@android:/ # ls -al /dev/graphics/
total 0
drwxr-xr-x 2 root root 80 Dec 21 07:15 .
drwxr-xr-x 17 root root 13420 Dec 21 07:15 ..
crw-rw---- 1 root graphics 29, 0 Dec 21 07:15 fb0
crw-rw---- 1 root graphics 29, 1 Dec 21 07:15 fb1
root@android:/ #
I attached logcat and tombstone of my android container.
What should I look for to resolve this problem?
I appreciate any comments.
P.S.
According to my googling, a few articles say that kernel version for EGL driver and version of libEGL should match to work appropriately.
Even though I do not use the kernel in android source tree, it is different from my host kernel.
My host kernel is 3.14.79+ built by myself and android source tree has the kernel version of 3.14.29.
Does this difference in revision number matter?