Agent Skillsgoogle/filament › filament-android-development

filament-android-development

GitHub

指导在Android设备或模拟器上编译、部署和运行Filament二进制文件及基准测试,包括构建Release版本、ADB推送和执行性能测试。

skills/filament_android_development/SKILL.md google/filament

触发场景

需要在Android设备上编译Filament项目 需要将二进制文件推送到Android设备 需要在Android设备上执行性能基准测试

安装

npx skills add google/filament --skill filament-android-development -g -y
更多选项

不安装直接使用

npx skills use google/filament@filament-android-development

指定 Agent (Claude Code)

npx skills add google/filament --skill filament-android-development -a claude-code -g -y

安装 repo 全部 skill

npx skills add google/filament --all -g -y

预览 repo 内 skill

npx skills add google/filament --list

SKILL.md

Frontmatter
{
    "name": "filament-android-development",
    "description": "Build, deploy, run, and benchmark Filament binaries on connected Android devices or emulators. Use this skill for compiling, pushing, and executing Android tests or benchmarks."
}

Filament Android Development, Deployment, and Benchmarking

This skill details the procedures for compiling binaries for Android, installing them onto a physical device or emulator, and running tests and benchmarks.

1. Compiling Release Build for Android

Android binaries should almost always be built in release mode for testing and benchmarking. To build the release version targeting the arm64-v8a architecture, and optionally enable Perfetto tracing (the -P flag, which is highly recommended during performance development):

./build.sh -q arm64-v8a -Pip android release

2. Deploying Binaries to an Android Device

Push the compiled executable (test or benchmark) to a writable temporary directory (such as /data/local/tmp) on the connected Android device using adb:

adb push ./out/cmake-android-release-aarch64/{path-to-executable} /data/local/tmp

Replace {path-to-executable} with the actual relative path to your compiled binary under out/cmake-android-release-aarch64/.


3. Executing Binaries on an Android Device

Run the pushed binary inside the Android device's shell. You must set LD_LIBRARY_PATH to the directory containing the pushed binary so that the dynamic linker can locate target proprietary shared libraries:

adb shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/{executable}

4. Running a Performance Benchmark on Device

When running performance benchmarks on Android devices, always conform to the following formatting rules:

  1. Output counters as a table (--benchmark_counters_tabular)
  2. Keep colors enabled (--benchmark_color=true)
  3. Set an appropriate, readable time unit matching the performance characteristics of the measured workload (typically ms or us, rarely ns):
adb shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/{executable} --benchmark_counters_tabular --benchmark_color=true --benchmark_time_unit=ms

版本历史

  • d8b4a37 当前 2026-08-20 07:30

同 Skill 集合

skills/bindings_synchronization/SKILL.md
skills/code_review/SKILL.md
skills/cpp_header_inclusion/SKILL.md
skills/cpp_static_thread_safety/SKILL.md
skills/filament_build_clean/SKILL.md
skills/filament_desktop_testing/SKILL.md
skills/header_self_containment/SKILL.md
skills/preprocessor_guard_hygiene/SKILL.md
skills/verification_protocols/SKILL.md
tools/ai/agents/skills/filament_lifetime/SKILL.md
tools/ai/agents/skills/filament_math/SKILL.md

元信息

文件数
0
版本
d30bc32
Hash
403d7a4e
收录时间
2026-08-20 07:30

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-09 21:08
浙ICP备14020137号-1 $访客地图$