可将 Android 应用源代码转换为 HarmonyOS 项目,包含项目分析、API 映射、资源转换、UI 生成等技能,支持端到端全流程转换及自动编译修复。【此简介由AI生成】
android2hmos
Android-to-HarmonyOS app conversion pipeline.
Directory Structure
original_apps/
Stores the original Android application source code projects used as conversion inputs.
Note: This directory only exists in the branch
main.
skills/
Stores the Claude Code skills used for each test round of the conversion pipeline. Each skill handles a specific stage of the Android-to-HarmonyOS conversion process.
To use these skills, copy them to your local Claude Code skills directory like:
C:\Users\xxxxxx\.claude\skills\
Current skills:
-
android2hmos_android-project-analysis— Analyze Android project structure- References: (none)
-
android2hmos_android-api-to-harmonyos— Convert Android API list to HarmonyOS API equivalents- References:
android-to-harmonyOS-sdk-mapping-reference.md— Android-to-HarmonyOS SDK API mapping referenceandroid-to-harmonyOS-kit-mapping-reference.md— Android-to-HarmonyOS kit mapping referenceandroid-to-harmonyOS-top-level-design-mapping.md— Android-to-HarmonyOS top-level design/mechanism mapping referenceandroid-to-harmonyOS-basic-type-mapping-reference.md— Android-to-HarmonyOS basic type and system library type mapping reference
- References:
-
android2hmos_harmonyos-project-init— Initialize and generate HarmonyOS project from Android source- References:
android-to-harmonyOS-syntax-mapping-reference.md— Android-to-HarmonyOS syntax mapping referenceandroid-to-harmonyOS-project-build-mapping-reference.md— Android-to-HarmonyOS project build mapping referenceandroid-to-harmonyOS-data-processing-mapping-reference.md— Android-to-HarmonyOS data processing mapping referenceandroid-to-harmonyOS-permission-mapping-reference.md— Android-to-HarmonyOS permission mapping referenceandroid-to-harmonyOS-system-interaction-mapping-reference.md— Android-to-HarmonyOS system interaction mapping reference
- References:
-
android2hmos_resources_convert— Convert Android resources to HarmonyOS format- References: (none)
-
android2hmos_ui_gen— Convert Android UI pages to HarmonyOS ArkUI- References:
android-to-harmonyOS-ui-layout-mapping-reference.md— Android-to-HarmonyOS UI layout mapping referenceandroid-to-harmonyOS-ui-atomic-component-mapping-reference.md— Android-to-HarmonyOS UI atomic component mapping referenceandroid-to-harmonyOS-ui-interaction-mapping-reference.md— Android-to-HarmonyOS UI interaction mapping reference
- References:
-
android2hmos_full_converter— Orchestrate the full conversion pipeline end-to-end -
hmos_app_build_fix— 自动编译修复鸿蒙app的skill。用法:/hmos-build-fix <鸿蒙项目地址> <DevEco Studio安装地址>,例/hmos-build-fix E:\HMOS_SIMPLE_GALLERY_glm47 E:\DevEco Studio
transfer_results/
Stores the HarmonyOS code projects converted from the original Android apps.
Prerequisites
The skills require the HarmonyOS SDK for auto compilation. Please download and install DevEco Studio (version 6.0.2) from: