OSDN Git Service

unbindBackupAgent and initialize inFullBackup
authorwonyoung.lee <wonyoung.lee@lge.com>
Fri, 20 Jan 2017 00:38:49 +0000 (09:38 +0900)
committerWonyoung Lee <wonyoung.lee@lge.com>
Fri, 20 Jan 2017 02:18:27 +0000 (02:18 +0000)
the package has full backup failed (transport rejected) and broadcast discarded by app.inFullBackup

Test: example package : com.lge.clock
      1) push txt file over 25Mb size to data/data/com.lge.clock/shared_prefs/
      2) adb shell bmgr fullbackup com.lge.clock
      3) fullbackup failed by quota_exceeded and not happened alarm receive.

Change-Id: Ic475abb0fe779757dc3d7949cf52977ab8760a04

services/core/java/com/android/server/am/ActivityManagerService.java

index bc03901..a2963b8 100644 (file)
@@ -17491,6 +17491,7 @@ public final class ActivityManagerService extends ActivityManagerNative
                 // Not backing this app up any more; reset its OOM adjustment
                 final ProcessRecord proc = mBackupTarget.app;
                 updateOomAdjLocked(proc);
+                proc.inFullBackup = false;
 
                 // If the app crashed during backup, 'thread' will be null here
                 if (proc.thread != null) {