{"id":17930420,"url":"https://github.com/sickcodes/anbox-modules-dkms","last_synced_at":"2025-03-24T04:31:16.119Z","repository":{"id":58842913,"uuid":"403385468","full_name":"sickcodes/anbox-modules-dkms","owner":"sickcodes","description":"anbox-modules-dkms for kernel - resurrected aur.archlinux.org/anbox-modules-dkms for ongoing maintaining. Next Generation Box Modules DKMS (ngbox). WayDroid, Anbox Halium, Droid Native, Dock Droid + BlissOS!","archived":false,"fork":false,"pushed_at":"2022-01-18T09:41:19.000Z","size":21,"stargazers_count":23,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-15T22:00:16.305Z","etag":null,"topics":["anbox","anbox-git","android","dkms","modules","waydroid"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sickcodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-05T18:35:50.000Z","updated_at":"2025-02-22T11:22:33.000Z","dependencies_parsed_at":"2022-09-10T14:00:17.940Z","dependency_job_id":null,"html_url":"https://github.com/sickcodes/anbox-modules-dkms","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sickcodes%2Fanbox-modules-dkms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sickcodes%2Fanbox-modules-dkms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sickcodes%2Fanbox-modules-dkms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sickcodes%2Fanbox-modules-dkms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sickcodes","download_url":"https://codeload.github.com/sickcodes/anbox-modules-dkms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245211060,"owners_count":20578335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anbox","anbox-git","android","dkms","modules","waydroid"],"created_at":"2024-10-28T21:13:17.843Z","updated_at":"2025-03-24T04:31:15.778Z","avatar_url":"https://github.com/sickcodes.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# anbox-modules-dkms for kernel 5.7+ (ngbox-modules-dkms)\n\n# Next Generation Box Modules DKMS (ngbox)\n\n### [https://aur.archlinux.org/packages/anbox-modules-dkms](https://aur.archlinux.org/packages/anbox-modules-dkms)\n\n\nMaintained by Christian Hoff [@choff](https://github.com/choff): [https://github.com/choff/anbox-modules](https://github.com/choff/anbox-modules)\n\nThe AUR package is maintained here: [https://github.com/sickcodes/aur/tree/master/anbox-modules-dkms](https://github.com/sickcodes/aur/tree/master/anbox-modules-dkms)\n\n\nResurrected aur.archlinux.org/anbox-modules-dkms for maintenance \n\nAs per the Arch Wiki, https://wiki.archlinux.org/title/Anbox#Old_kernels\n\n\u003e The dkms modules do not work on kernels ≥5.7 anymore. Follow the instructions below instead. For older kernels see Old kernels.\n\nHowever, a user named @Choff has included some patches here:\n\n[https://github.com/anbox/anbox-modules/pull/76](https://github.com/anbox/anbox-modules/pull/76)\n\nThis repo will be used to fix the anbox modules for 5.7+.\n\n### This project was created for use in:\n- Next Generation Anbox Style LXC: [https://github.com/sickcodes/droid-native](https://github.com/sickcodes/droid-native)\n\n- Android in a Docker using [BlissOS](https://blissos.org/): [https://github.com/sickcodes/dock-droid](https://github.com/sickcodes/dock-droid)\n\n- binder(fs) and ashmem for use in anbox related 5.7+ Kernel distribuitons (soon to be all): [https://github.com/sickcodes/anbox-modules-dkms](https://github.com/sickcodes/anbox-modules-dkms)\n\n- WayDroid: [https://github.com/waydroid/waydroid](https://github.com/waydroid/waydroid)\n\n\n# Patches \n\n`git submodule add https://github.com/choff/anbox-modules\n`\nWe will use commit https://github.com/choff/anbox-modules/commit/6ddae194592451d604726a286f566d0246aef567\n\nhttps://github.com/choff/anbox-modules/commit/4af9d5d591f33a0d8d7fb0735e280fa51ccef53e\n\n\u003e  Fix compilation of binder and ashmem on kernel 5.7 and later\n\n\u003e On kernel 5.7 and later, kallsyms_lookup_name() can no longer be called from a kernel\n\u003e module for reasons described here: https://lwn.net/Articles/813350/\n\u003e As binder really needs to use kallsysms_lookup_name() to access some kernel\n\u003e functions that otherwise wouldn't be accessible, KProbes are used on later\n\u003e kernels to get the address of kallsysms_lookup_name(). The function is\n\u003e afterwards used just as before. This is a very dirty hack though and the much\n\u003e better solution would be if all the functions that are currently resolved\n\u003e with kallsysms_lookup_name() would get an EXPORT_SYMBOL() annotation to\n\u003e make them directly accessible to kernel modules.\n\n\nhttps://github.com/choff/anbox-modules/commit/443f984b1a4eecf464b0081820e87e351c5d7c36\n\n\u003e Compile fixes for kernel \u003e= 5.8\n\n\u003e With the commit 64fe66e8a95e in the Linux kernel, the member \"mmap_sem\" in the\n\u003e struct mm_struct was renamed to \"mmap_lock\". This patch fixes the resulting\n\u003e compile errors.\n\nhttps://github.com/choff/anbox-modules/commit/6ddae194592451d604726a286f566d0246aef567\n\n\u003e Another compile fix for kernel \u003e= 5.8\n\n\u003e With kernel 5.8, the return value of map_kernel_range_noflush()\n\u003e was changed. This function now returns 0 on success (instead of\n\u003e the number of successfully mapped pages).\n\n\u003e This commit adjusts binder accordingly.\n\nThank you so much @choff!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsickcodes%2Fanbox-modules-dkms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsickcodes%2Fanbox-modules-dkms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsickcodes%2Fanbox-modules-dkms/lists"}