All Questions
Tagged with android-source android-soong
48
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 ...
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&...
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 ...
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 ...
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 ...
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
...
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 ...
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: ...
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....
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 ...
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 ...
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: {
...
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 '...
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?
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 ...