Questions tagged [android-soong]

Soong is the replacement for the old Android make-based build system. It replaces Android.mk files with Android.bp files, which are JSON-like simple declarative descriptions of modules to build.

Soong is the replacement for the old Android make-based build system. It replaces Android.mk files with Android.bp files, which are JSON-like simple declarative descriptions of modules to build.

See https://android.googlesource.com/platform/build/soong/

82 questions
0
votes
1 answer

How do i include my own built shared library in Android.bp

I compiled my library via this Android.bp code : cc_library_shared { name: "libult123", shared_libs: [ "android.hardware.graphics.allocator@3.0", "android.hardware.graphics.common@1.2", …
0
votes
0 answers

Exclude file from apk when building with Soong

With regular gradle app I am able to exclude a file from apk (native lib specifically) with this, but at the same time keep another native lib called say mylib2.so in the apk. packagingOptions { exclude "**/mylib1.so" } Is there a possibility to…
logcat
  • 3,435
  • 1
  • 29
  • 44
0
votes
0 answers

How to push custom text file to data/misc/ethernet path in AOSP

I have an text file which is contains some ethernet configurations itself. I sent it to vendor/etc path via my make file, then I tried to copy vendor/etc/config.txt to data/misc/ethernet via init.rc but it has not copied. We may not be allowed to…
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
0 answers

how to fix library missing variant issue

I want to add shared library to Aosp broadcastradio@1.1. but when adding library, following errors occur: cd "$(dirname "out/soong/.bootstrap/bin/soong_build")" && BUILDER="$PWD/$(basename "out/soong/.bootstrap/bin/soong_build")" && cd / && env -i…
0
votes
1 answer

How to add conditional statements on android.bp

I'm custom a module. Android.bp cc_binary{ name:"gzip", default:["gzip_default"], static_libs:[...] } Android.bp don't support if statement. How I can make like this on android.bp? If target_build…
0
votes
1 answer

How to generate RenderScript ScriptC* files with Android.bp?

I want to compile my renderscript project with a .rs file on AOSP. My AOSP SDK is 29 (Android Q). My build directory for mm is ├── Android.bp ├── AndroidManifest.xml ├── java ├── lib ├── lib64 ├── libs ├── res └── rs └── histEq.rs I have…
zeitgeist
  • 852
  • 12
  • 19
0
votes
1 answer

AOSP build: Replace existing AOSP module with a custom one

I want to replace an already existing module in an AOSP whose build script file is written in Android.bp and added to the build process via some *.mk file, e.g.: PRODUCT_PACKAGES += android.hardware.automotive.vehicle@2.0-service with my module,…
Mykola Khyliuk
  • 1,234
  • 1
  • 9
  • 16
0
votes
1 answer

Why do I get Illegal instruction (core dumped) error while building Android 11?

For a quiet some time I'm trying to build Android 11 for Sony Xperia XZ2 H8266. Everytime process comes to build org.apache.http.legacy package it gets an error. [ 99% 263/264] //external/apache-http:org.apache.http.legacy dexpreopt [common] FAILED:…
DoomRider
  • 1
  • 1
0
votes
1 answer

Getting error in my libs - missing dependencies: jni_headers

I am trying to move my libs into product partition, and so that I have done all required changes and removed libandroid_runtime and libnativehelper because both are NON-ndk libs (both are using private apis). I was able to fix all the build time…
0
votes
0 answers

Python error while building payload.bin with ninja

So I'm trying to build Project Fluid for my Poco F3 (alioth) and I'm having this problem at the second last target of the build (creating a payload.bin for the OTA package): ERROR: Traceback (most recent call last): File…
0
votes
1 answer

ANDROIDMK TRANSLATION ERROR: unsupported include in Android.bp

Am trying to add the include fwk/base/pkgs/SettingsLib/common.mk onto Settings App, But am unsure how to use it on Android.bp file. I used the androidmk conversion tool which comes with the AOSP build system to convert Android.mk to Android.bp What…
0
votes
2 answers

Build an Android Open Source Project (AOSP) failed with Soong error: Unrecognized property "protos"

I'm trying to build an AOSP on Ubuntu 20.04. Everything went ok until build certain target. I'm getting the next error almost on build start: timur@timur-H110M-HD2:~/WORKING_DIRECTORY$ make -j4 22:24:08…
Timur Panzhiev
  • 607
  • 6
  • 12
0
votes
2 answers

Android soong has no android.PathForSourceRelaxed and ctx.Config().BuildOSTarget

I am trying to compile pure aosp sourceand keep getting theese two errors. I am using the lineage vendor files and am using aosp device trees P.S. I'm using a live system but the issue is that there are two undefined…
0
votes
0 answers

LOCAL_POST_INSTALL_CMD in Soong?

I have a makefile which uses LOCAL_POST_INSTALL_CMD and I need to switch to Soong build system but I could not find how do I implement this command in Soong. More or less I need to copy the file after install step. Any other ways to do it?
Andy Victors
  • 335
  • 2
  • 9