Snap for 9839270 from cb902f0581 to udc-release

Change-Id: I763754295e9bc6ec30e30bb1f2eac1759b44cfd7
This commit is contained in:
Android Build Coastguard Worker 2023-03-29 02:22:48 +00:00
commit d0789d7f48
4 changed files with 2 additions and 11 deletions

View file

@ -154,10 +154,8 @@ ndk::ScopedAStatus Dumpstate::dumpstateBoard(const std::vector<::ndk::ScopedFile
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 @@ ndk::ScopedAStatus Dumpstate::dumpstateBoard(const std::vector<::ndk::ScopedFile
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);

View file

@ -2,5 +2,4 @@ allow hal_dumpstate_default vendor_toolbox_exec:file execute_no_trans;
allow hal_dumpstate_default radio_vendor_data_file:dir create_dir_perms;
allow hal_dumpstate_default radio_vendor_data_file:file create_file_perms;
allow hal_dumpstate_default shell_data_file:file getattr;
set_prop(hal_dumpstate_default, vendor_logger_prop)

View file

@ -1,3 +0,0 @@
# verbose property
vendor_internal_prop(vendor_logger_prop)

View file

@ -1,2 +0,0 @@
persist.vendor.verbose_logging_enabled u:object_r:vendor_logger_prop:s0