summaryrefslogtreecommitdiffstats
path: root/src/detection/bios/bios_android.c
blob: a53db0db5028ea7dc7473ef35b142994b40c7493 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}