3,167 questions
Advice
0
votes
2
replies
46
views
What's the best way to learn AAOS for Automotive System or Priviledge Apps
Learning Path,
Important Resources,
Guidance from personal experiences,
are most welcome.
-2
votes
0
answers
37
views
The emulator fails to start after compiling the AOSP source code [closed]
I downloaded and compiled the latest AOSP source code:
repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android16-qpr1-release
lunch aosp_cf_x86_64_phone
make -j128
Then ...
0
votes
0
answers
23
views
why gbl write root digest in host DT?
When I analyze code of GBL main process, I found after loading the pvmfw data region,
match pvmfw {
Some((ref v, s)) => avf_fixup_host_dt(ops, &mut fdt, v, s, &verify_data)?,
...
0
votes
0
answers
69
views
Android shared library build using NDK leads to loading failure
I'm working on a bluetooth library. This library is used by the service at runtime to talk to the controller.
The service binary is built in AOSP env with soong.
The library i have is generally logic ...
Tooling
0
votes
0
replies
166
views
How can I have my application opened in the setup wizard?
I want to build my Android app with AOSP. I have an application and want to make it a system app. How can I make the setup wizard (that launches when you turn on the device for the first time) to ...
-1
votes
0
answers
156
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
145
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
178
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
183
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
233
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
337
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
218
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
278
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
133
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
259
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
202
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
110
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 &...
1
vote
1
answer
841
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
182
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
170
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
75
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
129
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
188
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
341
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
171
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
116
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
166
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
245
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
312
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
100
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
266
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
208
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
97
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
579
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
135
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
90
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
240
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
441
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
137
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
86
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
115
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
160
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
57
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
353
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
775
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
469
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
77
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
132
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 ...