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.
android-source
3,177
questions
0
votes
0
answers
32
views
Change default AOSP IME to custom IME [closed]
I have developed a custom keyboard (IME) for Android that I'm able to install and it works just fine on the device.
The next thing that I want to achieve is to make this keyboard as the default ...
0
votes
0
answers
28
views
How to integrate a native C app into a custom LineageOS 21 ROM?
I successfully built LineageOS 21 on my Ubuntu 20.04 machine for the emulator:
cd lineageos
source build/envsetup.sh
breakfast sdk_phone_x86_64
mka
I want to integrate a native C application to the ...
1
vote
0
answers
36
views
AOSP 6.0 , init process , try print call stack
Now I am learing aosp 6.0 code .
When i read init process code , which on the path of system/core/init/ , I want to print function call stack .
I try write the code on init.cpp
#include <utils/...
0
votes
0
answers
22
views
AudioFormat builder setEncoding supported encodings doubtful
I'm trying to set the encoding for an instance to ENCODING_AAC_LC
This is a snippet of what I'm trying to do
ref = JNI_CALL_OBJECT( p_afmt_builder,
jfields....
0
votes
0
answers
38
views
AOSP Development: Kotlin cannot access R class id, but Java can! Why?
I started diving into AOSP development recently and I am following some code labs originally written in Java on how to customize the SystemUI (for Automotive AOSP).
I have checked that parts of ...
-1
votes
0
answers
48
views
Best Practices for Managing Custom AOSP ROM Development and Handling New Android Versions [closed]
I have successfully built a custom AOSP ROM on Google Cloud VM engine and my local machine. While I'm familiar with the process of building AOSP ROMs, I need advice on the best practices for tracking ...
-3
votes
0
answers
41
views
How can I View Android source code on Mac?
I am a Android development engineer,I want to view Android source code on a Mac.
I downloaded the framework source code to my Mac,but code cannot jump and highlight hint.I want to be able to view the ...
1
vote
0
answers
69
views
Auto grant runtime permissions via default-permissions.xml for AOSP 12 or later are not working in Android
Default permissions are not auto granted for permissions categorised as runtime or dangerous permissions via default-permissions-example.xml file for an application that I am trying to run as a system ...
0
votes
0
answers
35
views
I want to build androidx's appcompat and integrate in AOSP build
I want to build androidx's Appcompat(done some changes) and integrate in AOSP.
When I use the below command, it generates debug and release aar.
android_xsource_code/androidx/frameworks/support$ ./...
0
votes
0
answers
28
views
Shared library need to add in android.bp
I have created a shared lib named liberCore.so and this lib I have put into where is my all src files and this file having some headers which I kept into include folder this lib I am unable to add ...
0
votes
0
answers
35
views
AOSP Cuttlefish orchestrator: How to create a host with local Android Image?
I was working hosting Android on my PC with Cuttlefish docker orchestrator and cvdr tool.
I followed the instruction given on https://github.com/google/cloud-android-orchestration/blob/main/docs/cvdr....
0
votes
1
answer
35
views
Build AOSP 13 for tablet emulator
What should be the lunch target to build AOSP 13 code for tablet emulator
I can launch phone emulator using lunch target sdk_phone_x86_64-userdebg.
But I want to build AOSP for tablet emulator
0
votes
1
answer
58
views
Remove taskbar in AOSP 13
I am working on AOSP 13.
AOSP code is built for tablet device.
Currently navigation icons are in task bar, is there a straight forward way to permanently remove task bar in AOSP code and navigation ...
0
votes
0
answers
113
views
How does Android parse resources.arsc for certain apps? AAPT and AAPT2 are giving different results
I am trying to put an android app APK to my analysis tool. Specifically Microsoft "Company Portal" (version 5.0.6295.0 as of this writing, you can download it and pull from device via adb) ...
0
votes
1
answer
63
views
Replace LegacyCamera with Camera2
In this device with AOSP 10, I have currently the LegacyCamera API for the camera but I want to replace it with Camera2.
What should I change to have it build and install Camera2 by default instead of ...
1
vote
1
answer
75
views
Custom AOSP Vendor Image: SIM Card Not Detected After Flashing in Android 13 for Pixel 7a(lynx)
I customized the vendor image in AOSP by modifying BoardConfigPartial.mk to generate a custom vendor image rather than using the prebuilt one. After successfully flashing the custom vendor image onto ...
0
votes
0
answers
40
views
App crashed after importing framework built from AOSP
I am a new AOSP developer. I modified some files in AOSP and ran with target sdk_car_x86_64-userdebug, and then I made the framework using below command:
m framework -j32
m framework-minus-apex -j32
...
0
votes
1
answer
57
views
Build Issue for Lineage (21.0) gsi x86_64 eng. Redundant artifact path entries
I followed the instructions for building Lineage OS 21.0 for emulator/avd (from https://wiki.lineageos.org/emulator) and when building (after calling "mka" command) I receive the following ...
0
votes
0
answers
42
views
Android CarEvsService
I have been exploring CarEvsService in android lately. With a google CameraEvsPreview App(https://cs.android.com/android/platform/superproject/+/master:packages/services/Car/tests/...
0
votes
0
answers
38
views
Need to create support of lineage 19.1 for gta4l (LTE)
I was creating a custom ROM build for gta4l for lineage19.1. I have configured vendor, system and device files properly from many sources and the build has started. Now the issue is it's syncing for ...
1
vote
0
answers
48
views
How to do native library interposition in Android?
I have a shared library that interposes some GLES calls (glClear, for example).
It works fine on Linux with a simple LD_PRELOAD, but I can't get it working on Android.
My library prints to logcat on ...
0
votes
0
answers
69
views
Managing AOSP Devices with Device Admin API
can AOSP devices be managed by the device admin API?
Hi,
I have been researching on the android device management for quite some time and I eventually got to know that the 'ANDROID MANAGEMENT API' is ...
0
votes
1
answer
43
views
How to build Android app with gradle in AOSP?
AOSP version is 8.1.0.
I have an Android App named Settings. I Develop with Android Studio and pushed it in packages/apps/MySettings.
Directory like this
MySettings
├── AndroidManifest.xml
├── Android....
0
votes
0
answers
23
views
Where do I find the concrete class for the CookieManager?
I'm looking for the concrete class of CookieManager found in the Android Webkit framework. I'm interested of how CookieManager.getInstance.flush() works, since i might have e bug caused by the method.
...
0
votes
1
answer
50
views
I built the Pixel 4 kernel and flashed it to the phone, but I found that touch functionality is not working
I built the Image.lz4 kernel file according to the https://source.android.com/docs/setup/build/building-kernels guide. Then, while building AOSP, I specified the kernel file by using the export ...
0
votes
0
answers
32
views
Android Camera doesn't set the orientation EXIF tag
In the storeImage function in the LegacyCamera app of AOSP, there is a call to Exif.getOrientation to obtain the orientation from the image to set it later when storing it. In getOrientation, if the ...
1
vote
1
answer
40
views
Android: Where does CameraInfo gets the information from?
I am working on an Android device with a camera set up in vertical orientation. The problem I am trying to fix is that, when you take a picture with the Camera app, the image gets saved in horizontal ...
0
votes
0
answers
23
views
IME window (a custom Keyboard) over not above navigationbar in android
I want IME window (Keyboard window) over the navigation bar. I have customized Keyboard which want to be over not above the navigationbar. I tried application_overlay however it is cover whole screen ...
0
votes
0
answers
58
views
Android Google AOSP Navigation Bar is gone
I'm using Android 13 Google AOSP.
In Settings -> System -> Gesture -> System Navigation, neither Gesture Navigation nor 3-button Navigation works.
Gesture navigation works normally, but the ...
0
votes
0
answers
20
views
Layer::postDecStrong null pointer exception
My system is based on Android 11 AOSP. I've already implemented the following defensive checks in RenderState::postDecStrong, but during stress testing, I occasionally encounter the following null ...
0
votes
1
answer
94
views
OTA in AOSP build
I have developed an app with system permissions that downloads a .zip file from an Android 14 R33 build.
The app downloads the file to /data/ota_packages/update.zip.
Then I perform a RecoverySystem....
0
votes
0
answers
59
views
2 Apps / Multi-window emulator in Android Studio
I have 2 Android Automotive OS apps on my emulator and I was wondering if it's possible to run and display both in 2 separate windows?
They are 2 modules of the same project and are installed on the ...
0
votes
0
answers
65
views
AOSP missing dependencies: android.hardware.radio-library.compat
I'm kinda new on this topic, and I need to add a new radio device/RIL but I've some errors while I'm trying to build saying that it miss some dependencies.
echo "module libril-lib missing ...
0
votes
0
answers
81
views
Crosvm Gives a Mounting Error In WSL2 when launching Cuttlefish
I have been trying to get Cuttlefish working on Windows's Subsystem for Linux (WSL2) running Ubuntu 22.0.4.4 to emulate Android, and after rebuilding the Linux kernel to fix some vsock issues, per the ...
0
votes
1
answer
103
views
Overriding AOSP keyboard
Error:
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.inputmethod.latin.CarIME" on path: DexPathList[[zip file "/data/app/~~6CnZ_EwlgHaoEjQXjHx4lA==/com....
1
vote
0
answers
64
views
Change bottom system softkey navigation ActionBar for Android phones with hardware keys
I haven't found any resources for a non-system app to write to this menu.
Many flip phones with differing UIs share this exact same bottom navigation bar, but I can't find its API. External apps, ...
0
votes
2
answers
110
views
Update the ICU and Timezone repositories for the AOSP on Android 9
I work on the AOSP changes for the tablet device we develop.
It's based on Android 9 system. And it should support the latest time zones.
The ICU repository we use currently:
https://android....
0
votes
0
answers
41
views
eBPF: tc vs. cgroup skb vs. xt_bpf routes?
What is the difference between attaching an eBPF function to a TC route, an cgroup skb, or an xt_bpf route?
I'm attempting to access all network packet traffic from an Android device which doesn't ...
0
votes
1
answer
115
views
Need some guidance on how to salvage a repo sync following a computer crash
I was at the tail end of syncing a repository for an AOSP build when my computer froze. I couldn't get it going so I manually shut it down. When I rebooted, I resarted the sync which only took 10 ...
0
votes
0
answers
41
views
Hide navigation bar at AOSP codebase level without touching custom navigationbar application for Automative application
I have an automative application where I dont have access to application layer (custom application like navigation bar etc). Custom navigation bar has been developed. I want to disable this custom ...
1
vote
1
answer
176
views
Errors when building sdk-addon in recent AOSP (Android 14)
I am trying to build sdk addon in AOSP with Android 14 branch. the only example I came across is in the device/sample folder of AOSP tree. In README.txt, it says
To build the add-on:
lunch ...
0
votes
0
answers
54
views
How to configure SEPolicy rules in order to gain access to network in a vendor service?
I have a vendor service (can't make it system one) which has trouble accessing network.
I have written a usual sepolicy rule with
allow myservice self:udp_socket { read write create connect };
allow ...
0
votes
0
answers
23
views
junit.framework.AssertionFailedError: Test is stuck, see ANR stack trace for more info. You may need to create /data/anr first
I'm running Test cases but facing the below error.
junit.framework.AssertionFailedError: Test is stuck, see ANR stack
trace for more info. You may need to create /data/anr first
The error occurred ...
1
vote
0
answers
47
views
How to change partition size when building an AOSP target
I am trying to build an emulator from AOSP branch android-14.0.0_r45, and the target product is sdk_tablet_arm64-userdebug. This is not shown in lunch menu, but I can still use it in lunch and build ...
3
votes
0
answers
69
views
What is the difference between ndk backend and cpp backend in AOSP?
Sorry if my question is silly since I new to aosp platform side.
I see there are two backend for developing Binder Service in aosp platform side in c++. (Ignore java for time being)
Example:
...
0
votes
0
answers
75
views
Persist data after factory reset?
I have full access to AOSP code and need to have some data (integer number) persisted after factory reset.
I guess the best option would be to read/write to a file, but I don't know where to store it ...
0
votes
0
answers
55
views
How to load Java class with Class.forName() in Android app?
I hava an Android app and want to invoke a Java class, e.g.,
com.example.ThatClass
during runtime (intead of adding the Java class into my app project at compile time).
In the traditional Java ...
0
votes
0
answers
76
views
Problems adding APKs in an AOSP build
I added my app folder in /packages/apps/'folder app'. Inside my 'folder app' I have my_app.apk and android.mk:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := tests
...
0
votes
0
answers
48
views
Inquiry Regarding AVRCP Implementation
I am currently constructing an AOSP IVI system where the requirement is to use AOSP as a Bluetooth receiver capable of controlling audio playback on a mobile phone (play/pause).
I have successfully ...
0
votes
0
answers
49
views
How to add a build and runtime checksum to Android AOSP system apps?
Want to add a build and runtime checksum to Android 12 or 13 AOSP or LinesgeOS Settings, TvSettings apps.
They must match for the app to open to prevent unpacking, tampering with the apps.
https://...