Questions tagged [android-source]

Questions about the source code and building of Android itself, contributing to the Android project, Android kernel development and porting. Do not use for Android application development questions except where specific to building applications as pre-packaged parts of the system.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

AOSP: fatal error: 'cstdio' file not found

I'm stuck with the error below while building a private vendor specific clone of AOSP. What's weird is that I have tried on 3 machines and everything works fine one the one machine that I cannot use. /...
copolii's user avatar
  • 14.3k
0 votes
0 answers
42 views

`repo init` did not specify `--depth`, causing the historical commits to be cloned. How to delete these historical commits to save space?

When I used the repo command to synchronize the Android source code, I forgot to add the --depth parameter, which caused all historical submissions to be included in the synchronization. I want to ...
stackcode's user avatar
0 votes
0 answers
18 views

AOSP Project - how do I change the minimum length required for setting a password from 4 to 6?

I have successfully built AOSP on my Ubuntu computer and I want to do some changes on the project I work on. One of them is, when choosing "Password" I want to change the minimum length for ...
TheFermat's user avatar
  • 206
0 votes
1 answer
26 views

Is there a way to modify and integrate the apps located in the packages/apps/ subfolder of the AOSP automotive source using Android Studio?

I am in charge of the application layer in AOSP and I am aware that typically, after developing an app, the APK is inserted into the AOSP source to make it a system app. What I am curious about is how ...
Taz's user avatar
  • 1,805
0 votes
1 answer
56 views

repo tool constructing invalid project urls

I have a repo manifest that declares a remote with an https fetch url. Given the number of projects in the AOSP manifest, typing a username/password for every project being synced is going to take ...
copolii's user avatar
  • 14.3k
0 votes
0 answers
33 views

Give my app permission to trigger a factory reset

I'm creating a system application on my own custom AOSP. I have managed to install the application on system/priv-app partition and signed it using the platform keys. This have worked like a charm ...
TomG's user avatar
  • 1
0 votes
0 answers
21 views

How to Build custom Kernel module for aosp13 for Raspberry Pi

Followed Steps Add module to the menuconfig: cd kernel/arpi/drivers/invcase/ # Invcase Device configuration menuconfig INVCASE tristate "Inverse Characters Case" default y help ...
Sidhiremath's user avatar
0 votes
0 answers
27 views

/dev/graphics/fb0 is missing in emulated Android 13

I'm running an Android 13 emulator (x86_64, API 33). I remember it was possible to access the framebuffer directly through /dev/graphics/fb0 or /dev/fb0, but it looks like in Android 13 the device is ...
user7401478's user avatar
  • 1,374
0 votes
0 answers
37 views

Even though we optimized the zygote preload in AOSP, why doesn't the SystemServer start earlier?

Here is my boot chart I optimized preload from ZygoteInit.java So, although the process usage has disappeared on the bootchart, the SystemServer does not start up faster. What am I missing?
Taz's user avatar
  • 1,805
0 votes
1 answer
40 views

Disable the status bar in full screen app on swipe up

I'm Working on AOSP 13. I have full screen apps installed in my device. When I open it, status bar and navigatino bar disabled. But after swipe up from bottom or swipe down from top both are visibled....
Margish thumar's user avatar
0 votes
0 answers
23 views

Tradefed configurations for C++ files

This Google page describes how to create Tradefed configurations for Java files: https://source.android.com/docs/core/tests/tradefed/fundamentals/full_example <configuration description="Runs ...
user14665305's user avatar
1 vote
1 answer
44 views

How to change WebSettings's setSavePassword as true in aosp source code Android 10?

I need to know which class sets the value of WebView's setSavePassword() to true. I have checked the framework source code of WebSettings in the path: frameworks/base/core/java/android/webkit/...
Shadow's user avatar
  • 6,884
0 votes
0 answers
15 views

What are the differences between tradefed and vts-tradefed?

I was looking online for an example for how to write own VTS tests and run them by Tradefed and found this article: https://source.android.com/docs/core/tests/tradefed/fundamentals/full_example . But ...
user14665305's user avatar
0 votes
1 answer
61 views

Building AOSP in Docker: too many open files

How do I resolve the too many open files error in my docker container? I'm attempting to create a Ubuntu 20.04 container for my AOSP build (vendor mods to our AOSP limit it to 20.04...) in Docker ...
Matt's user avatar
  • 1,968
0 votes
0 answers
41 views

HDMI status in standby mode

I need to find in AOSP code, where the intent android.media.action.HDMI_AUDIO_PLUG is sent, and after we receive intent android.intent.action.SCREEN_OFF, if there is possibility to send android.media....
Alokin's user avatar
  • 9
0 votes
1 answer
84 views

How to start an Android application on a virtual screen?

Goal I want to run an Android app (third-party), but not show it on the physical screen. Conditions Have the complete system source code (AOSP) Have root permission Attempts Try to create a virtual ...
forDream's user avatar
  • 386
0 votes
1 answer
42 views

using audio flinger in shared library to capture audio buffer in android system

I'm working on a native shared library that will be built inside aosp source tree, in this path "sdk-version/external" in this shared library i'm trying to use audio flinger to use some of ...
tareq sleem's user avatar
0 votes
0 answers
64 views

How to use RRO(Runtime Resource Overlay) in Android12?

As far as I know, when overlay APK is enabled, the application will refresh the UI by rebuilding the activity. This was true before Android 11, and the relevant code is as follows: However, in ...
rupeng xia's user avatar
0 votes
1 answer
65 views

How to map another keycode for back navigation in AOSP 13?

I am using AOSP 13 source code. To do back via adb shell adb shell input keyevent 4 4 is key code for back I want to map back navigation via key code 141, so that i can use above command for back ...
Margish thumar's user avatar
0 votes
0 answers
28 views

aosp security bulletin for Android 11

From where we will get the information about till which date(month-year) google will support security bulletin for android 11? security patch level for android 11.
Bhavana Vadodariya's user avatar
0 votes
1 answer
88 views

Producing a user build of AOSP with permissive SElinux policy

I am going to build an AOSP 13 for a Pixel 4a device. I have embedded a few system apps related to OTA functionalities. So, the system needs to be set permissive after each boot operation. I know that ...
Mehran Alidoost Nia's user avatar
0 votes
0 answers
30 views

How to investigate Android SafetyNet API in Android SDK?

I'm doing some research regarding Android SafetyNet API. I'm searching for the source code implementing the APIs, but I can't find any from the following 2 channels AOSP (Android Open Source Proejct) ...
Qiao's user avatar
  • 452
1 vote
0 answers
36 views

How to add resources to AOSP?

I currently have shared Java libraries added to my Android build, following the same structure as defined here: https://cs.android.com/android/platform/superproject/main/+/main:device/sample/...
Banana999's user avatar
  • 103
0 votes
0 answers
35 views

AOSP - how to get final contents of PRODUCT_PACKAGES while building

Different packages and components we can add via PRODUCT_PACKAGES tag in different mk files. I want to remove some unwanted packages while building AOSP for my target. But for some packages this is ...
himel's user avatar
  • 510
1 vote
0 answers
38 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 ...
Arti Gupta's user avatar
0 votes
1 answer
45 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 ...
Margish thumar's user avatar
0 votes
0 answers
30 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 ...
Invader Zim's user avatar
2 votes
1 answer
112 views

Invalid lunch combo: lunch 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/...
Wei Minn's user avatar
  • 199
1 vote
0 answers
46 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 ...
sumofty's user avatar
  • 11
0 votes
1 answer
80 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, ...
Hemanth Chowdary's user avatar
0 votes
0 answers
30 views

CLM920_830 Restoring image after a bad Unpacking and repacking recovery or boot image

Good morning, this is the first time I resort to your wisdom. As a practice, I was trying to modify the init.rc file on a custom device that runs Android 5.1 (CLM920_830). This device does not have ...
marlene yesenia's user avatar
0 votes
0 answers
85 views

How to boot AOSP 11 via U-Boot (RK3566/Quartz64-A)?

I'm trying to boot Android 11 using U-Boot and it's not decompressing the kernel image. My bootcommand is as follows: echo Starting AOSP boot sequence && env set devnum 0 && mmc dev $...
xdevs23's user avatar
  • 3,878
0 votes
0 answers
27 views

How to test for PackageInstaller.STATUS_FAILURE_INCOMPATIBLE

I have an android device and I have changed some strings in the framework and I want to test PackageInstaller statuscodes on it to check if it's actually done. How can I manually trigger each status ...
Shen's user avatar
  • 1
0 votes
0 answers
64 views

Build errors with Clang and Make. Executable "as" doesn't exist. Kernel Android 13

I tried to build lineage os 20 for my device(oneplus billie) and im getting some errors: clang-14: error: unable to execute command: Executable "as" doesn't exist! clang-14: error: assembler ...
Kra1v's user avatar
  • 1
0 votes
1 answer
67 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 ...
zhaomoney's user avatar
0 votes
0 answers
27 views

Android AOSP dev changelog

Where can I find a changelog for AOSP? For example, I have two versions android-9.0.0_r36 and android-9.0.0_r35. Where can I see what has changed between them? There is this web-page which has a list ...
synalice's user avatar
  • 198
0 votes
1 answer
45 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 ...
Margish thumar's user avatar
0 votes
0 answers
43 views

How to use vendor_boot partition to boot my raspberry pi 4 with AOSP? How to boot using GKI?

I was able to port AOSP on raspberry Pi. I followed this link to achieve the same. But know what I intent to do is? To boot up my Pi using GKI. Initially I had 4 partitions, Boot, System, vendor and ...
Mehran Mujawar's user avatar
0 votes
1 answer
69 views

what is the difference between uid and application id and user id in Android

if you're looking into the AOSP source code, you will find a lot of id , like userId, uid, and application. So what are those id, and what is the difference between each other
JUAN CHEN's user avatar
2 votes
1 answer
88 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 ...
Banana999's user avatar
  • 103
0 votes
0 answers
157 views

How can I compile the Android SDK with low RAM?

I'm trying to compile the Android SDK (version 11) via Docker scripts at gitlab.com/android-rebuilds/auto. For various reasons, I have to use equipment that has 8 GB of RAM. The storage space is huge. ...
Eqsz's user avatar
  • 1
0 votes
1 answer
53 views

How to clean a single Android lunch target only?

I've built two lunch 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: ...
zomega's user avatar
  • 1,894
0 votes
0 answers
34 views

What is "Comp Type" in surfaceflinger logs?

I am working on an issue and for that I had to look into dumpsys of SurfaceFlinger. There I am seeing there are two composition types, DEVICE and CLIENT. What is the difference between these two and ...
Shen's user avatar
  • 1
0 votes
0 answers
71 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/...
Klee's user avatar
  • 1
0 votes
0 answers
44 views

Cannot stat install-recovery.sh when building CM 13

I'm trying to run CyanogenMod 13 (Android 6.0) on an old Wiko Highway 4G (Android 4.4.2, Tegra 4i) but when I build with my device tree, I get an error that tells me: cp: cannot stat '/home/user/...
Alex F1-FERRARI's user avatar
0 votes
0 answers
75 views

USB wakeup from suspended state on Android 13.x IMX8MQ evk

I am unable to use USB wake-up feature of Android on IMX8MQ evk. I am using the following setup: -Imx8mq EVK -Android 13 -Kernel 5.15.71-dirty -GSM modem is attached via USB I have set the following ...
Muhammad Awais's user avatar
0 votes
0 answers
72 views

Building Android: Build error CtsAppBindingHostTestCases.LOCAL_TARGET_REQUIRED_MODULES : illegal value CtsAppBindingService1 : not a device module

I'm trying to build Android, specifically /e/OS/ (based on lineageOS), for my device (ZTE Blade V2020 / Codename P671F60) following the official wiki. I synced the sources, set up a minimal device ...
Jomosoto's user avatar
0 votes
0 answers
76 views

Building Android: lunch warning about building a 32-bit-app-only product on a 64-bit device

I'm trying to build Android, specifically /e/OS/ (based on lineageOS), for my device (ZTE Blade V2020 / Codename P671F60) following the official wiki. I synced the sources and set up a minimal device ...
Jomosoto's user avatar
0 votes
2 answers
162 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/...
Hello There's user avatar
0 votes
1 answer
150 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 ...
GNK's user avatar
  • 1,048

1
2 3 4 5
63