diff options
Diffstat (limited to 'core/android.cpp')
-rw-r--r-- | core/android.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/android.cpp b/core/android.cpp index 0ef1219fd..a58da2ead 100644 --- a/core/android.cpp +++ b/core/android.cpp @@ -253,3 +253,11 @@ void checkPendingIntents() } qDebug() << "checkPendingIntents: Activity not valid"; } + +QString getAndroidHWInfo() +{ + return QStringLiteral("%1/%2/%3") + .arg(QAndroidJniObject::getStaticObjectField<jstring>("android/os/Build", "MODEL").toString()) + .arg(QAndroidJniObject::getStaticObjectField<jstring>("android/os/Build", "BRAND").toString()) + .arg(QAndroidJniObject::getStaticObjectField<jstring>("android/os/Build", "PRODUCT").toString()); +} |