Android Source download - android

Hey guys I am new to porting android os. I am trying to download android source and wanted to know which git repository should I download for kitkat. And alos I want to download the source in GIT windows as I do not want to use linux terminal and repo for downloading the source.
Also, will downnloading https://android.googlesource.com/kernel/msm/+/android-msm-hammerhead-3.4-kk-r1 give me the source or will https://android.googlesource.com/platform/build/+/master give me the source?
Note: I have a very limited download limit at high speeds so I only want to download the relevant source files. No prebuilt Images or and device Images. I just want to download the source for stock kitkat android and use it in ubuntu for further building.

I think that you don't understand the organization of the Android source. It is a forest of git repositories, maintained, as CommonsWare says, with a tool called "repo". Theoretically, you could clone each of the, approximately, 450 git repos, separately. I suspect it would be pretty hard to do.
When you download the source, you will get all of the versions, tagged appropriately. You need only checkout at the right tag.

You could try github, to download zip files of the branch you require. It also seems to have android kernel files, but you need to search for what you need.
The android kernel msm (for qualcomm) source code
https://github.com/android/kernel_msm
The android source code
https://github.com/android/platform_frameworks_base
The website says it is a mirror of the google server. Which means it should work.

Related

Fork AOSP source

My team is looking to create our own custom ROM. I would like to base it on AOSP pie. Is there a way to fork or copy the code to GitHub?
I tried just using the Google repo, but it's bigger than my hard drive, so I can't clone it locally to push to GitHub.
We would prefer to base it on a pure Android, not another custom ROM
You can try directly form github:
https://github.com/aosp-mirror
Is mirrored from https://android.googlesource.com/platform/development.git
Hardware requirements:
Your development workstation should meet or exceed these hardware requirements:
A 64-bit environment is required for Android 2.3.x (Gingerbread) and higher versions, including the master branch. You can compile older versions on 32-bit systems.
At least 250GB of free disk space to checkout the code and an extra 150GB to build it. If you conduct multiple builds, you will need even more space.
Note: If you are checking out a mirror you will need more space as full Android Open Source Project (AOSP) mirrors contain all Git repositories that have ever been used.
If you are running Linux in a virtual machine, you need at least 16GB of RAM/swap.
Download the source following the guide here:
https://source.android.com/setup/build/downloading
The source is that big, so if your harddrive is too small you won't even be able to use a custom rom for reference.
For reference, the requirements tell you that you need 250GB for the source and 150GB for building. https://source.android.com/setup/build/requirements

Android Studio Project SDK Path Mac VS Windows

I use 2 machines for development, Windows 8 desktop and a Macbook for when I'm away from my desk. I use dropbox to sync my development files between 2 machines. This works pretty well, except for one thing: the SDK path must be updated every time (http://screencast.com/t/XKnqUjiBn)
Is there a work around of some sort for this?
Don't share the local.properties file between machines; that's the file that contains the SDK path, and as its filename indicates, it's supposed to be local to an individual machine.
I suggest that you take a look at a GIT source control (if you haven't done that previously). It is the way better way to manage projects than dropbox sync.
There are 2 very good options for you:
GitHub - free for open source projects, paid for private repositories (paid per repository)
BitBucket - free for private repos too (paid per user)
AndroidStudio (which I suggest for Android projects unless you are working with NDK) has a really good support for importing projects to GIT via GUI. So it helps you a bit if you are not familiar with console stuff. But it is easy with console too. Check out this github tutorial for beginners https://try.github.io/levels/1/challenges/1
With GIT the problem that you are trying to solve is simple just put a file name that you dont want to share into you gitignore file. You can find android preset gitignore files online on sites like gitignore.io.
Good luck.

How to get specific libraries from Android Open Source Project?

For my Android app, I need the source code for uuidlib that I would like to build as a static library and link with my native code. Another post Include uuid.h into Android NDK project mentions that the source code is available in AOSP at external/e2fsprogs/lib/uuid/ directory.
I followed the instruction on AOSP page and did a "repo init" and a "repo sync." The synchronization is still going on for the past one hour.
I am wondering if there is a better way to obtain the source code for just the library I need and not download the entire 10G of repository on my machine.
If not, what do I need to do to get uuid after "repo sync" finishes? Regards.
I am wondering if there is a better way to obtain the source code for just the library I need and not download the entire 10G of repository on my machine.
Per the repository instructions:
git clone https://android.googlesource.com/platform/external/e2fsprogs

New to GitHub - is there a way to get an overview of projects on it before unzipping and building?

I've been looking for a finished/working ImageView on Android that has pinch/zoom behavior. Although there are code-snippets all over S.O. for this I want something a little more finished that I can just build and use.
GitHub, which I've never used before, seems to have candidates. As far as I can tell GitHub is a free, public project-hosting, source-control system, but I'm only interested in downloading and trying out projects on it, which can be done by the "Download Zip" button on it.
I recently tried a project called PhotoView but after getting it all imported into my Eclipse development environment I found it had dependencies on a higher API level than I was using or targeting.
Is there any way to avoid that in the future? I.e., is there any place on GitHub where the developers typically lists technical requirements like programming language, target development environment, compiler or SDK versions, etc, so before bothering to download a GitHub project I can guess whether it's even buildable in my environment?
Edit: In my browser I can see a brief revision history but it looks like it only goes back a few changes so the manifest or other key files aren't always visible. Is the only way to see the project files to download the ZIP file, unpack it and look at it in my development environment on my local PC?
Thanks in advance.
Is there any way to avoid that in the future?
Browse the source code. For example, the manifest file (for the component or a demo app) should indicate the android:minSdkVersion.
is there any place on GitHub where the developers typically lists technical requirements like programming language, target development environment, compiler or SDK versions, etc, so before bothering to download a GitHub project I can guess whether it's even buildable in my environment?
Yes. It's called the project README, and you were already there, most likely, as it is the "home page" of the repository. The amount of documentation any given developer will write for any given component will vary.
You are also welcome to file issues against the project, asking for more documentation on this sort of thing, but if and when that issue will be acted upon will also vary.
readme file in root of the project, and Wikipages of that repositories could help you find out additional information about that repository. But at the end, contributors are responsible to prepare this kind of information and some of them don't care. So, you can look for Android manifest file of the project and check the content in GitHub website before download and unzip it.

Do I need SVN to download this project?

Android newbie here and would like to create a basic app using the AndriodPlot library.
The instructions to download are:
svn checkout https://androidplot.jira.com/svn/ANDROIDPLOT/
trunk/Examples/Quickstart Quickstart
Is there a way to download without SVN so I can get started?
If not, what SVN and how do I use it?
I assume it is some sort of version vcontrol but after Google-ing SVN, I am getting a lot of different answers and it is not clear what I am suppose to do...
Any point in the right direction to download this is greatly appreciated.
Yes, you need SVN to download this project.
What is ment by SVN is Subversion.
Depending on the platform you are using, you have to install a Subversion client. Under linux distributions, just search for the subversion in repository.
Under Windows and Mac OS X you'll find a graphical client, that will suit your needs.
You could download all the files manually or work on individual files e.g. https://androidplot.jira.com/svn/ANDROIDPLOT/trunk/Examples/Quickstart/src/com/example/MainActivity.java
but it's gonna be easier to just install svn and then checkout the repository and get a copy of the files on your machine.
Red bean did a good intro and guide when I was learning it http://svnbook.red-bean.com/en/1.1/ch01.html
And PS. learn GIT (better and now widely used)

Categories

Resources