platform_system_core/include
Tao Bao a456c21348 ziparchive: Allow ExtractEntryToFile() to work with block device.
FileWriter::Create() calls ftruncate(2) to truncate the destination
file, which doesn't work with FD that references a block device. It
leads to kIoError when calling ExtractEntryToFile() to extract an entry
to block device FD.

As a result, it fails the package_extract_file() command in OTA updates
(e.g. 'package_extract_file("boot.img",
"/dev/block/platform/soc.0/f9824900.sdhci/by-name/boot")').

This CL skips the call to ftruncate(2) if FD references a block device.

Bug: 32903624
Test: ziparchive-tests works.
Test: Build an OTA updater (m updater) and call package_extract_file().

Change-Id: Ia81116f1a8d7cab802396bdc32c6096b4cb56a3c
2016-11-15 10:19:04 -08:00
..
android liblog: restructure log/log.h and android/log.h 2016-10-24 11:03:49 -07:00
backtrace Test for _WIN32 in instead of USE_MINGW. 2016-10-05 09:37:44 -07:00
cutils libcutils: add android_get_control_file() 2016-11-03 13:34:20 -07:00
log liblog: logcat: logprint support -v descriptive 2016-11-04 15:22:52 -07:00
nativebridge Allow different namespace types for different classloaders 2016-11-04 15:21:13 -07:00
private Add UID for vehicle network 2016-10-28 12:08:07 -07:00
system [qemu]: Fix payload size format in qemu_pipe_frame_send() 2016-09-30 13:58:11 +02:00
sysutils Revert "Sigh, more vendors linking against hidden APIs." 2015-03-20 23:51:36 +00:00
utils system/core: preparation to pull back interfaces from android/log.h 2016-10-20 08:11:39 -07:00
ziparchive ziparchive: Allow ExtractEntryToFile() to work with block device. 2016-11-15 10:19:04 -08:00