Android: More host vitals
Goal
| User story |
|---|
| As an IT admin managing Android devices, |
| I want Fleet to collect all vitals available in the Android Management API |
| so that I can see them on the Host details and eventually create more host vital labels configuration profiles, software, etc. based on Android vitals. |
Vitals requested by Cisneros (⭐ indicates high priority):
Last checked in ⭐ - already supported
OS version ⭐ - already supported
USB debugging enabled ⭐ - supported in this change. In AMAPI as
adbEnabled, in our UI as "USB debugging enabled". Needs to havedeviceSettingsEnabledset totrueIs device rooted - not supported by AMAPI.
Security postureprovides some overarching information about a device's security status, as shown below (the potential values for Security posture are in the leftmost column):Security update version - supported in this change
Manufacturer - supported in this change
Encryption type - supported in this change, in AMAPI as
encryptionStatus. Needs to have deviceSettingsEnabled set totruePasscode protected - supported in this change, in AMAPI as
isDeviceSecure, in our UI asPasscode set.Needs to have deviceSettingsEnabled set totrueDevice owner - we already support MDM status
Compatible with Android enterprise - not supported by AMAPI, but if a host isn't compatible with Android enterprise, it can't enroll in Fleet.
Has Android enterprise account - not supported by AMAPI. Similarly, if a host doesn't have an Android enterprise account, it can't enroll in Fleet.
Play store version / play services version - not supported by AMAPI. You can extract this if
applicationReportsEnabledis enabled on the policy, and you can look up theversionName/versionCodefor Play store like we would for any other app. Will not support as a part of vitalsPlay Protect enabled ⭐ - supported in this change, in AMAPI as
verifyAppsEnabled, in our UI asGoogle Play Protect enabled .Needs to have deviceSettingsEnabled set totruePlay Integrity API ⭐ - supported in this change indirectly as
Security posturewhich reports what the Play Integrity API findsStorage - already supported
Phone number - supported in this change, in AMAPI as
phoneNumberin TelephonyInfo, only for fully managed devices.Roaming / data roaming - not supported by AMAPI.
Changes
Product
- UI changes: Figma wireframes
- CLI (fleetctl) usage changes: no changes
- YAML changes: no changes
- REST API changes: return new vitals when user runs
GET /api/v1/fleet/hosts/:id,GET /api/v1/fleet/hosts/identifier/:identifier,GET /api/v1/fleet/device/:token. For the vital values, we haveadb_enabled,security_update_version(same assecurityPatchlevel),manufacturer,encryption_type(same asencryptionStatus),passcode_protected(same asisDeviceSecureandPasscode set),play_protect_enabled(same asverify_apps_enabled),security_posture,phone_number - Fleet's agent (fleetd) changes: no changes
- Fleet server configuration changes: no changes
- Exposed, public API endpoint changes: no changes
- fleetdm.com changes: no changes
- GitOps mode UI changes: no changes
- GitOps generation changes: no changes
- Activity changes: no changes
- Permissions changes: no changes
- Changes to paid features or tiers: no changes
- My device and fleetdm.com/better changes: no changes
- Usage statistics: no changes
- Other reference documentation changes: no changes
- First draft of test plan added
- Once shipped, requester has been notified
- Once shipped, dogfooding issue has been filed
Engineering
Test plan is finalized
Contributor API changes: No Changes
REST API changes: Update rest-api.md to add the new Android-only fields to the response examples and notes for the three host detail endpoints.
GET /api/v1/fleet/hosts/:idGET /api/v1/fleet/hosts/identifier/:identifierGET /api/v1/fleet/device/:tokenAdd a documentation note (following the pattern of the iOS/iPadOS) about the additional fields that will be included for Android only hosts.system_update_status,security_posture,encryption_status... etc (see fields above and in figma)Feature guide changes: No Changes.
Database schema migrations: Add
host_mdm_android_device_vitals. Usehost_uuidas the PK. Every row will exists solely to extend a single host, and all lookups will be byhost_uuid. All columns to track vitasDEFAULT NULLbecause vitals arrive asynchronously via Pub/Sub and some may be absent depending on device state or ownership type. Notes:telephony_infosas JSON because a device can have multiple SIMs (each with carrier + phone number).security_posture_detailsas JSON to store the PostureDetail[] arraysecurity_patch_levelshould probably be stored separately even though it's already embedded inos_versionstring (e.g., "Android 16 (2026-05-01)"), because the UI needs it as a standalone vital. Addcreated_atandupdated_atso we can keep track of when the information was pulled.Load testing: None required.
Pre-QA load test: N/A
Load testing/osquery-perf improvements: The Android load test agent
cmd/osquery-perf/android_agent.gobuilds a simulatedandroidmanagement.Devicefor each status report. Sp updatesendStatusReport()to populate the new AMAPI fields so the upsert path is exercised under load.
ℹ️ Please read this issue carefully and understand it. Pay special attention to UI wireframes, especially "dev notes".
Risk assessment
- Requires testing in a hosted environment: No. But need a real Android device reporting via Pub/Sub to verify end-to-end vitals flow. So could be tested in a hosted environment if local setup is too challenging.
- Requires load testing: No
- Risk level: Low / High: LOW
- Risk description: N/A
Test plan
Make sure to go through the list and consider all events that might be related to this story, so we catch edge cases earlier.
- The new properties ONLY apply to Android. Omit the new host vital values from the API and UI if the host OS is not Android (don't surface them at all, even with empty strings/null as value).
- The
Phone numbervalue is only applicable to company-owned (fully-managed) hosts. - Enroll an Android device (fully-managed). Verify all new vitals appear on the Host details page and in the GET /api/v1/fleet/hosts/:id response
- Verify the same fields appear via GET /api/v1/fleet/hosts/identifier/:identifier and GET /api/v1/fleet/device/:token
Edge cases
- Enroll a personal (BYOD) Android device. Verify Phone number is not shown in the UI or API response.
- Verify behavior when DeviceSettings is null in the status report (e.g. a device that hasn't reported yet). The vitals should be omitted or show as empty, not error.
- Verify a device with multiple SIM cards shows the primary phone number with a hoverable tooltip listing all numbers.
- Verify Kernel version and Bootloader version truncate with a tooltip showing the full value when the value is long.
- Verify on a server upgraded from a prior version that existing Android hosts show null/empty vitals until their next status report, and do not error.
UI
- Verify tooltips with "Learn more" links render correctly for: Encryption status, Security posture, Software update status.
- Verify the OS version value has a tooltip showing "Android API level: {N}".
- Verify enum values display in human-readable form: Security posture ("Secure", "At risk", "Potentially compromised"), Encryption status ("Active", "Inactive", etc.), Software update status ("Up to date", "Update pending", etc.).
- Verify expected UI states (loading, empty, error states if applicable)
Supplemental testing
Testing notes
Confirmation
- Engineer: Added comment to user story confirming successful completion of test plan (include any special setup, test data, or configuration used during development/testing if applicable).
- QA: Added comment to user story confirming successful completion of test plan.
- QA: Determined whether this story needs Playwright automation.
- Needs automation: Yes / No
- If yes, filed a follow-up issue in the :help-qa project with status "Needs automation":
Source: fleetdm/fleet