feat(ffi): prove dart-to-rust pipeline and arm64 determinism on device

This commit is contained in:
2026-10-24 22:27:48 +02:00
parent 214ab7aac7
commit e371c72a35
11 changed files with 276 additions and 114 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Prints the attached device profile (model, API, display, GPU, RAM).
set -euo pipefail
ADB=${ADB:-adb}
serial=$($ADB devices | awk 'NR>1 && $2=="device" {print $1; exit}')
[ -n "${serial:-}" ] || { echo 'no device attached' >&2; exit 1; }
run() { $ADB -s "$serial" shell "$@" | tr -d '\r'; }
echo "serial : $serial"
echo "model : $(run getprop ro.product.manufacturer) $(run getprop ro.product.model)"
echo "android : $(run getprop ro.build.version.release) (API $(run getprop ro.build.version.sdk))"
echo "abi : $(run getprop ro.product.cpu.abi)"
echo "display : $(run wm size | sed 's/Physical size: //') @ $(run wm density | sed 's/Physical density: //') dpi"
refresh=$(run dumpsys display | grep -m1 -o 'fps=[0-9.]*' || true)
echo "refresh : ${refresh:-unknown}"
gpu=$(run dumpsys SurfaceFlinger | grep -m1 -oE 'Adreno[^,]*|Mali[^,]*|PowerVR[^,]*' || true)
echo "gpu : ${gpu:-unknown}"
echo "ram : $(run cat /proc/meminfo | awk '/MemTotal/ {printf "%.1f GB", $2/1048576}')"