mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Android: print Android HW information
This uses Android methods through JNI. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
947b091553
commit
cf4dbbe5f2
2 changed files with 12 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue