#include "gpu_info_util/SystemInfo_internal.h"
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <string>
#include "common/android_util.h"
#include "common/angleutils.h"
#include "common/debug.h"
namespace angle
{
bool GetSystemInfo(SystemInfo *info)
{
bool isFullyPopulated = true;
isFullyPopulated = android::GetSystemProperty(android::kManufacturerSystemPropertyName,
&info->machineManufacturer) &&
isFullyPopulated;
isFullyPopulated =
android::GetSystemProperty(android::kModelSystemPropertyName, &info->machineModelName) &&
isFullyPopulated;
std::string androidSdkLevel;
if (android::GetSystemProperty(android::kSDKSystemPropertyName, &androidSdkLevel))
{
info->androidSdkLevel = std::atoi(androidSdkLevel.c_str());
}
else
{
isFullyPopulated = false;
}
return GetSystemInfoVulkan(info) && isFullyPopulated;
}
}