A couple quick notes:
1. To apply a patch per the instructions, just copy the stuff after "project whatever" to a file. Let's call it whatever.patch
. Now you cd
into the project and type git apply whatever.patch
and it should automatically apply the patches. Do this three times.
put this in a file called bluez.patch
diff --git a/tools/Android.mk b/tools/Android.mk
index 619ff1c..16de42f 100755
@@ -218,6 +218,7 @@ LOCAL_SHARED_LIBRARIES := \
+LOCAL_MODULE_TAGS := optional
thencd ~/android/system/external/bluetooth/bluezgit apply ~/android/system/bluez.patch
Done with the first one. Now do it for the others too.
2. After you've built successfully, be sure to check out CyanogenMod's code review system-- gerrit
. Here you can see what has been recently merged into the codebase. More interestingly, you can see what people have been submitting for review. If there's something you want to try, you can actually test it by merging it into your code and building. It's a simple matter.
Let's say you want to try out this as yet-unmerged fix to surfaceflinger
. This is just an example of something I found quickly that wasn't yet merged. You just do this:
- So where it says Download in the middle of the screen, there's some instructions for you to highlight and copy. In this case, it looks like "git fetch http://review.cyanog...frameworks_base refs/changes/00/11900/1 && git checkout FETCH_HEAD" (sorry, rootz' bulletin board system actually puts some .... in the middle of the link. But you'll see the full command there.)
- Alternatively, you can click the little icon to the right of those instructions and it will automatically go to your copy buffer.
- Now go to the source code. cd to android/system. This patch affects android_frameworks_base (as you can see at the top of the gerrit description), so cd frameworks/base.
- Now paste the command. You've just added the proposed change to your copy of the source code.
- Go ahead and build. When you're done, the fix should be in. If everything worked alright, go sign up for gerrit and give a +1 vote to this proposed contribution.
- Warning-- the next time you do a repo sync, you'll have these changes overwritten.
Being able to try cutting-edge features and improvements now is in your hands. You don't have to wait for a nightly build any more. You don't even need to wait for the code to be ACCEPTED into cyanogenmod! you can help test it and get these features before anyone else even knows about them. Just keep checking Gerrit.
Edited by fattire, 19 January 2012 - 12:46 PM.