OSDN Git Service

Avoid unlinking app image file
authorMathieu Chartier <mathieuc@google.com>
Thu, 28 Jan 2016 23:38:29 +0000 (15:38 -0800)
committerMathieu Chartier <mathieuc@google.com>
Sat, 30 Jan 2016 02:09:51 +0000 (18:09 -0800)
commit310c5e70b2e36df36811b6de7ad5c2ebd82338e5
tree9b919609d51d1d7a41945e968d585644dcc8da63
parentc67772f5c9fa32c20e6a078c175af8836222e1ea
Avoid unlinking app image file

Avoid erasing the image file in installd in case we abort compilation
due to no new profile data. This prevents the application image file
being turned into a 0 byte file in this case.

The ART image writer erases the file before writing.

Bug: 22858531
Change-Id: I0b35905698662cef80eecfc350e5504bf62a5ac1
cmds/installd/commands.cpp