Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android/avf: init #1417

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

android/avf: init #1417

wants to merge 3 commits into from

Conversation

mkg20001
Copy link
Member

@mkg20001 mkg20001 commented Mar 16, 2025

Description of changes

Android Virtualization Framework is a new virtualization environment for Android

Among others, it is used to provide the Terminal App starting from Android 15 QPR2

This PR allows building images for AVF and brings the necesarry hardware config

The system changes have been taken from https://android.googlesource.com/platform/packages/modules/Virtualization/+/refs/heads/main/build/debian/

This now works fully.

Things done
  • Tested the changes in your own NixOS Configuration
  • Tested the changes end-to-end by using your fork of nixos-hardware and
    importing it via <nixos-hardware> or Flake input

@mkg20001 mkg20001 marked this pull request as draft March 16, 2025 01:19
@mkg20001
Copy link
Member Author

mkg20001 commented Mar 16, 2025

aarch64 build on aarch64 linux fails with, no idea fixed

@mkg20001
Copy link
Member Author

fixed build failures. works now on aarch64 aswell. failure was caused by NixOS/nixpkgs#145726

@Mic92
Copy link
Member

Mic92 commented Mar 17, 2025

Is this a profile like qemu-guest.nix in nixpkgs/nixos? I have the feeling we can just add this to nixpkgs directly. Than also all dependencies would be build in Hydra.

@mkg20001
Copy link
Member Author

@Mic92 yes. I added it to nixos-hardware, since building the packages is a bit hacky for now. Or do you think this looks good enough for upstream?

@mkg20001
Copy link
Member Author

mkg20001 commented Mar 19, 2025

current issue: /dev/vsock is missing, which forwarder_guest_launcher needs. it crashes with file not found error. (At leadt i think its that file, last thing in strace) fixed

@mkg20001 mkg20001 marked this pull request as ready for review March 19, 2025 16:26
@mkg20001 mkg20001 force-pushed the avf branch 2 times, most recently from fcb9fef to 14d151c Compare March 19, 2025 18:20
Android Virtualization Framework is a new virtualization environment for Android

Among others, it is used to provide the Terminal App starting from Android 15 QPR2

This PR allows building images for AVF

The system changes have been taken from https://android.googlesource.com/platform/packages/modules/Virtualization/+/refs/heads/main/build/debian/
@mkg20001
Copy link
Member Author

mkg20001 commented Mar 19, 2025

Currently the partition ids are deterministic. The terminal app has a feature where in case something goes wrong and the system can't boot, the system can be reinstalled and the previous one made available under /dev/vdb

If I understand correctly, this brings the issue of having two partitions with the same ids at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants