Package Details: anbox-git 1:r1353.31d584e-2

Git Clone URL: https://aur.archlinux.org/anbox-git.git (read-only, click to copy)
Package Base: anbox-git
Description: Running Android in a container
Upstream URL: http://anbox.io/
Licenses: GPL3
Conflicts: anbox-launchers
Replaces: anbox-launchers
Submitter: irtimmer
Maintainer: C_Schmidpeter (ahmubashshir, chaotic-aur)
Last Packager: ahmubashshir
Votes: 145
Popularity: 3.13
First Submitted: 2017-04-12 21:41
Last Updated: 2021-09-27 14:23

Pinned Comments

irtimmer commented on 2018-01-19 10:35

WARNING: Before you go ahead and install Anbox on your system, please keep in mind that Anbox is not yet stable. Not every feature is working well yet. You will find bugs, see crashes and unexpected problems. As this is a Git package, patches should go upstream as they will not be bundled with the package.

Latest Comments

1 2 3 4 5 6 ... Next › Last »

CichlaOcelaris commented on 2021-09-08 20:04

Is there any further config to do in order to anbox to show as an active device for Flutter/Code-OSS ?

sickcodes commented on 2021-09-02 00:44

Edit: modules updated here: https://aur.archlinux.org/packages/anbox-modules-dkms/

If anyone wants Android 11, I've added instructions for Arch here: https://github.com/sickcodes/droid-native

Some security concerns using the 2018 image as well as the kernel modules, but if anyone's having issues compiling the kernel for anbox, here is the extra config you will need:

CONFIG_ASHMEM=y
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_BINDERFS=y
CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
CONFIG_SW_SYNC=y
CONFIG_UHID=m

Then boot with these kernel args:

binder.devices=binder,hwbinder,vndbinder,anbox-binder,anbox-hwbinder,anbox-vndbinder

ahmubashshir commented on 2021-08-28 12:01

@T2hhbmEK, dev-binderfs.mount assumes that you're not using ashmem-linux/binder-linux(non needed after 5.7) as it uses binderfs in-tree module. ConditionPathExists=!/dev/binder checks if you're not using binder-linux.

T2hhbmEK commented on 2021-08-25 23:00

dev-binderfs.mount

[Unit]
Description=Android Binder File System
ConditionPathExists=!/dev/binder
Before=anbox-container-manager.service
After=systemd-modules-load.service

[Mount]
Where=/dev/binderfs
What=binder
Type=binder
Options=nofail

[Install]
WantedBy=anbox-container-manager.service

add After=systemd-modules-load.service for custom kernel like linux-xanmod-anbox to auto load ashmem_linux, binder_linux by writing a /etc/modules-load.d/anbox.conf as instructed in Wiki.

$ cat /etc/modules-load.d/anbox.conf 
ashmem_linux
binder_linux

PedroHLC commented on 2021-08-20 17:18

Either way, the package requires systemd to be installed during build, so adding it as a makedepends isn't a bad thing to do (even if it turns out to be redundant).

Yeah, looks like that's the consensus for "fixing it" while they discuss if base itself should be in base-devel. I'll add it.

EDIT: Done

xiretza commented on 2021-08-20 17:05

Rereading the aur-general thread, it looks like the consensus there was that base-devel is an implicit makedepends, while base is an implicit depends (but, unlike explicit depends, is not automatically installed in the build environment). Thus, if the package needs a non-base-devel package to build (even if it's in base), it should specify it in makedepends.

Either way, the package requires systemd to be installed during build, so adding it as a makedepends isn't a bad thing to do (even if it turns out to be redundant).

PedroHLC commented on 2021-08-20 16:48

@xiretza, well, we should always follow TUs and Arch's devs steps. As you can see in the Bugzilla I appended to my last comment: 1 - TU @eschwartz opened it because ZFS stopped building without systemd in base-devel. 2 - Dev's @seblu argument that base is mandatory and systemd is part of it. 3 - @eschwartz never added systemd to zfs-dkms after this and kept updating it...

xiretza commented on 2021-08-20 16:25

@PedroHLC ackshually, the wiki says that base-devel is assumed to be installed, not base :) there was a discussion about this on aur-general recently, I can't remember the exact outcome, but I'm assuming the wiki would've been updated if it had changed. https://wiki.archlinux.org/title/PKGBUILD#makedepends

PedroHLC commented on 2021-08-20 15:53

@xiretza "systemd" is in "base", so the archwiki states for us to not add that. "dbus" is a "systemd" dependency, but according to the new rules, we shouldn't rely in transient dependencies, so you're right about this one.

Also, see https://bugs.archlinux.org/task/66762 to understand why base is required even for building's containers.

xiretza commented on 2021-08-20 13:34

Requires makedepends=('systemd' 'dbus').