![]() |
Anbox on KDE Community Edition (Manjaro) - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +---- Forum: Manjaro on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=130) +---- Thread: Anbox on KDE Community Edition (Manjaro) (/showthread.php?tid=13016) |
Anbox on KDE Community Edition (Manjaro) - neil2ball - 02-06-2021 This thread is being started to document the trials and tribulations of installing Anbox on my Pinephone. Likewise, it would be an honor to learn from those who blazed the trail before me. I managed to install Anbox through pacman by switching to the unstable branch. (It seems that the unstable branch also has a few fixes to other software that have been helpful, but maybe adding an extra bug or two. I'm not entirely sure, but I digress.) This is not recommended if you are squeamish about experimental software. Code: sudo vim /etc/pacman-mirrors.conf (I am still not sure what the default text editor for Manjaro is, but I am a Vi guy.) I changed changed the branch here from "Branch=arm-stable" to "Branch=arm-unstable", on line 6. I saved the changes and exited the application. Code: sudo pacman-mirrors -f5 && sudo pacman -Syyu This changed my mirrors and updated my operating system software to the unstable branch. This was scary, but it worked for me (as in it did not brick my phone). Now for the main course: Code: sudo pacman -S anbox-image-aarch64 anbox android-tools It installed Anbox without issue. I saw the Anbox logo among my application icons. I clicked it and got a grey screen, followed by a crash. Fair enough. Code: anbox system-info Quote:version: danctnix-0_git20201130-r2 This is about as far as I have gotten. I believe binder should be enabled. There is more work to be done. I would like to eventually install an android package manager into Anbox and see if it will work. I will keep you informed of the results. Any input is greatly appreciated. RE: Anbox on KDE Community Edition (Manjaro) - neil2ball - 02-07-2021 I started by trying to install binder via this method. Code: sudo apt install dkms However, that failed. Sources suggested that this might be the wrong approach. So, I tried something else. I also tried to connect the binder requirement with the available binderfs, but that did not work either. Specificially, I used what follows. Quote: I later tried replacing the android.img provided by pacman with the one linked in the above post, but that also did not work. I continued to research, finding myself running into the error outlined here. Quote: I tried the proposed fix of installing lxc-git, but that did not work either. I found something else that I did not try, but it was an interesting point: Quote:Well, you seem to be missing /usr/share/libdrm/amdgpu.ids. That's not Anbox's fault. This might help if you messed with your graphics drivers https://askubuntu.com/questions/971343/cannot-revert-graphics-drivers-after-trying-to-upgrade-using-the-oibaf-ppa-on-ub#992654 However, there are still multiple variables that could be causing issues at this point. One could still be the binder requirement. If there is some way to get anbox to see binder through binderfs that works (assuming I did it right) that would at least eliminate one issue. Another is perhaps needing graphics drivers; a theory based on gles2 having nothing listed when you run 'anbox session-info'. Anyway, that is where i must leave it for now, but I shall return to it at some point. I will check in to see if there is any input and take any suggestions as well as post the results. RE: Anbox on KDE Community Edition (Manjaro) - nas - 02-08-2021 I'd guess the modules are already included in a manjaro release but this thread might help you out. RE: Anbox on KDE Community Edition (Manjaro) - paju1986 - 02-09-2021 Hello. On this old thread i disscussed how to get Anbox up and working on plasma mobile. https://forum.pine64.org/showthread.php?tid=11577 Regards! RE: Anbox on KDE Community Edition (Manjaro) - neil2ball - 02-18-2021 (02-09-2021, 01:43 AM)paju1986 Wrote: Hello. Code: sudo pacman -S anbox anbox-image [ 2021-02-19 02:21:51] [daemon.cpp:61@Run] [org.freedesktop.DBus.Error.NoReply] Message recipient disconnected from message bus without replying RE: Anbox on KDE Community Edition (Manjaro) - neil2ball - 02-21-2021 I do have some partial success to report. Be wary of old guides regarding binder. I ended up wasting a lot of time on them. Binder and Ashmem are loaded directly into new kernels. This is why Ashmem is true when you run 'anbox system-info'. The reason why the Binder section reports false is because binder itself is in a different location (/dev/binderfs/binder) than the one Anbox is looking for (/dev/binder). So I made a diff patch providing the necessary changes in Anbox to make binder true, which cleared the stack trace that otherwise occurs when you run 'anbox session-manager'. (Also, I took the liberty of updating the Anbox version to the 01/06/2021 commit.) Here are the PKGBUILD and required files to make the magic happen. Here is how 'anbox system-info' looks now: Code: version: danctnix-0_git20210106-r1 Now when I use the following command, Code: anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity the app manager screen loads, does not crash, and no errors are to be found in the shell. Of course it still does not do anything, but I will begin to address that later. The same is true for Code: env DISPLAY=:1 anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity just in case you were wondering. This brings me to 'anbox session-manager' and where to go from here. As stated above, my patch cleared the stack trace. However, I still get one warning from the shell: Code: [ 2021-02-21 15:31:35] [Renderer.cpp:128@initialize] Failed to select EGL configuration According to later posts on anbox's github issues section, it was recommended to Code: export EGL_PLATFORM=x11 in the shell. I tried this and ran 'anbox session-manager' again. This cleared the error. However, despite having nothing in the shell upon execution, no window launched. Instead 'anbox session-manager' continued to run while nothing else visually happened. The anbox github issues page mentioned graphics drivers. Notice how 'gles2' has nothing in it when 'anbox system-info' is run. EGL and OpenGL ES 2.0 (gles2) are closely related. Therefore, my next step will be to figure out how to get anbox to see gles2. That is all for now. If you have any knowledge to contribute, please do! It is a big help. Thanks also to those who have already lent a hand, (that means you, nas & paju1986). RE: Anbox on KDE Community Edition (Manjaro) - neil2ball - 02-21-2021 Update Qt5 OpenGL ES 2.0 packages Quote:The current Qt5 OpenGL ES 2.0 packages (arm-unstable/extra/aarch64) are based on an outdated ICU version and thus fail on systems with the new version. Quote: https://gitlab.manjaro.org/manjaro-arm/packages/extra/qt5-es2-base/-/jobs/2239 Quote:rebuild is now in our repos: [manjaro-packages] [BoxIt] Memo (ARM) 11 RE: Anbox on KDE Community Edition (Manjaro) - neil2ball - 02-21-2021 https://github.com/anbox/anbox/issues/1714 [wayland support] replacing pbuffers #1270 Implement native Wayland support for Anbox RE: Anbox on KDE Community Edition (Manjaro) - neil2ball - 02-21-2021 Why Wayland on Android is a hard problem Hybris is a solution that commits hybris, by allowing us to use bionic-based HW adaptations in glibc systems Running Android next to Wayland Sorry for all the links, but this is where the research is taking me. It is a big problem, so it will take some time to come up with a solution. I will continue to keep you posted as I find out more. |