Profile
using the Andriod SDK as application development, we need to debug the source code, may need access to a alley among the Android API function to debug. However, if the target is not associated with the corresponding version of the SDK version of the source code, it would prompt you to find the source code.
Figure: tin no detect the Android source code clues
We all know the Android system is one open-source project, the Internet can download the source code. General quest on the Internet, download the source code will find a kind of ways, such as the use Git and Repo, android source code download site is http://android.git.kernel.org/. On the use of Git download android source code manner I will not go into details, because the Internet in numerous ways, here is a reference interlock to the Windows platform Android source code download.
If you are a newcomer favor me, I trust that reading the on article, you will know how to use Git to download the android source code of the. However,
PULSERA TRANSPARENTE CON BANDERA, looking http://android.git.kernel.org/ site, the various directories and files, you will probably like me dumbfounded, not knowing namely the files in that directory is the corresponding code, ambition to find the entities they need are extra tough. So here to acquaint you approximately the android source code structure, if there is erroneous with that article, but please drip bricks tap shoes!
Figure: http://android.git.kernel.org/ difficult file beneath
Android source code structure
know before to re-familiarize yourself with the Android system architecture it! Android system architecture is divided into four layers, the bottom-up are: Linux operating system and driver layer, the local framework and the Java runtime environment, Java framework, Java application layer. Specific description of each layer in the skipped.
Figure: Android System Architecture
know Android source code structure
Android code project is divided into 3 parts, after beginning http://android.git.kernel.org/ watch that android source code root directory. (Recommendation: Open the site, the retinue control learn)
Core (Core Project): the foundation for the establishment of the Android system, all files in the root folder. Expansion (External Project): the use of additional open source projects expanded functionality in the external folder. Package (Package): to attempt Android applications and services in the package folder.
1, Android's core engineering
Android's core projects contain the basic operation of the Android system patronize, and the Android system, create system,
PULSERA AZUL CON BANDERA, the project follows the table:
Android's core engineering project name
Project portrayal bionic
[Build System] C run-time support: libc,
Balance Xtreme, libm, libdl, the dynamic linker bootloader / legacy
Bootloader Reference code (kernel loader, runs ahead the kernel) build
[Build system] Build system dalvik
Dalvik virtual machine delelopment
High-level development and debugging tools framework / base
Android core framework libraries framework / policies / base
Configure a policy framework for hardware / libhardware
Hardware Abstraction Layer library hardware / ril
Radio interface layer (Radio Interface Layer) kernel
Linux kernel prebuilt
[Pre-compiled kernel] compiled for Linux and Mac OS binary support system / core
Minimize the bootable environment system / surpluses
Low-level debugging and inspection tools
In counting to projects listed in the chart, there are other projects, yet the Android system are the premier two levels of source code.
2, Android expansion
Android expansion projects included in the external folder, later some modifications to adapt the open-source Android system goes. There are a number of projects sprinting on the host, some running on the target machine. With the inclusion of the expansion, the more, not to account, children's shoes can be of interest to gather file to study about yourself.
3, Android a Java package
Android namely a Java pack in the Android system building layer 4, which primarily includes the petition (Application) and the content provider (Content Providers) in two parts, there namely a catalogue inputmethods input portion.
application (Application) in the package / apps directory, including: AlarmClock, Browser, Calculator, Calendar, Camera, Contacts, E-mail, GoogleSearch, HTML Viewer, IM, Launcher, Mms, Music, PackageInstaller, Phone ,
PULSERA BLANCA CON ARGENTINA, Settings, SoundRecorder, Stk, Sync, Updater,
PULSERA NEGRA CON VENEZUELA, VoiceDialer.
content providers (Content Providers) in the package / providers directory, including: CalendarProvider, ContactsProvider, DownloadProvider, DrmProvider, GoogleContactsProvider, GoogleSubsribedFeedsProvider, ImProvider, MediaProvider, SettingsProvider, SubscribedFeedsProvider, TelephonyProvider.
downloaded on claim
If you merely absence 1 of these one alternatively several files, you can use the emulating git commands:
git reproduce git: / / android.git.nucleus.org / project code way
(example: git clone git: / / android.git.kernel.org / platform / packages / providers / DrmProvider.git)
download destination, is the new git command line where the new directory.
download various versions of the Android SDK source code
for everyone to download a differ version of the Windows SDK source code means, I too saw for other ways online, but is Copy & Paste out.
or reference to dissimilar blog post: Use git tool to download android.jar Source Code
1, download Git, and installed;
2,
PULSERA NEGRA CON LOGO XB, create a fashionable file frameworks, is used to cache this folder you will want to download the Android SDK source code directory
3, begin the Git bash directive line, type the command git clone git: / / android.git.kernel.org / platform / frameworks / bottom.git frameworks, will be above site apt android.git.kernel.org the bottom folder of all files and folders to download local structures folder;
4, in a Git command line surroundings, use the cd command, and gradually into the frameworks / base folder;
5, use
6, find the source code you need the name and version, using the command
7, the frameworks / base / kernel / java all files copied to your SDK directory
Note: Each switch simulator version, git will automatically be downloaded from the website version of the source code corresponding to the frameworks / base / folder, the folder and then duplicate the file to the corresponding version of the SDK directory can be.