ok, so I can confirm, that if I run compilations as userdebug, with “system ui has stopped” issues is gone and linux console is accesible and controlable. This is valid for Android 6 and Android 7.
so sorry, that I’m gave up that way, I have something else to do. I’m ok for sure with this debug image, what ever is means.
For 32bit compilations I follows the doc, just
cd ~/project/khadas/mmallow
$ source build/envsetup.sh
$ lunch kvim-userdebug-32
$ make -jN otapackage
for 64bit system I have issues with not enought host memory (limit JDK to use only 4GB), so I need that, first
export JACK_SERVER_VM_ARGUMENTS="-Xmx4g"
./prebuilts/sdk/tools/jack-admin kill-server
./prebuilts/sdk/tools/jack-admin start-server
and than I can do compilations, similary like
source ./build/envsetup.sh
lunch kvim-userdebug-64
make -j4 otapackage
hope is helps Gytis and others… that userdebug helps me.
note: Obviously needs to be add these rule updates, atleast I’m add for compilation