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