title: How can I have different manifest files for the release and debug versions?
body: <p>Is it possible to have different manifest files for the debug and release versions of my APK in Android Studio?</p>
  
  <p>Normally I don't have need for such a such a thing but in debug mode, my applications run in a different user id and process and this is defined in the manifest. I've attached a diff of what my debug manifest has:</p>
  
  <pre><code>--- a/AndroidManifest.xml
  +++ b/AndroidManifest.xml
  @@ -1,5 +1,6 @@
   &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
       package="com.mridang.address"
  +    android:sharedUserId="com.mridang.dashclock"
       android:versionCode="10"
       android:versionName="1.0" &gt;
  
  @@ -14,6 +15,7 @@
       &lt;application
           android:allowBackup="true"
           android:icon="@drawable/ic_launcher"
  +        android:process="com.mridang.dashclock"
           android:label="@string/application_name"
           android:theme="@android:style/Theme.Holo.Light.DarkActionBar" &gt;
  </code></pre>
  
  <p>I'm losing my mind with stashing the debug manifest file and popping it before building and if two separate manifests were possible, that would be great.</p>