Is there a way to have two AndroidManifest.xml files in one project?
In my manifest I define a service to provide a SyncAdapter looking like this:
<service
android:name=".data.sync.SyncService"
android:exported="true">
android:process=":sync">
<intent-filter>
<action android:name="android.content.SyncAdapter"/>
</intent-filter>
<meta-data
android:name="android.content.SyncAdapter"
android:resource="@xml/syncadapter"/>
</service>
The problem with this is, that I am not able to debug the SyncAdapter hence it is running in a different process when debugging the application in Android Studio.
This is why I would like to have a second Manifest file in which I won't define this tag. This way I want to make sure not to forget to put it back before building the apk-file.