Snap for 5663715 from 1289741942c1ffbfbd6662546a70737f7cedc3e3 to qt-c2f2-release
Change-Id: Ic91ccef614f7b7afd9977139ab462328cef59332
diff --git a/Checkpoint.cpp b/Checkpoint.cpp
index 19c1f3c..a3d78e7 100644
--- a/Checkpoint.cpp
+++ b/Checkpoint.cpp
@@ -139,6 +139,11 @@
if (!isCheckpointing) {
return Status::ok();
}
+ if (android::base::GetProperty("persist.vold.dont_commit_checkpoint", "0") == "1") {
+ LOG(WARNING)
+ << "NOT COMMITTING CHECKPOINT BECAUSE persist.vold.dont_commit_checkpoint IS 1";
+ return Status::ok();
+ }
sp<IBootControl> module = IBootControl::getService();
if (module) {
CommandResult cr;