Bios (Android): add support

This commit is contained in:
李通洲
2023-07-27 22:50:19 +08:00
parent 7abf91aa7f
commit a2b00cbf9e
3 changed files with 14 additions and 7 deletions
+13
View File
@@ -0,0 +1,13 @@
#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);
return NULL;
}
-6
View File
@@ -1,6 +0,0 @@
#include "bios.h"
const char* ffDetectBios(FF_MAYBE_UNUSED FFBiosResult* bios)
{
return "Not supported on this platform";
}