summaryrefslogtreecommitdiffstats
path: root/libs/androidfw/BackupHelpers.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Restore write_delete_fileBrian Carlstrom2015-01-141-0/+7
| | | | Change-Id: Id93a59ae6c82f6068c58b22e2a651ff8a3b8f530
* am 9568307c: am 43a4a8c7: Fix redundant file backupsChristopher Tate2015-01-151-36/+41
|\ | | | | | | | | * commit '9568307cf32c8abc6703dc7a1b0b0fee56c4f8f5': Fix redundant file backups
| * Fix redundant file backupsChristopher Tate2015-01-141-38/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We'd observed a bug in which an unchanged file was nevertheless being redundantly transmitted for backup on every backup pass. The underlying issue turns out to have been the FileBackupHelper base implementation's logic for diffing the prior-state file set against the current state, in the case when there had been deletions of prior files. In addition, there was also a parallel bug in which file checksums were not calculated properly in some cases, leading to at least one additional redundant backup of the file in question. Bug 18694053 Change-Id: Ie0dec06486b5fef4624561737019569c85d6b2a0
* | bionic's struct stat is now POSIX-compliant.Elliott Hughes2014-11-101-15/+4
| | | | | | | | | | | | | | One less hack needed... Bug: 18298106 Change-Id: I1e9e5ebf329bd6cbaf3445201f182793ee4871ce
* | Frameworks/base: Fix more warningsAndreas Gampe2014-11-071-1/+1
| | | | | | | | | | | | | | Exposed by switching the target to Clang, and GCC 4.9 used by MIPS. Change-Id: Icb79285ab2306c39c2d381e53ea2e643ee2d2947
* | Frameworks/base: Wall Werror in libs/androidfwAndreas Gampe2014-11-071-31/+3
|/ | | | | | | Turn on -Wall -Werror in libs/androidfw. Fix warnings. Refactor some code. Change-Id: I66fe54ace433c15dee5de328b149ca142f74b2dd
* AArch64: Make frameworks/base code more portableAshok Bhat2014-03-271-9/+12
| | | | | | | | | | | | | | | | Changes in this patch include [x] Use %zu for size_t, %zd for ssize_t [x] Some minor changes have been done to conform with standard JNI practice (e.g. use of jint instead of int in JNI function prototypes) Change-Id: Id1aaa7894a7d0b85ac7ecd7b2bfd8cc40374261f Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> Signed-off-by: Craig Barber <craig.barber@arm.com> Signed-off-by: Kévin PETIT <kevin.petit@arm.com> Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
* androidfw: resolve 64-bit build issuesMark Salyzyn2014-03-191-3/+3
| | | | | | | | - uid_t/gid_t cast to unsigned long - unused argument warnings - tab and space requirements Change-Id: Ib446d8165b9082be02edb55e6b71fd1a03ea3431
* Various format string fixes for 64bitKévin PETIT2014-02-241-4/+4
| | | | | Change-Id: I74532a4e0400033f5ee3e3f6827ac42f77d16f53 Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
* DO NOT MERGE - Full backup/restore now handles OBBs sensiblyChristopher Tate2013-03-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | OBB backup/ restore is no longer handled within the target app process. This is done to avoid having to require that OBB-using apps have full read/write permission for external storage. The new OBB backup service is a new component running in the same app as the already-existing shared storage backup agent. The backup infrastructure delegates backup/restore of apps' OBB contents to this component (because the system process may not itself read/write external storage). From the command line, OBB backup is enabled by using new -obb / -noobb flags with adb backup. The default is noobb. Finally, a couple of nit fixes: - buffer-size mismatch between the writer and reader of chunked file data has been corrected; now the reading side won't be issuing an extra pipe read per chunk. - bu now explicitly closes the transport socket fd after adopting it. This was benign but triggered a logged warning about leaked fds. (Cherrypicked) Change-Id: I471f6348abcccb7bf1e1710b7beda9f23de53e14
* BackupHelpers: Fix TypoYou Kim2012-12-171-1/+1
| | | | | | delete --> free Change-Id: Idbf7e677f8cc4a9a9d04e58b5cf7d0f1589c5211
* frameworks/base refactoringMathias Agopian2012-02-201-0/+1591
create the new libandroidfw from parts of libui and libutils Change-Id: I1584995616fff5d527a2aba63921b682a6194d58