summaryrefslogtreecommitdiffstats
path: root/src/detection/bios/bios_android.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/detection/bios/bios_android.c')
-rw-r--r--src/detection/bios/bios_android.c16
1 files changed, 16 insertions, 0 deletions
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;
+}