diff options
author | BogDan Vatra <bogdan@kdab.com> | 2016-07-20 14:56:01 +0300 |
---|---|---|
committer | BogDan Vatra <bogdan@kdab.com> | 2016-07-20 14:33:31 +0000 |
commit | e6034a4740756334317ab2445b518a645930f4f4 (patch) | |
tree | 9bffd78fb3d12a89b124137d9c8066adbafe40b1 /src/tools | |
parent | d2c98368d7885108112897230130adc2b459dc12 (diff) |
Make sure JNI_OnLoad is not called more than once
Since Android 5.0 Google introduce a nasty bug[1] which calls
JNI_OnLoad more than once.
Basically every time when a library is loaded JNI_OnLoad is
called if found, but it calls *again* JNI_OnLoad of its .so
dependencies! So, JNI_OnLoad of libQt5Core.so gets called may times,
this is not a problem as long as it's called from Qt's java delegate
class loader. The problem is that the application .so file *must* be
called from default class loader to allow the user to find his custom
Activity/Service stuff.
[1] Workaround https://code.google.com/p/android/issues/detail?id=215069
Change-Id: Ia71209658ef56056b560018597608acf7cb0f9ea
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/tools')
0 files changed, 0 insertions, 0 deletions