title: replace apk with new one but different signature
body: <p><strong>Usecase</strong></p>
  
  <p>I normally always use the debug versions of my own apps on my own phone while developing them. Before releasing a new version, I want to test the release on my own phone. That's not very convenient, I currently have to do many steps:</p>
  
  <ul>
  <li>backup the debug version of my app</li>
  <li>deinstall the debug version</li>
  <li>install the release version</li>
  <li>restore the data of the debug version</li>
  </ul>
  
  <p><strong>Current solution</strong></p>
  
  <p>I do the above steps manually with the help of Titanium Backup on my phone...</p>
  
  <p><strong>What I want</strong></p>
  
  <p><em>Important: I want to use the data from my debug app in the release app, so that I can test the release build with all the data from my debug app</em></p>
  
  <p>I want to automate that process. The best would be a batch file, I can use on my laptop while the phone is connected via usb. Currently all I found is following:</p>
  
  <pre><code>%adb% install -r app-release.apk
  </code></pre>
  
  <p>But of course this fails because of wrong signatures. So actually need to delete the apk from the phone without deleting the data and copying the new apk to the phone. Is that somehow possible?</p>
  
  <p><strong>Possible solutions</strong></p>
  
  <ol>
  <li>Replace the apk on my phone without installing the app</li>
  <li>Copy all app data to the laptop, uninstall the debug version, install the release version and copy back the app data to the phone</li>
  <li>???</li>
  </ol>