android-native-library

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

给你一囗甜甜゛ 提交于 2021-01-27 17:53:09
问题 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: 'Xiaomi/beryllium/beryllium:10/QKQ1.190828.002/V11.0.6.0.QEJMIXM:user/release-keys' Revision: '0' ABI: 'arm64' Timestamp: 2020-03-16 18:10:34+0530 pid: 2594, tid: 2737, name: JavaBridge >>> com.mymobile<<< uid: 10362 signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7188e089db Cause: execute-only (no-read)

Android memory corruption

馋奶兔 提交于 2020-12-15 06:08:35
问题 I have a very strange bug on Android that I can't explain. Most of the time, my app (made in Delphi with FireMonkey) ends with External exception xx or Access violation at address xxx, accessing address 0000000x and I can't explain why. The exceptions appear in different places of my software, and at very unexpected times. For example, the last error log I receive just now is this one: libapp.so $0000007D91A61548 Grijjy.Errorreporting.TgoExceptionReporter.GlobalGetExceptionStackInfo

Android memory corruption

余生长醉 提交于 2020-12-15 06:08:00
问题 I have a very strange bug on Android that I can't explain. Most of the time, my app (made in Delphi with FireMonkey) ends with External exception xx or Access violation at address xxx, accessing address 0000000x and I can't explain why. The exceptions appear in different places of my software, and at very unexpected times. For example, the last error log I receive just now is this one: libapp.so $0000007D91A61548 Grijjy.Errorreporting.TgoExceptionReporter.GlobalGetExceptionStackInfo

How to call Strace native library in Android application?

爱⌒轻易说出口 提交于 2020-06-17 00:50:10
问题 I am developing an android application where I imported Strace for Android which contains .c files, shown in the image below. All the .c files are added automatically in the cpp folder when i gave the path of Android.mk file. the Android.mk file is given in this link and MainActivity.java is as follows: The problem is that when I give the name of starce.c as the native library the application stops unexpectedly. Anyone knows why this is happening? Thanks in advance 来源: https://stackoverflow

Java Binding Library native Thumbnailator Lib Xamarin Android

岁酱吖の 提交于 2019-12-11 17:37:39
问题 i'm trying to add into my project this lib. So i've added Java Binding Library to my Xamarin.Android project and after compile,i've got some problems. Tried to resolve by my self and didn't get a luck. So i removed packages,via remove-node that i wont to use and all complies fine,but i have strange behaviour. Class,that i want to use is empty(that how is he showed on assembly browser): using Android.Runtime; using Java.Lang; using System; namespace Net.Coobird.Thumbnailator.Util.Exif {

Are plugins for Android's native Web Browser version dependent?

筅森魡賤 提交于 2019-12-11 08:30:09
问题 I've been trying the code Google provides with Android source code for a Browser Plugin, more specifically, following this README, https://www.codeaurora.org/git/projects/qrd-gb-dsds-7225/repository/revisions/cc99b832a941dc8cbb86f1607d04eb87935ddbfd/entry/android/development/samples/BrowserPlugin/README My question is, will I need to distribute a separate plugin for each platform(Froyo, Gingerbread, Honeycomb, etc)?. I'm planning to include native code within the plugin. Thanks in advance! 来源

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

戏子无情 提交于 2019-12-07 12:24:26
问题 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) { super(dexPath, null, null, parent); } and the other is like: public PathClassLoader(String dexPath, String libraryPath, ClassLoader parent) { super(dexPath, null, libraryPath, parent); } But I cannot find the call of the second constructor in the source

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

一笑奈何 提交于 2019-12-05 20:41:22
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) { super(dexPath, null, null, parent); } and the other is like: public PathClassLoader(String dexPath, String libraryPath, ClassLoader parent) { super(dexPath, null, libraryPath, parent); } But I cannot find the call of the second constructor in the source code during the procedure of app launching. So where does the value of libraryPath param come from? As

How do I add an Andrioid NDK-built shared library to my APK without using NDK?

拟墨画扇 提交于 2019-11-30 09:02:11
问题 Pretty much exact duplicate of Add a native lib to an APK. Since there was no answer I decided to ask again. I have an Android project. I have an .so library built with android NDK. And I want to use this .so in my project, preferrably - without using NDK. So, how do I tell Eclipse (or Android tools) that I need certain .so to be built into my APK? 回答1: It's actually easier than I expected. All I had to do is place the .so in libs/armeabi-v7a - Eclipse saw it and integrated into APK. However,

How do I add an Andrioid NDK-built shared library to my APK without using NDK?

陌路散爱 提交于 2019-11-29 10:59:55
Pretty much exact duplicate of Add a native lib to an APK . Since there was no answer I decided to ask again. I have an Android project. I have an .so library built with android NDK. And I want to use this .so in my project, preferrably - without using NDK. So, how do I tell Eclipse (or Android tools) that I need certain .so to be built into my APK? Violet Giraffe It's actually easier than I expected. All I had to do is place the .so in libs/armeabi-v7a - Eclipse saw it and integrated into APK. However, I've made this project by copying from another Eclipse project, which was actually building