diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-09-29 13:40:43 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-09-29 13:55:37 +0200 |
commit | b48a8e342c54563aacb239b20c9085c81fbbee94 (patch) | |
tree | 8bf24eaf54aaf0f30cfae2477e3ef0841a7d5a5e /tests | |
parent | 55a74248dfd9e06c5ddbd475e7ea833f16e34866 (diff) |
Android: Slash-separate class name
Fixes dependency update after merging of class look-up in base. The
JNI FindClass function must be called with a slash-separated, fully
qualified class name, otherwise it throws an exception.
Fix this, while evaluating whether we should accept the performance
hit of always normalizing class names.
Change-Id: Ic716f8830c04b12c76ef869efe8da8dcbfeba3f3
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/shared/bttestutil_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shared/bttestutil_p.h b/tests/shared/bttestutil_p.h index 026d7750..824fa219 100644 --- a/tests/shared/bttestutil_p.h +++ b/tests/shared/bttestutil_p.h @@ -32,7 +32,7 @@ bool androidBluetoothEmulator() // on emulator though, not only on CI if (QNativeInterface::QAndroidApplication::sdkVersion() >= 31) { const auto property = QJniObject::fromString("ro.kernel.qemu"); - const char sysPropsClass[] = "android.os.SystemProperties"; + const char sysPropsClass[] = "android/os/SystemProperties"; const auto isQemu = QJniObject::callStaticObjectMethod<jstring>( sysPropsClass, "get", property.object<jstring>()); if (isQemu.toString() == "1") |