title: How to use the new manifest merger (of Android Studio and Gradle)?
body: <h2>Background</h2>
  
  <p>In the past, when Eclipse&amp;ADT were the official tools to develop for Android, you could simply use "<strong>manifestmerger.enabled=true</strong>" inside the "<strong>project.properties</strong>" of the app's project, and you got it merging all of the libraries' manifests automatically (and I've posted about it <a href="https://stackoverflow.com/q/10976635/878126"><strong>here</strong></a>).</p>
  
  <p>This worked, sometimes. It had a lot of weird issues, and I always preferred to just avoid using it, and put what is needed into the main manifest file manually. </p>
  
  <h2>The problem</h2>
  
  <p>Somewhere on 2014, Google announced that the new Android-Studio (0.1 I think), together with Gradle, will allow you to choose exactly how to perform merging of libraries' components.</p>
  
  <p>However, the new instructions (link <a href="http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger" rel="noreferrer"><strong>here</strong></a>) are very complex and I really (really) tried to understand how to use them, and also didn't find samples of how to use them.</p>
  
  <p>It's not that I didn't understand anything, but I'm not sure if I understood well.</p>
  
  <h2>What I've found</h2>
  
  <p>On the bright side, I've found out that merging is done completely automatically, so if you have a BroadcastReceiver on the library's manifest (and as a class, of course), it will be added to the app's project that uses it.</p>
  
  <h2>The question</h2>
  
  <p>I can't simply ask everything to be explained. I think it will be enough to ask those questions:</p>
  
  <ol>
  <li><p>How can I choose which app components (permissions, activities,...) to be ignored from being auto-merged?</p></li>
  <li><p>How can I point override app components (of the library) attributes (on the app's project) ? for example the theme of the activities?</p></li>
  <li><p>Is there a way to completely disable the auto-merger for the manifest files?</p></li>
  <li><p>What happens with manifests of dependencies that are inside repositories? Are they merged too? </p></li>
  <li><p>Are there any tutorials/samples/videos regarding this new (well new for me) feature?</p></li>
  <li><p>Are there any things I should be aware of when using the auto-merger?</p></li>
  </ol>
  
  <p>I hope those questions are representative enough, informative enough, yet not too hard to answer for people who know.</p>