Tao Bao and Android Git Automerger
dbbdcf3fd8
am 93fa4b67: Merge "edify: Switch to C++."
...
* commit '93fa4b677cac9288e936915f15ca8e5f76a4e4b6':
edify: Switch to C++.
2015-08-21 17:39:39 +00:00
Tao Bao and Gerrit Code Review
93fa4b677c
Merge "edify: Switch to C++."
2015-08-21 17:36:11 +00:00
Tao Bao
2a5a49d337
edify: Switch to C++.
...
Change-Id: I71aede6e29af1dc4bb858a62016c8035db5d3452
2015-08-20 12:11:04 -07:00
Tao Bao and Android Git Automerger
4854e292e0
am ad509fd4: Merge "Fix potential crash"
...
* commit 'ad509fd4a2c597ced8e53b0817f754cb2209b98a':
Fix potential crash
2015-08-11 16:17:24 +00:00
Tao Bao and Gerrit Code Review
ad509fd4a2
Merge "Fix potential crash"
2015-08-11 16:11:44 +00:00
Tao Bao and Android Git Automerger
434a1761aa
am 0d46c7ab: Merge "Use unique_ptr and unique_fd to manager FDs."
...
* commit '0d46c7ab02eb97d6b4b2e26b9202fd9b4e9dd8c8':
Use unique_ptr and unique_fd to manager FDs.
2015-08-10 17:35:06 +00:00
Tao Bao and Android Git Automerger
7f89389a0b
am 7c511184: Merge "updater: Clean up char* with std::string."
...
* commit '7c511184bf3ed44f3590027730a64d565c0e12ee':
updater: Clean up char* with std::string.
2015-08-10 17:29:54 +00:00
Tao Bao and Gerrit Code Review
0d46c7ab02
Merge "Use unique_ptr and unique_fd to manager FDs."
2015-08-10 17:28:52 +00:00
Tao Bao and Gerrit Code Review
7c511184bf
Merge "updater: Clean up char* with std::string."
2015-08-10 17:23:13 +00:00
Tao Bao
c754792a07
Use unique_ptr and unique_fd to manager FDs.
...
Clean up leaky file descriptors in uncrypt/uncrypt.cpp. Add unique_fd
for open() and unique_file for fopen() to close FDs on destruction.
Bug: 21496020
Change-Id: I0174db0de9d5f59cd43b44757b8ef0f5912c91a2
2015-08-09 22:35:49 -07:00
Dan Albert and Android Git Automerger
236b3eb6a0
am e67104a6: Merge "Use CPPFLAGS instead of CFLAGS."
...
* commit 'e67104a6a778f70bd479e737b09eb32c835e250e':
Use CPPFLAGS instead of CFLAGS.
2015-08-08 00:51:16 +00:00
Dan Albert and Gerrit Code Review
e67104a6a7
Merge "Use CPPFLAGS instead of CFLAGS."
2015-08-08 00:45:43 +00:00
Dan Albert
b02e90f85c
Use CPPFLAGS instead of CFLAGS.
...
While we build these as C, to the build system they are technically
C++ and are subject to the global CPPFLAGS. Set LOCAL_CPPFLAGS here
instead of LOCAL_CFLAGS so we can be sure we override anything
provided by the build system.
Bug: http://b/23043421
Change-Id: I344b54ae4ff9f142365a42c33ba160c1be17a342
2015-08-07 17:24:49 -07:00
Elliott Hughes and Android Git Automerger
a9390df6c6
am 06689dc5: Merge "Fix recovery image build."
...
* commit '06689dc53d14ab0449c64c097d2937179f986873':
Fix recovery image build.
2015-08-07 20:29:52 +00:00
Elliott Hughes and Gerrit Code Review
06689dc53d
Merge "Fix recovery image build."
2015-08-07 20:24:21 +00:00
Elliott Hughes
faa75006af
Fix recovery image build.
...
A recent adb cleanup changed the signature of adb_main.
Change-Id: I98d084f999966f1a7aa94c63e9ed996b3375096d
2015-08-07 13:21:06 -07:00
Tao Bao
e6aa3326c1
updater: Clean up char* with std::string.
...
So we can remove a few free()s. And also replace a few pointers with
references.
Change-Id: I4b6332216704f4f9ea4a044b8d4bb7aa42a7ef26
2015-08-06 13:05:00 -07:00
Jeremy Compostella and Gaelle Nassiet
1b7d9b7368
Fix potential crash
...
Malloc might fail when replacing package path. In this case, print a
clear error message in the logs and let the OTA fails.
Change-Id: I7209d95edc025e3ee1b4478f5e04f6e852d97205
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com >
Signed-off-by: Gaelle Nassiet <gaellex.nassiet@intel.com >
2015-08-05 10:15:32 +02:00
Tao Bao and Android Git Automerger
393d1e739f
am 27c1ab20: Merge "udpater: Call fsync() after rename()."
...
* commit '27c1ab2095f25253d0920eb6afe7cd2791a708dc':
udpater: Call fsync() after rename().
2015-08-04 18:33:00 +00:00
Tao Bao and Gerrit Code Review
27c1ab2095
Merge "udpater: Call fsync() after rename()."
2015-08-04 18:24:53 +00:00
Tao Bao
dc3922622a
udpater: Call fsync() after rename().
...
We need to ensure the renamed filename reaches the underlying storage.
Bug: 22840552
Change-Id: Ide2e753a2038691d472b6ee173cbf68ac998a084
2015-08-03 21:35:05 -07:00
Tao Bao and Android Git Automerger
2e979ef6fd
am 302779e7: Merge "recovery: Allow "Mount /system" for system_root_image."
...
* commit '302779e71cb1be68f60cb044c85436d4d6bcfecc':
recovery: Allow "Mount /system" for system_root_image.
2015-07-31 16:49:33 +00:00
Tao Bao and Gerrit Code Review
302779e71c
Merge "recovery: Allow "Mount /system" for system_root_image."
2015-07-31 16:43:39 +00:00
Tao Bao
abb8f7785e
recovery: Allow "Mount /system" for system_root_image.
...
When system images contain the root directory, there is no entry of
"/system" in the fstab. Change it to look for "/" instead if
ro.build.system_root_image is true. We actually mount the partition
to /system_root instead, and create a symlink to /system_root/system
for /system. This allows "adb shell" to work properly.
Bug: 22855115
Change-Id: Ibac493a5a9320c98ee3b60bd2cc635b925f5454a
2015-07-30 17:22:29 -07:00
Tao Bao and Android Git Automerger
7666f65b2a
am 62e19231: Merge "updater: Hoist fsync() to outer loop."
...
* commit '62e1923194de067c0ac589abcfc4f04fdddf2b1a':
updater: Hoist fsync() to outer loop.
2015-07-28 00:21:36 +00:00
Tao Bao and Gerrit Code Review
62e1923194
Merge "updater: Hoist fsync() to outer loop."
2015-07-28 00:12:31 +00:00
Tao Bao
187efff6f3
updater: Hoist fsync() to outer loop.
...
Currently the fsync() inside write_all() may be called multiple times
when performing a command. Move that to the outer loop and call it
only after completing the command.
Also remove the O_SYNC flag when writing a stash.
Change-Id: I71e51d76051a2f7f504eef1aa585d2cb7a000d80
2015-07-27 14:17:09 -07:00
Tao Bao and Android Git Automerger
0622ccb34d
am 6a4a33e3: Merge "applypatch: Fix the checking in WriteToPartition()."
...
* commit '6a4a33e39ea2fa8626335f6b9cccf407c71c0588':
applypatch: Fix the checking in WriteToPartition().
2015-07-24 23:08:59 +00:00
Tao Bao and Gerrit Code Review
6a4a33e39e
Merge "applypatch: Fix the checking in WriteToPartition()."
2015-07-24 22:56:36 +00:00
Tao Bao
1ce7a2a63d
applypatch: Fix the checking in WriteToPartition().
...
WriteToPartition() should consider a target name as valid if it contains
multiple colons. But only the first two fields will be used.
Bug: 22725128
Change-Id: Ie9404375e24045c115595eec6ce5b6423da8fc3e
2015-07-24 15:33:35 -07:00
Tao Bao and Android Git Automerger
3b753ad5da
am dd738c11: Merge "applypatch: Support flash mode."
...
* commit 'dd738c11a49d594183dde9f0e46f56c7a575900a':
applypatch: Support flash mode.
2015-07-24 18:33:57 +00:00
Tao Bao and Android Git Automerger
c69095d8cd
am afb8f320: Merge "uncrypt: Support file level encryption."
...
* commit 'afb8f320bf244630035e011f7840f90120ec4f8f':
uncrypt: Support file level encryption.
2015-07-24 18:18:42 +00:00
Tao Bao and Android Git Automerger
87f2c673df
am cc3c3414: Merge "updater: libapplypatch needs libbase now."
...
* commit 'cc3c34145e4816a84fe597ce273b016ae9587530':
updater: libapplypatch needs libbase now.
2015-07-24 18:18:41 +00:00
Tao Bao and Android Git Automerger
1dc71bec8d
am cfd9d9c7: Merge "applypatch: Refactor strtok()."
...
* commit 'cfd9d9c7ce03b847946977a98efcbfca2f067fd3':
applypatch: Refactor strtok().
2015-07-24 18:18:39 +00:00
Tao Bao and Gerrit Code Review
dd738c11a4
Merge "applypatch: Support flash mode."
2015-07-24 18:17:49 +00:00
Tao Bao
abba55b4c5
applypatch: Support flash mode.
...
We may carry a full copy of recovery image in the /system, and use
/system/bin/install-recovery.sh to install the recovery. This CL adds
support to flash the recovery partition with the given image.
Bug: 22641135
Change-Id: I7a275b62fdd1bf41f97f6aab62d0200f7dae5aa1
(cherry picked from commit 68c5a67967 )
2015-07-24 11:15:19 -07:00
Tao Bao and Gerrit Code Review
afb8f320bf
Merge "uncrypt: Support file level encryption."
2015-07-24 18:13:58 +00:00
Tao Bao
7cf50c60b5
uncrypt: Support file level encryption.
...
Bug: 22534003
Change-Id: I2bc22418c416491da573875dce78daed24f2c046
(cherry picked from commit 6e9dda70cb )
2015-07-24 11:13:25 -07:00
Tao Bao and Gerrit Code Review
cc3c34145e
Merge "updater: libapplypatch needs libbase now."
2015-07-24 18:10:21 +00:00
Tao Bao
ba8a6789f7
updater: libapplypatch needs libbase now.
...
Change-Id: I18da9e6da64fccab495dc5a96e3efd95cc6d88bf
(cherry picked from commit 1b1ea17d55 )
2015-07-24 11:09:36 -07:00
Tao Bao and Gerrit Code Review
cfd9d9c7ce
Merge "applypatch: Refactor strtok()."
2015-07-24 18:08:50 +00:00
Tao Bao
aca8e89603
applypatch: Refactor strtok().
...
We have android::base::Split() for the work.
Change-Id: I0fb562feb203c9b15e2f431d8e84355fd682376a
(cherry picked from commit 0a47ce27de )
2015-07-24 11:08:14 -07:00
Tao Bao and Android Git Automerger
b91e700544
am 85090d0c: Merge "recovery: Switch fuse_* to C++."
...
* commit '85090d0c98f1684147fc180a8b2adea93e4af642':
recovery: Switch fuse_* to C++.
2015-07-20 19:16:45 +00:00
Tao Bao and Gerrit Code Review
85090d0c98
Merge "recovery: Switch fuse_* to C++."
2015-07-20 19:00:11 +00:00
Tao Bao
71dc365f25
recovery: Switch fuse_* to C++.
...
Change-Id: I68770ad1a9e99caee292f8010cfd37dfea3acc64
2015-07-20 11:57:40 -07:00
Tao Bao and Android Git Automerger
328cb8cb5a
am 025c0e79: Merge "Clean up LOG functions."
...
* commit '025c0e79c3e05babd4df0bab8249466b489c0870':
Clean up LOG functions.
2015-07-17 05:23:59 +00:00
Tao Bao and Gerrit Code Review
025c0e79c3
Merge "Clean up LOG functions."
2015-07-17 05:13:44 +00:00
Tao Bao
dd4d9818a8
Clean up LOG functions.
...
For fatal errors, use LOGE to show messages.
Bug: 22236461
Change-Id: I2b7d761576894ac37fcbadcba690ae14affe8f07
(cherry picked from commit d7d0f75034 )
2015-07-16 22:12:32 -07:00
Tao Bao and Android Git Automerger
307eecfdc7
am 0bacbfd0: Merge "recovery: Switch applypatch/ and updater/ to cpp."
...
* commit '0bacbfd03c866b9078f86216e6786da91238ac91':
recovery: Switch applypatch/ and updater/ to cpp.
2015-07-14 01:11:48 +00:00
Tao Bao and Gerrit Code Review
0bacbfd03c
Merge "recovery: Switch applypatch/ and updater/ to cpp."
2015-07-14 01:00:27 +00:00