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
64
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 ...