[BUG] Android 16 images: Zygisk unusable — Kitsune Mask canary `--setup-sbin` aborts (`clone_attr /sbin -> /root failed: No data available`), stable build gives no companion loading in app processes
Summary
On the Android 16 Waydroid images, Zygisk is effectively unusable, and with it every Zygisk-based module (Xposed frameworks such as LSPosed/Vector, and any module whose native payload has to run inside app processes).
The reason is a chain of two things, both reproducible on a stock a16-qpr0 image:
- Zygisk in this setup only works with the Kitsune Mask canary (that is what the third‑party
waydroid_magisktool documents, and what the "stable" toggle cannot do). - The canary's setup step (
magisk64 --auto-selinux --setup-sbin, Magisk 27 line) aborts on these images, so the daemon never comes up.
The older/stable Kitsune Mask (MAGISK_VER_CODE=26301) does install and gives a working root through the well-known overlay + bootanim.rc integration — but with it, a module's Zygisk companion never runs inside app processes, so only system_server can be injected.
I am not sure whether this belongs here or is simply "unsupported, use the archived community tool" — but since nitanmarcel/waydroid-magisk is archived (read-only) I have nowhere else to report it, and the image side (SELinux disabled) looks like the part Waydroid controls.
Environment
- Waydroid 1.6.3, host NixOS 26.05 (x86_64)
- Image:
WayDroid-ATV/waydroid-buildsa16-qpr0(LineageOS 23,ro.build.version.release=16, SDK 36, vendor mainline) - Guest:
getenforce→ Disabled (no/sys/fs/selinux);/is the standard Waydroid overlay (lowerdir=/var/lib/waydroid/overlay:/var/lib/waydroid/rootfs,upperdir=/var/lib/waydroid/overlay_rw/system) - Root: Kitsune Mask canary
R6687BB53-kitsune/MAGISK_VER_CODE=27001(fromHuskyDG/magisk-filesapp-release.apk), integrated the documented way (binaries intooverlay/system/etc/init/magisk/+/data/adb/magisk/,bootanim.rcpatched with thepost-fs-dataexecs)
Steps to reproduce
- Install the canary binaries with the usual overlay +
bootanim.rcintegration (thepatch_bootanim()recipe fromwaydroid-magisk), starting from a clean state:rm -rf /var/lib/waydroid/overlay_rw/system/{sbin,root} - Restart Waydroid, then in the guest:
/system/etc/init/magisk/magisk64 --auto-selinux --setup-sbin /system/etc/init/magisk; echo rc=$? - Compare with the stable build on the same image, which uses the older two-argument form:
/system/etc/init/magisk/magisk64 --auto-selinux --setup-sbin /system/etc/init/magisk /dev/magisk_<random>
Expected
Canary: rc=0, /sbin/magisk exists, magisk -v / su work, Zygisk loads module companions in app processes.
Stable (step 3): works — rc=0, magisk -v → 0fe46c5a-delta:MAGISK:R, su -c id → uid=0(root).
Actual
Canary:
clone_attr /sbin -> /root failed: No data available (os error 61)
rc=1and init:
I init : Service 'exec 9 (/system/etc/init/magisk/magisk64 --auto-selinux --setup-sbin /system/etc/init/magisk)' (pid 161) exited with status 1
E init : Could not start service 'magisk_late' as part of class 'late_start': Cannot find '/sbin/magisk': No such file or directoryFor the rest of the boot there is no daemon: magisk -v → inaccessible or not found, no su.
Notes:
ls -ldZ /sbin /rootshows both dirs exist with the placeholder contextHACKED, so the failure is in the attribute copy, not in creating the dirs (guest SELinux is disabled, so there is no real label to copy).- The failed run leaves real
/sbinand/rootdirectories inoverlay_rw/system/which shadow the ROM's/sbinsymlink; after switching back to the stable build, the stable flow fails too until those entries are deleted. (Might be worth handling insetup_sbin, or documenting.) - Skipping
--setup-sbinand starting the daemon from a/devtmpfs (copythe binary +chmod 0755, then/dev/magisk_tmp/magisk --auto-selinux --post-fs-data) makes the binary exec but the daemon exits 1, so that detour does not work either.
Impact
With the stable build (only supported option today), zygisk maps libzygisk.so into app processes, but a module's Zygisk companion never runs there (its native logs never show up in an app process), so e.g. LSPosed/Vector can inject system_server (their vector-cli status reports Framework 2.2 / API 102) yet no app can bind the framework daemon — the manager app stays "Not activated" and no Xposed module does anything in apps. That is also why modules that need Zygisk behave oddly (cf. #2294).
Question
- Is there a supported/documented way to get Zygisk working on the Android 16 images — e.g. a way to make the canary's
--setup-sbinsucceed (would a labelled/sbinhelp? can the image be run with SELinux enabled?), or is the recommended path a different root implementation entirely? - Or should the images ship/keep whatever is needed so the canary (the only Kitsune build with working Zygisk per the community tool) can install?
Happy to run any diagnostic you want on the same image (it is a throwaway VM), and to test patches against waydroid itself if that is where the fix belongs.
Source: waydroid/waydroid