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,178
questions
664
votes
7
answers
291k
views
Where can I find Android source code online? [closed]
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?
179
votes
2
answers
192k
views
adb devices => no permissions (user in plugdev group; are your udev rules wrong?) [duplicate]
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 ...
135
votes
3
answers
59k
views
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 ...
105
votes
1
answer
5k
views
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 ...
89
votes
10
answers
62k
views
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 ...
88
votes
3
answers
141k
views
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.
80
votes
1
answer
94k
views
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 ...
79
votes
1
answer
4k
views
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 ...
59
votes
4
answers
158k
views
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 ...
56
votes
8
answers
87k
views
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, ...
55
votes
8
answers
110k
views
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 at:
https://android.googlesource.com/platform/packages/...
54
votes
2
answers
47k
views
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 ...
50
votes
1
answer
2k
views
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://...
48
votes
4
answers
44k
views
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 ...
48
votes
2
answers
13k
views
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 ...