android_system_core/fastboot
Spencer Low ac9514a452 adb/base: fix adb push of Unicode filenames on Win32
ae5a6c06cd made adb push use
android::base::ReadFileToString() for small files, but that API did not
support UTF-8 filenames on Windows, until this fix which does the
following:

- Add android::base::{WideToUTF8,UTF8ToWide}() which are only available
  on Windows. The signatures are based on Chromium's APIs of the same
  name.

- Add the namespace android::base::utf8 which has versions of APIs that
  take UTF-8 strings. To use this, make sure your code is in a namespace
  and then do "using namespace android::base::utf8;". On Windows, this will
  make calls to open() call android::base::utf8::open(), and on other
  platforms, it will just call the regular ::open().

- Make ReadFileToString() and WriteStringToFile() use utf8::open() and
  utf8::unlink().

- Adapt unittests from Chromium.

- fastboot needs to link with libcutils because it links with libbase
  which depends on libcutils for gettid() for logging.

Change-Id: I1aeac40ff358331d7a1ff457ce894bfb17863904
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-11-10 15:48:54 -08:00
..
Android.mk adb/base: fix adb push of Unicode filenames on Win32 2015-11-10 15:48:54 -08:00
bootimg_utils.cpp Use 64-bit file sizes in fastboot. 2015-08-25 19:11:52 -07:00
bootimg_utils.h Use 64-bit file sizes in fastboot. 2015-08-25 19:11:52 -07:00
engine.cpp Fastboot changes to support A/B partitioning 2015-11-05 18:07:46 -08:00
fastboot.cpp Merge "Fastboot changes to support A/B partitioning" 2015-11-06 03:43:49 +00:00
fastboot.h Fastboot changes to support A/B partitioning 2015-11-05 18:07:46 -08:00
fastboot_protocol.txt Use 64-bit file sizes in fastboot. 2015-08-25 19:11:52 -07:00
fs.cpp Clarify and fix the intent of the partition-type checking code. 2015-11-02 14:05:57 -08:00
fs.h Clarify and fix the intent of the partition-type checking code. 2015-11-02 14:05:57 -08:00
genkey.sh
protocol.cpp Use 64-bit file sizes in fastboot. 2015-08-25 19:11:52 -07:00
usb.h Use 64-bit file sizes in fastboot. 2015-08-25 19:11:52 -07:00
usb_linux.cpp Document the current MAX_USBFS_BULK_SIZE situation. 2015-07-28 14:18:50 -07:00
usb_osx.cpp Get fastboot working on OS X 2015-08-19 14:46:17 -07:00
usb_windows.cpp Move fastboot's Windows code to C++. 2015-06-24 10:48:43 -07:00
usbtest.cpp Move fastboot to C++. 2015-06-23 20:56:01 -07:00
util.cpp Move fastboot to C++. 2015-06-23 20:56:01 -07:00
util_linux.cpp Move fastboot to C++. 2015-06-23 20:56:01 -07:00
util_osx.cpp Move fastboot's Mac OS code to C++. 2015-06-24 11:17:28 -07:00
util_windows.cpp Move fastboot's Windows code to C++. 2015-06-24 10:48:43 -07:00