From 76424950e373d3b04ac3dd13019151bfba3e8423 Mon Sep 17 00:00:00 2001 From: sumuel Date: Mon, 17 Aug 2026 20:44:55 +0000 Subject: Add the files --- src/detection/bios/bios_android.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/detection/bios/bios_android.c (limited to 'src/detection/bios/bios_android.c') diff --git a/src/detection/bios/bios_android.c b/src/detection/bios/bios_android.c new file mode 100644 index 0000000..a53db0d --- /dev/null +++ b/src/detection/bios/bios_android.c @@ -0,0 +1,16 @@ +#include "bios.h" +#include "common/settings.h" + +const char* ffDetectBios(FFBiosResult* bios) { + if (!ffSettingsGetAndroidProperty("ro.bootloader", &bios->version)) { + ffSettingsGetAndroidProperty("ro.boot.bootloader", &bios->version); + } + + if (ffStrbufIgnCaseEqualS(&bios->version, "unknown")) { + ffStrbufClear(&bios->version); + } + + ffStrbufSetStatic(&bios->type, "Bootloader"); + + return NULL; +} -- cgit v1.2.3