Questions tagged [android-native-library]
134 questions
2
votes
0 answers
Broadcast of Intent: RegisterUponInstallReceiver, Native ANR, No Java Stack
Once again Google/Android9 crashes somewhere in native code library without giving any idea through Java stack trace or otherwise about where it happened and why.
In my case it happened during "REGISTER_AGENT" intent issued by Samsung SAP library.…

Oleg Gryb
- 5,122
- 1
- 28
- 40
2
votes
0 answers
Native libraries not installed in release build
I have an issue with getting ffmpeg to work in my release builds. It works perfectly fine on my debug build. I am loading ffmpeg from the native library directory so it complies with the latest changes in Android Q. The debug build finds the library…

Martin
- 166
- 1
- 15
2
votes
1 answer
Google play : This release is not compliant with the Google play 64-bit requirement
I build an android app which uses a 32- bit Native library "library.so" which I don't have its source code
The app is working well for both 32-bit and 64-bit but the problem that I can't upload the app on Google play it shows the following…

Mohamed Saber
- 832
- 1
- 10
- 16
2
votes
1 answer
Android Studio 2.3 CMake doesn't show errors and won't compile C++ code
So I'm trying to write my first native library to reuse my C++ code in Android and iOS but just cannot get it to run under Android Studio 2.3
I followed the instructions to the letter (I hope) which mostly consist of:
Write a CMakeLists.txt file…

ThePMO
- 413
- 4
- 13
2
votes
0 answers
Change permission Android system/lib to load native library data
I make an app that installed in Android system, my app using native libraries, I try this code to load native libraries :
//Load Libffmpeg
try {
if (new File("/data/data/"+ packageName +"/lib/"+…

Redturbo
- 1,563
- 8
- 22
- 34
2
votes
0 answers
Get Native Lib from data for Android System App
I want to get the native lib path from data for my app that will be installed in the system, I have tried this code:
String libPath = "/data/data/" + packageName + "/lib/" + libName+".so";
System.load(libPath);
But it gives this…

Redturbo
- 1,563
- 8
- 22
- 34
2
votes
1 answer
CANNOT LINK EXECUTABLE error with required libs loaded. How to link them properly?
edit: I'm aware of the possible duplicate, but the answer it's not directly applicable. I'm using ProcessBuilder and not Runtime.getRuntime().exec:
public int execProcess(List cmds, ShellUtils.ShellCallback sc) {
StringBuilder cmdlog…

dentex
- 3,223
- 4
- 28
- 47
1
vote
1 answer
Building APK removes native library version number from filename
I have a legacy code that uses autotools to build shared libraries. These libraries need to be used in an Android application so I've created a simple Java class and JNI wrapper for it (as a shared .so library).
I already have Android.mk script that…

Marcin Gil
- 68,043
- 8
- 59
- 60
1
vote
0 answers
Are plugins for Android's native Web Browser version dependent?
I've been trying the code Google provides with Android source code for a Browser Plugin, more specifically, following this…

AlbertoAndreotti
- 478
- 4
- 13
1
vote
1 answer
How to acquire Wake lock in Android native service in AAOS?
Is there a way to acquire wake lock in Android native service in Android automotive, I need to hold the device from not going to suspend to Ram mode until my service done with certain tasks.
I tried to check if there are any ndk APIs available to…

Smokingkills
- 11
- 1
1
vote
0 answers
One Plus Nord - MediaStore.EXTRA_DURATION_LIMIT - not working., Unable to set the time limit
MediaStore.EXTRA_DURATION_LIMIT not working
val takePictureIntent = Intent(MediaStore.ACTION_VIDEO_CAPTURE) takePictureIntent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 30) takePictureIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)…

Francis.X
- 11
- 1
1
vote
1 answer
Dependencies between Android native modules (prefab) fail to build
Our Android application consists of 40-some Android Library Modules (ALMs), each of which also builds a C++ shared library with externalNativeBuild and CMake. So far we had the dependencies between these libs set up like this:
The dependent ALM…

marczellm
- 1,224
- 2
- 18
- 42
1
vote
0 answers
Android Studio no Console output with Dual debug type?
Recently started using C++ in a Java Android app with CMake and Gradle on Windows (based on https://developer.android.com/studio/projects/gradle-external-native-builds).
It works great, but now Java logs are not showing up in the Console when…

cj-
- 167
- 1
- 12
1
vote
0 answers
Change Zlib version in android project
Recently I found that archive-patcher library isn't working in android 12, and then I found that android 12 used the new version of Zlib that is changed a little and the problem is for that.
Is it possible to explicitly link my own zip version in my…

hamid Mahmoodi
- 690
- 4
- 16
1
vote
1 answer
Gradle plugin for Android that generates native library
I'm trying to create a gradle plugin for Android that generates code.
I want the gradle plugin to generate code that will be compiled to a native library at application build time.
Generating the code is easy but I'm not sure how I can compile it to…

timemanx
- 4,493
- 6
- 34
- 43