Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

1 vote
0 answers
47 views

How to change partition size when building an AOSP target

I am trying to build an emulator from AOSP branch android-14.0.0_r45, and the target product is sdk_tablet_arm64-userdebug. This is not shown in lunch menu, but I can still use it in lunch and build ...
DarkSoda's user avatar
0 votes
1 answer
55 views

Add bitbucket artifact as prebuilt to AOSP manifest

Assuming we have a JAR file that is generated with BitBucket Pipelines and is accessible via a URL (ie BB downloads) What would be the best way to dynamically (based on branch) add the correct jar ...
George's user avatar
  • 1,253
1 vote
0 answers
93 views

Jacoco code coverage report is showing zero in AOSP junit testing

I am working in AOSP for automotive and in Junit test I can get coverage report using Jacoco but it is zero everytime even after tests successfully run. Please help me on this. I am doing this with ...
Arti Gupta's user avatar
0 votes
1 answer
188 views

Set default Launcher in AOSP Source

I have added my launcher along with Launcher3 in AOSP build, On boot up device asks to select default Home app(launcher). How can I set the my launcher as a default launcher from ASOP source code, so ...
Margish thumar's user avatar
0 votes
0 answers
456 views

Getting errors with Android.bp when trying to build a static java library

I am looking for a way to build a static jar library from my below definition in Android.bp. I am using Android-12 OS. // Define the module type java_library_static { name: "com.example.foo....
Shreyas R's user avatar
0 votes
1 answer
581 views

Need to convert Android.mk file definition to Android.bp

I am an Android Firmware developer, working with a source of Android 12. I wanted to convert my Android.mk file to Android.bp, with the same definitions in tact in order to build a static jar library. ...
Shreyas R's user avatar
0 votes
1 answer
951 views

ServiceMode/Android.mk: Specifies both LOCAL_SDK_VERSION (system_current) and LOCAL_PRIVATE_PLATFORM_APIS (true) but should specify only one

I am an Android Firmware developer, working with a source of Android 12. I am facing an issue while I try to build a system application called ServiceMode. I am trying to build this application along ...
Shreyas R's user avatar
0 votes
1 answer
266 views

error: missing opencv_features2d (STATIC_LIBRARIES android-arm)"

I've created an application to read QR code using OpenCv. When I try to build it using NDK, everything works well NDK=/opt/android-ndk-r23c export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64 ...
Netanel Hadad's user avatar
1 vote
0 answers
128 views

AOSP: INSTALL_FAILED_OLDER_SDK

I'm facing the below error while installing the apk which is built on the Android-12 version of the AOSP repo and installing this apk on the Android-11 version of the System image error: C:\Users\test\...
Santosh Rokhade's user avatar
0 votes
0 answers
544 views

Add an external aar/jar as a shared library

I am having the following Android.mk file for my app which is using aar-release.aar include $(CLEAR_VARS) res_dir := res $(LOCAL_PATH)/res LOCAL_MODULE_TAGS := optional LOCAL_SRC_FILES += <...> ...
zeitgeist's user avatar
  • 982
1 vote
1 answer
623 views

How to shrink resources and remove unused language resources with Android.mk

I am working on AOSP Settings application which builds properly. I am trying to build "user build" and have enabled proguard using proguard.flags and disabled jack compilation ...
Rinav's user avatar
  • 2,547
0 votes
0 answers
657 views

Android.mk - Adding external java libraries as maven repositories or prebuilt java libraries

I am trying to make my application compile within AOSP instead of using Gradle within Android Studio. I created an Android.mk file, however, since my application uses Eclipse Paho library, I do not ...
mozcelikors's user avatar
  • 2,724
0 votes
1 answer
861 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
  • 45
0 votes
1 answer
2k views

Difference between system_current and current for the vairable LOCAL_SDK_VERSION in ANDROID.mk?

Our application should be built along with Android build and moved to the system partition. But we were using hidden api and so we added the variable LOCAL_PRIVATE_PLATFORM_APIS := true In the current ...
TraderAndroid's user avatar
0 votes
1 answer
899 views

Is there a way to set default launcher app in AOSP without excluding other launchers

I'm aware of LOCAL_OVERRIDES_PACKAGES but I would like to set Launcher3 as my default launcher without overwriting another app I have installed. So I want the app to exist on the system but not be set ...
osnapitzjamie's user avatar

15 30 50 per page
1
2 3 4 5