title: Android Auto Backup: Transport rejected package
body: <p>I am trying to test <a href="https://developer.android.com/guide/topics/data/autobackup.html" rel="noreferrer">Android auto backup</a>. I am on a 7.1 device and the app manifest contains: <code>android:fullBackupOnly="true"</code>. When I issue a <code>adb shell bmgr backupnow &lt;package&gt;</code> command (for SO post I have replace my package name with a placeholder), I get what looks like a failure:</p>
  
  <pre><code>Running backup for 1 requested packages.
  Package @pm@ with result: Success
  Package &lt;package&gt; with result: Transport rejected package
  Backup finished with result: Success
  </code></pre>
  
  <p>if I change the manifest to <code>android:fullBackupOnly="false"</code> (ie use the old K/V backup) and then reissue the <code>backupnow</code> command I get what looks like success:</p>
  
  <pre><code>Running backup for 1 requested packages.
  Package @pm@ with result: Success
  Package &lt;package&gt; with result: Success
  Backup finished with result: Success
  </code></pre>
  
  <p>Looking at Logcat in the rejection case I see the following:</p>
  
  <pre><code>11-10 09:27:59.660 1683-1683/? D/AndroidRuntime: Calling main entry com.android.commands.bmgr.Bmgr
  11-10 09:27:59.669 1035-2498/? V/PerformBackupTask: Beginning backup of 0 targets
  11-10 09:27:59.677 1035-2498/? D/PerformBackupTask: invokeAgentForBackup on @pm@
  11-10 09:27:59.685 1035-2498/? I/BackupRestoreController: Getting widget state for user: 0
  11-10 09:27:59.691 1035-2498/? D/PerformBackupTask: Starting full backups for: [&lt;package&gt;]
  11-10 09:27:59.692 1035-2498/? I/BackupManagerService: K/V backup pass finished.
  11-10 09:27:59.693 1035-1699/? I/PFTBT: Initiating full-data transport backup of &lt;package&gt;
  11-10 09:27:59.695 12554-12566/? I/Backup: [GmsBackupTransport] Attempt to do full backup on &lt;package&gt;
  11-10 09:27:59.697 1035-1699/? I/PFTBT: Transport rejected backup of &lt;package&gt;, skipping
  11-10 09:27:59.697 1035-1699/? I/PFTBT: Unbinding agent in &lt;package&gt;
  11-10 09:27:59.697 1035-1699/? W/ActivityManager: Unbinding backup agent with no active backup
  11-10 09:27:59.697 1035-1699/? I/PFTBT: Full backup completed with status: 0
  11-10 09:27:59.697 1035-1699/? I/BackupManagerService: Full data backup pass finished.
  </code></pre>
  
  <p>with these being the relevant lines:</p>
  
  <pre><code>11-10 09:27:59.695 12554-12566/? I/Backup: [GmsBackupTransport] Attempt to do full backup on &lt;package&gt;
  11-10 09:27:59.697 1035-1699/? I/PFTBT: Transport rejected backup of &lt;package&gt;, skipping
  </code></pre>
  
  <p>Why is the full / auto backup failing?</p>
  
  <p>Here is the full Logcat from the success (K/V) case:</p>
  
  <pre><code>11-10 09:31:21.750 2200-2200/? D/AndroidRuntime: Calling main entry com.android.commands.bmgr.Bmgr
  11-10 09:31:21.762 1035-2498/? V/PerformBackupTask: Beginning backup of 1 targets
  11-10 09:31:21.768 1035-2498/? D/PerformBackupTask: invokeAgentForBackup on @pm@
  11-10 09:31:21.775 1035-2498/? I/BackupRestoreController: Getting widget state for user: 0
  11-10 09:31:21.780 1035-2498/? D/PerformBackupTask: starting key/value backup of BackupRequest{pkg= &lt;package&gt;}
  11-10 09:31:21.783 1035-2498/? D/BackupManagerService: awaiting agent for ApplicationInfo{b68136a  &lt;package&gt;}
  11-10 09:31:21.793 1035-1815/? D/BackupManagerService: agentConnected pkg= &lt;package&gt; agent=android.os.BinderProxy@6750684
  11-10 09:31:21.793 1035-2498/? I/BackupManagerService: got agent android.app.IBackupAgent$Stub$Proxy@5e82e6d
  11-10 09:31:21.793 1035-2498/? D/PerformBackupTask: invokeAgentForBackup on  &lt;package&gt;
  11-10 09:31:21.796 1908-1920/ &lt;package&gt; D/BackupAgent: onBackup
  11-10 09:31:21.796 1908-1920/ &lt;package&gt; D/BackupHelperDispatcher: handling existing helper 'data'  &lt;package&gt;.io.DbBackupHelper@35d5ebe
  11-10 09:31:21.798 1908-1920/ &lt;package&gt; D/BackupHelperDispatcher: handling existing helper 'prefs' android.app.backup.SharedPreferencesBackupHelper@6936b1f
  11-10 09:31:21.800 1035-2498/? I/BackupRestoreController: Getting widget state for user: 0
  11-10 09:31:21.805 2200-2200/? D/AndroidRuntime: Shutting down VM
  11-10 09:31:21.807 1035-2498/? I/BackupManagerService: K/V backup pass finished.
  </code></pre>