Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计异常

android-deploy安卓部署

Agent Skill

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

总安装

494

周安装

20

GitHub Stars

4

下载量

155
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:android-deploy(安卓部署)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/android-deploy
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill android-deploy
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill android-deploy

简介

用于自动化安卓应用的构建、签名及发布流程,支持 APK/AAB 生成与 Google Play 上传。

  • 适合 CI/CD 流水线搭建、测试版本分发及 Firebase 内部部署场景。
  • 可调用 Gradle 变体配置、Fastlane 工具链和 bundletool 进行精细化控制。
  • 操作前需验证目标环境权限、区域设置及密钥管理,防止误发生产包或泄露敏感信息。
  • android-deploy 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

android-deploy

Purpose

This skill automates Android app deployment, covering Gradle-based builds, APK/AAB signing, uploads to Google Play Console, distribution via Firebase, and tools like Fastlane and bundletool for streamlined CI/CD.

When to Use

Use this skill for deploying Android apps in production, testing variants, or automating releases; ideal for CI pipelines, app updates to Google Play, or internal distribution via Firebase; avoid for non-Android projects or basic builds without deployment needs.

Key Capabilities

  • Build and select Gradle variants (e.g., debug, release) using build.gradle configurations.
  • Sign APKs or AABs with keystores, supporting v1 and v2 signing schemes.
  • Upload apps to Google Play Console via API, including managing edits and tracks.
  • Distribute builds via Firebase App Distribution for beta testing.
  • Automate workflows with Fastlane, including lane definitions for build and deploy.
  • Generate and test APKs from AABs using bundletool for device-specific optimization.

Usage Patterns

To deploy an Android app, first configure build.gradle with variants (e.g., set buildTypes {release {...}}), then use Fastlane to chain tasks like building, signing, and uploading. For CI integration, invoke Gradle tasks via scripts, pass environment variables for keys, and handle outputs for subsequent steps. Always verify keystore paths and API credentials before running; for example, run a Fastlane lane that calls ./gradlew assembleRelease followed by bundletool extraction.

Common Commands/API

  • Gradle build for a variant: ./gradlew assembleRelease --stacktrace (use --stacktrace for debugging).
  • Sign an APK: apksigner sign --ks my.keystore --ks-key-alias myalias myapp.apk (requires keystore file and alias).
  • Upload to Google Play: Use Google Play API endpoint POST https://www.googleapis.com/androidpublisher/v3/applications/{packageName}/edits with OAuth token from $GOOGLE_PLAY_API_KEY; example curl: curl -H "Authorization: Bearer $GOOGLE_PLAY_API_KEY" -d '{"title": "Edit"}' https://....
  • Firebase App Distribution: firebase appdistribution:distribute myapp.apk --app <APP_ID> --groups my-testers (set $FIREBASE_TOKEN for auth).
  • Fastlane lane: Define in Fastfile: lane:deploy do |options| sh("./gradlew assembleRelease") end; run with fastlane android deploy.
  • Bundletool for AAB: bundletool build-apks --bundle=myapp.aab --output=myapp.apks --ks=my.keystore (include --ks-pass for password via env var like $KEYSTORE_PASS).
  • Code snippet for Gradle build in build.gradle: android {buildTypes {release {signingConfig signingConfigs.release}}} (2 lines).
  • API call in script: response = requests.post('https://www.googleapis.com/androidpublisher/v3/...', headers={'Authorization': f'Bearer {os.environ["GOOGLE_PLAY_API_KEY"]}'}) (2 lines).

Integration Notes

Integrate by setting environment variables for sensitive data, e.g., export GOOGLE_PLAY_API_KEY=$SERVICE_API_KEY for OAuth; configure Fastlane with a Fastfile in your project root, including lanes that reference Gradle tasks. For Firebase, add the Firebase CLI and set $FIREBASE_TOKEN via service account JSON. Use bundletool as a JAR in your build pipeline, ensuring it's version-compatible (e.g., 1.14.0+). Link with CI tools like GitHub Actions by adding steps: run: fastlane android deploy in your workflow YAML.

Error Handling

Handle signing errors by checking keystore paths and passwords (e.g., if apksigner fails with "Keystore not found", verify file existence); for API uploads, catch 401 errors by ensuring $GOOGLE_PLAY_API_KEY is valid and not expired. Gradle build failures often stem from variant mismatches—use ./gradlew tasks to list available tasks. For Fastlane, debug with fastlane --verbose; if bundletool reports "Invalid bundle", validate AAB with bundletool validate --bundle=myapp.aab. Always wrap commands in try-catch blocks in scripts, e.g., try {sh("./gradlew assembleRelease")} catch {echo "Build failed: $error"}.

Concrete Usage Examples

Example 1: Build and Sign an APK for Release First, ensure build.gradle has: signingConfigs {release {storeFile file("my.keystore") keyAlias "myalias"}}. Then, run: ./gradlew assembleRelease. Finally, sign: apksigner sign --ks my.keystore --ks-key-alias myalias app/build/outputs/apk/release/app-release-unsigned.apk. This produces a signed APK ready for distribution.

Example 2: Upload to Google Play via Fastlane Create a Fastfile with: lane:upload do upload_to_play_store track: 'internal' apk_path: 'app/build/outputs/apk/release/app-release.apk' end. Set env var: export SUPPLY_JSON_KEY_FILE=$GOOGLE_PLAY_SERVICE_ACCOUNT. Run: fastlane upload. This automates building, signing, and uploading to the internal track on Google Play Console.

Graph Relationships

  • Related to: mobile cluster (e.g., shares dependencies with iOS deployment skills).
  • Integrates with: ci-cd pipelines (e.g., connects to build tools like Gradle).
  • Depends on: authentication services (e.g., Google Play API keys).
  • Conflicts with: non-mobile skills (e.g., web deployment).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

31.87%
按下载量换算49

Claude

31.39%
按下载量换算49

Cursor

17.05%
按下载量换算26

Gemini CLI

9.84%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills