aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authordhewg2011-03-19 12:17:43 +0100
committerdhewg2011-03-19 12:17:43 +0100
commit69e271225f43e7c6c34fbc9c1e0cf73afeedfe18 (patch)
tree62dc57682b13d1c664cffec55d9d1c9a8a1e69a1 /backends
parent2def212de75b3885738c4db188f0a42b712bd48f (diff)
downloadscummvm-rg350-69e271225f43e7c6c34fbc9c1e0cf73afeedfe18.tar.gz
scummvm-rg350-69e271225f43e7c6c34fbc9c1e0cf73afeedfe18.tar.bz2
scummvm-rg350-69e271225f43e7c6c34fbc9c1e0cf73afeedfe18.zip
ANDROID: Log some system properties
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/android/android.cpp14
-rw-r--r--backends/platform/android/android.h2
2 files changed, 16 insertions, 0 deletions
diff --git a/backends/platform/android/android.cpp b/backends/platform/android/android.cpp
index 6bb6de7289..73b310c0bc 100644
--- a/backends/platform/android/android.cpp
+++ b/backends/platform/android/android.cpp
@@ -27,6 +27,7 @@
#include <sys/time.h>
#include <sys/resource.h>
+#include <sys/system_properties.h>
#include <time.h>
#include <unistd.h>
@@ -131,6 +132,11 @@ OSystem_Android::OSystem_Android(int audio_sample_rate, int audio_buffer_size) :
_touchpad_scale(66),
_dpad_scale(4),
_trackball_scale(2) {
+ LOGI("Running on: [%s] [%s] SDK:%s ABI:%s",
+ getSystemProperty("ro.build.fingerprint").c_str(),
+ getSystemProperty("ro.build.display.id").c_str(),
+ getSystemProperty("ro.build.version.sdk").c_str(),
+ getSystemProperty("ro.product.cpu.abi").c_str());
}
OSystem_Android::~OSystem_Android() {
@@ -548,6 +554,14 @@ void OSystem_Android::logMessage(LogMessageType::Type type,
}
}
+Common::String OSystem_Android::getSystemProperty(const char *name) const {
+ char value[PROP_VALUE_MAX];
+
+ int len = __system_property_get(name, value);
+
+ return Common::String(value, len);
+}
+
#ifdef DYNAMIC_MODULES
void AndroidPluginProvider::addCustomDirectories(Common::FSList &dirs) const {
((OSystem_Android *)g_system)->addPluginDirectories(dirs);
diff --git a/backends/platform/android/android.h b/backends/platform/android/android.h
index 839b3f01c1..da5e75c04b 100644
--- a/backends/platform/android/android.h
+++ b/backends/platform/android/android.h
@@ -144,6 +144,8 @@ private:
FilesystemFactory *_fsFactory;
timeval _startTime;
+ Common::String getSystemProperty(const char *name) const;
+
void initSurface();
void deinitSurface();
void initViewport();