commit | 2ecb2e9f2692950d27456e57563bfc399728d7a0 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Wed Dec 09 20:29:26 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Dec 09 20:29:26 2020 +0000 |
tree | fd98f8a8fcb11d89cf8e505053ae5493cac26d69 | |
parent | ebcf0925fc8ebfc677fb6b4c8d31d2f4b58ba5cc [diff] | |
parent | 8571b7618539b9e71419e2ea321d28ee58c56fcc [diff] |
Merge "Add erofs to supported fs type" am: 8571b76185 Original change: https://android-review.googlesource.com/c/platform/system/core/+/1517501 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I1b80de12a663a61a83232fce701802e9089eb5b7
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()) {