From aac6f58434e0e165dc3eaad8e76bfe681aeddc39 Mon Sep 17 00:00:00 2001 From: Nandana Dutt Date: Fri, 26 Jul 2019 14:32:47 +0100 Subject: Delete local bugreport when consent is denied Fix the typo which made us skip deletion of local files when consent is denied. BUG: 138431446 Test: Invoked the API via a test app and ensured the files in /bugreports are deleted now when consent is denied early on. Change-Id: Ic4ad6ef84613562e21e98b6160d6aa9c71071253 --- cmds/dumpstate/dumpstate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index 7d6dc4cb4a..75a0915ba7 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -2538,7 +2538,7 @@ Dumpstate::RunStatus Dumpstate::RunInternal(int32_t calling_uid, // Dump state for the default case. This also drops root. RunStatus s = DumpstateDefault(); if (s != RunStatus::OK) { - if (s == RunStatus::USER_CONSENT_TIMED_OUT) { + if (s == RunStatus::USER_CONSENT_DENIED) { HandleUserConsentDenied(); } return s; -- cgit v1.2.3-59-g8ed1b