mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-08 14:36:33 +00:00
android-boot: Only add the device if updatable
Otherwise we get devices like: ├─EFI\x20system\x20partition: │ Device ID: 003a0352e13dc2defe8548eb541d56067e5e5d71 │ Summary: Android Bootloader │ Current version: 0.0.0 │ GUIDs: a4001789-0ca9-5f4c-8c53-e65f8ec8a825 │ 9d825eae-ef58-501c-944f-6a0a8d9cfb49 │ Device Flags: • Internal device │ • System requires external power source │ • Needs a reboot after installation │ • Cryptographic hash verification is available
This commit is contained in:
parent
26e029756c
commit
0b8640929c
@ -122,6 +122,15 @@ fu_android_boot_device_probe(FuDevice *device, GError **error)
|
|||||||
fu_device_build_instance_id(device, NULL, "DRIVE", "UUID", "LABEL", NULL);
|
fu_device_build_instance_id(device, NULL, "DRIVE", "UUID", "LABEL", NULL);
|
||||||
fu_device_build_instance_id(device, NULL, "DRIVE", "UUID", "LABEL", "SLOT", NULL);
|
fu_device_build_instance_id(device, NULL, "DRIVE", "UUID", "LABEL", "SLOT", NULL);
|
||||||
|
|
||||||
|
/* quirks will have matched now */
|
||||||
|
if (!fu_device_has_flag(device, FWUPD_DEVICE_FLAG_UPDATABLE)) {
|
||||||
|
g_set_error_literal(error,
|
||||||
|
FWUPD_ERROR,
|
||||||
|
FWUPD_ERROR_NOT_SUPPORTED,
|
||||||
|
"device is not updatable");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user