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
340
questions
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 ...
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/...
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 ...
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?
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, ...
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 ...
34
votes
2
answers
66k
views
Source of Android's lock screen [closed]
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 ...
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 ...
9
votes
3
answers
28k
views
how to use 32bit native libraries on 64 bit Android-L platform
I have a Android application which i compiled with AOSP(Kitkat) as android system application and it was running fine. My application is dependent on native code compiled with Android-NDK as 32 bit ...
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.
25
votes
6
answers
17k
views
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 ...
10
votes
6
answers
17k
views
Error adding prebuilt apk with shared libraries to AOSP
I tried to add a prebuilt APK to my Android build. The APK contains several shared libraries (*.so files). It compiles without problem, but I still get an error from the app indicating that the ...
2
votes
3
answers
25k
views
Android: How to pair bluetooth devices programmatically?
Please any one help me with pairing my android phone with other discovered phone programmatically ?
45
votes
8
answers
32k
views
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 ...
43
votes
2
answers
23k
views
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 ...