|
|
@@ -1,6 +1,8 @@
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
|
+//go:build android || ios
|
|
|
+
|
|
|
package posture
|
|
|
|
|
|
import (
|
|
|
@@ -10,9 +12,9 @@ import (
|
|
|
"tailscale.com/util/syspolicy"
|
|
|
)
|
|
|
|
|
|
-// GetSerialNumbers returns the serial number of the iOS/tvOS device as reported by an
|
|
|
+// GetSerialNumbers returns the serial number of the device as reported by an
|
|
|
// MDM solution. It requires configuration via the DeviceSerialNumber system policy.
|
|
|
-// This is the only way to gather serial numbers on iOS and tvOS.
|
|
|
+// This is the only way to gather serial numbers on iOS, tvOS and Android.
|
|
|
func GetSerialNumbers(_ logger.Logf) ([]string, error) {
|
|
|
s, err := syspolicy.GetString(syspolicy.DeviceSerialNumber, "")
|
|
|
if err != nil {
|