Building Android in Artix ‐ take 1

This guide is mainly written by Mick Faustin; with me testing the ensuing build and helping with documenting stuff.

Last updated : 17/4/2026 (cancel building crDroid‐revived)

− Introduction −
Prerequisites
− Dependencies −
pacman stuff
AUR stuff
Other preparations (Git | ccache | build environment | mke2fs)
− Building the ROM −
Repo initialization
Manifest initialization
Compiling
− Conclusion −
− Known issues −

Introduction

Personally, I kind of wanted to be an Android developer, but the entrance seems to be rather challenging. So I settled by building an existing custom ROM and having someone else in the vicinity to test it. Fortunately, Garry just so happened to get his OP5T assembled (minus the missing IMEI but we won't need it) so I can also use him as my guinea pig for my builds... after I convinced him to volunteer his OP5T for the task, which is easier said than done (and please don't get me started on his G710EAW, that thing is his daily).

Prerequisites

Dependencies

pacman stuff

# pacman ‐S repo bc ccache git‐lfs gitg gperf gradle jdk11‐openjdk lib32‐zlib lib32‐ncurses lib32‐readline libxcrypt‐compat lzop maven ninja noto‐fonts perl‐switch pngcrush schedtool sdl squashfs‐tools rsync ttf‐dejavu vim

Notes :

AUR stuff (Android Studio(?),ncurses5‐compat‐libs, lib32‐ncurses5‐compat‐libs, xml2)

AUR helpers (like yay) can be used in lieu of this guide, but it is not covered here (mostly because we had zero experience with them).

Other preparations

Building the ROM

If you're not in build environment, please cd there. All operations in this part happens there.

Repo initializations

Repo init targets

Source code downloads

Manifest initialization

We give a shout‐out to MSe1969 for solving our manifest headaches. In a previous attempt (my 1st repo sync), we just copied over the 5T entries into a roomservice.xml in local_manifests & did $ breakfast dumpling, only to fuck up the entire local repo with /vendor aimed at root. Lesson learned ‐ NEVER breakfast when compiling from someone else's tree, and repo sync after making the manifests.

Compiling

Prerequisites I found out after booting (or rebooting), if I shut down the computer and/or rebooted :

ROM compiling

Conclusion

Welp, that is about it. After bashing our heads over the hidden elitism LineageOS developers had against self‐builders (by not documenting important upstream issues & leaving them as mere comments up Reddit threads) we finally got a ROM running. Granted, we went with Lineage instead of crDroid‐revived thanks to a certain issue, but there's that.

That said, we don't have any other bad feelings (aside from the above & neverending push towards latest Android) against LineageOS and its developers. In fact, we are grateful to them, because if it weren't for them we won't be having any ROMs to flash in the first place.

To‐do list (Garry's addendum)

Though let's be honest, this is still a long way to go since neither of us are developers (let alone capable of developing Android) in the first place.

...yeah. This is a very long list. And it looked short.

Known issues

Back to top

Main Page