commit | f92fe9ae13f7176ff3532f62cc1d5e3eaa82edfa | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Sat Dec 05 01:55:39 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sat Dec 05 01:55:39 2020 +0000 |
tree | f3708901c6f97d083661820088c12570964208c5 | |
parent | da7bb0e81ee1269fe7de2c21cf8b7c764f820f70 [diff] | |
parent | f38f0fdd2d1f478b656eb99296bad6aab4950d26 [diff] |
Merge "Adding 'postinstall' root dir unconditionally." am: f38f0fdd2d Original change: https://android-review.googlesource.com/c/platform/system/core/+/1517503 Change-Id: If1f345217ea0fd7c105c7b0a8232c9a8055028f4
diff --git a/fastboot/device/commands.cpp b/fastboot/device/commands.cpp index 4601960..2b2a0bf 100644 --- a/fastboot/device/commands.cpp +++ b/fastboot/device/commands.cpp
@@ -228,6 +228,11 @@ return device->WriteStatus(FastbootResult::FAIL, "Unable to open fastboot HAL"); } + //Disable "oem postwipedata userdata" to prevent user wipe oem userdata only. + if (args[0] == "oem postwipedata userdata") { + return device->WriteStatus(FastbootResult::FAIL, "Unable to do oem postwipedata userdata"); + } + Result ret; auto ret_val = fastboot_hal->doOemCommand(args[0], [&](Result result) { ret = result; }); if (!ret_val.isOk()) {