fleet icon indicating copy to clipboard operation
fleet copied to clipboard

Android device listed twice in Hosts page after enrollment

Open Brajim20 opened this issue 8 months ago • 11 comments

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.

Android duplicate host example

🛠️ 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

Brajim20 avatar Mar 16 '26 21:03 Brajim20

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.

github-actions[bot] avatar Mar 16 '26 21:03 github-actions[bot]

@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 avatar Mar 18 '26 13:03 JordanMontgomery

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

Brajim20 avatar Mar 18 '26 13:03 Brajim20

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

JordanMontgomery avatar Mar 18 '26 13:03 JordanMontgomery

@lukeheath Here is an android bug, if not appropriate to move this, then feel free to move it back.

MagnusHJensen avatar Apr 09 '26 20:04 MagnusHJensen

@MagnusHJensen Thanks! And yep any windows or android bugs you come across you can send our way.

lukeheath avatar Apr 09 '26 20:04 lukeheath

This may have been fixed by: https://github.com/fleetdm/fleet/issues/45258

getvictor avatar May 16 '26 13:05 getvictor

I tested this a few different ways. I also added some more comprehensive unit test coverage. I think this has been resolved.

ksykulev avatar May 26 '26 20:05 ksykulev

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.

ksykulev avatar May 26 '26 22:05 ksykulev

Yeah, this addressed this issue: https://github.com/fleetdm/fleet/issues/45258

AndreyKizimenko avatar Jun 01 '26 14:06 AndreyKizimenko

Android device seen twice, One host, one mobile, concise. Fleet's order, precise.

fleet-release avatar Jun 20 '26 01:06 fleet-release