OSDN Git Service

vold: implement resetCheckpoint
authorNikita Ioffe <ioffe@google.com>
Fri, 11 Oct 2019 15:38:21 +0000 (16:38 +0100)
committerNikita Ioffe <ioffe@google.com>
Fri, 11 Oct 2019 23:43:04 +0000 (00:43 +0100)
commita5798fc1155c0af55048f83959c5f892ec2ccfa8
treebe3d5abc3e418db20f4588679359e640d9ec253e
parent22d50012b0c8b39f02e3a4ce834cbbfde63e15d8
vold: implement resetCheckpoint

It will be used by userspace reboot to reset checkpoint state, to make
sure that when /data is remounted, it will be remounted in checkpointing
if a checkpoint was requested beforee userspace reboot.

Test: /system/bin/vdc startCheckpoint 1
      /system/bin/vdc needsCheckpoint (returns 0)
      /system/bin/vdc resetCheckpoint
      /system/bin/vdc needsCheckpoint (returns 1)

Bug: 135984674
Change-Id: Ia29238686289b4eed93e2fb936a8b3d894b94dc9
Checkpoint.cpp
Checkpoint.h
VoldNativeService.cpp
VoldNativeService.h
binder/android/os/IVold.aidl
vdc.cpp