lineageos

A development guide for LineageOS, an open-source version of Android that can be built and adapted for supported phones.

In plain words
What is it for?
Use it to prepare a LineageOS source tree, add a device, build a flashable ZIP or system image, build a kernel, apply code changes, and contribute through Gerrit.
Why use it?
It brings the source-syncing, device setup, build, and contribution steps into one reference, reducing guesswork when working on a custom Android system.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/hyperb1iss/hyperdroid-skill/lineageos
Any agent
npx skills add hyperb1iss/hyperdroid-skill --skill lineageos
Clone the repo
git clone --depth 1 https://github.com/hyperb1iss/hyperdroid-skill

Made for: Claude Code, Codex.

Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,516 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00081 $0.01516
Opus 5 $0.00041 $0.00758
Sonnet 5 $0.00016 $0.00303
Haiku 4.5 $0.00008 $0.00152

Measured 2d ago against content hash 7e65c04a8723, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lineageos scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
skills/lineageos/SKILL.md · 313 lines

How it starts

The opening of the file, as written. The whole thing — 313 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LineageOS Development

This skill covers LineageOS custom ROM development - from syncing sources to building and contributing.

Getting Started

Initialize Source

mkdir ~/lineage && cd ~/lineage

# Install repo (if needed)
mkdir -p ~/.bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
chmod a+x ~/.bin/repo
export PATH="$HOME/.bin:$PATH"

# Init LineageOS 21 (Android 14)
repo init -u https://github.com/LineageOS/android.git -b lineage-21.0 --git-lfs

# Sync
repo sync -c -j$(nproc) --force-sync --no-tags --no-clone-bundle

Build Commands

# Setup environment
source build/envsetup.sh

# Setup device (syncs device repos too)
breakfast <device>

# Build flashable ZIP
brunch <device>
# Or separately:
breakfast <device>
mka bacon

# Output: out/target/product/<device>/lineage-21.0-*-UNOFFICIAL-<device>.zip

Essential Commands

Command Purpose
breakfast <device> Setup device + sync dependencies
brunch <device> breakfast + full build
mka bacon Build flashable ZIP
mka bootimage Build kernel only
mka systemimage Build system only
repopick <change> Cherry-pick from Gerrit

Device Trees

Required Files

device/<vendor>/<device>/
├── lineage_<device>.mk      # Product makefile
├── lineage.dependencies     # Repo dependencies
├── vendorsetup.sh           # Add to lunch
├── BoardConfig.mk           # Hardware config
├── device.mk                # Packages and configs
└── extract-files.sh         # Vendor blob extraction

lineage_.mk

# Inherit device
$(call inherit-product, device/vendor/device/device.mk)

# Inherit LineageOS common
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)

PRODUCT_NAME := lineage_device
PRODUCT_DEVICE := device
PRODUCT_BRAND := Vendor
PRODUCT_MODEL := Device Name
PRODUCT_MANUFACTURER := Vendor

Read the full file on GitHub · 313 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 313 lines · 81 tokens per session scan A 7e65c04a8723

Subscribe to this mod's changes

lineageos is a skill published in the GitHub repository hyperb1iss/hyperdroid-skill (35 stars, last pushed 7mo ago), licensed MIT. It adds 81 tokens to every session and 1,516 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

compose-m3-theme-expert

Architect, implement, and optimize Material 3 custom themes in Jetpack Compose. Use this skill whenever the user mentions Android UI design systems, MaterialTheme overrides, dynamic wallpaper-derived colors, custom CompositionLocal providers (like NiaTheme gradients or background tokens), theme recomposition…

JosephSanjaya/skills · 90 tokens

agent-md-expert

Expert guidance for creating, auditing, and maintaining minimal, cache-friendly, and structure-decoupled context files (AGENTS.md and CLAUDE.md). Trigger this skill when the user mentions context files, repo rules, agents.md, claude.md, prompt optimization, or wants to check agent instructions.

JosephSanjaya/skills · 66 tokens

medium-article-expert

Expert guidance for writing, structuring, outlining, titling, and publishing high-engagement Medium articles. Use whenever the user mentions Medium, Boost nomination, Medium titles/subtitles/kickers, article outlines, key points from a topic, SEO slugs/canonicals, or drafting/editing a Medium post — even if they only…

JosephSanjaya/skills · 143 tokens

android-amplitude-sdk-expert

Expert guide for Amplitude Android SDK integration (Kotlin/Java). Use when tracking events, configuring autocapture, managing user identity, configuring batching or EU residency, implementing custom Enrichment/Destination plugins, migrating from legacy com.amplitude:android-sdk to modern…

JosephSanjaya/skills · 170 tokens

apple-container-expert

Expert guide for Apple's native container CLI (apple/container) — the open-source, Swift-native, VM-per-container runtime for Apple Silicon macOS. Read this skill BEFORE answering any question about: installing or starting apple/container; container run/build/machine/volume/network commands; configuring config.toml…

JosephSanjaya/skills · 168 tokens

shell-mastery

Expert shell configuration, optimization, and automation for Bash, Zsh, and PowerShell. Use when optimizing shell startup times, profiling performance bottlenecks, implementing defensive scripting patterns, configuring modern CLI tools (fzf, tmux, Atuin), writing portable POSIX scripts, engineering Zsh interactive…

JosephSanjaya/skills · 104 tokens