commit | 3d23c4c3f46595e9d30c6e6ca6ba80ec2210a1ea | [log] [tgz] |
---|---|---|
author | Suren Baghdasaryan <surenb@google.com> | Tue Nov 24 06:35:37 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Nov 24 06:35:37 2020 +0000 |
tree | 5dfa30e8288aa140c15ca05aa8bab24edb7d8910 | |
parent | c8538b4a43c3128fbeb456362931eb63c9963ae5 [diff] | |
parent | ccc41dd652d554977b444c7005188f49c95bb3a0 [diff] |
Merge "libprocessgroup: Support per-API level task profiles" am: 180b2671cc am: ccc41dd652 Original change: https://android-review.googlesource.com/c/platform/system/core/+/1507918 Change-Id: I1830eda88ae040f6fb513fbbc80c2e3c772ea90e
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()) {