Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855
Bug: 172690556 Merged-In: I22cc7bb8ac579d0e03f92ec5a16e8c0f2c768051 Change-Id: Ide85f5a8acd02dead55dc87f9d6a80b3261027b4
This commit is contained in:
commit
4217e6d7bd
1 changed files with 5 additions and 0 deletions
|
@ -228,6 +228,11 @@ bool OemCmdHandler(FastbootDevice* device, const std::vector<std::string>& args)
|
|||
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()) {
|
||||
|
|
Loading…
Reference in a new issue