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
43
votes
8 answers

Emulator can't find 'Linux version ' string in kernel image file

I was building AOSP for the Nexus Player and after successful compilation I tried to run the emulator and the message I received is: emulator: ERROR: Can't find 'Linux version ' string in kernel image file:…
Mita_
  • 753
  • 1
  • 7
  • 10
42
votes
0 answers

Generated system.img not running on emulator

I wanted to build a custom ROM for Android TV. I have followed the steps given on the Android Source Code - AOSP website and downloaded the source using the commands below: repo init -u https://android.googlesource.com/platform/manifest -b…
42
votes
2 answers

How does Modem code talk to Android code

I would like to know high level idea of how Android Modem code will call/pass message to Android application layer. Say we take SMS for example. If network sends SMS and Modem (say Qualcomm C code parses it) how is it transmitted to Android…
David Prun
  • 8,203
  • 16
  • 60
  • 86
40
votes
1 answer

What does repo init and repo sync actually do?

I posted this question at Android Enthusiasts but figured it was the wrong place to ask, so I deleted it from there and asking it "again" here. This is such a noob question, and pardon me if it is, but I just want to understand the underlying…
Poly Bug
  • 1,514
  • 1
  • 14
  • 27
36
votes
1 answer

What is boot.img file in android?

I am building the android source code and getting new system.img . I try to flash the new system.img on a device and I see that I need another file called boot.img. What is this file ? what is used for ? how can I get it for my device ?
Foad Rezek
  • 694
  • 2
  • 10
  • 22
36
votes
3 answers

What are strong pointers and weak pointers

I am confused with the notion of "strong pointer" and "weak pointer". Diane Hackborn herself said that: The object will remain around while there are strong pointers; it is destroyed once the last one is released. All you can do with a weak …
Max
  • 3,824
  • 8
  • 41
  • 62
35
votes
7 answers

Can't locate Switch.pm

How do I solve this error? Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18…
Deepak Singh
  • 1,079
  • 2
  • 11
  • 15
35
votes
1 answer

What to do about curl clone.bundle error on AOSP repo sync

Upon downloading the master branch from AOSP I get the following error: curl: (22) The requested URL returned error: 404 Not Found Server does not provide clone.bundle; ignoring. Why is this error coming? Log: * [new tag] …
powder366
  • 4,351
  • 7
  • 47
  • 79
35
votes
1 answer

How do I set the default properties in an AOSP build?

Where can I change the default Android device properties in my custom AOSP build? For example: GPS - ON; Sync - ON; Brightness - AUTO; Bluetooth - OFF; WiFi - OFF; Sound - default sound; Vibrate when ring - OFF; These settings should be defined…
Veaceslav Gaidarji
  • 4,261
  • 3
  • 38
  • 61
34
votes
2 answers

Source of Android's lock screen

I am looking for the source code of the android lock screen. It can be for any version of Android (1.5, 1.6, 2.0, etc). I tried looking in the repository at: https://android.googlesource.com/, but it doesn't look like it's under…
Daniel Benedykt
  • 6,496
  • 12
  • 51
  • 73
33
votes
2 answers

Building a particular module in the android source code

I am working on an android source code which I have downloaded from source.android.com. After a full build I went through this site http://elinux.org/Android_Build_System which explains the android build system. When I make changes in…
dead programmer
  • 4,223
  • 9
  • 46
  • 77
31
votes
2 answers

What does @UnsupportedAppUsage annotation depict

I am building an Enterprise app which has system permission and it requires to use a function from BluetoothAdapter class setScanMode. This is a hidden API which is only available for system signed apks, now this function has @UnsupportedAppUsage…
Manishika
  • 5,478
  • 2
  • 22
  • 28
30
votes
2 answers

Why does a protected android:onClick method in Activity actually work?

Suppose you define android:onClick="doClick" in your Activity as protected void doClick(View view) { } The documentation states that This name must correspond to a public method that takes exactly one parameter of type View. This is a given…
tynn
  • 38,113
  • 8
  • 108
  • 143
30
votes
5 answers

Where is the source code of Android Architecture Components?

Can't find the source code of new Android Architecture Components. Was it published? If it was, where? If the source is in AOSP, please specify which specific repo project should I use with repo sync [PROJ_NAME] in order to get it.
Vasiliy
  • 16,221
  • 11
  • 71
  • 127
29
votes
9 answers

SyntaxError: invalid syntax to repo init in the AOSP code

I have tried to repo init the source code Ubuntu build machine and it is successfully able to clone the code. repo init -u git@github.com:xxx/xx_manifest.git -b xxx Now I am trying repo init the source code in VM Ubuntu machine. In between getting…
GNK
  • 1,036
  • 2
  • 10
  • 29