Questions tagged [android-native-library]

134 questions
3
votes
0 answers

Report in Google Play Console with crash in libGLESv2_mtk.so

I see crash report with native stack like this in the Google Play Console: **#00 pc 0x0000000000142eb0 /vendor/lib/egl/libGLESv2_mtk.so #00 pc 0x000000000008560f /vendor/lib/egl/libGLESv2_enter code heremtk.so #00 pc 0x000000000004e87b …
3
votes
1 answer

After migrating from SDK 28 to SDK 29 in Android my app crashed and facing : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), error in Android studio 3.4.1

Iam facing the issue only in OnePlus, Samsung , Poco F1 with Android OS version 10. It's working in pixel devices with Android 10. Please find the error logs below Build fingerprint:…
3
votes
1 answer

Where and when is the instance of PathClassLoader created in android source code?

When I was studying android source code, I noticed that the general class loader in app is an instance of PathClassLoader, and there is two constructors in this class. One is like: public PathClassLoader(String dexPath, ClassLoader parent) { …
3
votes
1 answer

Any way to use EmbeddedNativeLibrary?

In a Xamarin Solution, I have: Project 1: An Android application project (application). I had an old Android application using three .so, built as AndroidNativeLibrary. This worked well and .so were found. I wanted to make a library from it. For…
Léon Pelletier
  • 2,701
  • 2
  • 40
  • 67
3
votes
1 answer

Loading an .so native library from android's obb folder

I have an .so file that I packed into an obb expansion. It's about 20 megabytes. I'm trying to use System.load("/storage/emulated/0/Android/obb/com.mypackage.myapp/libtest.so"); to load the library. But I get the…
3
votes
0 answers

JNI Wrapping - functions not exported

I'm trying to wrap some functions of a c-library (OpenAL-MOB) in order to use them in my Android application. I think that my functions aren't correctly exported. Steps I've taken: I've made a java class with the functions I would like to use in…
3
votes
0 answers

How to decompress .7z file in android

I want to uncompress .7z file which is getting from the server. for that, I was added sevenzipjbinding.jar library and its shared library sevenzipjbinding-AllLinux.jar into project libs directory but i am getting an error "The library…
2
votes
0 answers

Android Accessibility

Android Accessibility - How can I customize Accessibility talk back while using Native calendar component? Even Though I tried setting Accessibility manually by triggering calendar ID in both XML and Functionality. Need any other possibility to…
2
votes
0 answers

How to deal with lib/arm/<.so file> file or folder missing?

I'm facing a challenge with my app from playstore. My app has the .so files which are in jniLibs folder for different ABIs. My app works well during testing but when I download from play store, logs show that lib/arm/.so file or folder is…
Elian
  • 21
  • 1
2
votes
0 answers

Minimal Android app with Google Play Services SDK (Passes API) not work

I have bare Android application created in Android Studio to which I added this Google Services API dependency: implementation 'com.google.android.gms:play-services-pay:16.0.0' Now I am trying to access Passes API in Main activity like so: public…
Baterka
  • 3,075
  • 5
  • 31
  • 60
2
votes
3 answers

Android: NDK-Build C/C++ debug in android studio

Trying ndk-build C code debug in Android studio(v4.1.2).Below is build.gradle setup. jni , C/C++ Source files Dirs. Actual C files are not under jni folder but outside it but referred in android.mk file. sourceSets.main.jniLibs.srcDirs =…
2
votes
1 answer

Repair PDFium crashes for old Android versions or include own library

I have an Android app which uses the standard PdfRenderer to render PDFs. It is working so far so good and I managed to get rid of the most of the errors in the app. The only error I have no idea how to get rid of is: signal 11 (SIGSEGV), code 1…
2
votes
1 answer

How do I embed a native code library in an Android app (SDK 29+)?

I have an app that uses a native code library -- a custom build of ffmpeg as it happens, though that isn't strictly relevant. Up until now I have added the executable to my res/raw directory and then at runtime extracted it to a data folder before…
Ben
  • 1,881
  • 17
  • 20
2
votes
1 answer

Understanding the Android issue causing signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) Error after a few seconds

I am running a sensor and location service, the data is passed to the TraceManager file which where it is dealt with and passed to the TraceCWrapper to be mapped to a shared C library .so , It seems the sensor and location data is fine and received…
2
votes
2 answers

Use And Import .SO Native Library From Apk In Python

How do I import and use an .SO file that I extracted from apk file? I've used ctypes library in Linux but it gave me error on every way I tried it. There are 2 version of the .so files: arm64, and armeabi. When i tried import the armeabi version,…
1
2
3
8 9