3,166 questions
0
votes
0
answers
34
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 ...
-3
votes
0
answers
44
views
AppWidgetManager getting nullPointer Exception in one of other same type hardware in AOSP code [closed]
Attempt to invoke virtual method 'java.util.List android.appwidget.AppWidgetManager.getInstalledProviders()' on a null object reference
Tooling
0
votes
0
replies
143
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
138
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
132
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
147
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
176
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
225
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
320
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
208
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
269
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
125
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
236
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
190
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
108
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 &...