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.

Questions about Android source code and dependent themes: building from the source, contributing, porting etc.

  • Android Open Source Project
    Contains all necessary information about the Android source code. Start here.

  • Android Tools Project Site
    Information about contributions to the Android Developer Tools subproject.

  • android-platform:
    General discussion about the Android Open Source platform.

  • Android Building:
    Discussion on building the Android source code, and on the build system.

  • Android Contributors
    Developer discussion forum about contributions to the Android open-source software.

  • Android Linux Kernel Development
    Developer discussion forum about Android Linux Kernel development, debugging and porting.

  • android-porting:
    Discussion forum about the specifics of porting Android to individual devices, from obtaining toolchains and merging kernel drivers all the way to configuring or modifying applications for the specific configuration.

3064 questions
29
votes
1 answer

Does Android use OkHttp internally?

This is a stack trace I get when running an Android app I recently inherited. We're not using OkHttp as an explicitly dependency, and the com.android.okhttp in the trace makes me think the AOSP is using OkHttp now internally? java.lang.Throwable:…
user3837683
  • 325
  • 1
  • 3
  • 6
28
votes
1 answer

What is the use of LOCAL_MODULE_TAGS?

I want to update my Android.mk file in a package in order to build that new package, but I don't understand what the purpose of the LOCAL_MODULE_TAGS is. What does the LOCAL_MODULE_TAGS do?
28
votes
8 answers

Android x86 porting, unable to make it work

I'm kind of new to the whole porting issue and I got to it because of the slowness in the emulator provided with the Android SDK. I downloaded the android-x86-3.2-RC2-eeepc and android-x86-3.2-RC2-tegav2 ISO-es (from this site) and tried them on the…
Mr G
  • 297
  • 1
  • 3
  • 7
28
votes
5 answers

Building Android from sources: unsupported reloc 43

When I'm compiling Android 5.1.1, I get dozens of errors like this: ... ... ... libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43 libnativehelper/JniInvocation.cpp:165: error: unsupported reloc…
Christian Rädel
  • 581
  • 1
  • 5
  • 13
27
votes
2 answers

Android repo command and switching branches

I feel I have a pretty good understanding of git, but when it comes to the repo command, I get lost. I've read about the repo command, but I'm still not sure how it ties everything together. My biggest question is can I change my current branches…
woodsdog
  • 273
  • 1
  • 3
  • 5
27
votes
6 answers

How can I check out Android source code in Windows OS?

I try to search for it but I just cant. I am running Windows 7 on Lenovo G460 laptop. I tried to install Ubuntu on it but I cannot use Wireless to connect to the internet for some reason. Is there anyway for me to get a look at Android source code…
RobGThai
  • 5,937
  • 8
  • 41
  • 59
27
votes
1 answer

Android source code and repo - What exactly is happening when getting code

I have come across plenty of short questions on minimal aspects of using repo to get Android source or very broad definitions of what repo does and as a result don't really understand what is happening when I use repo. I am following the…
btalb
  • 6,937
  • 11
  • 36
  • 44
26
votes
1 answer

What do I need to know to port Cyanogenmod to unsupported phones/tablets?

What do I need to know to port Cyanogenmod to currently unsupported android phones and tablets? Does it involve modifying and building the kernel from source? Does it involve modifying and building cyanogenmod from source? Where can I get the base…
James T
  • 1,079
  • 3
  • 13
  • 17
26
votes
0 answers

Error inflating class EmojiPalettesView in LatinIME(AOSP)

I checked out Google LatinIME. Then I imported the java folder into Android Studio. I ran it, set it up (I chose a keyboard in the phone settings, I chose a language layout) But during testing (by focusing on edittext) the application crashes with…
No Name
  • 741
  • 8
  • 18
26
votes
1 answer

Create specific device tree for AOSP

I followed official Google`s tutorial to build my own AOSP and succeeded in all steps: I have a "Pure AOSP version" running on a nexus emulator. https://source.android.com/source/building.html The story is I have some rare device came with some…
michael
  • 3,835
  • 14
  • 53
  • 90
25
votes
1 answer

Getting Security exception while trying to fetch networkcapabilities on android 11

I am getting SecurityException followed by RemoteException while trying to access below code. API val networkCapabilities = connectivityManager.getNetworkCapabilities(connectivityManager.activeNetwork) Exception getting Fatal Exception:…
25
votes
6 answers

Android source code compile error: "Try increasing heap size with java option '-Xmx'"

Error happens when I try to compile Android source code(Sourcecode-version: 6.0.1; RAM: 6G; host system: ubuntu 14.04),log is below: including ./system/netd/Android.mk ... including ./system/security/keystore-engine/Android.mk ... including…
Eddy.Liu
  • 253
  • 1
  • 3
  • 6
24
votes
6 answers

Foreground service getting killed from Oreo

I have written a foreground service which is working properly for all OS version lower than Oreo. From Oreo application process is getting killed after 5 minutes of closing and removing the application from recents. As per android developer…
Sagar Trehan
  • 2,401
  • 2
  • 24
  • 32
24
votes
4 answers

android 7.1.2 + ARMv7

I met this problem when I was compiling the Android 7.1.2 source code after I updated my debian. I do not know what is the real problem . It seems problem from the flex. However, how can i solve it? FAILED: /bin/bash -c…
Peng
  • 241
  • 1
  • 2
  • 6
23
votes
4 answers

AOSP repo sync takes too long

I'm trying to learn Embedded Android from the book with the same name. And the author suggested working with AOSP gingerbread branch. So I followed to download the source: $ repo init -u https://android.googlesource.com/platform/manifest.git -b…
user3011609
  • 331
  • 1
  • 2
  • 3