Android Mainline Port
把主线 Linux 和桌面发行版移植到 Android 手机、平板的操作手册与经验库(高通 + Ubuntu GNOME 实践)。覆盖评估、构建、bootloader、设备树、显示、触控、音频、无线、充电、休眠、双系统、打包、测试与发布。用户想在安卓设备上跑原生 Linux、移植主线内核、fastboot 启动自制内核、排查外设在主线下不工作,或评估设备能否移植时使用。
Install
npx skills add yzddmr6/android-mainline-port --skill android-mainline-portgit clone --depth 1 https://github.com/yzddmr6/android-mainline-port.git /tmp/android-mainline-port
mkdir -p ~/.claude/skills
cp -r /tmp/android-mainline-port/. ~/.claude/skills/android-mainline-portPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# 安卓设备移植主线 Linux ## 这份 skill 怎么组织 - **外层框架**(本文件和 `references/`):先做什么、后做什么,工作纪律,技术选型,怎么判断通过。相对稳定。 - **经验库**(`experience/`):按领域写的推荐路线、完成标准和具体的坑(现象、原因、怎么确认、怎么解决、怎么预防)。随项目不断追加。 经验来自高通平板移植到 Ubuntu 26.04 + GNOME 的过程。硬件和内核部分基本通用;Ubuntu 相关部分换发行版时按 `references/ubuntu.md` 最后一节调整。版本号和接口名有时效性,使用前核对上游现状;上游已经解决的问题,直接用更简单的办法。 ## 怎么用 - **新项目**:按下面的流程从第 0 步开始,每一步先读 `references/process.md` 对应小节,再读相关的 `experience/` 文件。 - **中途接手**:先读项目自己的 AGENTS.md、状态表和技术债表,再定位到流程中的哪一步。 - **做技术决策**:先读 `references/decisions.md` 对应一节的默认做法和规则。 - **排查故障**:先按 `experience/patterns.md` 判断问题属于哪一类、按通用步骤排查;再用日志里的错误码、函数名、配置项在 `experience/` 里 `grep` 找具体案例。 - **只做评估**:完成第 0 步,输出评估报告和决策清单。 ## 流程 | 步 | 做什么 | 完成标准 | 主要参考 | |---|---|---|---| | 0 立项 | 建工作区;资料池(上游、同 SoC 社区、厂商源码、同类项目);复用调研;硬件清单;选型;估算;和用户确认决策 | 用户确认决策清单;确认前不碰设备 | `references/process.md`、`references/decisions.md`、`references/discipline.md` | | 1 构建环境 | 工具链、ccache、长期 OUT、根文件系统构建方式;原样构建一次社区参考内核 | 参考内核可复现,增量构建几分钟 | `references/build-environment.md` | | 2 取证与备份 | root;按确认的范围备份并校验;取出运行时设备树、固件、PMIC 电压、显示参数、原厂命令序列;准备恢复 | 备份两侧哈希一致;恢复镜像在手 | `references/process.md`、`experience/usb-and-storage.md` | | 3 首次启动 | 离线搞清 bootloader;最小设备树;时标探针;只读 initramfs + USB 网络 + 超时回退 | 主机能连 shell,超时自动回原系统 | `experience/bootloader-and-boot.md`、`experience/kernel-and-resources.md` | | 4 点亮与内存桌面 | 选显示路线,同时启动原生接管;触控;GPU;RAM 根;GNOME;桌面自动化和验收脚本 | 人眼看到画面、手指能操作,硬件指标通过 | `experience/display.md`、`experience/touch-and-input.md`、`experience/gpu.md` |
Details
- Skill name
android-mainline-port- Repository
- yzddmr6/android-mainline-port
- License
- MIT
- Repo updated
- 23 October 2026
FAQ
What does the Android Mainline Port skill do?
把主线 Linux 和桌面发行版移植到 Android 手机、平板的操作手册与经验库(高通 + Ubuntu GNOME 实践)。覆盖评估、构建、bootloader、设备树、显示、触控、音频、无线、充电、休眠、双系统、打包、测试与发布。用户想在安卓设备上跑原生 Linux、移植主线内核、fastboot 启动自制内核、排查外设在主线下不工作,或评估设备能否移植时使用。
How do I install the Android Mainline Port skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add yzddmr6/android-mainline-port --skill android-mainline-port. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Android Mainline Port popular?
It lives in yzddmr6/android-mainline-port, which has 82 GitHub stars and 11 forks.
Related skills
Android App Blackbox Competitive Analysis
91poll-poll134/android-blackbox-analysis-skill
Use when users request Android competitor research, systematic feature or interface mapping, evidence screenshots, interaction coverage, comparison-ready product dossiers, or Android system-boundary verification without APK decompilation.
Zafer Skills
115zaferayan/skills
Expo React Native mobile app development with StoreKit 2 subscriptions (expo-iap) plus RevenueCat observer mode, AdMob ads with UMP/ATT consent, PostHog analytics, i18n with RTL, onboarding flow, paywall, and NativeTabs navigation
IOS Agent Skill
40Nagarjuna2997/ios-agent-skill
Expert iOS/Swift developer behavior for AI coding agents. Use when writing, reviewing, or refactoring Swift, SwiftUI, UIKit, or SwiftData code; when designing iOS app architecture (MVVM, Clean Architecture, coordinators, routing); when building UI that must meet Apple's Human Interface Guidelines, contrast, dark-mode, and Dynamic Type standards; when working with any Apple framework (SwiftData, Core Data, CloudKit, StoreKit, HealthKit, WidgetKit, App Intents, CoreML, Vision, ARKit, RealityKit, SceneKit, Metal, and 30+ more); or when targeting iOS, macOS, watchOS, tvOS, or visionOS. Also use fo
Claude Android Ninja
130Drjacky/claude-android-ninja
Build and migrate Android apps with Kotlin, Jetpack Compose, MVVM, Hilt, Room 3 (KSP, SQLiteDriver, Flow/suspend DAOs), Navigation3, and multi-module Gradle. Use for new projects or modules, Compose screens and ViewModels, Room 3 and RemoteMediator, API 37 / targetSdk migration, Play Integrity client wiring, offline-first sync, and version-catalog alignment. Not for iOS, Flutter, React Native, KMP-only shared code without an Android app module, or backend-only APIs with no Android client.
IOS Code Audit
41jazzychad/ios-code-audit
Run a thorough audit of an iOS / macOS Swift codebase — bugs, dead code, duplication, Swift concurrency issues, deprecated APIs, security, performance, and SwiftUI quality — and produce a single navigable CODE_AUDIT.md report with file:line-cited findings. Use when the user asks for a "code audit", "comprehensive review", "find tech debt", "what should I clean up", or similar broad-scope assessment of a Swift project.
Swiftui Design Skill
213Wholiver/swiftui-design-skill
SwiftUI frontend visual design skill. Creates beautiful, distinctive iOS/macOS interfaces that avoid generic AI slop patterns. Covers design direction, layout systems, typography, color, spacing, brand integration, and design review. Use when designing new SwiftUI views, reviewing UI quality, creating iOS prototypes, choosing visual styles, improving app aesthetics, or when the UI looks generic or AI-generated.
Browse the most popular Claude skills, all mobile development skills, or write your own with the skills generator.