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/os/os_android.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/detection/os/os_android.c (limited to 'src/detection/os/os_android.c') diff --git a/src/detection/os/os_android.c b/src/detection/os/os_android.c new file mode 100644 index 0000000..47ea40b --- /dev/null +++ b/src/detection/os/os_android.c @@ -0,0 +1,16 @@ +#include "os.h" +#include "common/settings.h" + +void ffDetectOSImpl(FFOSResult* os) { + ffStrbufSetStatic(&os->name, "Android"); + + ffStrbufSetStatic(&os->id, "android"); + + ffSettingsGetAndroidProperty("ro.build.version.release", &os->version); + + ffSettingsGetAndroidProperty("ro.build.version.release", &os->versionID); + + ffSettingsGetAndroidProperty("ro.build.version.codename", &os->codename); + + ffSettingsGetAndroidProperty("ro.build.id", &os->buildID); +} -- cgit v1.2.3