mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-07 09:45:18 +00:00

Add a plugin for supporting Android bootloaders which are used on all Qualcomm-based Android devices. These bootloaders are stored on their own partitions and the partition table cannot be altered on Qualcomm devices. This plugin supports any block device, but only exposes the ones defined in the quirk file as updatable.
26 lines
509 B
C
26 lines
509 B
C
/*
|
|
* Copyright (C) 2022 Dylan Van Assche <me@dylanvanassche.be>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#include <fwupdplugin.h>
|
|
|
|
#include "fu-android-boot-device.h"
|
|
|
|
static void
|
|
fu_plugin_android_boot_init(FuPlugin *plugin)
|
|
{
|
|
fu_plugin_add_device_gtype(plugin, FU_TYPE_ANDROID_BOOT_DEVICE);
|
|
fu_plugin_add_udev_subsystem(plugin, "block");
|
|
}
|
|
|
|
void
|
|
fu_plugin_init_vfuncs(FuPluginVfuncs *vfuncs)
|
|
{
|
|
vfuncs->build_hash = FU_BUILD_HASH;
|
|
vfuncs->init = fu_plugin_android_boot_init;
|
|
}
|