title: Build android framework resources
body: <p>I'm trying to build a custom Android image from the Open Source repo, and make changes inside the android base framework code (both resource and Java code changes), and I have a couple of questions about how to build my changes without having to clean and rebuild the whole system.</p>
  
  <p>My understanding of it, was that I could just do <code>mmm frameworks/base</code> after making my changes, and that would automatically rebuild the <code>framework-res.apk</code> and framework.jar in <code>out/target/product/&lt;my-config&gt;/system/framework/</code>.</p>
  
  <p>But it looks like <code>mmm frameworks/base</code> doesn't do anything. I have to manually do <code>mmm frameworks/base/core/res</code> in order for the <code>framework-res.apk</code> to be compiled and then redo <code>mmm frameworks/base</code> to recompile the JAR.</p>
  
  <p>Is that normal? Why doesn't <code>mmm</code>frameworks/base<code>recompile everything? Plus, the</code>/out/target/common/R/com/android/internal/R.java<code>file that is used by Eclipse to locate the resources is never re-generated unless I do a whole</code>make clobber; make<code>which takes forever. How can I simply re-generate the</code>R.java` file.</p>
  
  <p>Additional question:
  I wanted to add some third-party APKs to my ROM, I placed them in <code>/vendor/&lt;vendor-name&gt;/</code> along with a <code>Android.mk</code> file that I include from my main mk script. The apks are copied over to <code>/out/target/product/&lt;my-config&gt;/system/app</code>, but are not included in the <code>system.img</code> image. Why is that?</p>