Android Auto Backup: Transport rejected package -


i trying test android auto backup. on 7.1 device , app manifest contains: android:fullbackuponly="true". when issue adb shell bmgr backupnow <package> command (for post have replace package name placeholder), looks failure:

running backup 1 requested packages. package @pm@ result: success package <package> result: transport rejected package backup finished result: success 

if change manifest android:fullbackuponly="false" (ie use old k/v backup) , reissue backupnow command looks success:

running backup 1 requested packages. package @pm@ result: success package <package> result: success backup finished result: success 

looking @ logcat in rejection case see following:

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 user: 0 11-10 09:27:59.691 1035-2498/? d/performbackuptask: starting full backups for: [<package>] 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 <package> 11-10 09:27:59.695 12554-12566/? i/backup: [gmsbackuptransport] attempt full backup on <package> 11-10 09:27:59.697 1035-1699/? i/pftbt: transport rejected backup of <package>, skipping 11-10 09:27:59.697 1035-1699/? i/pftbt: unbinding agent in <package> 11-10 09:27:59.697 1035-1699/? w/activitymanager: unbinding backup agent no active backup 11-10 09:27:59.697 1035-1699/? i/pftbt: full backup completed status: 0 11-10 09:27:59.697 1035-1699/? i/backupmanagerservice: full data backup pass finished. 

with these being relevant lines:

11-10 09:27:59.695 12554-12566/? i/backup: [gmsbackuptransport] attempt full backup on <package> 11-10 09:27:59.697 1035-1699/? i/pftbt: transport rejected backup of <package>, skipping 

why full / auto backup failing?

here full logcat success (k/v) case:

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 user: 0 11-10 09:31:21.780 1035-2498/? d/performbackuptask: starting key/value backup of backuprequest{pkg= <package>} 11-10 09:31:21.783 1035-2498/? d/backupmanagerservice: awaiting agent applicationinfo{b68136a  <package>} 11-10 09:31:21.793 1035-1815/? d/backupmanagerservice: agentconnected pkg= <package> 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  <package> 11-10 09:31:21.796 1908-1920/ <package> d/backupagent: onbackup 11-10 09:31:21.796 1908-1920/ <package> d/backuphelperdispatcher: handling existing helper 'data'  <package>.io.dbbackuphelper@35d5ebe 11-10 09:31:21.798 1908-1920/ <package> d/backuphelperdispatcher: handling existing helper 'prefs' android.app.backup.sharedpreferencesbackuphelper@6936b1f 11-10 09:31:21.800 1035-2498/? i/backuprestorecontroller: getting widget state 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. 

the documentation @ https://developer.android.com/guide/topics/data/testingbackup.html says following:

exceeded quota

if see the following messages in logcat:

i/pftbt: transport rejected backup of package, skipping

--- or ---

i/pftbt: transport quota exceeded package: package

your app has exceeded quota , has been banned backing data on device. lift ban, either factory reset device or change backup account.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -