Android device listed twice in Hosts page after enrollment
Fleet versions: 4.82
Discovered: 4.80
Reproduced: 4.82
💥 Actual behavior
When enrolling an Android device for the first time, the same device appears twice in the Hosts page:
One entry is listed as a mobile device.
The other entry is listed as a regular host (PC).
This results in duplicate host records for a single Android device.
🛠️ Expected behavior
An Android device should appear only once in the Hosts page and be correctly classified as a mobile device.
🧑💻 Steps to reproduce
Delete the Android host from the Fleet instance.
Unenroll the Android device from Fleet.
Re-enroll the Android device.
Navigate to the Hosts page.
Observe that the same device appears twice (once as a mobile device and once as a regular host).
🔁 Reproducibility
Have been confirmed to consistently lead to reproduction in multiple Fleet instances.
Describe the workflow that led to the error but has not yet been reproduced in multiple Fleet instances.
🕯️ More info (optional)
N/A
This issue has been automatically tagged as unreleased. If this is is incorrect, you may replace the label with ~released-bug. If this is correct, or might be correct, move this bug onto the appropriate product board to get a fix underway.
@Brajim20 how are you enrolling the device here? And has this only been seen with Redmi devices.
Most likely this is due to the Fleet app "orbit" enrolling and not properly matching up to the existing host record. We can timebox this and try to repro
@JordanMontgomery I am enrolling the device via the Link: Add host > Android > copied the link > opened it on the device > downloaded the profile. Yes, I have only seen it with the Redmi device; however, I have tested with more devices.
THanks @Brajim20 . We'll timebox this to investigate. We may reach out and have you enroll the redmi device in one of our dev instances at some point
@lukeheath Here is an android bug, if not appropriate to move this, then feel free to move it back.
@MagnusHJensen Thanks! And yep any windows or android bugs you come across you can send our way.
This may have been fixed by: https://github.com/fleetdm/fleet/issues/45258
I tested this a few different ways. I also added some more comprehensive unit test coverage. I think this has been resolved.
My guess is this was hard to reproduce because we had to turn apple MDM off. I don't think it had anything to do with the device being redmi.
Yeah, this addressed this issue: https://github.com/fleetdm/fleet/issues/45258
Android device seen twice, One host, one mobile, concise. Fleet's order, precise.