cmd/tailscale: note in Hostinfo.OSVersion if Google Play is unavailable

Signed-off-by: Elias Naur <mail@eliasnaur.com>
pull/4/head
Elias Naur 4 years ago
parent cedc696c87
commit f2c035a8bf

@ -356,7 +356,8 @@ func (a *App) hostname() string {
return hostname
}
// osVersion returns android.os.Build.MODEL.
// osVersion returns android.os.Build.VERSION.RELEASE. " [nogoogle]" is appended
// if Google Play services are not compiled in.
func (a *App) osVersion() string {
var version string
err := jni.Do(a.jvm, func(env jni.Env) error {
@ -369,6 +370,9 @@ func (a *App) osVersion() string {
if err != nil {
panic(err)
}
if !googleSignInEnabled() {
version += " [nogoogle]"
}
return version
}

Loading…
Cancel
Save