3,165 questions
Tooling
0
votes
0
replies
111
views
How can I have my application opened in the setup wizard?
I want to build my android with AOSP, I have an application and want to make it a system app. How can i make the setup wizard (that launch when you turn on the device for the first time) to launch my ...
0
votes
0
answers
120
views
Build fails as both LOCAL_SDK_VERSION and LOCAL_PRIVATE_PLATFORM_APIS are set
I'm beginning to customize my phone and I'm following this guide to build AOSP for an Xperia.
I selected aosp_arm64-eng target by running source build/envsetup.sh && lunch, then ran make -j$(...
-1
votes
1
answer
107
views
Is VoiceInteractionService a singleton? It never calls onReady() for a second user in Android's multi-user mode
I'm developing an android application which would serve a purpose of a voice assistant using VoiceInteractionService. I've supposedly have hit a wall trying to support Android's multi-user environment....
3
votes
1
answer
125
views
Making a custom build target with Bazel to specify custom kernel config flags
I've been doing some kernel development on the Google pixel 9a "tegu" platform (latest version on https://developers.google.com/android/drivers), where Google uses Bazel to compile the ...
2
votes
0
answers
166
views
How to change the position of the Activity Chooser Dialog?
I'm working on an Android Automotive OS system build, and I want to center the Activity Chooser dialog position (i.e. ResolverActivity) on the screen using a theme overlay only — no Java code ...
2
votes
0
answers
211
views
Building a kernel for pixel 9A tegu [closed]
In the android docs, it mentions that we can use bazel to build the .img file for the kenrel (which we can flash with fastboot). However, I don't seem to have the //common:kernel_aarch64_dist target ...
1
vote
0
answers
306
views
How to enforce a custom DNS in an AOSP-based ROM and prevent user modification?
I'm building an AOSP-based ROM (specifically crDroid) and I want to enforce a specific DNS server (e.g., CleanBrowsing) at the system level, so that:
The system always uses my specified DNS servers
...
1
vote
0
answers
206
views
NanoHTTPD server on Embedded Android TV: HTTP works but HTTPS shows blank page after authentication
I’m working on an embedded Android TV project. I’m using NanoHTTPD as the web server. The server hosts a simple web page that can be accessed from a browser by entering the IP address of the TV.
Here’...
0
votes
1
answer
253
views
How to build an eng or userdebug aosp kernel (android-15)?
I want to build an eng or userdebug kernel for a pixel 6a.
I read https://source.android.com/docs/setup/build/building-pixel-kernels#supported-kernel-branches but it does not mention how to change the ...
0
votes
0
answers
115
views
Cuttlefish emulator not recognized by Android Test Station (WSL2)
I'm working in a WSL2 environment where I’ve set up the Cuttlefish emulator by following the official guide:
https://source.android.com/docs/devices/cuttlefish/get-started
Additionally, I’ve ...
1
vote
0
answers
224
views
AOSP android-latest-release build failure
I am following the instructions at https://source.android.com/docs/setup/start to download and build the AOSP source code. The build succeeded the very first time. But now when I run the make command ...
0
votes
1
answer
175
views
How set user and group of new service binary file added to AOSP?
Setting deamon user and group done on myservice.rc file:
service myservice /vendor/bin/myservice
class core
user system
group system
Resulting:
adb shell ps -A | grep myservice
system ...
0
votes
1
answer
100
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 &...
2
votes
1
answer
732
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-...
0
votes
0
answers
171
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, ...
0
votes
0
answers
161
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 ...
0
votes
0
answers
64
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 ...
1
vote
0
answers
70
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. ...
0
votes
0
answers
120
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&...
2
votes
0
answers
176
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 ...
0
votes
1
answer
319
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]...
0
votes
0
answers
153
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.
...
0
votes
1
answer
113
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
0
votes
0
answers
149
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 ...
0
votes
2
answers
210
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
...
1
vote
1
answer
280
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 ...
0
votes
0
answers
99
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]:$...
0
votes
1
answer
253
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....
0
votes
0
answers
204
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 ...
0
votes
0
answers
89
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 ...
0
votes
1
answer
543
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 = ...
0
votes
1
answer
142
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 ...
0
votes
1
answer
126
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",
...
0
votes
0
answers
86
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 ...
2
votes
1
answer
235
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 ...
0
votes
1
answer
415
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:
...
0
votes
0
answers
134
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 ...
1
vote
0
answers
81
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 ...
0
votes
0
answers
114
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 ...
0
votes
1
answer
151
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 ...
0
votes
0
answers
52
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 ...
0
votes
1
answer
328
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 ...
0
votes
1
answer
720
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 ...
1
vote
1
answer
449
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 ...
0
votes
0
answers
76
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 ...
0
votes
0
answers
128
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 ...
0
votes
0
answers
85
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.
...
0
votes
0
answers
122
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 ...
0
votes
0
answers
51
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 ...
0
votes
1
answer
303
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://...