So the easiest way to get started is using our crossbuilder tool, https://github.com/ubports/crossbuilder this will setup an lxc container that you can with all the tools to do the cross compiling of the binaries.
To start with, install anbox on you device and make sure it's working before starting, this way we know that it works before you start
First clone https://github.com/ubports/anbox and cd into it.
Then to setup container i do:
Then i just do
crossbuilder shell cd anbox mkdir build-armhf cd build-armhf cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_WAYLAND=OFF -DENABLE_MIR=ON -DENABLE_TOUCH_INPUT=ON make -j10
crossbuilder will bind mount to you current working folder
Then with another shell (thats outside of crossbuilder) i push the binaries from the folder to the phone using adb.
Now you have two options, use upstart or start the binaries manually,
For upstart do:
Then adb shell into you device and replace it with the binary you just make
sudo mount -o rw,remount / sudo mv anbox /usr/bin stop anbox-session sudo stop anbox-container sudo start anbox-container start anbox-session
For raw binary start:
First stop the upstart session
stop anbox-session sudo stop anbox-container
Then to start anbox you need two services: container (root) and session (user)
So you need to open two adb shells since there are blocking
sudo ./anbox container-manager --data-path=/home/phablet/anbox-data --privileged
export ANBOX_NO_SDL_WINDOW_HIT_TEST=1 export ANBOX_NO_DESKTOP_SUBDIR=1 ./anbox session-manager --desktop_file_hint=/usr/share/applications/anbox.desktop --mir-rootless
Please not these where mostly written from memory, so might be a bit rusty