Anbox not working out of the box
After installing Anbox from discover and starting it from the app menu, it gives a white screen and then aborts.
Starting from terminal gives you some hints which will take you e.g. to https://github.com/anbox/anbox/issues/1586. The solution described there actually works but doesn't cover the complete process.
What works for me:
sudo pacman -S anbox anbox-image
export EGL_PLATFORM=x11
sudo systemctl start anbox-container-manager
anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
It would be good to simplify this such that it "just works".
Possible solution
- set environment variable in systemd script (see https://forum.manjaro.org/t/android-app-on-anbox-scaling/37465)
- to be clarified: will this work with Phosh?
Other issues
- UI is blurry, according to https://linmob.net/anbox-on-the-pinephone/ this happens on Phosh as well, see also https://github.com/anbox/anbox/issues/541. This probably happens because
adb shell wm size
is 360x720 andadb shell wm density
is 160. Withadb shell wm size 720x1440
, the Anbox window is using only 1/4 of the screen. Caused by the general scaling (kscreen-doctor)? - not complete screen is used (small gap between top bar and Anbox)
- Anbox title bar should be removed (see https://github.com/anbox/anbox/pull/1415), maybe a custom
anbox-image
is required (settingANBOX_FORCE_SERVER_SIDE_DECORATION
has no effect for me) - one of theno-csd
images in AUR should be ok