summaryrefslogtreecommitdiffstats
path: root/libs/androidfw
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2015-01-14 18:19:54 -0800
committerBrian Carlstrom <bdc@google.com>2015-01-14 18:19:54 -0800
commit5baa164aec06a9973a68303bc7752aa76e5c68e5 (patch)
tree059ff600e32873cd11ff9e3a3a78495eb43f9504 /libs/androidfw
parentfce232b4080a12220821568ab670a0cdce4893c5 (diff)
downloadframeworks_base-5baa164aec06a9973a68303bc7752aa76e5c68e5.zip
frameworks_base-5baa164aec06a9973a68303bc7752aa76e5c68e5.tar.gz
frameworks_base-5baa164aec06a9973a68303bc7752aa76e5c68e5.tar.bz2
Restore write_delete_file
Change-Id: Id93a59ae6c82f6068c58b22e2a651ff8a3b8f530
Diffstat (limited to 'libs/androidfw')
-rw-r--r--libs/androidfw/BackupHelpers.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/androidfw/BackupHelpers.cpp b/libs/androidfw/BackupHelpers.cpp
index 4dcb6e7..227de3b 100644
--- a/libs/androidfw/BackupHelpers.cpp
+++ b/libs/androidfw/BackupHelpers.cpp
@@ -202,6 +202,13 @@ write_snapshot_file(int fd, const KeyedVector<String8,FileRec>& snapshot)
}
static int
+write_delete_file(BackupDataWriter* dataStream, const String8& key)
+{
+ LOGP("write_delete_file %s\n", key.string());
+ return dataStream->WriteEntityHeader(key, -1);
+}
+
+static int
write_update_file(BackupDataWriter* dataStream, int fd, int mode, const String8& key,
char const* realFilename)
{