commit | 9d879b847f778c01d536785d84f238cf76cd5fca | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Fri Dec 04 03:34:29 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Dec 04 03:34:29 2020 +0000 |
tree | 87b4a32517a8c09410494e0e6989547efc8a707f | |
parent | d79ac4b1c9c961a9c6242ea55dda8d1d9ad4a685 [diff] | |
parent | a9e6057dadfcd37af4519efa7987d809ce46ac1a [diff] |
Merge "Add product_available to product available modules" am: a9e6057dad Original change: https://android-review.googlesource.com/c/platform/system/core/+/1496003 Change-Id: I2643b1b482397a31971cc992e3ae450fb19d9797
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()) {