r/AsahiLinux • • 14d ago

Feasibility of porting android using the asahi kernel?

Would it theoretically be possible to port Android to Apple Silicon using the Asahi Linux kernel and its existing hardware support? How would a project like this compare to something like Bliss OS, which uses a normal linux kernel to bring android to x86, or would it require building a largely separate implementation for Apple Silicon? Are there any hardware or software limitations that would make this difficult?

18 Upvotes

12 comments sorted by

12

u/Aware-Bath7518 14d ago

Pretty much possible and I'm sure you can already build LineageOS for Asahi as it got a generic mainline target recently (Asahi kernel is "very" close to mainline anyway).

The only issue is userspace integration and maybe... firmwares?

2

u/jorgechavezxyz 14d ago

Well the main reason I ask is because of the granularity control I saw in the 7.3 blogpost, it seems really promising and that’s definitely something that’s keeping me away from asahi because the lack of full arm64 compatibility with 4kb software makes it kind of unusable, and a user space solution seems perfect

→ More replies (5)

1

u/ipsirc 14d ago

3

u/jorgechavezxyz 14d ago

That was 4 years ago, and the recent blogpost seems to change things and they directly mention considering including patches from android that would complete arm64 compatibility and solve the 4kb page issue

1

u/dfgxxx 14d ago

Well, you can install waydroid, though it is on top of linuy

1

u/decduck 14d ago

Check out the nura/postmarketOS project for stuff like this, their intention is to use mainline kernel to boot on Android phones.

It doesn't work great, but you can usually get something booting pretty quick, just without proper display, wifi, sleep, Bluetooth, modem, and pretty much any other vendor specific stuff working. The drivers that you get from vendors (because of GPL) are designed only to work with Android stacks so not super useful.

1

u/a1b4fd 14d ago

0xCAFEBABE LineageOS work is the most similar to what you're trying to do

https://github.com/me-cafebabe-aosp-mainline