Package Details: anbox-modules-dkms 5.19-1

Git Clone URL: https://aur.archlinux.org/anbox-modules-dkms.git (read-only, click to copy)
Package Base: anbox-modules-dkms
Description: Android kernel driver fork by @choff (binder/binderfs & ashmem) in DKMS format
Upstream URL: https://github.com/choff/anbox-modules
Keywords: anbox ashmem binder binderfs waydroid
Licenses: GPL3
Conflicts: anbox-modules-dkms-git
Provides: anbox-modules-dkms
Submitter: sickcodes
Maintainer: None
Last Packager: sickcodes
Votes: 9
Popularity: 0.002896
First Submitted: 2021-12-17 05:28 (UTC)
Last Updated: 2022-12-09 07:16 (UTC)

Pinned Comments

sickcodes commented on 2022-01-15 11:43 (UTC)

This has been adjusted to build on 5.10-5.15 thank you to legend Christian Hoff!

Working DKMS fork by Christian Hoff: https://github.com/choff/anbox-modules

DKMS add modules, without reboot:

sudo modprobe binder_linux devices=binder,hwbinder,vndbinder,anbox-binder,anbox-hwbinder,anbox-vndbinder

sudo modprobe ashmem_linux

Pull Requests: https://github.com/sickcodes/aur

Contact (Discord/Telegram/Git/Element): https://sick.codes

Latest Comments

« First ‹ Previous 1 2 3 4

arpanetus commented on 2022-05-13 20:04 (UTC)

Please add conflicts with anbox-modules-dkms-git

Zepman commented on 2022-05-01 16:43 (UTC)

Package fails to build with:

/home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c: In function ‘binder_translate_binder’:
/home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:2449:49: error: passing argument 1 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 2449 |         if (security_binder_transfer_binder(proc->cred, target_proc->cred)) {
      |                                             ~~~~^~~~~~
      |                                                 |
      |                                                 const struct cred *
In file included from /home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:63:
./include/linux/security.h:263:57: note: expected ‘struct task_struct *’ but argument is of type ‘const struct cred *’
  263 | int security_binder_transfer_binder(struct task_struct *from,
      |                                     ~~~~~~~~~~~~~~~~~~~~^~~~
/home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:2449:68: error: passing argument 2 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 2449 |         if (security_binder_transfer_binder(proc->cred, target_proc->cred)) {
      |                                                         ~~~~~~~~~~~^~~~~~
      |                                                                    |
      |                                                                    const struct cred *
In file included from /home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:63:
./include/linux/security.h:264:57: note: expected ‘struct task_struct *’ but argument is of type ‘const struct cred *’
  264 |                                     struct task_struct *to);
      |                                     ~~~~~~~~~~~~~~~~~~~~^~
/home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c: In function ‘binder_translate_handle’:
/home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:2499:49: error: passing argument 1 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 2499 |         if (security_binder_transfer_binder(proc->cred, target_proc->cred)) {
      |                                             ~~~~^~~~~~
      |                                                 |
      |                                                 const struct cred *
In file included from /home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:63:
./include/linux/security.h:263:57: note: expected ‘struct task_struct *’ but argument is of type ‘const struct cred *’
  263 | int security_binder_transfer_binder(struct task_struct *from,
      |                                     ~~~~~~~~~~~~~~~~~~~~^~~~
/home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:2499:68: error: passing argument 2 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 2499 |         if (security_binder_transfer_binder(proc->cred, target_proc->cred)) {
      |                                                         ~~~~~~~~~~~^~~~~~
      |                                                                    |
      |                                                                    const struct cred *
In file included from /home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:63:
./include/linux/security.h:264:57: note: expected ‘struct task_struct *’ but argument is of type ‘const struct cred *’
  264 |                                     struct task_struct *to);
      |                                     ~~~~~~~~~~~~~~~~~~~~^~
/home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c: In function ‘binder_translate_fd’:
/home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:2591:49: error: passing argument 1 of ‘security_binder_transfer_file’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 2591 |         ret = security_binder_transfer_file(proc->cred, target_proc->cred, file);
      |                                             ~~~~^~~~~~
      |                                                 |
      |                                                 const struct cred *
In file included from /home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:63:
./include/linux/security.h:265:55: note: expected ‘struct task_struct *’ but argument is of type ‘const struct cred *’
  265 | int security_binder_transfer_file(struct task_struct *from,
      |                                   ~~~~~~~~~~~~~~~~~~~~^~~~
/home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:2591:68: error: passing argument 2 of ‘security_binder_transfer_file’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 2591 |         ret = security_binder_transfer_file(proc->cred, target_proc->cred, file);
      |                                                         ~~~~~~~~~~~^~~~~~
      |                                                                    |
      |                                                                    const struct cred *
In file included from /home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:63:
./include/linux/security.h:266:55: note: expected ‘struct task_struct *’ but argument is of type ‘const struct cred *’
  266 |                                   struct task_struct *to, struct file *file);
      |                                   ~~~~~~~~~~~~~~~~~~~~^~
/home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c: In function ‘binder_transaction’:
/home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:2993:53: error: passing argument 1 of ‘security_binder_transaction’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 2993 |                 if (security_binder_transaction(proc->cred,
      |                                                 ~~~~^~~~~~
      |                                                     |
      |                                                     const struct cred *
In file included from /home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:63:
./include/linux/security.h:261:53: note: expected ‘struct task_struct *’ but argument is of type ‘const struct cred *’
  261 | int security_binder_transaction(struct task_struct *from,
      |                                 ~~~~~~~~~~~~~~~~~~~~^~~~
/home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:2994:60: error: passing argument 2 of ‘security_binder_transaction’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 2994 |                                                 target_proc->cred) < 0) {
      |                                                 ~~~~~~~~~~~^~~~~~
      |                                                            |
      |                                                            const struct cred *
In file included from /home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:63:
./include/linux/security.h:262:53: note: expected ‘struct task_struct *’ but argument is of type ‘const struct cred *’
  262 |                                 struct task_struct *to);
      |                                 ~~~~~~~~~~~~~~~~~~~~^~
/home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c: In function ‘binder_ioctl_set_ctx_mgr’:
/home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:4941:51: error: passing argument 1 of ‘security_binder_set_context_mgr’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 4941 |         ret = security_binder_set_context_mgr(proc->cred);
      |                                               ~~~~^~~~~~
      |                                                   |
      |                                                   const struct cred *
In file included from /home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.c:63:
./include/linux/security.h:260:57: note: expected ‘struct task_struct *’ but argument is of type ‘const struct cred *’
  260 | int security_binder_set_context_mgr(struct task_struct *mgr);
      |                                     ~~~~~~~~~~~~~~~~~~~~^~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:272: /home/deck/src/anbox-modules-dkms/src/anbox-modules/binder/binder.o] Error 1
make[1]: *** [Makefile:1847: /home/deck/src/anbox-modules-dkms/src/anbox-modules/binder] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.13.0-valve14-1-neptune-02195-g5b0f749d00fa/build'
make: *** [Makefile:8: all] Error 2
==> ERROR: A failure occurred in package().
    Aborting...

Wokaround: Modify ${srcdir}/anbox-modules/binder/Makefile, add to ccflags-y: -Wno-error=incompatible-pointer-types

Rebuild with makepkg --noprepare.

sickcodes commented on 2022-04-01 22:16 (UTC)

5.15 and below works; you can use linux-lts or 5.10.y I think it's called.

https://sick.codes/how-to-downgrade-linux-lts-back-to-5-10-on-arch-linux-manjaro-from-5-15-and-keep-it-there/

It's being maintained by GKH for many years to come

Zunon commented on 2022-03-22 20:48 (UTC) (edited on 2022-03-22 20:48 (UTC) by Zunon)

I got the following error:

$> makepkg -si
==> Making package: anbox-modules-dkms 5.15-1 (Wed 23 Mar 2022 12:43:49 AM +04)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating anbox-modules git repo...
Fetching origin
  -> Found 7c19d3c66758747d854c63e4c34ef127ce201fa6.patch
==> Validating source files with sha256sums...
    anbox-modules ... Skipped
    7c19d3c66758747d854c63e4c34ef127ce201fa6.patch ... Passed
==> Extracting sources...
  -> Creating working copy of anbox-modules git repo...
Reset branch 'makepkg'
==> Starting prepare()...
patching file binder/binder.c
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
make -C /lib/modules/5.16.15-arch1-1/build V=0 M=$PWD
make[1]: *** /lib/modules/5.16.15-arch1-1/build: No such file or directory.  Stop.
make: *** [Makefile:8: all] Error 2
==> ERROR: A failure occurred in package().
    Aborting...

I've installed linux-headers as suggested by @mahor1221 but it was of no use.

mahor1221 commented on 2022-03-04 09:43 (UTC) (edited on 2022-03-04 09:52 (UTC) by mahor1221)

@lyhokia Install linux-headers for linux or linux-headers-lts for linux-lts. See if it works. Also reinstall gcc-libs if you are getting cc1: error: incompatible gcc/plugin versions with sudo pacman -Syu gcc-libs

lyhokia commented on 2022-02-27 11:13 (UTC)

I run into this:

make -C /lib/modules/5.16.11-arch1-1/build V=0 M=$PWD
make[1]: *** /lib/modules/5.16.11-arch1-1/build: No such file or directory.  Stop.
make: *** [Makefile:8: all] Error 2

How should I fix it?

sickcodes commented on 2022-01-15 11:43 (UTC)

This has been adjusted to build on 5.10-5.15 thank you to legend Christian Hoff!

Working DKMS fork by Christian Hoff: https://github.com/choff/anbox-modules

DKMS add modules, without reboot:

sudo modprobe binder_linux devices=binder,hwbinder,vndbinder,anbox-binder,anbox-hwbinder,anbox-vndbinder

sudo modprobe ashmem_linux

Pull Requests: https://github.com/sickcodes/aur

Contact (Discord/Telegram/Git/Element): https://sick.codes