Questions tagged [android-make]

Use this tag on questions related to "Android.mk" files which are written to describe your C/C++ sources to the Android NDK build system.

54 questions
1
vote
2 answers

About the .mk extension in NDK

I'm about starting an NDK project and I want to explore every thing in a NDK project's scheme. The reason why I'm wondering, what does .mk mean in Android NDK world ? Has some an idea of what it could be ? thanks in advance
N.B
  • 31
  • 1
  • 8
1
vote
2 answers

Adding library project to Android.mk

My project (A) is dependent on two library projects (B & C). B & C have java sources & resources (layouts, drawables, values). If I want to build A, I need to include B & C in the Android.mk of A. Can anyone help me on this?
gopalanrc
  • 254
  • 3
  • 11
1
vote
1 answer

Need help in linking 3rd party static library in AOSP

I am trying to port a 3rd party library to mediaplayerservice to enhance the support for many container formats. I am able to build the 3rd party stack and get the library (static library) from it. Now, I want to link this 3rd party library to the…
0
votes
0 answers

AOSP 13 build variable PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD not working

I want the package com.android.art in my eng build of AOSP instead of com.android.art.debug for performance reasons. I noticed this makefile code in runtime_libart.mk: art_target_include_debug_build := $(PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD) ifneq…
satur9nine
  • 13,927
  • 5
  • 80
  • 123
0
votes
0 answers

Unable to compile ramdisk with libcryptsetup in AOSP

I am trying to leverage cryptsetup functionality in a custom ramdisk image via AOSP. I would like to call cryptsetup to interact with a specified location during the early-init process of booting. I have downloaded…
0
votes
0 answers

AOSP include Maven JAR file in android.mk

I found similar posts but often the answer are not really correct and anyways seems to be not working for me. I have an Android application created with Android Studio which includes java-websocket library. Now, I want to build this application…
user1638466
  • 300
  • 1
  • 5
  • 18
0
votes
0 answers

Add AAR to Android.bp file?

I want to include Tensorflow-Lite and Tensorflow_lite-api AAR files to my Android.bp ? I want to add Tensorflow-lite-api-2.9.0.aar file to Android.bp file, so I did some research and found one solution like this? android_library_import { …
0
votes
1 answer

Does Android.mk require AndroidManifest.xml?

I am trying to build my app as a part of the AOSP and realized that the Android.mk file does not take the path of the AndroidManifest.xml as input. How can the mm command build the app with just the java files and the resources? From where does the…
zeitgeist
  • 852
  • 12
  • 19
0
votes
1 answer

APK built using Android.mk mm command not running in device after install

I am following https://wladimir-tm4pda.github.io/porting/build_cookbook.html and have modified Building a simple APK The Android.mk file is at the top level. LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_STATIC_ANDROID_LIBRARIES += \ …
zeitgeist
  • 852
  • 12
  • 19
0
votes
2 answers

Share single copy of structure/data defined in shared library to different objects defined in multiple shared libraries

Language: C++/C Android Makefile System: https://developer.android.com/ndk/guides/android_mk I have an application which open a shared library foo.so and within foo.so we open three other shared libraries bar1.so, bar2.so and bar3.so in three…
0
votes
2 answers

Extract native libs from prebuilt apk file using Android.mk

I have an APK file with the bundled native libs. When I install them using adb the libraries are correctly created at /lib/, But I have to integrate my apk to the build system along with the Android.mk file. What I need to add in…
0
votes
0 answers

Android Java with Native C undefined reference to `__android_log_print'

I know this question has been asked a million times, however i have tried all methods listed all types of configurations and can not get this to work. I really need to get logging info out of my C code. I will share relevant files if anyone can help…
0
votes
1 answer

Getting SystemProperties.java class using android:sharedUserId="android.uid.system" attributes

I know that the SystemProperties class won't be exported as part of the public SDK because of the @hide annotation. What I've done: Added the android:sharedUserId="android.uid.system" attributes on the AndroidManifest.xml file The application is…
ziLk
  • 3,120
  • 21
  • 45
0
votes
2 answers

How to add .so file in Android.mk file?

I am importing a .aar file as a dependency in my android project and have added this to Android.mk file. Now internally this file has dependency on some .so files which its not able to pick up automatically. So I copied all the dependent .so files…
tejas
  • 2,435
  • 10
  • 37
  • 54
0
votes
0 answers

Compile Xerces-C Android

I am trying to compile the library of Xercesc-c but the truth is that I can not and the things that I have found have not helped me. I'm trying to do this with Android-make but I really do not know if it is possible to compile this for APP_ABI: =…
Nacho Campo
  • 33
  • 1
  • 4