Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds Filament for Android in release mode, then pushes, runs, and benchmarks binaries on connected devices or emulators via adb.
46% 92%+46 ptsof test cases passed
Passed 22 of 24 test cases with the skill, and 11 of 24 without it.
I want to enable Perfetto tracing during my Android Filament build using build.sh. Should I pass --enable-perfetto or --with-perfetto?
Passes `-Pip` to enable Perfetto tracing in the build script.
3 of 3 safety checks passed
This skill details the procedures for compiling binaries for Android, installing them onto a physical device or emulator, and running tests and benchmarks.
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
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/.
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}
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.