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
662
votes
7 answers

Where can I find Android source code online?

Where can I browse the source code for any Android Open Source Project (AOSP) application (for example the Contacts application)? Is the only way to clone the entire source repository for all of AOSP?
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
163
votes
2 answers

adb devices => no permissions (user in plugdev group; are your udev rules wrong?)

I am getting following error log if I connect my android phone with Android Oreo OS to Linux PC $ adb devices List of devices attached xxxxxxxx no permissions (user in plugdev group; are your udev rules wrong?); see…
Abhishek Dwivedi
  • 6,557
  • 3
  • 15
  • 20
135
votes
3 answers

What does @hide mean in the Android source code?

For the Activity source code, line 3898 (close to the bottom): /** * @hide */ public final boolean isResumed() { return mResumed; } What does @hide mean? I found my public class ChildActivity extends Activity { ... } cannot use/see…
midnite
  • 5,157
  • 7
  • 38
  • 52
105
votes
1 answer

Adding a new network bearer to Android

I'd like to add new bearer(s) to Android (rooted/custom build), to be a peer with Wifi and GPRS. I have done some Android development and I am aware that (in Android 2.2) there are constants for WIFI and GPRS. Does this mean that I will need to be…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
89
votes
10 answers

How do I build the Android SDK with hidden and internal APIs available?

I want to rebuild the Android SDK (or rather only the android.jar) to include hidden and internal APIs. I could not find any documentation or discussion doing on how to go about this. I have an Ubuntu CyanogenMod build environment already setup that…
Thomas Hofmann
  • 1,046
  • 1
  • 8
  • 7
87
votes
3 answers

What are ODEX files in Android?

After some android apps installed, I found that it will change to odex file (not apk) in smartphone. How does it happens? Who can teach me, I am very interested about it.
user1253435
  • 871
  • 1
  • 7
  • 3
79
votes
1 answer

Modifying in-call voice playback in Android custom ROM

I would like to modify Android OS (official image from AOSP) to add preprocessing to a normal phone call playback sound. I've already achieved this filtering for app audio playback (by modifying HAL and audioflinger). I'm OK with targeting only a…
SirKnigget
  • 3,614
  • 2
  • 28
  • 61
78
votes
1 answer

What is the difference between system apps and privileged apps on Android?

So in 4.3 there was a concept of System applications. APKs that were placed in /system/app were given system privileges. As of 4.4, there is a new concept of "privileged app". Privileged apps are stored in /system/priv-app directory and seem to be…
Andrew T.
  • 4,598
  • 4
  • 35
  • 54
56
votes
8 answers

How to compile the Android AOSP kernel and test it with the Android Emulator?

Has anyone successfully compiled the android kernel and tested it in the Android emulator, and if so is there anything that special that needs to be done? Documentation for the SDK is excellent, however documentation for compiling the kernel and…
56
votes
4 answers

Restart android machine

we have android + linux m/c, we log in into linux shell and boot the machine in android GUI. now we have the some script that is running on the same machine through linux shell. In that case when the script hangs we need to restart android machine.…
Sagar
  • 2,315
  • 7
  • 25
  • 34
54
votes
2 answers

How does the Android repo manifest repository work?

The Android source is a large hierarchy of git repositories. They are managed by a custom script called repo. Repo determines which git repositories to manage using a manifest.xml. The manifest.xml of Android is hosted in a git repository along with…
Bjarke Freund-Hansen
  • 28,728
  • 25
  • 92
  • 135
54
votes
8 answers

Where is android.os.SystemProperties?

I'm looking at the Android Camera code, and when I try importing android.os.SystemProperties, it cannot be found. Here is the file I'm looking…
Travis
  • 2,170
  • 1
  • 19
  • 21
48
votes
2 answers

Does the Android OS release a wakelock if the app or service holding it is killed?

I have question about wakelock. In cases shown below, does android OS release wakelock (PARTIAL_WAKE_LOCK if you need to specify) to prevent wakelock was left acquired and wasting battery until turning power off (not sleep). Case 1-a: App has…
Tomcat
  • 1,405
  • 3
  • 22
  • 37
47
votes
4 answers

How do I add APKs in an AOSP build?

I need to add some 3rd party APKs to my AOSP build. What folder should I keep these APKs so that when I build the code and the image is created, it is installed in the emulator? It looks like the system apps are kept in the packages/app folder so I…
CodeGuru
  • 726
  • 1
  • 6
  • 13
43
votes
4 answers

How to get android's native methods source code

Is it possible to get and watch at Android's program component's native methods code. If anyone knows how to, please let me know.
teoREtik
  • 7,886
  • 15
  • 46
  • 65
1
2 3
99 100