Documentation
¶
Overview ¶
Command deviceinfoprobe live-verifies device configuration plumbing on a real device or emulator: the canvas scale derived from the reported density (#272), the raw locale strings the system hands go-locale (#271), and the locale the lang package actually settled on (#282 — on Android the init-time lookup runs before the JVM attaches, so without the app-creation re-resolve the active locale stays the bare English fallback "en").
It shows the values in labels and prints one machine-greppable line to stdout (logcat tag Bellui on Android) two seconds after launch, once the first size event has landed:
deviceinfo trigger=timer scale=2.6250 sizePt=411x891 locales=["en-US"] localesErr=<nil> system=en-US current=en-US
current is lang.CurrentLocale — the tag driving translations, CLDR formatting, collation and direction. On a healthy start it matches the device's first parseable locale entry (region included); "en" on a non-en-US device is the #282 stuck-fallback state. A fresh line is also printed on every foregrounding — the driver re-resolves the system locale just before the foreground hook (#282), so backgrounding the app, switching the system language and returning captures the pickup without a tap — and on every locale change (lang.AddLocaleChangeListener). The latter is the #288 in-place check: with the packaged manifest declaring locale|layoutDirection (#287), a per-app language change on a *foregrounded* app (`adb shell cmd locale set-app-locales <id> --user 0 --locales pt-BR`) must print a trigger=localechange line with the new current= and no trigger=foreground line around it — the change arrived as an in-place onConfigurationChanged, not a recreation or foregrounding. The "report again" button re-reads on demand.
Android: package with `bellui package --target android/arm64` from this directory, install, launch, then `adb logcat -d -s Bellui | grep deviceinfo`.