Revert "comply with VTS requirements"
Revert submission 22242215-dumpstate aidl
Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_udc-d1-dev&target=aosp_husky-userdebug&lkgb=9826121&lkbb=9829863&fkbb=9826130, bug b/275279368.
Reverted changes: /q/submissionid:22242215-dumpstate+aidl
Change-Id: I856e29ad3236014c9db41e43ee19bf8ec43979a8
diff --git a/gear/dumpstate/Dumpstate.cpp b/gear/dumpstate/Dumpstate.cpp
index 842e67d..1e4d982 100644
--- a/gear/dumpstate/Dumpstate.cpp
+++ b/gear/dumpstate/Dumpstate.cpp
@@ -154,10 +154,8 @@
int64_t in_timeoutMillis) {
// Unused arguments.
(void) in_timeoutMillis;
- if (in_mode < IDumpstateDevice::DumpstateMode::FULL || in_mode > IDumpstateDevice::DumpstateMode::PROTO) {
- ALOGE("Invalid mode: %d\n", in_mode);
- return ndk::ScopedAStatus::fromExceptionCodeWithMessage(EX_ILLEGAL_ARGUMENT, "Invalid mode");
- }
+ (void) in_mode;
+
if (in_fds.size() < 1) {
ALOGE("no FDs\n");
return ndk::ScopedAStatus::fromExceptionCodeWithMessage(EX_ILLEGAL_ARGUMENT,
@@ -173,7 +171,6 @@
if (in_fds.size() < 2) {
ALOGE("no FD for dumpstate_board binary\n");
- dumpTextSection(fd, "");
} else {
int fd_bin = in_fds[1].get();
dumpLogSection(fd, fd_bin);