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
16
votes
2 answers

Difference between `call inherit-product` and `include` in AOSP makefiles?

I'm looking through the Android Open Source Project makefiles, and I'm seeing what appears to be two different ways of including another makefile. For example, master/build/target/product/aosp_arm64.mk has these lines: PRODUCT_COPY_FILES +=…
user4336026
16
votes
1 answer

Build gradle system app as part of AOSP build

I have a custom rom based on AOSP and I am working on a system app that is packaged during the rom build just like any other system app. Is it possible to switch this app to a gradle style app and build that specific app with gradle during the AOSP…
Distwo
  • 11,569
  • 8
  • 42
  • 65
16
votes
2 answers

How to modify AOSP to allow specific apps to get root access?

I'm working on AOSP. I've successfully added my apk to build. Now I want to give root access to my app. I don't want to provide root access to other apps or to install the Superuser app in my build. I just want to add my app to get root access. How…
Neji
  • 6,591
  • 5
  • 43
  • 66
15
votes
4 answers

Add prebuilt APKs to Android AOSP system.img

I'm building AOSP from source. What I would like to do is to include a few prebuilt files in the generated system.img as part of the make process. I'm trying to find the actual file that creates the system.img and add a few lines there. Any…
Erez A. Korn
  • 2,697
  • 3
  • 24
  • 32
15
votes
3 answers

Is there a working public mirror of android.git.kernel.org?

[Sorry for the dumb question. This has got to be a FAQ the past few days, but I can't find anything other than people complaining that the repo is down and to check the news...] I have been unable to use repo to access http://android.git.kernel.org…
Alex
  • 151
  • 1
  • 3
15
votes
5 answers

git error fatal: fetch-pack: invalid index-pack output

I have been trying to clone the aosp repo, it worked fine last week but hasn't been for the last two days. I narrowed it down to the deqp dependecy. With the however I got multiple errors but always resulting in "fatal: fetch-pack: invalid…
koniety
  • 153
  • 1
  • 1
  • 7
15
votes
5 answers

Building Android from source - emulator and AVDs

I have built the Android source for the emulator. I read in the Android Source documentation that the path to 'emulator' is added autmatically during a successful build. However I have two questions about this: If I open a new shell or close my…
Jack
  • 10,313
  • 15
  • 75
  • 118
15
votes
0 answers

How to enable wake on usb (remote wakeup) in android?

I have an AOSP tree compiled on my board. I bought a wireless keyboard and connected it to my board via usb port. I expect when the board is in the suspend state, it will wakeup by pressing a key on keyboard. But it is not so. I tried several ways…
Saleh
  • 1,819
  • 1
  • 17
  • 44
15
votes
4 answers

How to add a system service to the Android Framework

I want to add my own framework code that runs in the Android "system_server" (handles all the system level services). My service loads a JNI library that talks to a driver I have added to the kernel. The service is designed to allow an app to…
ashughes
  • 7,155
  • 9
  • 48
  • 54
15
votes
2 answers

SubscriptionInfo.getMnc() returns the same value for both the SIMs with different carriers

I was trying to get the MCC and MNC number (basically I want the IMSI number but these will also suffice) in Android 5.1 device having dual Sim (both active). As 5.1 supports dual Sim so I used the Subscription manager like this: SubscriptionManager…
15
votes
3 answers

How to import the AOSP apps (launcher, contacts,...) into Android-Studio?

Background Google has a website for all of the AOSP apps here, which includes its launcher, contacts etc... The problem I'd like to know how to import those apps. More specifically, the launcher and the contacts apps (though I'd also like to know…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
14
votes
1 answer

Android Repo init failed

I think i follow instruction from this site very carefully http://source.android.com/source/downloading.html but when i try this repo init -u https://android.googlesource.com/platform/manifest i got the following error. repo init -u…
minhaz
  • 4,233
  • 3
  • 33
  • 49
14
votes
1 answer

Build Android with Superuser

Does anyone know how to include super-user privileges when building android from source (AOSP)?
Kevin Parker
  • 16,975
  • 20
  • 76
  • 105
14
votes
2 answers

Android: Kernel Debugging with KGDB

I'm trying to do kernel debugging for my Nexus One, and have been following instructions from http://bootloader.wikidot.com/android:kgdb. I was wondering if someone has actually got this to work? And has anyone done a more up to date solution for…
Hank
  • 3,367
  • 10
  • 48
  • 86
14
votes
2 answers

How to compile an AOSP project with my own custom bootanimation?

I'm trying to compile AOSP with a custom bootanimation, but with no success. And I just have run out of approaches... To change bootanimation, I've already done: created a .zip file with the following structure: bootanimation.zip { desc.txt …
Marcelo
  • 2,075
  • 5
  • 21
  • 38