Ok, here's what I'm doing...I downloaded the aosp source tree and compile for the toro build. I created a repo in github and pushed the frameworks/base/ to it so I can make edits and compile based from those edits. A friend told me to just repo what I want to edit. So my question is, how do I implement my repo in the build when compiling but yet pull the rest of the things I didn't change from the aosp repos? Another friend told me the default.xml but I don't know where to look for that. Any help in this matter would be most appreciated.
Are you literally making a new project and uploading to it? Or are you going to github.com/android and forking the platform_frameworks_base from there into your git and then modyfying your own fork?
Personally, best practice is to fork projects from github.com/android into your own repo by pressing the
Fork button, then clone your own repo
Within there, you then want to add the upstream branch, eg:
git clone
git@github.com:YourUserName/platform_manifest.git
cd platform_manifest
git remote add upstream git://github.com/android/platform_manifest.git
git fetch upstream
git merge upstream/
master
(note, I use Master branch, hence upstream/master. For other branches, simply replace master for the branch)
Same for other projects (frameworks_base) that way, to keep up to date with google's commits too, you simply go into the folder and type:
git fetch upstream
git merge upstream/master
Also, fork your own copy of github.com/android/platform_manifest
Then to pull your own repo from git instead of Androids, edit the file platform_manifest/default.xml and include the following:
Where it says this:
Code:
<remote name="aosp"
fetch=".."
review="https://android-review.googlesource.com/" />
<default revision="master"
remote="aosp"
sync-j="4" />
Change it to this
Code:
<remote name="aosp"
fetch="https://android.googlesource.com/"
review="https://android-review.googlesource.com/" />
<remote name="gh"
fetch="git://github.com/"
revision="master" />
<default revision="master"
remote="aosp"
sync-j="4" />
Then to pull your own packages (for instance, your own platform_frameworks_base, do this change:
From
Code:
<project path="frameworks/base" name="platform/frameworks/base" />
To
Code:
<project path="frameworks/base" remote="gh" name="PaulW/platform_frameworks_base" />
(Change PaulW to whatever the username of your github account is)
Hope this helps a little!