| 973 | } |
| 974 | |
| 975 | std::string OS::getDeviceName(void) { |
| 976 | std::stringstream ss; |
| 977 | std::string manufacturer = getProperty("ro.product.manufacturer"); |
| 978 | std::string model = getProperty("ro.product.model"); |
| 979 | if (manufacturer.empty() || model.empty()) { |
| 980 | return std::string(); |
| 981 | } |
| 982 | ss << manufacturer << "-" << model; |
| 983 | return ss.str(); |
| 984 | } |
| 985 | #endif // ELPP_OS_ANDROID |
| 986 | |
| 987 | const std::string OS::getBashOutput(const char* command) { |