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

Commit c077e913 authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

Fixed logic to print BEGIN: line for bugreportz.

am: dcd1f0da

Change-Id: I8a405fed3457c0472d6ae2dba3ba6864ef2ab79d
parents f0fae0f9 dcd1f0da
Loading
Loading
Loading
Loading
+13 −11
Original line number Diff line number Diff line
@@ -1269,7 +1269,8 @@ int main(int argc, char *argv[]) {
            add_text_zip_entry("version.txt", version);
        }

        if (do_update_progress && do_broadcast) {
        if (do_update_progress) {
            if (do_broadcast) {
                // clang-format off
                std::vector<std::string> am_args = {
                     "--receiver-permission", "android.permission.DUMP", "--receiver-foreground",
@@ -1277,9 +1278,10 @@ int main(int argc, char *argv[]) {
                     "--ei", "android.intent.extra.ID", std::to_string(id),
                     "--ei", "android.intent.extra.PID", std::to_string(getpid()),
                     "--ei", "android.intent.extra.MAX", std::to_string(WEIGHT_TOTAL),
            // clang-format on
                };
                // clang-format on
                send_broadcast("android.intent.action.BUGREPORT_STARTED", am_args);
            }
            if (use_control_socket) {
                dprintf(control_socket_fd, "BEGIN:%s\n", path.c_str());
            }