Menu

Tree [1f02d3] lineage-22.1 /
 History

HTTPS access


File Date Author Commit
 snippets 2025-02-20 rmp22 rmp22 [9d8483] Track microG vendor
 README.md 2025-02-20 rmp22 rmp22 [1f02d3] Update building docs for build variant changes
 default.xml 2025-02-02 rmp22 rmp22 [7d58bc] Initial AxionAOSP manifest

Read Me

AxionOS

Getting Started

To get started with AxionOS, you'll need to be familiar with Source Control Tools.

Initializing the Source

Initialize your local repository using the AxionOS manifest:

repo init -u https://github.com/AxionAOSP/android.git -b lineage-22.1 --git-lfs

Then sync the source:

repo sync

Build Environment Setup

Make sure your build environment is properly set up by following the LineageOS build guide.

Before building, configure the environment:

. build/envsetup.sh

Device Flags

Modify your device trees to inherit LineageOS common settings and disable EPPE (if applicable):

TARGET_DISABLE_EPPE := true
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)

AxionOS-Specific Flags

These flags are needed for About Phone section UI and GMS framework.

📷 Camera Flags

# Define rear camera specs (multiple sensors supported)
AXION_CAMERA_REAR_INFO := 50,48  # Example: 50MP + 48MP

# Define front camera specs
AXION_CAMERA_FRONT_INFO := 42  # Example: 42MP

👤 Device Maintainer & Processor Info Flags

# Maintainer name (use "_" for spaces, e.g., "rmp_22" → "rmp 22" in UI)
AXION_MAINTAINER := rmp

# Processor name (use "_" for spaces)
AXION_PROCESSOR := Snapdragon_CPU_1

🔧 Build Variant Flags

By default, GMS (Google Mobile Services) is enabled. To disable it, set it to MICROG/VANILLA:

AXION_BUILD_VARIANT := MICROG/GMS/VANILLA

Building AxionOS

🔑 Generate Private Keys

Before building, generate private keys:

gk -s

📲 Lunch Command

Set up the build environment for your device:

axion <device_codename>

🔄 Syncing Source

After setting up the build environment and syncing the whole source, easily sync the latest source changes with:

axionSync

⚙️ Build for Fastboot Flashing (fastboot flashall)

Compile the ROM with:

ax -j<count>

Replace <count> with the number of CPU threads for faster compilation (e.g., ax -j16).


📜 Credits

AxionOS is built upon the hard work of the Android Open Source Project (AOSP) and LineageOS teams. Special thanks to all contributors!


🚀 Happy Building!

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.