deviceinfoprobe

command
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: BSD-3-Clause Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL