Skip to main content
The 2024 Developer Survey results are live! See the results

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
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 ...
midnite's user avatar
  • 5,236
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/...
Travis's user avatar
  • 2,180
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 ...
Thomas Hofmann's user avatar
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?
Pablo Fernandez's user avatar
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, ...
Zyris Development Team's user avatar
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 ...
CodeGuru's user avatar
  • 736
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 ...
Daniel Benedykt's user avatar
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 ...
Andrew T.'s user avatar
  • 4,656
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 ...
Meraj Ahmad's user avatar
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.
user1253435's user avatar
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 ...
Sagar Trehan's user avatar
  • 2,446
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 ...
Cattivo's user avatar
  • 742
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 ?
Shridutt Kothari's user avatar
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 ...
Mita_'s user avatar
  • 783
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 ...
David Prun's user avatar
  • 8,413

15 30 50 per page
1
2 3 4 5
23