mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 09:33:39 +01:00
18 lines
474 B
C
18 lines
474 B
C
#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);
|
|
}
|