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

All Questions

0 votes
0 answers
65 views

AOSP missing dependencies: android.hardware.radio-library.compat

I'm kinda new on this topic, and I need to add a new radio device/RIL but I've some errors while I'm trying to build saying that it miss some dependencies. echo "module libril-lib missing ...
DeathFight Arkanix's user avatar
1 vote
1 answer
81 views

Building an AOSP app with maven dependency

I am building an AOSP system app which depends upon the Wireguard tunnel library. The Android.bp file is as follows: android_app { name: "VPN", srcs: [ "java/**/*.kt&...
TopCat's user avatar
  • 13
1 vote
1 answer
77 views

How do I create an Android make file to merge a glibc based root filesystem into to the AOSP filesystem?

Appendix A (Legacy User-Space) of the 2013 Karim Yaghmour book Embedded Android describes how to merge a root filesystem based on glibc that contains BusyBox into the AOSP build. But it describes how ...
Daryl Spitzer's user avatar
4 votes
0 answers
82 views

Multiple kotlin versions in AOSP

Is it possible to have multiple kotlin compiler versions in AOSP source tree and use specific one for some projects while using default one for all the others? I tried to bump existing version with ...
Gawcio's user avatar
  • 1,175
0 votes
0 answers
121 views

Android.bp include aar shared between apps

I am working on my custom AOSP and I would like to have several applications sharing the same resources. This means I want to put all the res inside an .aar library and I want to avoid that all the ...
user1638466's user avatar
0 votes
2 answers
145 views

How to build Windows binaries such as adb.exe when building AOSP in Linux

I build AOSP on branch android-13.0.0_r41 with the following command: . build/envsetup.sh lunch aosp_arm-eng m all -j$(nproc) Some environment variables: PLATFORM_VERSION_CODENAME=REL ...
hdthky's user avatar
  • 85
0 votes
0 answers
424 views

AOSP - how to get final contents of PRODUCT_PACKAGES while building

Different packages and components we can add via PRODUCT_PACKAGES tag in different mk files. I want to remove some unwanted packages while building AOSP for my target. But for some packages this is ...
himel's user avatar
  • 510
0 votes
2 answers
2k views

AOSP ERROR: Dex2oat failed to compile a boot image.It is likely that the boot classpath is inconsistent

I'm trying to build android 12. I was using Ubuntu 22.04.2 where it worked successfully. Now I've installed a fresh Ubuntu 22.04.3 which is using a new kernel and I started getting this error: ERROR: ...
Vitalii Bonar's user avatar
1 vote
0 answers
312 views

AOSP Add Jar to Boot Class Path

I've set up the AOSP project, it builds fine (Android 12). I've created a new module under frameworks/base/mylib which is just a Java library. It builds fine and gets added to /system/framework/mylib....
Banana999's user avatar
  • 133
0 votes
1 answer
524 views

Add own module/library to AOSP in separate Android.bp file

I would like to build my own library during the AOSP build process and I'd like to be able to build the library with a stand-alone command, i.e., without building complete AOSP. I've put the source ...
lina_2299's user avatar
0 votes
2 answers
2k views

Android.bp for a Android Studio Native C++ App

Could someone show me an example of Android.bp for the Android Studio Native C++ app to compile it in AOSP source? It can be for the 'hello world' auto generated project. Is there a tool that auto ...
Álison Venâncio's user avatar
1 vote
2 answers
791 views

android_app_import corrupts APK

I'm trying to add some prebuilt apps to my AOSP built, using this blueprint: android_app_import { name: "App", apk: "App.apk", presigned: true, dex_preopt: { ...
artem's user avatar
  • 16.7k
0 votes
3 answers
4k views

Repo sync fails with "repo is not tracking a remote branch"

When I try to run repo sync I get this error: info: A new version of repo is available warning: repo is not tracking a remote branch, so it will not receive updates repo reset: error: Entry '...
Top4o's user avatar
  • 635
1 vote
1 answer
475 views

Include an app only in certain builds in AOSP by changing .bp file

Is there a way to change a .bp file of an app in AOSP so that is only included in a certain build. For example I want to include test apps only in userdebug apps?
Invader Zim's user avatar
1 vote
1 answer
1k views

How to list all possible packages / modules in AOSP via command line?

In AOSP, I often use the following to setup my environment and build target and build the entire image: $ cd ~/aosp $ source build/envsetup.sh $ lunch sdk_phone_x86_64 $ m I also like to use the ...
code's user avatar
  • 5,526

15 30 50 per page