Skip to main content
Stack Overflow's 2025 Annual Developer Survey is still open — take the Survey before it closes
Filter by
Sorted by
Tagged with
-2 votes
0 answers
11 views

Recommended Machine Configuration for Android AOSP Source Code Compilation [closed]

I need an help.. I want to buy a build machine for compiling android AOSP source code. For this S/W compilation what is minimum specification is needed can you suggest? I mean in your working ...
venu manikonda's user avatar
0 votes
1 answer
45 views

How can I get number of cores on android bionic uapi?

Android bionic defines a series of structs that are used specifically to handle kernel level uapi data, like sysinfo.h header which defines a struct called sysinfo that defines registers for kernel &...
user30722934's user avatar
1 vote
1 answer
50 views

ERROR in emulator start after aosp build Andorid Emulator I tried running

After successfully compiling the AOSP build from the repo tried starting the emulator with the command provided in the documentation $launch_cvd --daemon but encountered the following error log: 06-...
Nitish Sharma's user avatar
0 votes
0 answers
44 views

Can I configure my android device to act as a FTM (Wifi RTT) responder?

I'm developing an application that uses Wifi RTT/ FTM (initiator). Unfortunately, i don't have a WIFI RTT compatible AP/ router. So, I want to convert my other device to act as a responder. Earlier, ...
Adarsh Singh's user avatar
0 votes
0 answers
93 views

Audio routing to multiple zone via GStreamer pipeline

I'm building a GStreamer-based media player on Android, and I need to support zone-based playback. For example, I want to route audio to different "zones" such as front_left, rear_right, etc....
Aman Srivastava's user avatar
0 votes
0 answers
52 views

How to hide contacts in Android AOSP Contacts Provider when A phone is temporarily disconnected

In Android AOSP 15 code, I see that whenever a phone gets disconnected from the Phone Book( PBAP ) Client profile, PBAPClientConnectionHandler.java calls the AccountManager.removeAccountExplicitely ...
Debabrata's user avatar
0 votes
1 answer
60 views

How add dropbear (or openssh) to Android14 aosp build?

Running: cd aosp/ cd external/ git clone https://github.com/mkj/dropbear.git git clone https://github.com/libtom/libtommath.git git clone https://github.com/libtom/libtomcrypt.git And adding: The ...
Marco Polo's user avatar
0 votes
0 answers
38 views

layout inspector with android app that use song build instead of gradle

did anyone try to use layout inspector in android app that use song build instead of gradle i am trying to edit the bp file with flags that enable Debug Support but there no reference that anyone did ...
Yasmen Ehab's user avatar
1 vote
0 answers
39 views

AOSP CarSettings import to Android Studio, cannot view by Design mode

I compiled the AOSP source code in its entirety, using the android14_74 version. I have now extracted the Settings module under Car and converted it into a Gradle project supported by Android Studio. ...
ming wang's user avatar
0 votes
0 answers
60 views

How to generate the AAR file by using Soong build system (by Android.bp only)

I am using the following Android.bp to generate the AAR file: android_library { name: "MyModuleLib", system_ext_specific: true, srcs: ["src/main/java/**/*.java&...
Mr. Parashar's user avatar
0 votes
0 answers
80 views

AOSP Android 15 (android-15.0.0_r20) - lunch Fail for pixel8(shiba)

Following the official Android documentation, I downloaded the source code for android-15.0.0_r20. When running lunch and selecting 40: aosp_shiba-trunk_staging-userdebug, I encountered an error ...
Kong's user avatar
  • 1
0 votes
0 answers
102 views

AOSP 15 build missing aidl/android.security.maintenance interface (servicemanager can't start it)

I'm building system.img and vendor.img for AOSP 15 from source. The build finishes, but the resulting system fails to boot properly, entering a failure loop with the following messages: [ 61.707092s]...
Ciptik's user avatar
  • 1
0 votes
0 answers
80 views

Enable Ethernet Settings Interface in Android 13?

My device is using Android 13, SDK 33. I want to enable Ethernet Settings interface on the device screen. I am looking for solutions and will integrate it into the source and then rebuild the images. ...
Anh Trần Tuấn's user avatar
0 votes
1 answer
83 views

Add Rive library to the Android Soong app

How to add the Rive library to the Android Soong App. I have tried to add the rive aar file from https://mvnrepository.com/artifact/app.rive/rive-android
Santosh Rokhade's user avatar
0 votes
0 answers
61 views

AOSP build fails at generating Ninja file

I am trying to build an AOSP image for the first time and it fails right after I start the compilation. I've followed the setup and sync instructions in the AOSP getting started guide. I am running ...
Alexander Hoffmann's user avatar
0 votes
2 answers
101 views

Build AOSP Android14 and run emulator result fstab error

Setup AOSP sources with: repo init -u https://android.googlesource.com/platform/manifest -b android-14.0.0_r75 And setting: source build/envsetup.sh lunch aosp_cf_x86_64_phone-trunk_staging-userdebug ...
Marco Polo's user avatar
1 vote
1 answer
149 views

How to include native shared objects embedded in AAR files in Android.bp

I am doing an Android Open Source Project build (AOSP) not an Android Studio build. I have an AAR file that contains several .so shared object native libraries. Previously, in an Android.mk makefile I ...
Brent K.'s user avatar
  • 1,112
0 votes
0 answers
86 views

Kati says rule for target is being overwritten even though that target isn't installed in Android build

I'm compiling a custom build of AOSP 12.1 r27 with my own device tree. I've added the following line to device.mk PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/prebuilt/[email protected]:$...
Nate's user avatar
  • 161
0 votes
1 answer
125 views

How to set Ethernet down by default in Android AOSP code

By default, Android bring up an ethernet interface through addInterface() in EthernetTracker.java. That is, When a ethernet cable is connected, it will bring up that interface and set Ip automatically....
CaptianR's user avatar
0 votes
0 answers
134 views

Custom VHAL property is not reflecting in Emulator AAOS14

As per Android 14 and above, Property definitions are defined at hardware/interfaces/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/VehicleProperty.aidl. Ref Also I found the ...
Star's user avatar
  • 657
0 votes
0 answers
59 views

SE custom rules in AOSP

I am a junior AOSP developer, I have myservice application with type of coredomain, type myservice, domain, coredomain, mlstrustedsubject; I need to open functionfs objects, but adding allow myservice ...
Ali Razmkhah's user avatar
0 votes
0 answers
331 views

How to add custom VHAL properties in Android Automotive 14

I have added in the below following path: hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h const ConfigDeclaration kVehicleProperties[]{ { .config = { .prop = ...
Star's user avatar
  • 657
0 votes
1 answer
132 views

Sending Joystick Events in Android: Permissions, System Apps, and Root Access Issues

I am working on developing an Android app that sends joystick events in the background. Question 1: I am currently using the Instrumentation class to inject events like KeyEvent.KEYCODE_DPAD_LEFT and ...
Juilee Kulkarni's user avatar
0 votes
1 answer
90 views

How to make custom Android Shared library publicly available?

About the Android Shared library. We added the system shared library to the Android source code with the following code: Android.bp: cc_prebuilt_library_shared {    name: "libfilamat-jni", ...
Almas's user avatar
  • 663
0 votes
0 answers
74 views

How to invoke make command in Android.bp

I am trying to integrate an external tool that uses make as its build system into my Android project. Specifically, I want to invoke make within the Android.bp file so that the Makefile from this tool ...
Yubikiri773's user avatar
2 votes
1 answer
178 views

What is the difference between OEM_PAID and OEM_PRIVATE networks in Android [closed]

I see OEM_PAID and OEM_PRIVATE networks in android. I see below info in PANS documentation. OEM_PAID Used primarily for apps that can be routed on both OEM and non-OEM networks. OEM_PRIVATE Used ...
CaptianR's user avatar
0 votes
0 answers
232 views

AOSP Android 14 (android-14.0.0_r73) - lunch Command Fails to Display Menu

I am trying to build AOSP (Android 14, android-14.0.0_r73), and while the build completes successfully, the lunch command fails to display the menu and does not allow me to select a target. Issue: ...
Vivek Faldu's user avatar
0 votes
0 answers
100 views

OpenCV Build Failure on AOSP 13

I am trying to build OpenCV as part of an AOSP 13 build. I cloned OpenCV and integrated it into AOSP using an Android.bp file. However, I keep encountering errors related to missing headers and ...
frostSi's user avatar
  • 11
1 vote
0 answers
64 views

AOSP BUILD FAILED: System image from KATI and SOONG differs from installed file list

I am trying to add a native C++ program in AOSP branch android-15.0.0_r17. The program is simple, it just print string. The android blueprint looks like below. I want to add this program in system ...
Sandy's user avatar
  • 165
0 votes
0 answers
93 views

Can system/privileged applications update themselves without user interaction?

I am writing an application/service for a product that DOES NOT meet the requirements for PackageInstaller.SessionParams.setRequireUserAction, namely it's written specifically for a piece of hardware ...
EatonWu's user avatar
  • 23
0 votes
1 answer
128 views

Android AOSP 13 Native Camera (NDK) Not Receiving Frames in AImageReader

I am working on AOSP 13 on an i.MX8MM Var-SOM board and trying to implement native face detection using NDK Camera2 APIs. My goal is to capture frames using AImageReader and process them with ...
frostSi's user avatar
  • 11
0 votes
0 answers
48 views

How to Create or Mount a `/run` Directory in AOSP?

I am embedding OpenRc into a custom AOSP build, but it requires a /run directory for runtime data, which does not exist by default in AOSP. Since /data is available, I am considering creating /run ...
Yubikiri773's user avatar
0 votes
1 answer
164 views

"no debuggable or profileable process" in android studio

My Android device is an AOSP 13 launch device, based on x86_64 architecture, bootloader is also unlocked. I downloaded latest Android studio from Ubuntu software as my testpc is Ubuntu machine. I have ...
jayanth vutukuri's user avatar
0 votes
1 answer
347 views

How to customize 6.1 kernel config in aosp 15

I am trying to build a GKI kernel image from aosp. After updating the kernel config, the build does not seem to use my config. Instead, it always uses some default config. How can I build with custom ...
Zura's user avatar
  • 1
1 vote
1 answer
241 views

Creating an AIDL file to communicate with a service in AOSP

I am adding a new SystemService to a custom build of Android 11 and I need an aidl interface for apps to communicate with it. I am just starting with the aidl file right now and to keep it simple I ...
tyczj's user avatar
  • 74.3k
0 votes
0 answers
69 views

How to remove transient displaying in top of status bar in android?

In car, there is an overlay displaying on top of status bar for applications in full screen when swipe down on top of status bar. Again when swipe down, notification panel is displaying. But I want to ...
Star's user avatar
  • 657
0 votes
0 answers
117 views

Android multi-user downloaded file access across users

I am working on a project that includes both, an Android app and a custom AOSP built. Inside of the app that is running as a regular user (in this case user with id 10), I am downloading a file to ...
freeflowrdp's user avatar
0 votes
0 answers
58 views

Soong: How to Copy Prebuilt Binaries and Libraries into the System

I want to install OpenRc into my system. So I put some folders (sbin, lib64, ...) in prebuilts/openrc/. Then I added prebuilts/openrc/Android.bp to have them installed in /system_ext. ...
Yubikiri773's user avatar
0 votes
0 answers
96 views

Customizing AOSP 12 for Raspberry Pi 4: Missing boot.img and Flashing Issues

I am working on customizing AOSP 12 for Raspberry Pi 4. I successfully downloaded and built AOSP 12, and verified that it works properly using the emulator. However, after making customizations, I ...
Soundarajan M's user avatar
0 votes
0 answers
42 views

Why does plugin->makeComponentInstance fail silently with OMX_ErrorInsufficientResources in Android AOSP 10?

I am working with a device that is running Android AOSP 10. The problem I am facing is that the camera is not able to record video. After reviewing the log I have found that it is because the system ...
jesusjimsa's user avatar
0 votes
0 answers
201 views

error: external/rust/cxx/Android.bp:67:1: "libcxxbridge05" depends on undefined module "rust_static_cc_lib_defaults"

I'm setting up an AOSP Build environment, going through https://source.android.com/docs/setup/build/building I used repo init just like the document says repo init --partial-clone -b main -u https://...
Bipin's user avatar
  • 350
0 votes
1 answer
143 views

change AOSP 13 build setup wizard

I am building AOSP 13 and am trying to enable my custom setup wizard, which doesn't use any GSM. I am using it on my custom device (tablet). In my current build, I don't see a default setup wizard, ...
frostSi's user avatar
  • 11
0 votes
0 answers
43 views

How to find the tag corresponding to aosp based on build.id?

Let's say I'm currently running android-13 emulator and its build_id is: [ro.build.id]: [TE1A.220922.034] How do I find the corresponding tag or commit in the aosp repo?
progquester's user avatar
  • 1,856
2 votes
1 answer
372 views

What's the differences between ap2a and trunk_staging in compiling AOSP?

I'm trying to compile AOSP source code. I don't understand the differences between trunk_staging and ap2a. Most tutorials use the aosp_cf_x86_64_phone-trunk_staging-userdebug to configure the ...
b3a1e's user avatar
  • 51
1 vote
0 answers
208 views

How to build AOSP 13 at Intel 285k without errors

got constant crash with build AOSP 13 at intel 285k and 265k. (total different hardware set with different MB and memory) OS: Ubuntu 22, Ubuntu 24 kernel: 6.8.0-49, 6.11.0-26 RAM: 96 Gb + 32 Gb swap,...
Maxim Akristiniy's user avatar
1 vote
1 answer
278 views

Connect service with app via AIDL in AOSP

I'm trying to connect HAL service to the user app via AIDL. I've tried connecting app to service without luck. How to properly connect user app to HAL C++ service via AIDL? What am I doing wrong? For ...
Sergey's user avatar
  • 1,368
1 vote
1 answer
105 views

CANNOT LINK EXECUTABLE "/vendor/X/BINARYFILE":library "/data/valgrind/libexec/valgrind/vgpreload_core-amd64-linux.so" needed or dlopened by

Executed valgrind for.so binary files in android framework. Facing linker error as mentioned below during command execution time, How to resolve this? command: valgrind --leak-check=full --tool=...
Rey's user avatar
  • 475
0 votes
1 answer
70 views

Error - undefined module "org.tensorflow:tensorflow-lite:+" when building aosp bundled with custom system app

Building aosp for target 'lunch sdk_phone_x86_64' I have included a custom system app which uses tensorflow hence within the Android.bp this is the dependency declaration. static_libs: [ "...
razakma15's user avatar
0 votes
0 answers
42 views

Battery Status Changing after some delay after the healthd updates

Did anyone resolved the issue of the battery status as Charging and Discharging in the GUI. In my kernel the Charging and Discharging is happening perfectly. logs from the kernel:- phyboard_polis:/ # ...
Pritam srichandan Sahoo's user avatar
0 votes
3 answers
161 views

Is there any way to turn on bluetooth using cmd line (adb shell preferably)

I tried turning on bluetooth using cmd bluetooth_manager enable: But i see its failing a check in BluetoothManagerService.java::checkIfCallerIsForegroundUser Since the caller is shell (UID 2000). So ...
Nandish R's user avatar

1
2 3 4 5
64