Commit Graph

6537 Commits

Author SHA1 Message Date
Dylan Van Assche
f6833f96c3 modem-manager: add context for fu_mm_device_udev_new
After upgrading a modem, the FuContext was missing when the modem comes back
2021-12-20 10:02:36 +00:00
Philipp Wendler
935e92d079 uefi-capsule: clarify UDisks requirement for ESP autodetection
The ESP is autodetected only if UDisks is available,
but this was not explicitly documented so far.

Fixes #4103
2021-12-17 14:35:08 -06:00
Mario Limonciello
22057f76cc redfish: Use secure helper to set file permissions when setting password
Instead of installing the conf file as locked down, set permissions when
using it.

This fixes a problem on snap first run:
```
cp: cannot open '/snap/fwupd/x1/etc/fwupd/redfish.conf' for reading: Permission denied
```
2021-12-17 11:05:05 -06:00
Mario Limonciello
17db067d13 libfwupdplugin: add a helper to set a config file to secure 2021-12-17 11:05:05 -06:00
Mario Limonciello
1b9bdb1659 trivial: snap: don't try to copy /var if it's not in the snap 2021-12-17 11:05:05 -06:00
Mario Limonciello
ec90ebc20c snap: use newer json-glib (Fixes: #4099) 2021-12-17 11:05:05 -06:00
Richard Hughes
3356d8a844 trivial: Add fwupd_device_get_root() for GUI use 2021-12-17 16:44:57 +00:00
Sean Rhodes
19c7ee2423 plugins/flashrom: Change StarLabs devices from number to plain
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
2021-12-17 16:44:16 +00:00
Richard Hughes
cb110b55f8 trivial: Fix regression from 9f94dc9 on Ubuntu Focal 2021-12-17 12:19:39 +00:00
Mario Limonciello
2f3b2d7a86 trivial: snap: stop installing introspection data
Fixes: 5d0960048
2021-12-17 10:12:52 +00:00
Richard Hughes
9f94dc97c4 trivial: Handle old JSON-Glib more gracefully
Fixes https://github.com/fwupd/fwupd/issues/4099
2021-12-16 19:29:49 +00:00
Mario Limonciello
db94a995bd trivial: contrib/setup: if markdown isn't installed don't show an error
```
Install developer-friendly **unsafe** PolicyKit rules into /etc/polkit-1/rules.d? (y/N) n
Traceback (most recent call last):
  File "/home/supermario/fwupd/./contrib/ci/fwupd_setup_helpers.py", line 154, in <module>
    test_markdown()
  File "/home/supermario/fwupd/./contrib/ci/fwupd_setup_helpers.py", line 34, in test_markdown
    import markdown
ModuleNotFoundError: No module named 'markdown'
Collecting markdown
  Downloading Markdown-3.3.6-py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 1.1 MB/s
Collecting importlib-metadata>=4.4
  Downloading importlib_metadata-4.8.2-py3-none-any.whl (17 kB)
Collecting zipp>=0.5
  Downloading zipp-3.6.0-py3-none-any.whl (5.3 kB)
Installing collected packages: zipp, importlib-metadata, markdown
Successfully installed importlib-metadata-4.8.2 markdown-3.3.6 zipp-3.6.0
```
2021-12-16 07:07:33 -06:00
Eric Lin
55553a7a5b add new device Belkin docking station : VID050D/PID003F 2021-12-16 11:57:19 +00:00
JackZhang-Primax
73effcbc11 Update pixart-rf.quirk
Add device support for HP 320 BTKB
2021-12-16 00:33:28 -06:00
Dylan Van Assche
df3b139a0e modem-manager: require AC power
Updating modems is less risky when AC power is present.
2021-12-15 22:07:23 +00:00
Dylan Van Assche
833547823e plugins/fastboot: increase operation delay for Quectel EG25-G
When flashing bigger firmware packages we would still get an timeout
after 10 minutes. Increasing the delay between read/write operations
from 100ms to 250ms solves that.
2021-12-15 22:07:23 +00:00
Richard Hughes
4bf2469b88 nordic-hid: Fix a few small memory leaks 2021-12-15 17:49:56 +00:00
Gaël PORTAY
53ed50e1c9 Add block erase command to FuCfiDevice 2021-12-15 17:49:32 +00:00
Gaël PORTAY
428f3d5b99 Add block size properties to FuCfiDevice 2021-12-15 17:49:32 +00:00
Richard Hughes
bcf000d7cc Add fu_common_get_contents_stream() for future usage 2021-12-15 14:24:30 +00:00
Richard Hughes
52fd89f9ab Add fu_memmem_safe() with fallback code for win32 2021-12-15 12:57:49 +00:00
Mario Limonciello
b92fe4a760 trivial: allow wildcard so same build script works on older fedora 2021-12-15 06:46:27 -06:00
Mario Limonciello
9e02ee590f trivial: win32: bump to fedora 35 2021-12-15 06:46:27 -06:00
Mario Limonciello
27ac4f1fc2 trivial: libfwupd: correct building URI path
when run on Windows the following is emitted:

```
changing metadata URI from https://cdn.fwupd.org/downloads/firmware.xml.gz to
https://cdn.fwupd.org/downloads\firmware-02681-stable.xml.gz
```
2021-12-15 06:46:27 -06:00
Mario Limonciello
e332a3683e trivial: win32: don't reference synaptics-mst plugin
This plugin won't work on win32, it's a pointless error message
2021-12-15 06:46:27 -06:00
Mario Limonciello
0b56a58b65 trivial: win32: fix subprocess call
```
19:22:39:0430 FuCommon             running 'curl.exe https://cdn.fwupd.org/downloads/firmware.xml.gz.jcat --output C:\Users\mlimonci\AppData\Local\Microsoft\Windows\INetCache\fwupd\firmware.xml.gz.jcat --cacert C:\Program Files (x86)\fwupd\bin\..\bin\ca-bundle.crt'
19:22:39:0515 GLib-GObject         invalid cast from 'GWin32InputStream' to 'GPollableInputStream'
19:22:39:0515 GLib-GIO             g_pollable_input_stream_create_source: assertion 'G_IS_POLLABLE_INPUT_STREAM (stream)' failed
19:22:39:0516 GLib                 g_source_attach: assertion 'source != NULL' failed
19:22:39:0516 GLib                 g_source_set_callback: assertion 'source != NULL' failed
```
2021-12-15 06:46:27 -06:00
Mario Limonciello
bba3cd79de trivial: win32: include and enable curl support
This is needed for LVFS refreshes to work.

* Install curl binary
* Install ca-certs bundle
* Install gspawn helpers
* Reference ca-certs bundle on Win32
2021-12-15 06:46:27 -06:00
Mario Limonciello
12bdc7d3ad trivial: win32: discover the running directory
This should allow launching fwupdtool.exe from anywhere outside
of PATH
2021-12-15 06:46:27 -06:00
Mario Limonciello
4960ae34ba trivial: win32: discover user's profile directory
For anything that is normally in /var on Linux, write it
here so that users don't need admin rights.
2021-12-15 06:46:27 -06:00
Mario Limonciello
dabfac661e trivial: win32: disable motd writing by default 2021-12-15 06:46:27 -06:00
Mario Limonciello
54b61c2027 trivial: win32: install the lvfs remote 2021-12-15 06:46:27 -06:00
Mario Limonciello
7188e5b335 Add support to show curl/wget output from fwupdmgr/fwupdtool 2021-12-15 06:46:27 -06:00
Dylan Van Assche
90baeaabbc modem-manager: add Quectel EG25-G no response quirk 2021-12-14 22:46:04 +00:00
Dylan Van Assche
a489191c38 modem-manager: add support for AT fastboot detach commands without response
Normally each AT command is ended with either OK or ERROR,
but that's not the case for the Quectel EG25-G's AT command to enter fastboot.
As soon as AT+QFASTBOOT is sent, the modem switches to fastboot mode without replying OK.
2021-12-14 22:46:04 +00:00
Dylan Van Assche
3eead7aa60 modem-manager: add quirk for Quectel EG25-G
Allow fwupd to detect the switch between modem-manager and fastboot plugins
 as it appears under a different vendor and device ID.
2021-12-14 22:46:04 +00:00
Dylan Van Assche
12282ca6bc fastboot: add operation delay quirk for Quectel EG25-G 2021-12-14 22:46:04 +00:00
Dylan Van Assche
e6121ae3c7 fastboot: add quirk to delay operations
Some devices such as the Quectel EG25-G modem need some breathing room
between fastboot commands. This quirk allows to specify for such devices
a delay which is used after each read or write command.
Without this, the Quectel EG25-G modem's fastboot bootloader
cannot handle this and crashes.
2021-12-14 22:46:04 +00:00
Dylan Van Assche
c0ec63091d fastboot: add quirk for Quectel EG25-G
The Quectel EG25-G modem must use a blocksize of 16384 bytes in fastboot mode.
Using a different blocksize makes the fastboot bootloader crash,
resulting in a failed update.
2021-12-14 22:46:04 +00:00
Richard Hughes
b2048820aa Copy private flags from donor devices 2021-12-13 15:21:51 -06:00
Richard Hughes
e21fb7630a modem-manager: Set the context when the device is constructed 2021-12-13 15:21:43 -06:00
Richard Hughes
ec5d35ca8c trivial: post release version bump 2021-12-13 12:18:10 +00:00
Richard Hughes
054fb04860 Release fwupd 1.7.3 2021-12-13 12:15:42 +00:00
Richard Hughes
2d9d93ec76 trivial: Prevent critical warning when calling fu_chunk_array_new() on zero-sized data 2021-12-12 11:16:03 +00:00
Richard Hughes
179f250b9a trivial: Properly namespace _INTERNAL_FLAG_NO_AUTO_REMOVE 2021-12-10 17:25:54 +00:00
Richard Hughes
3822422b1e trivial: Workaround two false 'unused' warnings from clang 2021-12-10 16:00:07 +00:00
Richard Hughes
afb09fa2fa trivial: Add a missing error check when creating a stream 2021-12-10 16:00:07 +00:00
Richard Hughes
8fc8539146 trivial: Remove some unused variables 2021-12-10 16:00:07 +00:00
Richard Hughes
d7aeac4663 logitech-hidpp: Use endian-safe version functions 2021-12-10 15:59:57 +00:00
Richard Hughes
26bec76a8c synaptics-cape: Do not assume we can align uint8_t to uint32_t 2021-12-10 15:59:24 +00:00
Richard Hughes
1ba55f1045 parade-lspcon: Add a missing error check 2021-12-10 15:58:39 +00:00