3,167 questions
1
vote
1
answer
185
views
Jacoco code coverage report is showing zero in AOSP junit testing
I am working in AOSP for automotive and in Junit test I can get coverage report using Jacoco but it is zero everytime even after tests successfully run. Please help me on this. I am doing this with ...
0
votes
1
answer
290
views
Application not visible after adding it to AOSP build
I have added a two prebuilt apks in AOSP source code.
Aurora store.
FireFox
After building AOSP code Only Aurora store is visible on device but can't Found FireFox app after boot. It's also not ...
1
vote
0
answers
147
views
Selinux reference one type in another file
I'm working on a avc denial in AOSP project.
When I try to fix it in the appropriate file: vendor/somevendor/common/sepolicy/product/private/some_app.te
allow some_app some_debugfs:dir search;
I get ...
3
votes
2
answers
3k
views
Invalid launch combo: launch sdk_phone_x86
I've been trying to build ASOP and emulate it on my Ubuntu machine the guide by Android documentation to download the repo. The commands are:
repo init -u https://android.googlesource.com/platform/...
1
vote
0
answers
86
views
With and Android System-Level app, how do you inject AXIS_RTRIGGER or AXIS_GAS events?
I'm trying to make my own sort of controller that goes along with a system-level app that does have "android.permission.INJECT_EVENTS" permission. The app runs in the background and ...
2
votes
1
answer
910
views
Incorporating Prebuilt APK as Device Admin in AOSP Build with Pre-Granted Runtime Permissions for Android 14
I am working on integrating a prebuilt APK into an AOSP (Android Open Source Project) build for an Android 14 based system, and I would like to configure it as a device admin and owner. Additionally, ...
0
votes
1
answer
352
views
How to replace Google animation?
How to Replace Google Animation Displayed on Boot in Compiling AOSP 13 Version,thanks.
Google logo
I'd like to change it to another picture.
But I can't find the place, I just replaced the ...
0
votes
1
answer
407
views
Set default Launcher in AOSP Source
I have added my launcher along with Launcher3 in AOSP build, On boot up device asks to select default Home app(launcher).
How can I set the my launcher as a default launcher from ASOP source code, so ...
5
votes
2
answers
1k
views
AOSP Emulator Images not running
I'm trying to create an AVD Emulator image from the AOSP source code that I can run using the standard Android Emulator on my M1 Macbook (arm64).
I've followed all the standard steps starting from ...
0
votes
1
answer
444
views
How to clean a single Android launch target only?
I've built two launch targets:
aosp_x86_64-eng
sdk_phone_x86_64-eng
I want to clean the second target only. It took me 3 days to build the first target.
At this documentation it says about m clean:
...
1
vote
1
answer
604
views
I have a problem when compiling AOSP with Ubuntu
klee@linux:~/AOSP/aosp$ make
......
[ 0% 2/12593] build out/target/produc...wer_intermediates/oat/arm/package.odex
FAILED: out/target/product/generic/obj/APPS/HTMLViewer_intermediates/oat/arm/...
2
votes
2
answers
3k
views
Android 14 build completed successfully , but emulator not working
lunch aosp_x86_64
m -j16
TARGET_PRODUCT=aosp_x86_64 build completed successfully.
$ emulator
INFO|Android emulator version 31.3.9.0 (build_id 9070145) (CL:N/A)
INFO|Storing crashdata in: /tmp/...
0
votes
1
answer
1k
views
Facing issue in QEMU on android cuttlefish
Trying to bring up Android cuttlefish from QEMU.
Successfully launched android cuttlefish from QEMU In x86 processor Ubuntu and got Android UI in vysor (tool) app. Facing problems with ARM64 processor ...
0
votes
1
answer
1k
views
How to allow system_app set vendor_default_prop, or mtk_hal_camera (in vnd partition) get system_prop?
I tried to set a persist prop from a system_app, and get it from the mtk_hal_camera process. I tried 2 ways, neither worked:
system_app set system_prop OK, but mtk_hal_camera get system_prop FAILED:
...
0
votes
2
answers
345
views
How is AOSP build process optimizing my system app's native libraries?
I am building AOSP 10 with a system app, that is provided as pre-built apk.
The system app ships custom native libraries. The original apk which i provide in the AOSP sources contains these libraries ...
0
votes
2
answers
901
views
Android 13 AOSP building can not flash image
I'm trying to build Android 13 and flash it to my device, Pixel 3a.
I followed the documentation, https://source.android.com/docs/setup/start and https://source.android.com/docs/setup/build/building.
...
0
votes
1
answer
982
views
I have a problem with building AOSP 13 from official source code and got CTS test errors
I am building AOSP 13 on an x64 laptop with 16 GB ram and 12th generation core i7 spec. After successfully syncing my repo with the repo sync command, I just executed the following standard commands. ...
2
votes
4
answers
7k
views
Aosp 14 build error [100% 1/1] analyzing Android.bp files and generating ninja file at out/soong/build.ninja FAILED: out/soong/build.ninja
cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -...
0
votes
0
answers
169
views
Android Studio:cannot resolve some symbols when open AOSP
I am struggling with android source code in Android studio. I am confused by some problems which mainly are "cannot resolve symbol xxx", see the picture below:
While when I open the symbol ...
1
vote
0
answers
1k
views
Unable to add prebuilt apk to AOSP A13 build
I am trying to add a prebuilt apk to an A13 AOSP build but the apk is never copied to the out directory of the build. Not error thrown during build process but the apk is not copied
I have tried the ...
0
votes
1
answer
1k
views
ccache : Failed to create temporary file
I have been trying to build android 13-plus for a while and while building I keep encountering the error:
ccache: error: Failed to create temporary file for /mnt/ccache/tmp/tmp.cpp_stdout.3Xmuoo: ...
2
votes
1
answer
883
views
How to share AVD system images for others to use for Android 13
I've built an AVD system image by following these steps:
repo init -u https://android.googlesource.com/platform/manifest -b android13-release --partial clone
repo sync
lunch sdk car_arm64-...
1
vote
1
answer
1k
views
Failed to compile - Raspberry pi 4
According to this instruction tried to compile android automotive for raspberry pi 4.
https://github.com/grapeup/aaos_local_manifest
After . build/envsetup.sh , when lunch command is given, getting ...
1
vote
0
answers
106
views
Does the Android Emulator use a device tree?
I have not been able to find how the Android Emulator is passed a device tree when it is started (if at all). In fact, the generated dtb.img/vendor_boot.img device trees are completely empty. They ...
0
votes
1
answer
609
views
IMEI Android ISSUE
Problem: I'm trying to get the IMEI number from a device using an Android app that I installed as a system-privileged app. However, I'm getting a security exception and the app crashes whenever I try ...
0
votes
0
answers
255
views
Kernel Driver Not Detected by Apps in Android
I'm compiling Android 11 on a development board with an RK3568, and everything is working fine. I have an accelerometer sensor that was pre-configured on the board and is functioning as expected; I ...
1
vote
0
answers
99
views
What's the difference between android-security and android-platform tag in aosp source
I was browsing aosp source and found tw o types of tags with latest security patch.
android-security-11.0.0_r71
android-platform-11.0.0_r34
Just curious what's the difference between them!
Can anyone ...
0
votes
1
answer
887
views
How to hide or invisible navigation bar in Android aosp
Need to understand the how can we remove or hide 3button navigation from Android framework side.
In landscape mode, 3 button is not hiding. I could see the bounds value for eg ( 0,0,254,273).
Anyone ...
0
votes
2
answers
2k
views
Failed to build Android: soong bootstrap failed with exit status 1
At the moment, I am playing around with Android, figuring out how to build my own custom Android ROM, and everything seems to be going well. All until I start to compile Android.
When I enter make -j2 ...
-1
votes
1
answer
672
views
How to set property in cpp code in Android?
In android if we want to set property from cpp file how it can be done.
what headers can be included and what api we can call directly to set property.
Tried executing setprop command from cpp file ...
2
votes
1
answer
1k
views
How to modify android x86 system.img properly (2023)?
A few years ago, I was able to easy execute the method described in this resolution (2019). However, when I attempted to test it again today and tried to mount the image, I encountered the following ...
0
votes
0
answers
797
views
Build Kotlin Android App in AOSP 13 source code
I'm trying to build Kotlin android app in AOSP 13 source code.
I have added all the dependency in Android.bp file, mentioned in
build.gradle file by downloading .jar and .aar files from
https://...
1
vote
1
answer
963
views
How to fix "Unknown qemu_device" building Android 13 for Car
I am building Android 13 Lunch 11 AOSP CAR X86_64. However, it fails at 98% with "unknown type qemu_device".
I am trying to build branches android-13.0.0_r74, and would need your guidance to ...
0
votes
0
answers
265
views
Adding a daemon process in Android and SELinux
I am struggling to add a daemon process for system (not vendor). I added this process to init.rc:
service start_md /system/bin/start_md
class core
user root
seclabel u:r:start_md:s0
in ...
1
vote
1
answer
587
views
Disable android device encryption in AOSP
I have a somehow complicated question and I can't find a good source to find the answer to it.
I'm working with AOSP Android 11 and I have full access to the code and can modify literally everything. ...
2
votes
2
answers
2k
views
AOSP ERROR: Dex2oat failed to compile a boot image.It is likely that the boot classpath is inconsistent
I'm trying to build android 12. I was using Ubuntu 22.04.2 where it worked successfully.
Now I've installed a fresh Ubuntu 22.04.3 which is using a new kernel and I started getting this error:
ERROR: ...
0
votes
1
answer
860
views
How to build successfully lineageOS 20.0 in Ubuntu 22.04.3 LTS
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=13
LINEAGE_VERSION=20.0-20230817-UNOFFICIAL-star2lte
TARGET_PRODUCT=lineage_star2lte
TARGET_BUILD_VARIANT=...
1
vote
0
answers
823
views
Getting error while generating coverage from Gcov and Lcov -'402*', prefer 'A94*'
While running the script with Gcov and lcov it is giving error for**
version '402*', prefer 'A94*'**
I have installed Gcov 9.4.0 and same gcc also
``
lcov --directory . --base-directory . --gcov-tool /...
0
votes
1
answer
153
views
How to build Alexa auto SDK inside the AOSP setup
Trying to build the Alexa auto SDK 4.2 on inside the AOSP setup, but still unable to configure Alexa build inside the AOSP. are we need to write android bp file for all the modules ?
How it can build ...
0
votes
0
answers
208
views
cannot run aidegen, missing the dataclasses module
I have been using aidegen to develop on AOSP.
For some reason, I cannot get it to work on one of the build tree I am working on. I get this error despite trying to use it in a venv, without venv, each ...
1
vote
0
answers
849
views
Error INSTALL_FAILED_PACKAGE_CHANGED when installing app using adb install
When I'm trying to update an app using adb install command, I get error Failure [INSTALL_FAILED_PACKAGE_CHANGED: installPackageLI]. I tried to search the error in android source but the error is not ...
0
votes
4
answers
2k
views
Is it RAM issue while Building Android AOSP?
I am on core i5 400 GB SSD and 16 GB RAM with 6 cores.
I an getting this error while building Android AOSP.
FAILED: out/soong/build.ninja
cd "$(dirname "out/host/linux-x86/bin/...
5
votes
1
answer
2k
views
ERROR: Problem encountered: Python (3.x) mako module >= 0.8.0 required to build mesa
While Building the Android AOSP i am getting this error :
meson.build:1018:2: ERROR: Problem encountered: Python (3.x) mako module >= 0.8.0 required to build mesa.
I checked that mako is already ...
2
votes
1
answer
624
views
AOSP Add Jar to Boot Class Path
I've set up the AOSP project, it builds fine (Android 12).
I've created a new module under frameworks/base/mylib which is just a Java library. It builds fine and gets added to /system/framework/mylib....
1
vote
0
answers
1k
views
What is the benefit or use-cases of adding android:sharedUserId="android.uid.system" in Android system application?
I am building a system application for custom ROM. I have access to AOSP and can customize and build the source code with the application apk.
I have read for a application to be a system app we need ...
1
vote
0
answers
52
views
CHRE nanoapp in dragonboard
I'm working on a project involving AOSP Android and CHRE nanoapp creation. I've successfully built AOSP (13) for the development board Dragonboard845. Next planning to create nano app in CHRE. please ...
1
vote
0
answers
494
views
qemu-system-aarch64: Could not open '..../userdata-qemu.img': No such file or directory
Trying to get AOSP 12L to build and run on my computer but when I try to run the 'emulator' cmd I get:
emulator
emulator: Android emulator version 30.9.0.0 (build_id 7651928) (CL:N/A)
2023-08-01 23:26:...
1
vote
0
answers
145
views
Running aosp on uncommon display sizes possible?
I'm working on a project involving AOSP Android and display recognition. I've successfully built AOSP (13) for the development boards Hikey960 and Dragonboard845, and most monitors work flawlessly ...
0
votes
1
answer
527
views
GrapheneOS custom build fails to boot after adding prebuilt APK under external/MyApp and updating handheld_product.mk
am building a custom version of GrapheneOS and have been attempting to include a prebuilt APK (Mdm.apk) into the build. To achieve this, I added the APK to the 'external/MyApp' directory and then ...
0
votes
0
answers
612
views
insmod: failed to load /vendor/lib/modules/circular-char.ko (AOSP-barbet) (Pixel 5a)
I am new with AOSP and inserting kernel modules.
I copied the module to /vendor/lib/modules/ on my phone and then tried to insmod, which is when I get the error.
I think I have made it against the ...