Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit badd600f authored by Paul Chang's avatar Paul Chang Committed by Automerger Merge Worker
Browse files

Merge "Rename the bugreport from .tmp to .zip when the user consent is...

Merge "Rename the bugreport from .tmp to .zip when the user consent is unavailable" into sc-dev am: 177106d6 am: d294169f

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/14494921

Change-Id: Ie08e3231ef443390cdab64e79ecc71c57f2e893b
parents 387e7ffd d294169f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3187,6 +3187,11 @@ Dumpstate::RunStatus Dumpstate::CopyBugreportIfUserConsented(int32_t calling_uid
        // Since we do not have user consent to share the bugreport it does not get
        // copied over to the calling app but remains in the internal directory from
        // where the user can manually pull it.
        std::string final_path = GetPath(".zip");
        bool copy_succeeded = android::os::CopyFileToFile(path_, final_path);
        if (copy_succeeded) {
            android::os::UnlinkAndLogOnError(path_);
        }
        return Dumpstate::RunStatus::USER_CONSENT_TIMED_OUT;
    }
    // Unknown result; must be a programming error.