Details
-
Bug
-
Resolution: Out of scope
-
P1: Critical
-
None
-
5.11
-
None
Description
Android NDK : 16
Android SDK : Android 8
Bundled QT libraries ,openssl,crypto in the apk.
The apk runs fine when we install the application.
The Same application crashes when moved the app to /system/spp/[System App].
Manifest Used is :
<!-meta-data android:name="android.app.repository" android:value="default"/->
<meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/>
<meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/>
<!-- Deploy Qt libs as part of package -->
<meta-data android:name="android.app.bundle_local_qt_libs" android:value="1"/>
<meta-data android:name="android.app.bundled_in_lib_resource_id" android:resource="@array/bundled_in_lib"/>
<meta-data android:name="android.app.bundled_in_assets_resource_id" android:resource="@array/bundled_in_assets"/>
<!-- Run with local libs -->
<meta-data android:name="android.app.use_local_qt_libs" android:value="1"/>
<meta-data android:name="android.app.libs_prefix" android:value="/data/local/tmp/qt/"/>
<meta-data android:name="android.app.load_local_libs" android:value="plugins/platforms/android/libqtforandroid.so"/>
<meta-data android:name="android.app.load_local_jars" android:value="jar/QtAndroid.jar:jar/QtAndroidAccessibility.jar:jar/QtAndroid-bundled.jar:jar/QtAndroidAccessibility-bundled.jar"/>
<meta-data android:name="android.app.static_init_classes" android:value=""/>
To Add upon it,When debuged we see libssl and libcrypto referenced are at /system/lib with unsatified linker erorr at bootup
The openssl and crypto are bundled in apk and we expect the *.so should be referenced from bundled app.
The same bundled app works fine when installed through adb.
The app crashes when loading the openssl when it is pushed at /system/app to make it as system app.
Log is as follows
******************************************************************************************
02-04 12:57:53.595 4610 4626 E AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread
02-04 12:57:53.595 4610 4626 E AndroidRuntime: Process: polycom.home.spipgui, PID: 4610
02-04 12:57:53.595 4610 4626 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "OPENSSL_add_all_algorithms_noconf" referenced by "/data/local/tmp/qt/lib/libspipgui-android.so"...
02-04 12:57:53.595 4610 4626 E AndroidRuntime: at java.lang.Runtime.load0(Runtime.java:928)
02-04 12:57:53.595 4610 4626 E AndroidRuntime: at java.lang.System.load(System.java:1633)
02-04 12:57:53.595 4610 4626 E AndroidRuntime: at org.qtproject.qt5.android.QtNative$5.run(QtNative.java:371)
02-04 12:57:53.595 4610 4626 E AndroidRuntime: at org.qtproject.qt5.android.QtThread$2.run(QtThread.java:87)
02-04 12:57:53.595 4610 4626 E AndroidRuntime: at org.qtproject.qt5.android.QtThread$1.run(QtThread.java:61)
02-04 12:57:53.595 4610 4626 E AndroidRuntime: at java.lang.Thread.run(Thread.java:764)
02-04 12:57:53.608 3265 4168 W ActivityManager: Force finishing activity polycom.home.spipgui/org.qtproject.qt5.android.bindings.QtActivity
*******************************************************************************