NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.06k stars 14.04k forks source link

Package request: Android Translation Layer #312040

Open Steinhagen opened 5 months ago

Steinhagen commented 5 months ago

Project description

A translation layer that allows running Android apps on a Linux system

Metadata


Add a :+1: reaction to issues you find important.

balsoft commented 3 days ago

I've started some work on this, and it looks quite complicated. There's a lot of hardcoded /bin/bash, /usr/local etc. It has both Java and C# components (each of which are horrible to deal with in Nix). Some dependencies are trying to fetch their own dependencies from the network as part of the build process. art_standalone takes a very long time to build and has some undocumented dependencies, which if missing trigger a failure deep in the build process. I think it's at least a week of work if not more.

balsoft commented 1 day ago

Here's my progress so far: https://gist.github.com/balsoft/8fdb414c8c29095faeb6ae3220171268

It builds and runs a couple of sample apps (com.ashwin.example.accelerometerdemo.apk, demo_app.apk, glmark2.apk, org.happysanta.gd_29.apk, views_widgets_samples_flower_finder.apk) and NewPipe (but there's no networking). Most other apps crash with different errors. I suspect at some point I'll give up and put it in buildFHSEnv, but unfortunately just doing that doesn't help either.

If you're willing to help, join #android-translation-layer:matrix.org and ping @balsoft:balsoft.ru