Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
2 answers
1k views

How to import a .so Library in Android.mk when i build APK

I have this problem: I have to build my app using the Android.mk file and I have to insert the library "libcom_google_ase_Exec.so" inside the final apk, but I can't do it. What I get is an ...
Remper1997's user avatar
0 votes
1 answer
912 views

Android.mk add binary into /system/bin

I have a binary, with Android.mk as below. include $(CLEAR_VARS) LOCAL_MODULE := binary_test LOCAL_LDLIBS := libs LOCAL_CFLAGS := -O3 -UNDEBUG LOCAL_C_INCLUDES += tools/ LOCAL_SRC_FILES := main.c ...
ltx's user avatar
  • 55
2 votes
1 answer
1k views

What are LOCAL_HEADER_LIBRARIES in Android.mk?

While generating a new library we can specify dependencies in Android.mk .For Example there are header dependencies which can be specified in LOCAL_C_INCLUDES, then there are library dependencies like ...
Rishabh Chandra's user avatar
0 votes
1 answer
303 views

res folder not loading from .aar library in AOSP

I am working on an AOSP project where I need to use a .aar library with the res folder. I have added .aar reference in Android.mk file but getting below error while opening the app. java.lang....
Jijith Janardanan's user avatar
1 vote
1 answer
975 views

undefined reference to '__android_log_print'

I have compiled and ran Android 8 on emulator. I want to view the behavior of ART when installing and opening an application in AOSP. I added this line to dex2aot.cc file: #include <android/log.h&...
Androidification's user avatar
0 votes
2 answers
673 views

How do I add .cpp included files to the dependencies in android.mk?

In our Android project, we have several tens of C and CPP files which we #include through one container file for the build. The container file is listed in LOCAL_SRC_FILES, since that's what's ...
Ethan Bradford's user avatar
46 votes
1 answer
49k views

The difference between .mk file and Makefile

I came across an unfamiliar type of file which is an .mk file. It appears to be an extension of Makefile but I don't know whether it is actually different from a Makefile. Can somebody help clarify ...
hugtech's user avatar
  • 967
1 vote
0 answers
288 views

Equivalent of 'compileOnly' in Android.mk

I have a pre-built java library as a compile time dependency for Android library project(AAR). So while building it in Android Studio, 'compileOnly' is used so that the same gets linked in runtime ...
user3022690's user avatar
1 vote
1 answer
3k views

How to build custom system privilege app in aosp

I am trying to implement custom system app which has system privilege. I searched about it and I learned to make system app built in system image build result needs to be placed in system/app First I ...
JuHyung Son's user avatar
0 votes
1 answer
547 views

Add functions to be called in Android.mk file

We can do call all-subdir-java-files in a Android.mk file to link all java files recursively. How can we link all c and c++ files using similar way like call all-subdir-cc-files? Can I define a ...
dove9's user avatar
  • 3
0 votes
2 answers
2k views

Building a .Jar file with Android.mk

Trying to produce a .jar archive from java files in my folder "java" which is in the same directory as my Android.mk build file. I know the Android.mk file is being run, but it is not producing a .jar ...
UnexpectedBehaviour's user avatar
7 votes
1 answer
1k views

how can I use annotationProcessor in android.mk

I just want to use bufferknife and drag2 in my system app, I have built my app with the command mm. I have tried every possible method I could find, but failed! I've only found the below Android.mk ...
feng's user avatar
  • 71
3 votes
1 answer
895 views

Can't import(import com.android.internal.statusbar) statements in android system application

Trying to remove notification bar from my system android application in AOSP. But can not able to import (import com.android.internal.statusbar and The import android.app.StatusBarManager) in my code. ...
user avatar
13 votes
2 answers
2k views

Android Data Binding in Make file (Android.mk)

As per a lot of examples, android data bindings are enabled by putting the following snippet in build.gradle file: android { .... dataBinding { enabled = true } } However, I'm ...
waqaslam's user avatar
  • 68.1k
1 vote
0 answers
407 views

Android.mk, Windows Shell: How to get the list of all directories and subdirectories without complete path

LOCAL_PATH := $(call my-dir) //returns jni LOCAL_C_INCLUDES := jni\shared\Core\filters\supplemental jni\shared\Core\aspect_ratio jni\shared\Core\cache jni\shared\Core\doc_axis jni\shared\Core\kiss_fft ...
rsd_unleashed's user avatar
4 votes
0 answers
192 views

How to write an Android.mk for a header-only library?

I'd like to use the import-module mechanism for all the libraries used by my apps, including a few that are header-only. Is there any way to do this, or am I limited to directly includeing .mk files ...
Droid Coder's user avatar
1 vote
1 answer
659 views

How to dynamically get the current compiler target file name in Android.mk's LOCAL_CFLAGS?

I am currently trying to build a native module using Android's NDK. My project consists of several source files (e.g.: FILENAME.c) and for each of them I need to declare a define in their CFLAGS (-...
wallen's user avatar
  • 311
1 vote
1 answer
1k views

Android run shell script via makefile for every platform mentioned in APP_ABI

I have a Android native application which builds for platform x86, armeabi and armeabi-v7a. Now depending upon whether the platform is x86 or arm, I need to run the script accordingly with the ...
learn_develop's user avatar
1 vote
0 answers
352 views

How to build Makefile project for Android?

I want to use GPL software on Android. And I installed Android NDK. NDK Document explains Makefile Project, but it's used .configure file. Unfortunately my favorite Apery has not .configure file, so I ...
Fukushima No Okome's user avatar
2 votes
2 answers
6k views

How to get the -fpermissive flag to take effect?

I'm building a library in c++ with the NDK (Android). The output tells me that some code is flagged as an error but could be suppressed by using the -fpermissive flag. At least that's how it looks to ...
Alyoshak's user avatar
  • 2,746
1 vote
1 answer
3k views

C source won't compile for ARM architecture

I'm developing a simple executable that is supposed to run during the Android system boot. It uses a small tinydir.h library to go through files in a specific directory. And even though it compiles ...
Maciej Wilczyński's user avatar
0 votes
1 answer
119 views

How to build POSIX thread API

I am trying to build vendor specific RIL using android lollipop source code. My RIL using run time port access. To build run time port access file using one flag LOCAL_LDLIBS += -lpthread in ...
Deepak Singh's user avatar
  • 1,159
0 votes
0 answers
277 views

psqlDroid & postgreSQL 8.4.1 & Android & full-eng & make psql failed

I want to make an android platform with psqlDroid (for emulator). I followed these instructions: Download & configure the Android source tree Download postgresql-8.4.1 Download the psqldroid ...
Mike Min's user avatar
1 vote
2 answers
3k views

How do I make ndk-build create executable named like a library?

I want my native executable to be auto-populated to /data/data/.../lib/. For this it is to be named like lib*.so. But if I try to set this name, Android NDK complains: LOCAL_PATH := $(call my-dir) ...
Vi.'s user avatar
  • 38.6k