WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Request for Inclusion of ashmem, binder, and memfd in the kernel for waydroid support

Open progressive-galib opened this issue 11 months ago • 6 comments


Feature Request: Add ashmem, binder, and memfd Support


Background


I wanna use Waydroid, which is an Android container designed for Wayland.

Issue


Waydroid depends on the ashmem and binder kernel modules. In the future, it will transition to using memfd. Most Linux distributions typically ship with ashmem and binder built into the kernel, but this is not the case with Microsoft’s implementation.

I have wrote a script that downloads the kernel, compiles the headers, and loads ashmem and binder. However, this setup tends to break every time i update my ubuntu or Microsoft updates underlying WSL.

Request


It would be greatly beneficial if you could consider adding for the following to the kernel by default it wont harm anybody but help a lot of us:

  • ashmem
  • binder
  • memfd (for future compatibility)

it is specially important now as support windows subsystem for android has stopped

progressive-galib avatar Feb 18 '25 20:02 progressive-galib

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

github-actions[bot] avatar Feb 18 '25 20:02 github-actions[bot]

/feature

progressive-galib avatar Feb 18 '25 20:02 progressive-galib

Diagnostic information
Found '/feature', adding tag 'feature'

github-actions[bot] avatar Feb 18 '25 20:02 github-actions[bot]

@sirredbeard hey Hayden, could you look at this ? as i told you on telegram this would also solve https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL/issues/226

progressive-galib avatar Feb 27 '25 09:02 progressive-galib

I also want to use Waydroid on WSL2 and facing same issue, now trying to make custom kernel with Blinder Support.

Wakeelfahmed avatar Mar 08 '25 13:03 Wakeelfahmed

Works with 6.6. self-built kernel as per guidelines https://learn.microsoft.com/en-us/community/content/wsl-user-msft-kernel-v6

nos1609 avatar Jun 01 '25 08:06 nos1609

Will this ultimately be the best alternative to the awesome Win11 Android subsystem that's hacked to support Google Play? The best new feature on Win11 was the Android subsystem.. pretty sad that MIcrosoft is purposefully removing it and replacing with with AI bloat that nobody asked for.

mkanet avatar Oct 12 '25 18:10 mkanet